@cling-se/widget 0.21.4 → 0.22.0
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/CHANGELOG.md +10 -0
- package/dist/{AddClientCallout-BjeE7RY6.js → AddClientCallout-CxbvK6ZG.js} +7 -7
- package/dist/{AnswerModal-BLo3hOrK.js → AnswerModal-vTetGwVn.js} +935 -651
- package/dist/{AttachmentItem-B4T7akns.js → AttachmentItem-DSHNRIq_.js} +9 -9
- package/dist/{BaseUpload-B-_Rpir0.js → BaseUpload-CWaM_bb7.js} +2 -2
- package/dist/{BlockMedia-szLlyTVn.js → BlockMedia-B1T85G4R.js} +9 -9
- package/dist/{CCallout-wp8bWld3.js → CCallout-BieMmWa4.js} +5 -5
- package/dist/{CCurrencyDropdown-CH0M7LFZ.js → CCurrencyDropdown-DKWtCUE_.js} +3 -3
- package/dist/{CDropdownItem-llOP71-u.js → CDropdownItem-pNNH9fV3.js} +13 -13
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-B2c0pGnW.js → CFormField.vue_vue_type_script_setup_true_lang-B57OaS--.js} +14 -14
- package/dist/{CPhoneFormat-BqLsCDaG.js → CPhoneFormat-CyrQRGmd.js} +1 -1
- package/dist/{CPhoneInput-DDnmhr17.js → CPhoneInput-BQHgpUCY.js} +5 -5
- package/dist/{CPriceInput-eaRaU9Ey.js → CPriceInput-DnFN-I6p.js} +2 -2
- package/dist/{CSelect-DDYAe8O9.js → CSelect-DB4-JxH8.js} +5 -5
- package/dist/{CSkeleton-BORdEFf8.js → CSkeleton-DpRDxR6D.js} +7 -7
- package/dist/{ClientAutocomplete-DAwttq8D.js → ClientAutocomplete-BjwvkuJ-.js} +19 -19
- package/dist/{ClientModal-C3UbUFjz.js → ClientModal-oBN2VSio.js} +138 -130
- package/dist/{ColorPicker-D4Y4g8RF.js → ColorPicker-B5rSvXLV.js} +21 -21
- package/dist/{CompanyModal-BvzLn9gU.js → CompanyModal-QrsUL6Et.js} +13 -13
- package/dist/{ContentWrapper-oh1FnZea.js → ContentWrapper-Yx-KMsfH.js} +22 -22
- package/dist/{CoverBlockSettings-CW7PisRO.js → CoverBlockSettings-C8giTiEZ.js} +19 -19
- package/dist/{DocAnswer-scOVyvez.js → DocAnswer-Djyhwfrp.js} +2 -2
- package/dist/{DocDetails-BKudQ3RU.js → DocDetails-Dv6noPvB.js} +100 -94
- package/dist/{DocForm-YI0UG4lv.js → DocForm-BFHchJ6w.js} +24 -24
- package/dist/{DocFormSend-DK7zxycs.js → DocFormSend-K2rbjklj.js} +2 -2
- package/dist/{DocLinks-CPhh8hox.js → DocLinks-DpUl89XR.js} +2 -2
- package/dist/{DocModalBase-C7vrvkFq.js → DocModalBase-BlTZ8CY3.js} +1 -1
- package/dist/{DocPrint-tfB_Hw8V.js → DocPrint-Bmfl4Abk.js} +9 -9
- package/dist/{DocReceipt-DoWB1suw.js → DocReceipt-3wi5YXqR.js} +111 -81
- package/dist/{DocSendReminder-DcezTbmh.js → DocSendReminder-CHqgC_wM.js} +1 -1
- package/dist/{DocTextEditor-Ci_Wegua.js → DocTextEditor-BGzwRwjt.js} +8 -8
- package/dist/{DocTimeline-DwZyNRtc.js → DocTimeline-BG7ldFgR.js} +12 -12
- package/dist/{DocumentClient-BZPHT4vS.js → DocumentClient-CLCAh4lI.js} +5 -5
- package/dist/{DocumentLayout-DwifYYit.js → DocumentLayout-DHSEYClM.js} +32 -32
- package/dist/{DocumentLogotype-D6DPT-i9.js → DocumentLogotype-0jH2-sr7.js} +8 -8
- package/dist/{DocumentVoided--b4zfli2.js → DocumentVoided-BAS8mATO.js} +1 -1
- package/dist/{EmbedInput-DmAlziaD.js → EmbedInput-DnSz1tbL.js} +18 -18
- package/dist/{EmbedSettings-DZuM3vpE.js → EmbedSettings-BQ1kKupC.js} +5 -5
- package/dist/{ErrorCallout-DT3qQJOP.js → ErrorCallout-XMtdcNvE.js} +4 -4
- package/dist/{FilePreviewModal-BuPbzrFy.js → FilePreviewModal-Bv28RVrN.js} +20 -20
- package/dist/{Flag-U3wm6frF.js → Flag-CcF7qtHi.js} +1 -1
- package/dist/{HeaderSettings-CC5rJ-UY.js → HeaderSettings-SKEJyM9y.js} +20 -20
- package/dist/{ImageSelectModal-BiWCVyYs.js → ImageSelectModal-BNXs_Rfh.js} +3 -3
- package/dist/{ImageUploadWrapper-CLJwtgVQ.js → ImageUploadWrapper-BmlB0qHZ.js} +23 -23
- package/dist/{Index-Bh58_V98.js → Index-B1mvOHsr.js} +5 -5
- package/dist/{Index-DIfpkUtR.js → Index-B4EqZ9op.js} +8 -8
- package/dist/{Index-ZNidoNys.js → Index-B8soD6pI.js} +2 -2
- package/dist/{Index-gZpXuLSM.js → Index-BDW4tvrc.js} +2 -2
- package/dist/{Index-z6FhBfRg.js → Index-BLC_eYvf.js} +2 -2
- package/dist/{Index-cb83jmmP.js → Index-BNetDL7G.js} +4 -4
- package/dist/{Index-C8tXlpnc.js → Index-BRIv1n05.js} +4 -4
- package/dist/{Index-Lr-w-2nq.js → Index-BS-ERsZ7.js} +28 -28
- package/dist/{Index-Dmd9h-QW.js → Index-BS1J5b8c.js} +3 -3
- package/dist/{Index-BbINQ0SU.js → Index-B_R1p7cp.js} +1 -1
- package/dist/{Index-C9yjlO_o.js → Index-BbEj20KG.js} +13 -13
- package/dist/{Index-BNrnEteM.js → Index-Bd3gjqXz.js} +6 -6
- package/dist/{Index-011UWI-5.js → Index-Bxi4pinD.js} +3 -3
- package/dist/{Index-HpvIqyQK.js → Index-Bz6vrP4D.js} +4 -4
- package/dist/{Index-BZ3G8u4L.js → Index-C2Jql1QC.js} +16 -16
- package/dist/{Index-C6eCTYlb.js → Index-C6r2p8Qd.js} +7 -7
- package/dist/{Index-BOxSyAOT.js → Index-C9k2n-HK.js} +4 -4
- package/dist/{Index-D8T4ZAGK.js → Index-CDdxLKdQ.js} +4 -4
- package/dist/{Index-DspgGnIy.js → Index-CQSkYi57.js} +6 -6
- package/dist/{Index-BBnlZtoe.js → Index-CVoJGfTj.js} +5 -5
- package/dist/{Index-AOzEiDJ6.js → Index-CYjEFdMF.js} +2 -2
- package/dist/{Index-hzFkpPtu.js → Index-Ca6-XJ1q.js} +23 -23
- package/dist/{Index-jCDreJV4.js → Index-CfpNMWEI.js} +5 -5
- package/dist/{Index-BQUdVuCj.js → Index-Coef67Wb.js} +8 -8
- package/dist/{Index-B0js1lQ9.js → Index-DRadSzmh.js} +11 -11
- package/dist/{Index-DND_3eOV.js → Index-DU19comM.js} +14 -14
- package/dist/{Index-06RLiHU7.js → Index-DquGwrE6.js} +11 -11
- package/dist/{Index-DZzmEObV.js → Index-Dz3beMLO.js} +5 -5
- package/dist/{Index-UkLmXQf7.js → Index-GmMgg4ZI.js} +10 -10
- package/dist/{Index-BPE5xozF.js → Index-LNHTL5EH.js} +1 -1
- package/dist/Index-Ra_-tX11.js +106 -0
- package/dist/Index-aOBMRrRj.js +4 -0
- package/dist/{Index-DwAyOR71.js → Index-ec9osPpw.js} +4 -4
- package/dist/{Index-C-Y_FGIG.js → Index-mcDMCki9.js} +30 -30
- package/dist/{Index.vue_vue_type_script_lang-FRTEgjSK.js → Index.vue_vue_type_script_lang-DOtAXSQl.js} +2 -2
- package/dist/{InputToggleRow-DrAFt_YF.js → InputToggleRow-DH7USYPf.js} +9 -9
- package/dist/{ManualPopover-BZr_lfqJ.js → ManualPopover-JDRhdC8G.js} +3 -3
- package/dist/{MediaWrapper-CuCltxOM.js → MediaWrapper-DdbmCwGw.js} +3 -3
- package/dist/{NotBindingText-D6QNyf03.js → NotBindingText-CwV-MkgL.js} +2 -2
- package/dist/{PackageGroup-DonphykF.js → PackageGroup-CH-8hyAF.js} +10 -10
- package/dist/{PdfTerms-BRwmINkR.js → PdfTerms-BBeN_k6I.js} +4 -4
- package/dist/{PdfViewer-DpmlfAfl.js → PdfViewer-Du_M79jv.js} +27 -27
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BeenXnHV.js → PlainHtml.vue_vue_type_script_setup_true_lang-BKJdTPrg.js} +1 -1
- package/dist/{PriceHeader-Cdh8apAZ.js → PriceHeader-Be2QwWzs.js} +25 -25
- package/dist/{SearchApi-B2ED3FdK.js → SearchApi-dNunyqch.js} +1 -1
- package/dist/{SendForm-Bz1AN65o.js → SendForm-BIIwVZwY.js} +136 -127
- package/dist/{Setup-BIa-5REE.js → Setup-DBbHXz4_.js} +1 -1
- package/dist/{SmartList-C9DXNnNX.js → SmartList-C2JUKK2W.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DPxTkygS.js → Sortable.vue_vue_type_script_setup_true_lang-CzrvSsIg.js} +35 -35
- package/dist/{TermsSettings-BQC-y2g4.js → TermsSettings-BZBWd3c9.js} +11 -11
- package/dist/{ThemeColorRow-B1L2qfGx.js → ThemeColorRow-7KF7icN8.js} +5 -5
- package/dist/{ToggleBinding-C2ct7wmC.js → ToggleBinding-w8lNunzO.js} +4 -4
- package/dist/{UploadModal-CCy7i-cN.js → UploadModal-BRdimOyC.js} +2 -2
- package/dist/{VideoPlayerInput-BluC_uCy.js → VideoPlayerInput-BHmr7HvX.js} +6 -6
- package/dist/{VideoPlayerSettings-DvoFmiks.js → VideoPlayerSettings-fI8gpjks.js} +6 -6
- package/dist/{VideoSelectModal-yfI6keDu.js → VideoSelectModal-Beq5yE0M.js} +9 -9
- package/dist/{focusDrawerMixin-BS0v03Pf.js → focusDrawerMixin-vhY6JO7g.js} +1 -1
- package/dist/{formDrawerState-DNNzOR3a.js → formDrawerState-ChHVYfc3.js} +1 -1
- package/dist/{fortnoxTheme-DbdQ_k4_.js → fortnoxTheme-BGyYnb8i.js} +1 -1
- package/dist/{helpers-vOT4bDZk.js → helpers-Dw4CluFv.js} +1 -1
- package/dist/{index-DSDwk2v_.js → index-BUPqyA87.js} +6 -6
- package/dist/{index-DIxSHthq.js → index-BcnDsk0Z.js} +1 -1
- package/dist/{index-C_k-2pHu.js → index-C-tsPusW.js} +7 -7
- package/dist/{index-BtZlk67X.js → index-CPfrJsi9.js} +13 -13
- package/dist/{index-Cm9MF5Ro.js → index-DJYVhEQt.js} +22 -22
- package/dist/{index-aqgR0F9F.js → index-DihGX5od.js} +30 -30
- package/dist/{index-BinehglS.js → index-syUJ22zc.js} +24 -24
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +139 -137
- package/dist/{main-CCA1EgK_.js → main-BBhJGb7I.js} +4894 -4633
- package/dist/{mapFormMixin-DarsdTYn.js → mapFormMixin-CCKubywa.js} +2 -2
- package/dist/omit-Cdd54eFA.js +56 -0
- package/dist/{publicSenderState-CSYveOTQ.js → publicSenderState-LkIY-kEl.js} +1 -1
- package/dist/{splitpanes-B5GGsG65.js → splitpanes-nCfEUpmu.js} +1 -1
- package/dist/{template-BTmi3cQk.js → template-B-Ds8x_U.js} +1 -1
- package/dist/{tippy.esm-Cc-sUEuY.js → tippy.esm-DdYqbHFh.js} +66 -66
- package/dist/{useTermsModal-CdnGQsw8.js → useTermsModal-Z_pZQ4H2.js} +4 -4
- package/dist/{utils-DLVtsRRz.js → utils-C3tvmZHk.js} +1 -1
- package/dist/validation-CWxbj-wT.js +40 -0
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-1MRJMA0V.js +0 -4
- package/dist/Index-DGkk540X.js +0 -87
- package/dist/omit-sqUJ46Re.js +0 -56
- package/dist/validation-DGxGtXMe.js +0 -40
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as V, c as b, a as H, g as I, b as M } from "./template-
|
|
1
|
+
import { aF as r, aE as d, i as m, bw as w, bx as g, by as y, bz as x, bA as v, bB as k, ag as h } from "./main-BBhJGb7I.js";
|
|
2
|
+
import { t as V, c as b, a as H, g as I, b as M } from "./template-B-Ds8x_U.js";
|
|
3
3
|
const T = (e) => {
|
|
4
4
|
const t = Array(2).fill().map(() => r());
|
|
5
5
|
return [
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { aW as A, aX as P, aY as y, aZ as S, a_ as p, a$ as x, b0 as D, b1 as G, b2 as I, b3 as M, aL as N } from "./main-BBhJGb7I.js";
|
|
2
|
+
var f, q;
|
|
3
|
+
function T() {
|
|
4
|
+
if (q) return f;
|
|
5
|
+
q = 1;
|
|
6
|
+
var r = A();
|
|
7
|
+
function t(e) {
|
|
8
|
+
return r(e) ? void 0 : e;
|
|
9
|
+
}
|
|
10
|
+
return f = t, f;
|
|
11
|
+
}
|
|
12
|
+
var _, O;
|
|
13
|
+
function j() {
|
|
14
|
+
if (O) return _;
|
|
15
|
+
O = 1;
|
|
16
|
+
var r = P();
|
|
17
|
+
function t(e) {
|
|
18
|
+
var a = e == null ? 0 : e.length;
|
|
19
|
+
return a ? r(e, 1) : [];
|
|
20
|
+
}
|
|
21
|
+
return _ = t, _;
|
|
22
|
+
}
|
|
23
|
+
var v, b;
|
|
24
|
+
function K() {
|
|
25
|
+
if (b) return v;
|
|
26
|
+
b = 1;
|
|
27
|
+
var r = j(), t = S(), e = y();
|
|
28
|
+
function a(i) {
|
|
29
|
+
return e(t(i, void 0, r), i + "");
|
|
30
|
+
}
|
|
31
|
+
return v = a, v;
|
|
32
|
+
}
|
|
33
|
+
var c, C;
|
|
34
|
+
function U() {
|
|
35
|
+
if (C) return c;
|
|
36
|
+
C = 1;
|
|
37
|
+
var r = M(), t = p(), e = x(), a = D(), i = G(), R = T(), g = K(), F = I(), L = 1, d = 2, E = 4, h = g(function(u, s) {
|
|
38
|
+
var n = {};
|
|
39
|
+
if (u == null)
|
|
40
|
+
return n;
|
|
41
|
+
var o = !1;
|
|
42
|
+
s = r(s, function(l) {
|
|
43
|
+
return l = a(l, u), o || (o = l.length > 1), l;
|
|
44
|
+
}), i(u, F(u), n), o && (n = t(n, L | d | E, R));
|
|
45
|
+
for (var m = s.length; m--; )
|
|
46
|
+
e(n, s[m]);
|
|
47
|
+
return n;
|
|
48
|
+
});
|
|
49
|
+
return c = h, c;
|
|
50
|
+
}
|
|
51
|
+
var Y = U();
|
|
52
|
+
const B = /* @__PURE__ */ N(Y);
|
|
53
|
+
export {
|
|
54
|
+
B as o,
|
|
55
|
+
K as r
|
|
56
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { al as m, d as u, o as c, U as z, X as x } from "./main-BBhJGb7I.js";
|
|
2
2
|
const M = {
|
|
3
3
|
name: "splitpanes",
|
|
4
4
|
emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as Tr } from "./DocumentLayout-
|
|
2
|
-
import { _ as Ar,
|
|
3
|
-
import { b as Ir, a as Mr } from "./CDropdownItem-
|
|
4
|
-
import { C as jr } from "./ColorPicker-
|
|
5
|
-
import { C as Br } from "./CCurrencyDropdown-
|
|
1
|
+
import { F as Tr } from "./DocumentLayout-DHSEYClM.js";
|
|
2
|
+
import { _ as Ar, n as Cr, b as xe, a5 as Dr, d as I, o as P, j as _, v as kr, e as It, t as pe, F as Le, q as st, y as _r, T as ve, f as ce, w as Se, X as Lr, ao as Sr, c as Rr, s as Pr } from "./main-BBhJGb7I.js";
|
|
3
|
+
import { b as Ir, a as Mr } from "./CDropdownItem-pNNH9fV3.js";
|
|
4
|
+
import { C as jr } from "./ColorPicker-B5rSvXLV.js";
|
|
5
|
+
import { C as Br } from "./CCurrencyDropdown-DKWtCUE_.js";
|
|
6
6
|
const Vr = {
|
|
7
7
|
components: {
|
|
8
8
|
ColorPicker: jr,
|
|
@@ -163,7 +163,7 @@ function cn(e, t, r, n, i, s) {
|
|
|
163
163
|
expanded: "",
|
|
164
164
|
style: { width: "100%" }
|
|
165
165
|
}, {
|
|
166
|
-
trigger:
|
|
166
|
+
trigger: Se(() => [
|
|
167
167
|
_("div", Zr, [
|
|
168
168
|
_("div", {
|
|
169
169
|
style: Lr([{ "background-color": l.props.value }, { height: "20px", width: "26px", margin: "0px 3px", "border-radius": "3px", "box-shadow": "inset 0 0 2px rgba(0, 0, 0, 0.3)" }])
|
|
@@ -173,7 +173,7 @@ function cn(e, t, r, n, i, s) {
|
|
|
173
173
|
key: 0,
|
|
174
174
|
class: "plain-button",
|
|
175
175
|
style: { position: "absolute", width: "24px", right: "2px", display: "grid", "place-items": "center", top: "2px", bottom: "2px", "border-radius": "4px" },
|
|
176
|
-
onClick:
|
|
176
|
+
onClick: Sr((f) => l.onInput(""), ["prevent", "stop"])
|
|
177
177
|
}, [
|
|
178
178
|
ce(p, {
|
|
179
179
|
type: "reset",
|
|
@@ -183,7 +183,7 @@ function cn(e, t, r, n, i, s) {
|
|
|
183
183
|
], 8, tn)) : It("", !0)
|
|
184
184
|
])
|
|
185
185
|
]),
|
|
186
|
-
default:
|
|
186
|
+
default: Se(() => [
|
|
187
187
|
ce(c, ve({ ref_for: !0 }, l.props, {
|
|
188
188
|
style: { "box-shadow": "none" },
|
|
189
189
|
"model-value": l.props.value,
|
|
@@ -201,7 +201,7 @@ function cn(e, t, r, n, i, s) {
|
|
|
201
201
|
class: "font-input-wrapper",
|
|
202
202
|
"onUpdate:modelValue": (f) => l.onInput && l.onInput(f)
|
|
203
203
|
}), {
|
|
204
|
-
default:
|
|
204
|
+
default: Se(({ selectedFamily: f }) => [
|
|
205
205
|
_("button", rn, [
|
|
206
206
|
_("span", nn, pe(f), 1)
|
|
207
207
|
])
|
|
@@ -217,7 +217,7 @@ function cn(e, t, r, n, i, s) {
|
|
|
217
217
|
class: "currency-input-wrapper",
|
|
218
218
|
"onUpdate:modelValue": (f) => l.onInput && l.onInput(f)
|
|
219
219
|
}), {
|
|
220
|
-
default:
|
|
220
|
+
default: Se(({ selectedValue: f }) => [
|
|
221
221
|
_("button", on, [
|
|
222
222
|
_("span", an, pe(f), 1)
|
|
223
223
|
])
|
|
@@ -242,14 +242,14 @@ function cn(e, t, r, n, i, s) {
|
|
|
242
242
|
"menu-styling": { width: l.props.width },
|
|
243
243
|
style: { width: "100%" }
|
|
244
244
|
}, {
|
|
245
|
-
trigger:
|
|
245
|
+
trigger: Se(() => [
|
|
246
246
|
_("div", sn, [
|
|
247
247
|
_("div", un, pe(l.props.value), 1)
|
|
248
248
|
])
|
|
249
249
|
]),
|
|
250
|
-
default:
|
|
250
|
+
default: Se(() => [
|
|
251
251
|
_("div", null, [
|
|
252
|
-
(P(!0), I(Le, null, st(l.props.popup.inputs, (f, g) => (P(),
|
|
252
|
+
(P(!0), I(Le, null, st(l.props.popup.inputs, (f, g) => (P(), Rr(O, {
|
|
253
253
|
key: g,
|
|
254
254
|
inputs: f.inputs,
|
|
255
255
|
label: f.label
|
|
@@ -277,10 +277,10 @@ const ln = /* @__PURE__ */ Ar(Vr, [["render", cn], ["__scopeId", "data-v-8c904ab
|
|
|
277
277
|
__proto__: null,
|
|
278
278
|
default: ln
|
|
279
279
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
280
|
-
var H = "top", K = "bottom", G = "right", U = "left", At = "auto", Ye = [H, K, G, U],
|
|
281
|
-
return e.concat([t + "-" +
|
|
280
|
+
var H = "top", K = "bottom", G = "right", U = "left", At = "auto", Ye = [H, K, G, U], Re = "start", qe = "end", dn = "clippingParents", er = "viewport", He = "popper", vn = "reference", Mt = /* @__PURE__ */ Ye.reduce(function(e, t) {
|
|
281
|
+
return e.concat([t + "-" + Re, t + "-" + qe]);
|
|
282
282
|
}, []), tr = /* @__PURE__ */ [].concat(Ye, [At]).reduce(function(e, t) {
|
|
283
|
-
return e.concat([t, t + "-" +
|
|
283
|
+
return e.concat([t, t + "-" + Re, t + "-" + qe]);
|
|
284
284
|
}, []), mn = "beforeRead", hn = "read", gn = "afterRead", yn = "beforeMain", bn = "main", wn = "afterMain", xn = "beforeWrite", On = "write", En = "afterWrite", Tn = [mn, hn, gn, yn, bn, wn, xn, On, En];
|
|
285
285
|
function oe(e) {
|
|
286
286
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
@@ -482,14 +482,14 @@ var Ln = function(t, r) {
|
|
|
482
482
|
placement: r.placement
|
|
483
483
|
})) : t, ar(typeof t != "number" ? t : sr(t, Ye));
|
|
484
484
|
};
|
|
485
|
-
function
|
|
485
|
+
function Sn(e) {
|
|
486
486
|
var t, r = e.state, n = e.name, i = e.options, s = r.elements.arrow, p = r.modifiersData.popperOffsets, c = ne(r.placement), u = kt(c), v = [U, G].indexOf(c) >= 0, d = v ? "height" : "width";
|
|
487
487
|
if (!(!s || !p)) {
|
|
488
488
|
var x = Ln(i.padding, r), O = Dt(s), y = u === "y" ? H : U, l = u === "y" ? K : G, b = r.rects.reference[d] + r.rects.reference[u] - p[u] - r.rects.popper[d], f = p[u] - r.rects.reference[u], g = Ke(s), E = g ? u === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, T = b / 2 - f / 2, o = x[y], A = E - O[d] - x[l], h = E / 2 - O[d] / 2 + T, k = Ue(o, h, A), j = u;
|
|
489
489
|
r.modifiersData[n] = (t = {}, t[j] = k, t.centerOffset = k - h, t);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function Rn(e) {
|
|
493
493
|
var t = e.state, r = e.options, n = r.element, i = n === void 0 ? "[data-popper-arrow]" : n;
|
|
494
494
|
i != null && (typeof i == "string" && (i = t.elements.popper.querySelector(i), !i) || or(t.elements.popper, i) && (t.elements.arrow = i));
|
|
495
495
|
}
|
|
@@ -497,8 +497,8 @@ const Pn = {
|
|
|
497
497
|
name: "arrow",
|
|
498
498
|
enabled: !0,
|
|
499
499
|
phase: "main",
|
|
500
|
-
fn:
|
|
501
|
-
effect:
|
|
500
|
+
fn: Sn,
|
|
501
|
+
effect: Rn,
|
|
502
502
|
requires: ["popperOffsets"],
|
|
503
503
|
requiresIfExists: ["preventOverflow"]
|
|
504
504
|
};
|
|
@@ -540,23 +540,23 @@ function Bt(e) {
|
|
|
540
540
|
}
|
|
541
541
|
if (i === U || (i === H || i === K) && s === qe) {
|
|
542
542
|
T = G;
|
|
543
|
-
var
|
|
543
|
+
var S = x && h === A && A.visualViewport ? A.visualViewport.width : (
|
|
544
544
|
// $FlowFixMe[prop-missing]
|
|
545
545
|
h[j]
|
|
546
546
|
);
|
|
547
|
-
y -=
|
|
547
|
+
y -= S - n.width, y *= u ? 1 : -1;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
var B = Object.assign({
|
|
551
551
|
position: c
|
|
552
|
-
}, v && In),
|
|
552
|
+
}, v && In), R = d === !0 ? Mn({
|
|
553
553
|
x: y,
|
|
554
554
|
y: b
|
|
555
555
|
}) : {
|
|
556
556
|
x: y,
|
|
557
557
|
y: b
|
|
558
558
|
};
|
|
559
|
-
if (y =
|
|
559
|
+
if (y = R.x, b = R.y, u) {
|
|
560
560
|
var L;
|
|
561
561
|
return Object.assign({}, B, (L = {}, L[o] = E ? "0" : "", L[T] = g ? "0" : "", L.transform = (A.devicePixelRatio || 1) <= 1 ? "translate(" + y + "px, " + b + "px)" : "translate3d(" + y + "px, " + b + "px, 0)", L));
|
|
562
562
|
}
|
|
@@ -667,17 +667,17 @@ function Un(e) {
|
|
|
667
667
|
y: u
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function St(e) {
|
|
671
671
|
var t = le(e), r = t.overflow, n = t.overflowX, i = t.overflowY;
|
|
672
672
|
return /auto|scroll|overlay|hidden/.test(r + i + n);
|
|
673
673
|
}
|
|
674
674
|
function ur(e) {
|
|
675
|
-
return ["html", "body", "#document"].indexOf(oe(e)) >= 0 ? e.ownerDocument.body : Y(e) &&
|
|
675
|
+
return ["html", "body", "#document"].indexOf(oe(e)) >= 0 ? e.ownerDocument.body : Y(e) && St(e) ? e : ur(dt(e));
|
|
676
676
|
}
|
|
677
677
|
function We(e, t) {
|
|
678
678
|
var r;
|
|
679
679
|
t === void 0 && (t = []);
|
|
680
|
-
var n = ur(e), i = n === ((r = e.ownerDocument) == null ? void 0 : r.body), s = J(n), p = i ? [s].concat(s.visualViewport || [],
|
|
680
|
+
var n = ur(e), i = n === ((r = e.ownerDocument) == null ? void 0 : r.body), s = J(n), p = i ? [s].concat(s.visualViewport || [], St(n) ? n : []) : n, c = t.concat(p);
|
|
681
681
|
return i ? c : (
|
|
682
682
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
683
683
|
c.concat(We(dt(p)))
|
|
@@ -748,7 +748,7 @@ function pr(e) {
|
|
|
748
748
|
if (v != null) {
|
|
749
749
|
var d = v === "y" ? "height" : "width";
|
|
750
750
|
switch (s) {
|
|
751
|
-
case
|
|
751
|
+
case Re:
|
|
752
752
|
u[v] = u[v] - (t[d] / 2 - r[d] / 2);
|
|
753
753
|
break;
|
|
754
754
|
case qe:
|
|
@@ -764,20 +764,20 @@ function Xe(e, t) {
|
|
|
764
764
|
reference: h,
|
|
765
765
|
element: T,
|
|
766
766
|
placement: i
|
|
767
|
-
}), j = Ot(Object.assign({}, T, k)), M = O === He ? j : h,
|
|
767
|
+
}), j = Ot(Object.assign({}, T, k)), M = O === He ? j : h, S = {
|
|
768
768
|
top: A.top - M.top + g.top,
|
|
769
769
|
bottom: M.bottom - A.bottom + g.bottom,
|
|
770
770
|
left: A.left - M.left + g.left,
|
|
771
771
|
right: M.right - A.right + g.right
|
|
772
772
|
}, B = e.modifiersData.offset;
|
|
773
773
|
if (O === He && B) {
|
|
774
|
-
var
|
|
775
|
-
Object.keys(
|
|
774
|
+
var R = B[i];
|
|
775
|
+
Object.keys(S).forEach(function(L) {
|
|
776
776
|
var W = [G, K].indexOf(L) >= 0 ? 1 : -1, z = [H, K].indexOf(L) >= 0 ? "y" : "x";
|
|
777
|
-
|
|
777
|
+
S[L] += R[z] * W;
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
|
-
return
|
|
780
|
+
return S;
|
|
781
781
|
}
|
|
782
782
|
function Xn(e, t) {
|
|
783
783
|
t === void 0 && (t = {});
|
|
@@ -817,8 +817,8 @@ function Kn(e) {
|
|
|
817
817
|
flipVariations: l,
|
|
818
818
|
allowedAutoPlacements: b
|
|
819
819
|
}) : Q);
|
|
820
|
-
}, []), A = t.rects.reference, h = t.rects.popper, k = /* @__PURE__ */ new Map(), j = !0, M = o[0],
|
|
821
|
-
var B = o[
|
|
820
|
+
}, []), A = t.rects.reference, h = t.rects.popper, k = /* @__PURE__ */ new Map(), j = !0, M = o[0], S = 0; S < o.length; S++) {
|
|
821
|
+
var B = o[S], R = ne(B), L = Me(B) === Re, W = [H, K].indexOf(R) >= 0, z = W ? "width" : "height", $ = Xe(t, {
|
|
822
822
|
placement: B,
|
|
823
823
|
boundary: d,
|
|
824
824
|
rootBoundary: x,
|
|
@@ -827,7 +827,7 @@ function Kn(e) {
|
|
|
827
827
|
}), N = W ? L ? G : U : L ? K : H;
|
|
828
828
|
A[z] > h[z] && (N = ct(N));
|
|
829
829
|
var V = ct(N), Z = [];
|
|
830
|
-
if (s && Z.push($[
|
|
830
|
+
if (s && Z.push($[R] <= 0), c && Z.push($[N] <= 0, $[V] <= 0), Z.every(function(ie) {
|
|
831
831
|
return ie;
|
|
832
832
|
})) {
|
|
833
833
|
M = B, j = !1;
|
|
@@ -953,29 +953,29 @@ function io(e) {
|
|
|
953
953
|
altBoundary: d
|
|
954
954
|
}), g = ne(t.placement), E = Me(t.placement), T = !E, o = kt(g), A = oo(o), h = t.modifiersData.popperOffsets, k = t.rects.reference, j = t.rects.popper, M = typeof b == "function" ? b(Object.assign({}, t.rects, {
|
|
955
955
|
placement: t.placement
|
|
956
|
-
})) : b,
|
|
956
|
+
})) : b, S = typeof M == "number" ? {
|
|
957
957
|
mainAxis: M,
|
|
958
958
|
altAxis: M
|
|
959
959
|
} : Object.assign({
|
|
960
960
|
mainAxis: 0,
|
|
961
961
|
altAxis: 0
|
|
962
|
-
}, M), B = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null,
|
|
962
|
+
}, M), B = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, R = {
|
|
963
963
|
x: 0,
|
|
964
964
|
y: 0
|
|
965
965
|
};
|
|
966
966
|
if (h) {
|
|
967
967
|
if (s) {
|
|
968
|
-
var L, W = o === "y" ? H : U, z = o === "y" ? K : G, $ = o === "y" ? "height" : "width", N = h[o], V = N + f[W], Z = N - f[z], ee = y ? -j[$] / 2 : 0, ge = E ===
|
|
968
|
+
var L, W = o === "y" ? H : U, z = o === "y" ? K : G, $ = o === "y" ? "height" : "width", N = h[o], V = N + f[W], Z = N - f[z], ee = y ? -j[$] / 2 : 0, ge = E === Re ? k[$] : j[$], te = E === Re ? -j[$] : -k[$], ye = t.elements.arrow, ie = y && ye ? Dt(ye) : {
|
|
969
969
|
width: 0,
|
|
970
970
|
height: 0
|
|
971
|
-
}, Q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ir(), ae = Q[W], Ae = Q[z], se = Ue(0, k[$], ie[$]), Ce = T ? k[$] / 2 - ee - se - ae -
|
|
972
|
-
h[o] = Ve,
|
|
971
|
+
}, Q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ir(), ae = Q[W], Ae = Q[z], se = Ue(0, k[$], ie[$]), Ce = T ? k[$] / 2 - ee - se - ae - S.mainAxis : ge - se - ae - S.mainAxis, fe = T ? -k[$] / 2 + ee + se + Ae + S.mainAxis : te + se + Ae + S.mainAxis, De = t.elements.arrow && Ke(t.elements.arrow), Ge = De ? o === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, Be = (L = B == null ? void 0 : B[o]) != null ? L : 0, Je = N + Ce - Be - Ge, Qe = N + fe - Be, Ve = Ue(y ? lt(V, Je) : V, N, y ? Ee(Z, Qe) : Z);
|
|
972
|
+
h[o] = Ve, R[o] = Ve - N;
|
|
973
973
|
}
|
|
974
974
|
if (c) {
|
|
975
|
-
var $e, Ze = o === "x" ? H : U, et = o === "x" ? K : G, ue = h[A], de = A === "y" ? "height" : "width", Ne = ue + f[Ze], be = ue - f[et], Fe = [H, U].indexOf(g) !== -1, tt = ($e = B == null ? void 0 : B[A]) != null ? $e : 0, rt = Fe ? Ne : ue - k[de] - j[de] - tt +
|
|
976
|
-
h[A] = ot,
|
|
975
|
+
var $e, Ze = o === "x" ? H : U, et = o === "x" ? K : G, ue = h[A], de = A === "y" ? "height" : "width", Ne = ue + f[Ze], be = ue - f[et], Fe = [H, U].indexOf(g) !== -1, tt = ($e = B == null ? void 0 : B[A]) != null ? $e : 0, rt = Fe ? Ne : ue - k[de] - j[de] - tt + S.altAxis, nt = Fe ? ue + k[de] + j[de] - tt - S.altAxis : be, ot = y && Fe ? _n(rt, ue, nt) : Ue(y ? rt : Ne, ue, y ? nt : be);
|
|
976
|
+
h[A] = ot, R[A] = ot - ue;
|
|
977
977
|
}
|
|
978
|
-
t.modifiersData[n] =
|
|
978
|
+
t.modifiersData[n] = R;
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
const ao = {
|
|
@@ -1008,7 +1008,7 @@ function co(e, t, r) {
|
|
|
1008
1008
|
y: 0
|
|
1009
1009
|
};
|
|
1010
1010
|
return (n || !n && !r) && ((oe(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1011
|
-
|
|
1011
|
+
St(s)) && (c = uo(t)), Y(t) ? (u = Ie(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : s && (u.x = Lt(s))), {
|
|
1012
1012
|
x: p.left + c.scrollLeft - u.x,
|
|
1013
1013
|
y: p.top + c.scrollTop - u.y,
|
|
1014
1014
|
width: p.width,
|
|
@@ -1117,8 +1117,8 @@ function ho(e) {
|
|
|
1117
1117
|
d.rects = {
|
|
1118
1118
|
reference: co(E, Ke(T), d.options.strategy === "fixed"),
|
|
1119
1119
|
popper: Dt(T)
|
|
1120
|
-
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(
|
|
1121
|
-
return d.modifiersData[
|
|
1120
|
+
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(S) {
|
|
1121
|
+
return d.modifiersData[S.name] = Object.assign({}, S.data);
|
|
1122
1122
|
});
|
|
1123
1123
|
for (var o = 0; o < d.orderedModifiers.length; o++) {
|
|
1124
1124
|
if (d.reset === !0) {
|
|
@@ -1190,7 +1190,7 @@ function gt(e, t, r) {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
return e;
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function Rt(e, t) {
|
|
1194
1194
|
var r = {}.toString.call(e);
|
|
1195
1195
|
return r.indexOf("[object") === 0 && r.indexOf(t + "]") > -1;
|
|
1196
1196
|
}
|
|
@@ -1243,14 +1243,14 @@ function ze() {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
function vt(e) {
|
|
1245
1245
|
return ["Element", "Fragment"].some(function(t) {
|
|
1246
|
-
return
|
|
1246
|
+
return Rt(e, t);
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
1249
|
function Ao(e) {
|
|
1250
|
-
return
|
|
1250
|
+
return Rt(e, "NodeList");
|
|
1251
1251
|
}
|
|
1252
1252
|
function Co(e) {
|
|
1253
|
-
return
|
|
1253
|
+
return Rt(e, "MouseEvent");
|
|
1254
1254
|
}
|
|
1255
1255
|
function Do(e) {
|
|
1256
1256
|
return !!(e && e._tippy && e._tippy.reference === e);
|
|
@@ -1300,14 +1300,14 @@ function Yt(e, t) {
|
|
|
1300
1300
|
var re = {
|
|
1301
1301
|
isTouch: !1
|
|
1302
1302
|
}, Kt = 0;
|
|
1303
|
-
function
|
|
1303
|
+
function So() {
|
|
1304
1304
|
re.isTouch || (re.isTouch = !0, window.performance && document.addEventListener("mousemove", mr));
|
|
1305
1305
|
}
|
|
1306
1306
|
function mr() {
|
|
1307
1307
|
var e = performance.now();
|
|
1308
1308
|
e - Kt < 20 && (re.isTouch = !1, document.removeEventListener("mousemove", mr)), Kt = e;
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1310
|
+
function Ro() {
|
|
1311
1311
|
var e = document.activeElement;
|
|
1312
1312
|
if (Do(e)) {
|
|
1313
1313
|
var t = e._tippy;
|
|
@@ -1315,7 +1315,7 @@ function So() {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
function Po() {
|
|
1318
|
-
document.addEventListener("touchstart",
|
|
1318
|
+
document.addEventListener("touchstart", So, me), window.addEventListener("blur", Ro);
|
|
1319
1319
|
}
|
|
1320
1320
|
var Io = typeof window < "u" && typeof document < "u", Mo = Io ? (
|
|
1321
1321
|
// @ts-ignore
|
|
@@ -1517,14 +1517,14 @@ function Uo(e, t) {
|
|
|
1517
1517
|
}), h.addEventListener("mouseleave", function() {
|
|
1518
1518
|
o.props.interactive && o.props.trigger.indexOf("mouseenter") >= 0 && W().addEventListener("mousemove", l);
|
|
1519
1519
|
}), o;
|
|
1520
|
-
function
|
|
1520
|
+
function S() {
|
|
1521
1521
|
var a = o.props.touch;
|
|
1522
1522
|
return Array.isArray(a) ? a : [a, 0];
|
|
1523
1523
|
}
|
|
1524
1524
|
function B() {
|
|
1525
|
-
return
|
|
1525
|
+
return S()[0] === "hold";
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function R() {
|
|
1528
1528
|
var a;
|
|
1529
1529
|
return !!((a = o.props.render) != null && a.$$tippy);
|
|
1530
1530
|
}
|
|
@@ -1707,7 +1707,7 @@ function Uo(e, t) {
|
|
|
1707
1707
|
}
|
|
1708
1708
|
function Ze() {
|
|
1709
1709
|
et();
|
|
1710
|
-
var a = o.props, m = a.popperOptions, w = a.placement, D = a.offset, C = a.getReferenceClientRect, F = a.moveTransition, X =
|
|
1710
|
+
var a = o.props, m = a.popperOptions, w = a.placement, D = a.offset, C = a.getReferenceClientRect, F = a.moveTransition, X = R() ? Tt(h).arrow : null, ke = C ? {
|
|
1711
1711
|
getBoundingClientRect: C,
|
|
1712
1712
|
contextElement: C.contextElement || L()
|
|
1713
1713
|
} : e, Pt = {
|
|
@@ -1717,7 +1717,7 @@ function Uo(e, t) {
|
|
|
1717
1717
|
requires: ["computeStyles"],
|
|
1718
1718
|
fn: function(it) {
|
|
1719
1719
|
var _e = it.state;
|
|
1720
|
-
if (
|
|
1720
|
+
if (R()) {
|
|
1721
1721
|
var Er = z(), ht = Er.box;
|
|
1722
1722
|
["placement", "reference-hidden", "escaped"].forEach(function(at) {
|
|
1723
1723
|
at === "placement" ? ht.setAttribute("data-placement", _e.placement) : _e.attributes.popper["data-popper-" + at] ? ht.setAttribute("data-" + at, "") : ht.removeAttribute("data-" + at);
|
|
@@ -1750,7 +1750,7 @@ function Uo(e, t) {
|
|
|
1750
1750
|
adaptive: !F
|
|
1751
1751
|
}
|
|
1752
1752
|
}, Pt];
|
|
1753
|
-
|
|
1753
|
+
R() && X && we.push({
|
|
1754
1754
|
name: "arrow",
|
|
1755
1755
|
options: {
|
|
1756
1756
|
element: X,
|
|
@@ -1774,7 +1774,7 @@ function Uo(e, t) {
|
|
|
1774
1774
|
}
|
|
1775
1775
|
function Ne(a) {
|
|
1776
1776
|
o.clearDelayTimeouts(), a && V("onTrigger", [o, a]), Q();
|
|
1777
|
-
var m = $(!0), w =
|
|
1777
|
+
var m = $(!0), w = S(), D = w[0], C = w[1];
|
|
1778
1778
|
re.isTouch && D === "hold" && C && (m = C), m ? n = setTimeout(function() {
|
|
1779
1779
|
o.show();
|
|
1780
1780
|
}, m) : o.show();
|
|
@@ -1823,18 +1823,18 @@ function Uo(e, t) {
|
|
|
1823
1823
|
function yr() {
|
|
1824
1824
|
var a = o.state.isVisible, m = o.state.isDestroyed, w = !o.state.isEnabled, D = re.isTouch && !o.props.touch, C = gt(o.props.duration, 0, q.duration);
|
|
1825
1825
|
if (!(a || m || w || D) && !L().hasAttribute("disabled") && (V("onShow", [o], !1), o.props.onShow(o) !== !1)) {
|
|
1826
|
-
if (o.state.isVisible = !0,
|
|
1826
|
+
if (o.state.isVisible = !0, R() && (h.style.visibility = "visible"), N(), Q(), o.state.isMounted || (h.style.transition = "none"), R()) {
|
|
1827
1827
|
var F = z(), X = F.box, ke = F.content;
|
|
1828
1828
|
yt([X, ke], 0);
|
|
1829
1829
|
}
|
|
1830
1830
|
O = function() {
|
|
1831
1831
|
var we;
|
|
1832
1832
|
if (!(!o.state.isVisible || v)) {
|
|
1833
|
-
if (v = !0, h.offsetHeight, h.style.transition = o.props.moveTransition,
|
|
1833
|
+
if (v = !0, h.offsetHeight, h.style.transition = o.props.moveTransition, R() && o.props.animation) {
|
|
1834
1834
|
var mt = z(), it = mt.box, _e = mt.content;
|
|
1835
1835
|
yt([it, _e], C), Xt([it, _e], "visible");
|
|
1836
1836
|
}
|
|
1837
|
-
Z(), ee(), zt(wt, o), (we = o.popperInstance) == null || we.forceUpdate(), V("onMount", [o]), o.props.animation &&
|
|
1837
|
+
Z(), ee(), zt(wt, o), (we = o.popperInstance) == null || we.forceUpdate(), V("onMount", [o]), o.props.animation && R() && se(C, function() {
|
|
1838
1838
|
o.state.isShown = !0, V("onShown", [o]);
|
|
1839
1839
|
});
|
|
1840
1840
|
}
|
|
@@ -1844,11 +1844,11 @@ function Uo(e, t) {
|
|
|
1844
1844
|
function br() {
|
|
1845
1845
|
var a = !o.state.isVisible, m = o.state.isDestroyed, w = !o.state.isEnabled, D = gt(o.props.duration, 1, q.duration);
|
|
1846
1846
|
if (!(a || m || w) && (V("onHide", [o], !1), o.props.onHide(o) !== !1)) {
|
|
1847
|
-
if (o.state.isVisible = !1, o.state.isShown = !1, v = !1, p = !1,
|
|
1847
|
+
if (o.state.isVisible = !1, o.state.isShown = !1, v = !1, p = !1, R() && (h.style.visibility = "hidden"), ge(), ae(), N(!0), R()) {
|
|
1848
1848
|
var C = z(), F = C.box, X = C.content;
|
|
1849
1849
|
o.props.animation && (yt([F, X], D), Xt([F, X], "hidden"));
|
|
1850
1850
|
}
|
|
1851
|
-
Z(), ee(), o.props.animation ?
|
|
1851
|
+
Z(), ee(), o.props.animation ? R() && Ae(D, o.unmount) : o.unmount();
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
1854
|
function wr(a) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _, b as m, d as f, o as h, j as i, f as c, w as u,
|
|
2
|
-
import { m as M } from "./mapFormMixin-
|
|
3
|
-
import { D as w } from "./DocModalBase-
|
|
4
|
-
import { _ as x } from "./DocumentLayout-
|
|
1
|
+
import { _, b as m, d as f, o as h, j as i, f as c, w as u, aK as v } from "./main-BBhJGb7I.js";
|
|
2
|
+
import { m as M } from "./mapFormMixin-CCKubywa.js";
|
|
3
|
+
import { D as w } from "./DocModalBase-BlTZ8CY3.js";
|
|
4
|
+
import { _ as x } from "./DocumentLayout-DHSEYClM.js";
|
|
5
5
|
const C = {
|
|
6
6
|
name: "TermsModal",
|
|
7
7
|
components: {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { k as c, R as u, l as d, p as m } from "./main-BBhJGb7I.js";
|
|
2
|
+
import { g as f, s as v } from "./dom-DOcGU3-g.js";
|
|
3
|
+
import { u as p } from "./index-CPfrJsi9.js";
|
|
4
|
+
const y = Symbol(
|
|
5
|
+
"validateDocument"
|
|
6
|
+
);
|
|
7
|
+
function N() {
|
|
8
|
+
const i = p(), l = c(u, document.body);
|
|
9
|
+
function o() {
|
|
10
|
+
return i.value.$validate();
|
|
11
|
+
}
|
|
12
|
+
function e({
|
|
13
|
+
selector: t = '[data-type="error-callout"]',
|
|
14
|
+
offset: s = 0
|
|
15
|
+
} = {}) {
|
|
16
|
+
try {
|
|
17
|
+
const { el: a } = f(l), r = a.querySelector(t);
|
|
18
|
+
r && v(r, { offset: s, behavior: "smooth" });
|
|
19
|
+
} catch (a) {
|
|
20
|
+
d(a);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
async function n() {
|
|
24
|
+
const t = await o();
|
|
25
|
+
return t || e({ offset: 120 }), t;
|
|
26
|
+
}
|
|
27
|
+
return m(y, {
|
|
28
|
+
isValid: n,
|
|
29
|
+
validate: o,
|
|
30
|
+
scrollToInvalidInput: e
|
|
31
|
+
}), {
|
|
32
|
+
isValid: n,
|
|
33
|
+
validate: o,
|
|
34
|
+
scrollToInvalidInput: e
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
N as u,
|
|
39
|
+
y as v
|
|
40
|
+
};
|