@cling-se/widget 0.19.6 → 0.19.8
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 +15 -1
- package/dist/{AddClientCallout-DtVRTCr_.js → AddClientCallout-sPxYX5tQ.js} +18 -18
- package/dist/{AnswerModal-ClyWtHBj.js → AnswerModal-o8OHHulg.js} +80 -80
- package/dist/{AttachmentItem-COoLlAum.js → AttachmentItem-CzzOlHB-.js} +16 -16
- package/dist/{BaseUpload-DlaYaxxr.js → BaseUpload-oZQfFwOj.js} +256 -256
- package/dist/{BlockMedia-IMu4YO3J.js → BlockMedia-BGPxfM2X.js} +16 -16
- package/dist/{CCallout-C32zwICP.js → CCallout-CrbMGTIj.js} +15 -15
- package/dist/{CCurrencyDropdown-D4ZxTioo.js → CCurrencyDropdown-BnNDP51j.js} +13 -13
- package/dist/{CDropdownItem-BuQONogL.js → CDropdownItem-E-kRDIiy.js} +6 -6
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-KdkAe_wn.js → CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js} +25 -25
- package/dist/{CPhoneFormat-C2K78cmZ.js → CPhoneFormat-CIQAVdsB.js} +1 -1
- package/dist/{CPhoneInput-DolVFzrL.js → CPhoneInput-9AwTJm-0.js} +21 -21
- package/dist/{CPriceInput-SbRlrDnD.js → CPriceInput-agFahtr1.js} +11 -11
- package/dist/CSelect-BpautzPq.js +129 -0
- package/dist/CSkeleton-GIqd-JU4.js +47 -0
- package/dist/{ClientAutocomplete-vgxEGqNU.js → ClientAutocomplete-DOHX9Igy.js} +26 -26
- package/dist/{ClientModal-B8ip7v99.js → ClientModal-DAXKN_b3.js} +35 -35
- package/dist/{ColorPicker-BrfM9S1s.js → ColorPicker-B9F8znY_.js} +82 -82
- package/dist/{CompanyModal-DJZezqM5.js → CompanyModal-BvIMVys6.js} +27 -27
- package/dist/{ContentWrapper-zJ4MCnSC.js → ContentWrapper-DB22RaUr.js} +24 -24
- package/dist/{CoverBlockSettings-Cz0NUYXX.js → CoverBlockSettings--l4fH9mr.js} +32 -32
- package/dist/{DocAnswer-EWarWnbt.js → DocAnswer-Bq-4uVbe.js} +4 -4
- package/dist/{DocDetails-CGHN3tbO.js → DocDetails-yxmchgO5.js} +59 -59
- package/dist/{DocForm-BLTap-Bb.js → DocForm-CzrR8o22.js} +1208 -1180
- package/dist/{DocFormSend-_jCPFI9r.js → DocFormSend-Bjc1QDcK.js} +11 -11
- package/dist/{DocLinks-D9Ok4HvN.js → DocLinks-BXbC-6v3.js} +6 -6
- package/dist/{DocModalBase-fQz5UuCF.js → DocModalBase-axX_Rlp3.js} +1 -1
- package/dist/{DocPrint-Cua_U7zt.js → DocPrint-D0IdWsUM.js} +19 -19
- package/dist/{DocReceipt-Cg2hiSby.js → DocReceipt-4e-RmgeQ.js} +19 -19
- package/dist/{DocSendReminder-Dh7G9kbZ.js → DocSendReminder-L35eZxgk.js} +12 -12
- package/dist/{DocTextEditor-Ds4Cbg-2.js → DocTextEditor-KrfylSV6.js} +4493 -4435
- package/dist/{DocTimeline-DpWUMwJE.js → DocTimeline-Be5CvtcQ.js} +18 -18
- package/dist/{DocumentClient-DUqHQVSe.js → DocumentClient-Bc4kf2q9.js} +10 -10
- package/dist/DocumentLayout-Oe-ZsHML.js +595 -0
- package/dist/{DocumentLogotype-BiekV9-j.js → DocumentLogotype-BFo5UEWS.js} +20 -20
- package/dist/{DocumentVoided-D_YMyeV8.js → DocumentVoided-DlQtlO7G.js} +7 -7
- package/dist/{EmbedInput-Crx-LEGc.js → EmbedInput-B29usQZZ.js} +10 -10
- package/dist/{EmbedSettings-xIGtEN7L.js → EmbedSettings-D-9rcSn0.js} +16 -16
- package/dist/{ErrorCallout-D_fUVD4I.js → ErrorCallout--EnH1Ezu.js} +9 -9
- package/dist/{FilePreviewModal-av2lE91B.js → FilePreviewModal-H5Ilg9xN.js} +9 -9
- package/dist/{Flag-CI52SH_9.js → Flag-DgZVh3Lf.js} +4 -4
- package/dist/{HeaderSettings-Ip634NWe.js → HeaderSettings-HuM_JwJw.js} +27 -27
- package/dist/{ImageSelectModal-DNtR86H7.js → ImageSelectModal-CJ-DstAf.js} +14 -14
- package/dist/{ImageUploadWrapper-Co43CWCP.js → ImageUploadWrapper-TYs37LIQ.js} +76 -76
- package/dist/{Index-C6KPbnAq.js → Index-6N_iRlrQ.js} +10 -10
- package/dist/{Index-bvCcp9l6.js → Index-B-PDcQKh.js} +34 -34
- package/dist/{Index-CTQyX_63.js → Index-B942Auag.js} +2 -2
- package/dist/{Index-4ZURK6a8.js → Index-BLdFyt-s.js} +12 -12
- package/dist/{Index-CZqJYh7u.js → Index-BMpHXgR4.js} +16 -16
- package/dist/{Index-DGwF2cvQ.js → Index-BZ6ZDf9T.js} +11 -11
- package/dist/{Index-Ci_PUYqE.js → Index-BdnFLjgV.js} +11 -11
- package/dist/{Index-BdW5_mV-.js → Index-BeOtRIzZ.js} +21 -21
- package/dist/Index-BsRxY7vc.js +21 -0
- package/dist/{Index-xVX7aGXv.js → Index-CAMAtPVL.js} +6 -6
- package/dist/{Index-uDG1i8F-.js → Index-CC4E2CmH.js} +11 -11
- package/dist/{Index-CJi8Remu.js → Index-CGus-YwW.js} +26 -26
- package/dist/{Index-C-Suk6Qs.js → Index-CLgN5Jzf.js} +3 -3
- package/dist/{Index-C92jPUcy.js → Index-CTlB43yV.js} +7 -7
- package/dist/{Index-CmLvcWe3.js → Index-CY2sRfaY.js} +194 -218
- package/dist/{Index-PzcQhAgF.js → Index-CnrSvy6E.js} +2 -2
- package/dist/{Index-Bgm5PHos.js → Index-CrdSdXWN.js} +18 -18
- package/dist/{Index-Bj81gIof.js → Index-CtJfMiZW.js} +2 -2
- package/dist/Index-D4HNTocO.js +4 -0
- package/dist/{Index-chiZsMLh.js → Index-D5_GLLQH.js} +507 -512
- package/dist/{Index-DOiPKAhk.js → Index-D9sceHk5.js} +17 -17
- package/dist/{Index-CV5RbQn5.js → Index-DJ11Zra_.js} +42 -42
- package/dist/{Index-DQbbxV0m.js → Index-DMIjuWSa.js} +9 -9
- package/dist/{Index-BMwBpYpa.js → Index-DTm59e-A.js} +11 -11
- package/dist/{Index-CxAd29-m.js → Index-DXT_IMjq.js} +8 -8
- package/dist/{Index-BF1bZUso.js → Index-DYUvtCff.js} +8 -8
- package/dist/{Index-DKuTOk0t.js → Index-DYW8T0Hl.js} +18 -18
- package/dist/{Index-DWIpdRX-.js → Index-Dg4dwlh_.js} +59 -58
- package/dist/{Index-DOCeODtL.js → Index-N88Abomf.js} +11 -11
- package/dist/{Index-BY2kaUsM.js → Index-W-Q19E3a.js} +7 -7
- package/dist/{Index-DwIfORsz.js → Index-edWEg_rF.js} +29 -29
- package/dist/{Index-DlGSVN83.js → Index-nRqNPZ3B.js} +18 -18
- package/dist/{Index-CeJRMtmh.js → Index-nTp9wEni.js} +7 -7
- package/dist/{Index-D_X2OZA3.js → Index-yJRtT77X.js} +2 -2
- package/dist/{Index.vue_vue_type_script_lang-WK-YdZ30.js → Index.vue_vue_type_script_lang-PJPQMT2c.js} +2 -2
- package/dist/{InputToggleRow-CWvEi0HF.js → InputToggleRow-DCr_DEm4.js} +9 -9
- package/dist/{ManualPopover-BSX3bOr0.js → ManualPopover-CpVsmQvn.js} +4 -4
- package/dist/{MediaWrapper-D8BXMoDz.js → MediaWrapper-Cj3LBhdR.js} +4 -4
- package/dist/{NotBindingText-V-8_5Pln.js → NotBindingText-1J0p_k4u.js} +5 -5
- package/dist/{PackageGroup-BN5njJA7.js → PackageGroup-CqrWEfCT.js} +17 -17
- package/dist/{PdfTerms-DarzYw1g.js → PdfTerms-DmrPDtae.js} +6 -6
- package/dist/{PdfViewer-DYN758PA.js → PdfViewer-C2EEwUBa.js} +37 -37
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-B3g18l5G.js → PlainHtml.vue_vue_type_script_setup_true_lang-B6pRo08V.js} +2 -2
- package/dist/{PriceHeader-B7QoQ2ZO.js → PriceHeader-BaREzUxI.js} +32 -32
- package/dist/{SearchApi-rcvoh3Av.js → SearchApi-Bf4jeQVr.js} +6 -6
- package/dist/{SendForm-DHRq76pb.js → SendForm-D5qpHxNU.js} +713 -711
- package/dist/{Setup-BWMY9S__.js → Setup-Bw8ViFxw.js} +4 -4
- package/dist/{SmartList-BpNfmUMA.js → SmartList-CzylvV8N.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-B_f6Nh_O.js → Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js} +92 -92
- package/dist/{TermsSettings-BTv1dj63.js → TermsSettings-EoJvsPqK.js} +20 -20
- package/dist/{ThemeColorRow-r1ECSrBU.js → ThemeColorRow-D3blQMiD.js} +12 -12
- package/dist/{ToggleBinding-BBF1duBh.js → ToggleBinding-BteBsRYr.js} +7 -7
- package/dist/{UploadModal-B_l6gvuJ.js → UploadModal-Cr5sF3M-.js} +19 -19
- package/dist/{VideoPlayerInput-8e9ooR1p.js → VideoPlayerInput-BBycKv9w.js} +5 -5
- package/dist/{VideoPlayerSettings-CFOPAFlE.js → VideoPlayerSettings-BXXpTWBf.js} +12 -12
- package/dist/{VideoSelectModal-QWkNrFQC.js → VideoSelectModal-B2VPO6q4.js} +15 -15
- package/dist/{focusDrawerMixin-hy76kTBG.js → focusDrawerMixin-CCAEZjWO.js} +1 -1
- package/dist/{formDrawerState-s4ySD850.js → formDrawerState-CJyP4ce1.js} +1 -1
- package/dist/{helpers-BHIbXt8q.js → helpers-Cf9s0P7o.js} +3 -3
- package/dist/{index-Dbe2ueXc.js → index-C3pnyYI4.js} +90 -90
- package/dist/{index-CGXCI2G7.js → index-CBn1mHmK.js} +36 -36
- package/dist/{index-BTw8ZC8k.js → index-DAJmNac8.js} +6 -6
- package/dist/{index-DpubWmXg.js → index-DYJN9yoF.js} +37 -37
- package/dist/{index-ByEyJueq.js → index-DuXECcGq.js} +31 -31
- package/dist/{index-Cwf2aXw3.js → index-XzoHqJIR.js} +9 -9
- package/dist/{index-DjHfCViH.js → index-_MfZEYgE.js} +28 -27
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +154 -159
- package/dist/{main-WDVYC60Z.js → main-BayUZ9OO.js} +14904 -14950
- package/dist/{mapFormMixin-B8xN9LiX.js → mapFormMixin-Bx5_nE7g.js} +36 -42
- package/dist/omit-BKJdPM2H.js +56 -0
- package/dist/{publicSenderState-CtB0-WJX.js → publicSenderState-CblTasKp.js} +3 -3
- package/dist/{splitpanes-CwgWVXfp.js → splitpanes-DFkgBT3z.js} +6 -6
- package/dist/{template-fVxhQbOu.js → template-CvGgzazD.js} +5 -5
- package/dist/{tippy.esm-Ikv5_i_g.js → tippy.esm-CYKcJaqz.js} +222 -224
- package/dist/{useTermsModal-DxXjznop.js → useTermsModal-DFmdeFRm.js} +5 -5
- package/dist/{utils-fXD4AHot.js → utils-DTwXcY8_.js} +1 -1
- package/dist/{validation-Bf4rZ8pa.js → validation-d_jonAPy.js} +4 -4
- package/dist/widget.css +1 -1
- package/package.json +2 -2
- package/dist/CSelect-BQsWYh8F.js +0 -98
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-aq47QhPF.js +0 -51
- package/dist/DocumentLayout-Bth5tpry.js +0 -1434
- package/dist/Index-CFSuI-QL.js +0 -21
- package/dist/Index-DHzaqQH0.js +0 -4
- package/dist/omit-BhJ-wiH8.js +0 -56
|
@@ -1,1434 +0,0 @@
|
|
|
1
|
-
import { h as Ee, R as re, o as j, b as ie, s as qe, l as we, _ as ke, x as gt, Z as yt, cF as zt, z as et, cG as tt, c as X, w as $, k as Ve, F as $e, f as Fe, L as Ue, ah as Ge, e as ne, p as At, af as bt, U as Qe, H as De, v as F, j as be, Q as jt, r as Ht, ag as Bt, u as Rt, i as se, cH as Wt, bq as Mt, br as Nt, c9 as qt, K as Ce, I as Ft, ab as Vt, d as xe, cI as $t, cJ as Ut, ae as Gt, n as Qt, aL as Kt, cK as Jt, cw as Yt } from "./main-WDVYC60Z.js";
|
|
2
|
-
import "./template-fVxhQbOu.js";
|
|
3
|
-
import { a as Zt, C as Xt } from "./CDropdownItem-BuQONogL.js";
|
|
4
|
-
import "./helpers-BHIbXt8q.js";
|
|
5
|
-
const en = (e, t, r) => {
|
|
6
|
-
const o = e[t];
|
|
7
|
-
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((n, s) => {
|
|
8
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
9
|
-
s.bind(
|
|
10
|
-
null,
|
|
11
|
-
new Error(
|
|
12
|
-
"Unknown variable dynamic import: " + t + (t.split("/").length !== r ? ". Note that variables only represent file names one level deep." : "")
|
|
13
|
-
)
|
|
14
|
-
)
|
|
15
|
-
);
|
|
16
|
-
});
|
|
17
|
-
}, tn = { class: "c-loading" }, nn = /* @__PURE__ */ Ee({
|
|
18
|
-
__name: "LoadingBlock",
|
|
19
|
-
setup(e) {
|
|
20
|
-
const t = re(`${Math.floor(Math.random() * 56 + 25)}%`);
|
|
21
|
-
return (r, o) => (j(), ie("div", tn, [
|
|
22
|
-
qe("div", {
|
|
23
|
-
style: we({ width: t.value }),
|
|
24
|
-
class: "c-loading-title"
|
|
25
|
-
}, null, 4),
|
|
26
|
-
o[0] || (o[0] = qe("div", { class: "c-loading-body" }, null, -1))
|
|
27
|
-
]));
|
|
28
|
-
}
|
|
29
|
-
}), nt = /* @__PURE__ */ ke(nn, [["__scopeId", "data-v-70f204ee"]]), wt = (e) => {
|
|
30
|
-
const t = Symbol(e);
|
|
31
|
-
return [(n) => gt(t, n), (n) => yt(t, n), t];
|
|
32
|
-
}, [rn, on] = wt("DocumentWidth"), [an, Xn] = wt("DocumentHeight");
|
|
33
|
-
function sn(e) {
|
|
34
|
-
const { width: t, height: r } = zt(e);
|
|
35
|
-
return rn(t), an(r), { width: t, height: r };
|
|
36
|
-
}
|
|
37
|
-
function ln() {
|
|
38
|
-
return on(re(window.innerWidth));
|
|
39
|
-
}
|
|
40
|
-
const cn = {
|
|
41
|
-
name: "DynamicChapter",
|
|
42
|
-
components: {
|
|
43
|
-
DynamicChapter: et(() => Promise.resolve().then(() => dn)),
|
|
44
|
-
LoadingBlock: nt
|
|
45
|
-
},
|
|
46
|
-
provide() {
|
|
47
|
-
return this.level !== 0 ? {} : {
|
|
48
|
-
_firstBlock: this._firstBlock,
|
|
49
|
-
_lastBlock: this._lastBlock
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
inject: {
|
|
53
|
-
isPdf: {
|
|
54
|
-
default: !1
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
props: {
|
|
58
|
-
componentProps: {
|
|
59
|
-
type: Object,
|
|
60
|
-
default: () => ({})
|
|
61
|
-
},
|
|
62
|
-
componentName: {
|
|
63
|
-
type: String,
|
|
64
|
-
required: !0
|
|
65
|
-
},
|
|
66
|
-
level: {
|
|
67
|
-
type: Number,
|
|
68
|
-
default: 0
|
|
69
|
-
},
|
|
70
|
-
isVisible: {
|
|
71
|
-
type: [Boolean, Object],
|
|
72
|
-
default: !0
|
|
73
|
-
},
|
|
74
|
-
_firstBlock: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: !1
|
|
77
|
-
},
|
|
78
|
-
_lastBlock: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: !1
|
|
81
|
-
},
|
|
82
|
-
children: {
|
|
83
|
-
type: Array,
|
|
84
|
-
default: () => []
|
|
85
|
-
},
|
|
86
|
-
onInput: {
|
|
87
|
-
type: Function,
|
|
88
|
-
default: () => {
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
onRemove: {
|
|
92
|
-
type: Function,
|
|
93
|
-
default: () => {
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
onMount: {
|
|
97
|
-
type: Function,
|
|
98
|
-
default: () => {
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
setup() {
|
|
103
|
-
return { docWidth: ln() };
|
|
104
|
-
},
|
|
105
|
-
data() {
|
|
106
|
-
return {
|
|
107
|
-
component: tt(nt)
|
|
108
|
-
};
|
|
109
|
-
},
|
|
110
|
-
computed: {
|
|
111
|
-
loader() {
|
|
112
|
-
return () => en(/* @__PURE__ */ Object.assign({ "../blocks/answer/Index.vue": () => import("./Index-DwIfORsz.js"), "../blocks/attachments/Index.vue": () => import("./Index-Bgm5PHos.js"), "../blocks/coverBlock/Index.vue": () => import("./Index-CJi8Remu.js"), "../blocks/custom/Index.vue": () => import("./Index-CmLvcWe3.js"), "../blocks/docChapter/Index.vue": () => import("./Index-DOiPKAhk.js"), "../blocks/docChapterSub/Index.vue": () => import("./Index-CZqJYh7u.js"), "../blocks/docParties/Index.vue": () => import("./Index-CV5RbQn5.js"), "../blocks/embed/Index.vue": () => import("./Index-C6KPbnAq.js"), "../blocks/estimatedTimeToCompleteText/Index.vue": () => import("./Index-BF1bZUso.js"), "../blocks/estimatedWorkStartAndEndAtText/Index.vue": () => import("./Index-C92jPUcy.js"), "../blocks/extraWorkConstructionPricingList/Index.vue": () => import("./Index-BY2kaUsM.js"), "../blocks/extraWorkTimeImpactText/Index.vue": () => import("./Index-DQbbxV0m.js"), "../blocks/header/Index.vue": () => import("./Index-DWIpdRX-.js"), "../blocks/multiGroupPricing/Index.vue": () => import("./Index-DOCeODtL.js"), "../blocks/notBinding/Index.vue": () => import("./Index-CeJRMtmh.js"), "../blocks/packageGroup/Index.vue": () => import("./Index-CxAd29-m.js"), "../blocks/pdf/Index.vue": () => import("./Index-bvCcp9l6.js"), "../blocks/presentation/Index.vue": () => import("./Index-DKuTOk0t.js"), "../blocks/terms/Index.vue": () => import("./Index-uDG1i8F-.js"), "../blocks/textContent/Index.vue": () => import("./Index-4ZURK6a8.js"), "../blocks/videoPlayer/Index.vue": () => import("./Index-BdW5_mV-.js"), "../blocks/workAddressText/Index.vue": () => import("./Index-CFSuI-QL.js") }), `../blocks/${this.componentName}/Index.vue`, 4);
|
|
113
|
-
},
|
|
114
|
-
isPdfPrintAndPdfBlock() {
|
|
115
|
-
var e, t;
|
|
116
|
-
return !!(this.isPdf && ((t = (e = this.children) == null ? void 0 : e[0]) == null ? void 0 : t.componentName) === "pdf");
|
|
117
|
-
},
|
|
118
|
-
isPdfBlock() {
|
|
119
|
-
var e, t;
|
|
120
|
-
return ((t = (e = this.children) == null ? void 0 : e[0]) == null ? void 0 : t.componentName) === "pdf";
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
mounted() {
|
|
124
|
-
this.loader().then(() => {
|
|
125
|
-
this.component = tt(et(() => this.loader()));
|
|
126
|
-
}).catch((e) => {
|
|
127
|
-
console.log(e);
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
function un(e, t, r, o, n, s) {
|
|
132
|
-
const a = ne("DynamicChapter", !0);
|
|
133
|
-
return n.component ? (j(), X(Ge(n.component), Ue({ key: 0 }, r.componentProps, {
|
|
134
|
-
class: r.level === 0 && [
|
|
135
|
-
{
|
|
136
|
-
"is-mobile": o.docWidth <= 640,
|
|
137
|
-
"is-tablet": o.docWidth > 640 && o.docWidth <= 1024,
|
|
138
|
-
"is-desktop": o.docWidth > 1024
|
|
139
|
-
},
|
|
140
|
-
r.componentProps && r.componentProps.classList ? r.componentProps.classList : ""
|
|
141
|
-
],
|
|
142
|
-
"enable-spacing-x": !s.isPdfPrintAndPdfBlock,
|
|
143
|
-
"pdf-spacing-x": s.isPdfBlock,
|
|
144
|
-
"enable-spacing-y": !!(!s.isPdfPrintAndPdfBlock && r.isVisible),
|
|
145
|
-
onInput: r.onInput,
|
|
146
|
-
onRemove: r.onRemove,
|
|
147
|
-
onVnodeMounted: t[0] || (t[0] = (u) => r.onMount(e.$el))
|
|
148
|
-
}), {
|
|
149
|
-
default: $(() => [
|
|
150
|
-
r.children.length ? (j(!0), ie($e, { key: 0 }, Ve(r.children, (u, d) => (j(), X(a, {
|
|
151
|
-
key: u.itemId + `${d}`,
|
|
152
|
-
"component-name": u.componentName,
|
|
153
|
-
"component-props": {
|
|
154
|
-
...u.props,
|
|
155
|
-
_document: r.componentProps._document,
|
|
156
|
-
_value: u._value,
|
|
157
|
-
_nodeId: u.nodeId
|
|
158
|
-
},
|
|
159
|
-
children: u.children,
|
|
160
|
-
level: r.level + 1,
|
|
161
|
-
"on-input": r.onInput,
|
|
162
|
-
"on-remove": r.onRemove,
|
|
163
|
-
"on-mount": r.onMount
|
|
164
|
-
}, null, 8, ["component-name", "component-props", "children", "level", "on-input", "on-remove", "on-mount"]))), 128)) : Fe("", !0)
|
|
165
|
-
]),
|
|
166
|
-
_: 1
|
|
167
|
-
}, 16, ["class", "enable-spacing-x", "pdf-spacing-x", "enable-spacing-y", "onInput", "onRemove"])) : Fe("", !0);
|
|
168
|
-
}
|
|
169
|
-
const xt = /* @__PURE__ */ ke(cn, [["render", un]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
170
|
-
__proto__: null,
|
|
171
|
-
default: xt
|
|
172
|
-
}, Symbol.toStringTag, { value: "Module" })), kt = "data-is-preview", fn = At.google.fontsKey, hn = "https://www.googleapis.com/webfonts/v1/webfonts", pn = "https://fonts.googleapis.com/css", rt = {
|
|
173
|
-
100: { label: "Thin", value: "100" },
|
|
174
|
-
200: { label: "Extra Light", value: "200" },
|
|
175
|
-
300: { label: "Light", value: "300" },
|
|
176
|
-
regular: { label: "Normal", value: "400" },
|
|
177
|
-
500: { label: "Medium", value: "500" },
|
|
178
|
-
600: { label: "Semi Bold", value: "600" },
|
|
179
|
-
700: { label: "Bold", value: "700" },
|
|
180
|
-
800: { label: "Extra Bold", value: "800" },
|
|
181
|
-
900: { label: "Black", value: "900" }
|
|
182
|
-
}, St = (e) => `font-${e.replace(/\s+/g, "-").toLowerCase()}`, vn = (e, t = !1) => {
|
|
183
|
-
const r = document.getElementById(St(e));
|
|
184
|
-
return r !== null && r.getAttribute(kt) === t.toString();
|
|
185
|
-
}, mn = (e, t = !1) => {
|
|
186
|
-
const r = document.head || document.getElementsByTagName("head")[0], o = document.createElement("link");
|
|
187
|
-
o.id = St(e), o.setAttribute("rel", "stylesheet"), o.setAttribute(kt, t.toString());
|
|
188
|
-
let n = `${pn}?family=${e.replace(/\s/gi, "+")}`;
|
|
189
|
-
return t ? n += `&text=${e}` : n += ":100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic", n += "&display=swap", o.setAttribute("href", n), r.appendChild(o), o;
|
|
190
|
-
}, _t = (e, t = !1) => {
|
|
191
|
-
e && !vn(e, t) && mn(e, t);
|
|
192
|
-
}, Et = (e = {}) => {
|
|
193
|
-
if (!(typeof e != "object" || !e))
|
|
194
|
-
for (const t in e)
|
|
195
|
-
t === "fontFamily" ? _t(e[t]) : typeof e[t] == "object" && Et(e[t]);
|
|
196
|
-
}, Dt = /* @__PURE__ */ Ee({
|
|
197
|
-
__name: "FontDropdownItem",
|
|
198
|
-
props: {
|
|
199
|
-
source: {}
|
|
200
|
-
},
|
|
201
|
-
setup(e) {
|
|
202
|
-
const t = e, r = re(null), o = (a, u) => {
|
|
203
|
-
let d = a, l = d.$options.name;
|
|
204
|
-
for (; d && (!l || l !== u); )
|
|
205
|
-
d = d.$parent, d && ({ name: l } = d.$options);
|
|
206
|
-
return d || null;
|
|
207
|
-
}, n = re({
|
|
208
|
-
paddingRight: "calc(0.5 * var(--rem))",
|
|
209
|
-
fontFamily: `'${t.source.family}'`
|
|
210
|
-
}), s = jt();
|
|
211
|
-
return s && (r.value = o(s.proxy, "CDropdown")), bt(() => {
|
|
212
|
-
_t(t.source.family, !0);
|
|
213
|
-
}), Qe(
|
|
214
|
-
() => t.source,
|
|
215
|
-
(a) => {
|
|
216
|
-
n.value.fontFamily = `'${a.family}'`;
|
|
217
|
-
}
|
|
218
|
-
), (a, u) => (j(), X(be(Zt), {
|
|
219
|
-
value: a.source,
|
|
220
|
-
"custom-parent": r.value,
|
|
221
|
-
class: "!truncate",
|
|
222
|
-
style: we(n.value)
|
|
223
|
-
}, {
|
|
224
|
-
default: $(() => [
|
|
225
|
-
De(F(a.source.family), 1)
|
|
226
|
-
]),
|
|
227
|
-
_: 1
|
|
228
|
-
}, 8, ["value", "custom-parent", "style"]));
|
|
229
|
-
}
|
|
230
|
-
}), gn = 1e3 * 60 * 60 * 24 * 14, R = Ht({
|
|
231
|
-
list: [],
|
|
232
|
-
fetchedAt: null,
|
|
233
|
-
error: "",
|
|
234
|
-
loading: !1
|
|
235
|
-
}), yn = async (e = "popularity") => {
|
|
236
|
-
let t = [];
|
|
237
|
-
try {
|
|
238
|
-
const { data: r } = await Bt.get(hn, {
|
|
239
|
-
params: {
|
|
240
|
-
sort: e,
|
|
241
|
-
key: fn
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
t = r.items || [];
|
|
245
|
-
} catch (r) {
|
|
246
|
-
R.error = r;
|
|
247
|
-
}
|
|
248
|
-
return t;
|
|
249
|
-
};
|
|
250
|
-
R.load = async () => {
|
|
251
|
-
if (R.loading) {
|
|
252
|
-
await R.loading;
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
(!R.fetchedAt || R.fetchedAt < Date.now() - gn) && (R.loading = new Promise(async (e) => {
|
|
256
|
-
R.list = await yn(), R.fetchedAt = Date.now(), e(!1);
|
|
257
|
-
}), await R.loading);
|
|
258
|
-
};
|
|
259
|
-
const Ct = (e = []) => (e || []).filter((t) => !!rt[t]).map((t) => rt[t]), er = async (e) => {
|
|
260
|
-
if (!e || typeof e != "string") return {};
|
|
261
|
-
!R.list.length && !R.error && await R.load();
|
|
262
|
-
const { variants: t } = R.list.find((r) => r.family === e) || {};
|
|
263
|
-
return Ct(t || []);
|
|
264
|
-
}, bn = /* @__PURE__ */ Ee({
|
|
265
|
-
__name: "VirtualFontsList",
|
|
266
|
-
props: {
|
|
267
|
-
items: {}
|
|
268
|
-
},
|
|
269
|
-
setup(e) {
|
|
270
|
-
const t = e, r = re([...t.items]);
|
|
271
|
-
Qe(
|
|
272
|
-
() => t.items,
|
|
273
|
-
(l) => {
|
|
274
|
-
r.value = [...l];
|
|
275
|
-
}
|
|
276
|
-
);
|
|
277
|
-
const o = Rt(), n = se(() => o.style), s = se(() => ({
|
|
278
|
-
"overflow-y": "auto",
|
|
279
|
-
height: "250px",
|
|
280
|
-
width: "240px",
|
|
281
|
-
...n
|
|
282
|
-
})), { list: a, containerProps: u, wrapperProps: d } = Wt(r, {
|
|
283
|
-
itemHeight: 35
|
|
284
|
-
});
|
|
285
|
-
return (l, f) => (j(), ie("div", Ue(be(u), { style: s.value }), [
|
|
286
|
-
qe("div", Mt(Nt(be(d))), [
|
|
287
|
-
(j(!0), ie($e, null, Ve(be(a), (v) => (j(), X(Dt, {
|
|
288
|
-
key: v.index,
|
|
289
|
-
source: v.data
|
|
290
|
-
}, qt({ _: 2 }, [
|
|
291
|
-
l.$slots.footer ? {
|
|
292
|
-
name: "footer",
|
|
293
|
-
fn: $(() => [
|
|
294
|
-
Ce(l.$slots, "footer")
|
|
295
|
-
]),
|
|
296
|
-
key: "0"
|
|
297
|
-
} : void 0
|
|
298
|
-
]), 1032, ["source"]))), 128))
|
|
299
|
-
], 16)
|
|
300
|
-
], 16));
|
|
301
|
-
}
|
|
302
|
-
}), wn = {
|
|
303
|
-
name: "FontPickerDropdown",
|
|
304
|
-
components: {
|
|
305
|
-
CInput: Ft,
|
|
306
|
-
CDropdown: Xt,
|
|
307
|
-
VirtualFontsList: bn
|
|
308
|
-
},
|
|
309
|
-
props: {
|
|
310
|
-
modelValue: {
|
|
311
|
-
type: Object,
|
|
312
|
-
default: null
|
|
313
|
-
},
|
|
314
|
-
height: {
|
|
315
|
-
type: String,
|
|
316
|
-
default: "250px"
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
emits: ["update:modelValue"],
|
|
320
|
-
data() {
|
|
321
|
-
return {
|
|
322
|
-
FontDropdownItem: Dt,
|
|
323
|
-
visualQuery: "",
|
|
324
|
-
// string visual to user
|
|
325
|
-
activeQuery: ""
|
|
326
|
-
// query used for filtering results, hidden behind debounce
|
|
327
|
-
};
|
|
328
|
-
},
|
|
329
|
-
computed: {
|
|
330
|
-
selectedValue: {
|
|
331
|
-
get() {
|
|
332
|
-
return {
|
|
333
|
-
family: "Inter",
|
|
334
|
-
weight: "400",
|
|
335
|
-
...this.modelValue
|
|
336
|
-
};
|
|
337
|
-
},
|
|
338
|
-
set(e) {
|
|
339
|
-
const { family: t, variants: r = [] } = e || {};
|
|
340
|
-
let { weight: o = "400" } = this.modelValue || {};
|
|
341
|
-
const n = Ct(r), s = n.map((a) => a.value);
|
|
342
|
-
s.length && !s.includes(`${o}`) && (o = s.reduce(
|
|
343
|
-
(a, u) => Math.abs(u - o) < Math.abs(a - o) ? u : a
|
|
344
|
-
)), this.$emit("update:modelValue", {
|
|
345
|
-
family: t,
|
|
346
|
-
weight: o,
|
|
347
|
-
options: n
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
fontsList() {
|
|
352
|
-
const e = R.list || [];
|
|
353
|
-
if (this.activeQuery) {
|
|
354
|
-
const t = new RegExp(this.activeQuery, "i");
|
|
355
|
-
return e.filter((r) => t.test(r.family));
|
|
356
|
-
}
|
|
357
|
-
return e;
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
watch: {
|
|
361
|
-
visualQuery: Vt(function(t) {
|
|
362
|
-
this.activeQuery = t;
|
|
363
|
-
}, 300)
|
|
364
|
-
},
|
|
365
|
-
created() {
|
|
366
|
-
R.load();
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
|
-
function xn(e, t, r, o, n, s) {
|
|
370
|
-
const a = ne("CButton"), u = ne("CInput"), d = ne("VirtualFontsList"), l = ne("CDropdown");
|
|
371
|
-
return j(), X(l, Ue({
|
|
372
|
-
position: "is-bottom-left",
|
|
373
|
-
...e.$attrs,
|
|
374
|
-
...e.$props
|
|
375
|
-
}, {
|
|
376
|
-
ref: "dropdown",
|
|
377
|
-
modelValue: s.selectedValue,
|
|
378
|
-
"onUpdate:modelValue": t[1] || (t[1] = (f) => s.selectedValue = f),
|
|
379
|
-
size: e.$attrs.size,
|
|
380
|
-
disabled: e.$attrs.disabled,
|
|
381
|
-
"menu-styling": {
|
|
382
|
-
minWidth: "250px",
|
|
383
|
-
maxWidth: "300px"
|
|
384
|
-
},
|
|
385
|
-
"max-height": r.height,
|
|
386
|
-
scrollable: !0,
|
|
387
|
-
class: "control"
|
|
388
|
-
}), {
|
|
389
|
-
trigger: $(() => [
|
|
390
|
-
Ce(e.$slots, "default", {
|
|
391
|
-
selectedFamily: s.selectedValue.family
|
|
392
|
-
}, () => [
|
|
393
|
-
xe(a, {
|
|
394
|
-
style: we([{ fontFamily: s.selectedValue.family }, { width: "100%", "text-align": "left", "min-width": "7em" }]),
|
|
395
|
-
class: "is-left"
|
|
396
|
-
}, {
|
|
397
|
-
default: $(() => [
|
|
398
|
-
De(F(s.selectedValue.family), 1)
|
|
399
|
-
]),
|
|
400
|
-
_: 1
|
|
401
|
-
}, 8, ["style"])
|
|
402
|
-
])
|
|
403
|
-
]),
|
|
404
|
-
header: $(() => [
|
|
405
|
-
xe(u, {
|
|
406
|
-
modelValue: n.visualQuery,
|
|
407
|
-
"onUpdate:modelValue": t[0] || (t[0] = (f) => n.visualQuery = f),
|
|
408
|
-
placeholder: e.$t("_common:search"),
|
|
409
|
-
filled: "",
|
|
410
|
-
style: { "margin-bottom": "0.25em" }
|
|
411
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
412
|
-
]),
|
|
413
|
-
default: $(() => [
|
|
414
|
-
s.fontsList.length ? (j(), X(d, {
|
|
415
|
-
key: 0,
|
|
416
|
-
items: s.fontsList
|
|
417
|
-
}, null, 8, ["items"])) : (j(), ie("div", {
|
|
418
|
-
key: 1,
|
|
419
|
-
style: we([{ height: "250px", width: "240px", display: "flex", "justify-content": "center", "align-items": "center" }, { height: r.height }])
|
|
420
|
-
}, F(e.$t("_common:noResults")), 5))
|
|
421
|
-
]),
|
|
422
|
-
_: 3
|
|
423
|
-
}, 16, ["modelValue", "size", "disabled", "max-height"]);
|
|
424
|
-
}
|
|
425
|
-
const tr = /* @__PURE__ */ ke(wn, [["render", xn]]), Ke = $t(Ut), nr = Ke.smallerOrEqual("sm"), kn = Ke.between("md", "lg"), Sn = Ke.greaterOrEqual("lg");
|
|
426
|
-
se(
|
|
427
|
-
() => kn.value || Sn.value
|
|
428
|
-
);
|
|
429
|
-
function _n({
|
|
430
|
-
minWidthPx: e,
|
|
431
|
-
maxWidthPx: t,
|
|
432
|
-
minFontSize: r,
|
|
433
|
-
maxFontSize: o
|
|
434
|
-
}) {
|
|
435
|
-
const n = e, s = t, a = (o - r) / (s - n), u = -n * a + r, d = (l) => Math.round(l * 1e3) / 1e3;
|
|
436
|
-
return `clamp(${d(r)}px, ${d(
|
|
437
|
-
u
|
|
438
|
-
)}px + calc(${d(a) * 100} * var(--vw, 1vw)), ${d(
|
|
439
|
-
o
|
|
440
|
-
)}px)`;
|
|
441
|
-
}
|
|
442
|
-
function En({ size: e }) {
|
|
443
|
-
let t = e * 0.9;
|
|
444
|
-
return e > 30 && (t = e * 0.8), e > 40 && (t = e * 0.725), e > 50 && (t = e * 0.675), _n({
|
|
445
|
-
minWidthPx: 375,
|
|
446
|
-
maxWidthPx: 1200,
|
|
447
|
-
minFontSize: t,
|
|
448
|
-
maxFontSize: e
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
const Dn = ({ json: e, prefix: t = "" } = {}) => Object.keys(e || {}).map((r) => {
|
|
452
|
-
const o = e[r], s = Object.keys(o).map((a) => {
|
|
453
|
-
const u = a.startsWith("--") ? a : a.split(/(?=[A-Z])/).join("-").toLowerCase(), d = o[a];
|
|
454
|
-
let l = `${u}:${d}`;
|
|
455
|
-
return u === "font-size" && (l += `; font-size: ${En({
|
|
456
|
-
size: parseInt(d, 10)
|
|
457
|
-
})}`), l;
|
|
458
|
-
}).join(";");
|
|
459
|
-
return `${t}${r}{${s}}`;
|
|
460
|
-
}).join(`
|
|
461
|
-
`), Cn = {
|
|
462
|
-
name: "DynamicStyle",
|
|
463
|
-
props: {
|
|
464
|
-
json: {
|
|
465
|
-
type: Object,
|
|
466
|
-
default: null
|
|
467
|
-
},
|
|
468
|
-
prefix: {
|
|
469
|
-
type: String,
|
|
470
|
-
default: ""
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
created() {
|
|
474
|
-
Et(this.json);
|
|
475
|
-
},
|
|
476
|
-
methods: {
|
|
477
|
-
jsonToCss: Dn
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
|
-
function In(e, t, r, o, n, s) {
|
|
481
|
-
return r.json ? (j(), X(Ge("style"), { key: 0 }, {
|
|
482
|
-
default: $(() => [
|
|
483
|
-
De(F(s.jsonToCss({ json: r.json, prefix: r.prefix })), 1)
|
|
484
|
-
]),
|
|
485
|
-
_: 1
|
|
486
|
-
})) : Fe("", !0);
|
|
487
|
-
}
|
|
488
|
-
const Ln = /* @__PURE__ */ ke(Cn, [["render", In]]), Pn = /* @__PURE__ */ Ee({
|
|
489
|
-
__name: "DocumentStyleContainer",
|
|
490
|
-
props: {
|
|
491
|
-
inputStyle: {}
|
|
492
|
-
},
|
|
493
|
-
setup(e) {
|
|
494
|
-
const t = e, { canEdit: r, isForm: o } = yt("viewSettings", {
|
|
495
|
-
canEdit: !1,
|
|
496
|
-
isForm: !1
|
|
497
|
-
}), n = Gt("container"), { width: s, height: a } = sn(n), u = se(() => ({
|
|
498
|
-
"--vw": `${s.value / 100}px`,
|
|
499
|
-
"--vh": `clamp(7.5px, ${a.value / 100}px, ${r ? 7.5 : 9}px)`
|
|
500
|
-
})), d = se(
|
|
501
|
-
() => `document-base-style-${Math.random().toString(36).substr(2, 9)}`
|
|
502
|
-
), l = {
|
|
503
|
-
'[data-typography="title"]': "title",
|
|
504
|
-
h1: "h1",
|
|
505
|
-
h2: "h2",
|
|
506
|
-
h3: "h3",
|
|
507
|
-
p: "p",
|
|
508
|
-
blockquote: "blockquote",
|
|
509
|
-
".chapter": "section"
|
|
510
|
-
}, f = se(() => Object.keys(l).filter((g) => !(t.inputStyle || {})[g]).map((g) => `document-legacy-style-${l[g]}`)), v = se(
|
|
511
|
-
() => {
|
|
512
|
-
var g, H;
|
|
513
|
-
return (H = (g = t.inputStyle) == null ? void 0 : g[".chapter"]) == null ? void 0 : H["--accentColor"];
|
|
514
|
-
}
|
|
515
|
-
);
|
|
516
|
-
return (g, H) => (j(), ie("div", {
|
|
517
|
-
ref_key: "container",
|
|
518
|
-
ref: n,
|
|
519
|
-
class: Qt([...f.value, d.value]),
|
|
520
|
-
style: we(be(o) && u.value)
|
|
521
|
-
}, [
|
|
522
|
-
(j(), X(Ge("style"), null, {
|
|
523
|
-
default: $(() => [
|
|
524
|
-
De(" .primary-text-color { color: " + F(v.value) + " !important } .primary-background-color, quill-format ul li::before { background-color: " + F(v.value) + " !important } .primary-box-shadow-left-color { box-shadow: inset 4px 0 " + F(v.value) + " !important } .primary-border-left-color { border-left-color: " + F(v.value) + " !important } .primary-pseudo-background::after { background-color: " + F(v.value) + " !important } .primary-svg-fill { fill: " + F(v.value) + " !important } .primary-light-background { background-color: hsla(0, 0%, 0%, 0.05) !important} .primary-light-box-shadow-left-color { box-shadow: inset 4px 0 " + F(v.value ? v.value.replace(/[^,]+(?=\))/, "0.08") : "") + " !important} .quill-format ul li::before { background-color: " + F(v.value) + " !important } ", 1)
|
|
525
|
-
]),
|
|
526
|
-
_: 1
|
|
527
|
-
})),
|
|
528
|
-
xe(Ln, {
|
|
529
|
-
json: g.inputStyle,
|
|
530
|
-
prefix: `.${d.value}.${d.value}.${d.value} `
|
|
531
|
-
}, null, 8, ["json", "prefix"]),
|
|
532
|
-
Ce(g.$slots, "default")
|
|
533
|
-
], 6));
|
|
534
|
-
}
|
|
535
|
-
});
|
|
536
|
-
var Le = { exports: {} }, it;
|
|
537
|
-
function It() {
|
|
538
|
-
if (it) return Le.exports;
|
|
539
|
-
it = 1;
|
|
540
|
-
var e = Le.exports = {};
|
|
541
|
-
return e.forEach = function(t, r) {
|
|
542
|
-
for (var o = 0; o < t.length; o++) {
|
|
543
|
-
var n = r(t[o]);
|
|
544
|
-
if (n)
|
|
545
|
-
return n;
|
|
546
|
-
}
|
|
547
|
-
}, Le.exports;
|
|
548
|
-
}
|
|
549
|
-
var Pe, ot;
|
|
550
|
-
function Tn() {
|
|
551
|
-
return ot || (ot = 1, Pe = function(e) {
|
|
552
|
-
var t = e.stateHandler.getState;
|
|
553
|
-
function r(a) {
|
|
554
|
-
var u = t(a);
|
|
555
|
-
return u && !!u.isDetectable;
|
|
556
|
-
}
|
|
557
|
-
function o(a) {
|
|
558
|
-
t(a).isDetectable = !0;
|
|
559
|
-
}
|
|
560
|
-
function n(a) {
|
|
561
|
-
return !!t(a).busy;
|
|
562
|
-
}
|
|
563
|
-
function s(a, u) {
|
|
564
|
-
t(a).busy = !!u;
|
|
565
|
-
}
|
|
566
|
-
return {
|
|
567
|
-
isDetectable: r,
|
|
568
|
-
markAsDetectable: o,
|
|
569
|
-
isBusy: n,
|
|
570
|
-
markBusy: s
|
|
571
|
-
};
|
|
572
|
-
}), Pe;
|
|
573
|
-
}
|
|
574
|
-
var Te, at;
|
|
575
|
-
function On() {
|
|
576
|
-
return at || (at = 1, Te = function(e) {
|
|
577
|
-
var t = {};
|
|
578
|
-
function r(a) {
|
|
579
|
-
var u = e.get(a);
|
|
580
|
-
return u === void 0 ? [] : t[u] || [];
|
|
581
|
-
}
|
|
582
|
-
function o(a, u) {
|
|
583
|
-
var d = e.get(a);
|
|
584
|
-
t[d] || (t[d] = []), t[d].push(u);
|
|
585
|
-
}
|
|
586
|
-
function n(a, u) {
|
|
587
|
-
for (var d = r(a), l = 0, f = d.length; l < f; ++l)
|
|
588
|
-
if (d[l] === u) {
|
|
589
|
-
d.splice(l, 1);
|
|
590
|
-
break;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
function s(a) {
|
|
594
|
-
var u = r(a);
|
|
595
|
-
u && (u.length = 0);
|
|
596
|
-
}
|
|
597
|
-
return {
|
|
598
|
-
get: r,
|
|
599
|
-
add: o,
|
|
600
|
-
removeListener: n,
|
|
601
|
-
removeAllListeners: s
|
|
602
|
-
};
|
|
603
|
-
}), Te;
|
|
604
|
-
}
|
|
605
|
-
var Oe, st;
|
|
606
|
-
function zn() {
|
|
607
|
-
return st || (st = 1, Oe = function() {
|
|
608
|
-
var e = 1;
|
|
609
|
-
function t() {
|
|
610
|
-
return e++;
|
|
611
|
-
}
|
|
612
|
-
return {
|
|
613
|
-
generate: t
|
|
614
|
-
};
|
|
615
|
-
}), Oe;
|
|
616
|
-
}
|
|
617
|
-
var ze, lt;
|
|
618
|
-
function An() {
|
|
619
|
-
return lt || (lt = 1, ze = function(e) {
|
|
620
|
-
var t = e.idGenerator, r = e.stateHandler.getState;
|
|
621
|
-
function o(s) {
|
|
622
|
-
var a = r(s);
|
|
623
|
-
return a && a.id !== void 0 ? a.id : null;
|
|
624
|
-
}
|
|
625
|
-
function n(s) {
|
|
626
|
-
var a = r(s);
|
|
627
|
-
if (!a)
|
|
628
|
-
throw new Error("setId required the element to have a resize detection state.");
|
|
629
|
-
var u = t.generate();
|
|
630
|
-
return a.id = u, u;
|
|
631
|
-
}
|
|
632
|
-
return {
|
|
633
|
-
get: o,
|
|
634
|
-
set: n
|
|
635
|
-
};
|
|
636
|
-
}), ze;
|
|
637
|
-
}
|
|
638
|
-
var Ae, ct;
|
|
639
|
-
function jn() {
|
|
640
|
-
return ct || (ct = 1, Ae = function(e) {
|
|
641
|
-
function t() {
|
|
642
|
-
}
|
|
643
|
-
var r = {
|
|
644
|
-
log: t,
|
|
645
|
-
warn: t,
|
|
646
|
-
error: t
|
|
647
|
-
};
|
|
648
|
-
if (!e && window.console) {
|
|
649
|
-
var o = function(n, s) {
|
|
650
|
-
n[s] = function() {
|
|
651
|
-
var u = console[s];
|
|
652
|
-
if (u.apply)
|
|
653
|
-
u.apply(console, arguments);
|
|
654
|
-
else
|
|
655
|
-
for (var d = 0; d < arguments.length; d++)
|
|
656
|
-
u(arguments[d]);
|
|
657
|
-
};
|
|
658
|
-
};
|
|
659
|
-
o(r, "log"), o(r, "warn"), o(r, "error");
|
|
660
|
-
}
|
|
661
|
-
return r;
|
|
662
|
-
}), Ae;
|
|
663
|
-
}
|
|
664
|
-
var je = { exports: {} }, ut;
|
|
665
|
-
function Lt() {
|
|
666
|
-
if (ut) return je.exports;
|
|
667
|
-
ut = 1;
|
|
668
|
-
var e = je.exports = {};
|
|
669
|
-
return e.isIE = function(t) {
|
|
670
|
-
function r() {
|
|
671
|
-
var n = navigator.userAgent.toLowerCase();
|
|
672
|
-
return n.indexOf("msie") !== -1 || n.indexOf("trident") !== -1 || n.indexOf(" edge/") !== -1;
|
|
673
|
-
}
|
|
674
|
-
if (!r())
|
|
675
|
-
return !1;
|
|
676
|
-
if (!t)
|
|
677
|
-
return !0;
|
|
678
|
-
var o = function() {
|
|
679
|
-
var n, s = 3, a = document.createElement("div"), u = a.getElementsByTagName("i");
|
|
680
|
-
do
|
|
681
|
-
a.innerHTML = "<!--[if gt IE " + ++s + "]><i></i><![endif]-->";
|
|
682
|
-
while (u[0]);
|
|
683
|
-
return s > 4 ? s : n;
|
|
684
|
-
}();
|
|
685
|
-
return t === o;
|
|
686
|
-
}, e.isLegacyOpera = function() {
|
|
687
|
-
return !!window.opera;
|
|
688
|
-
}, je.exports;
|
|
689
|
-
}
|
|
690
|
-
var He = { exports: {} }, dt;
|
|
691
|
-
function Hn() {
|
|
692
|
-
if (dt) return He.exports;
|
|
693
|
-
dt = 1;
|
|
694
|
-
var e = He.exports = {};
|
|
695
|
-
e.getOption = t;
|
|
696
|
-
function t(r, o, n) {
|
|
697
|
-
var s = r[o];
|
|
698
|
-
return s == null && n !== void 0 ? n : s;
|
|
699
|
-
}
|
|
700
|
-
return He.exports;
|
|
701
|
-
}
|
|
702
|
-
var Be, ft;
|
|
703
|
-
function Bn() {
|
|
704
|
-
if (ft) return Be;
|
|
705
|
-
ft = 1;
|
|
706
|
-
var e = Hn();
|
|
707
|
-
Be = function(o) {
|
|
708
|
-
o = o || {};
|
|
709
|
-
var n = o.reporter, s = e.getOption(o, "async", !0), a = e.getOption(o, "auto", !0);
|
|
710
|
-
a && !s && (n && n.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."), s = !0);
|
|
711
|
-
var u = t(), d, l = !1;
|
|
712
|
-
function f(b, P) {
|
|
713
|
-
!l && a && s && u.size() === 0 && H(), u.add(b, P);
|
|
714
|
-
}
|
|
715
|
-
function v() {
|
|
716
|
-
for (l = !0; u.size(); ) {
|
|
717
|
-
var b = u;
|
|
718
|
-
u = t(), b.process();
|
|
719
|
-
}
|
|
720
|
-
l = !1;
|
|
721
|
-
}
|
|
722
|
-
function g(b) {
|
|
723
|
-
l || (b === void 0 && (b = s), d && (w(d), d = null), b ? H() : v());
|
|
724
|
-
}
|
|
725
|
-
function H() {
|
|
726
|
-
d = y(v);
|
|
727
|
-
}
|
|
728
|
-
function w(b) {
|
|
729
|
-
var P = clearTimeout;
|
|
730
|
-
return P(b);
|
|
731
|
-
}
|
|
732
|
-
function y(b) {
|
|
733
|
-
var P = function(B) {
|
|
734
|
-
return setTimeout(B, 0);
|
|
735
|
-
};
|
|
736
|
-
return P(b);
|
|
737
|
-
}
|
|
738
|
-
return {
|
|
739
|
-
add: f,
|
|
740
|
-
force: g
|
|
741
|
-
};
|
|
742
|
-
};
|
|
743
|
-
function t() {
|
|
744
|
-
var r = {}, o = 0, n = 0, s = 0;
|
|
745
|
-
function a(l, f) {
|
|
746
|
-
f || (f = l, l = 0), l > n ? n = l : l < s && (s = l), r[l] || (r[l] = []), r[l].push(f), o++;
|
|
747
|
-
}
|
|
748
|
-
function u() {
|
|
749
|
-
for (var l = s; l <= n; l++)
|
|
750
|
-
for (var f = r[l], v = 0; v < f.length; v++) {
|
|
751
|
-
var g = f[v];
|
|
752
|
-
g();
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
function d() {
|
|
756
|
-
return o;
|
|
757
|
-
}
|
|
758
|
-
return {
|
|
759
|
-
add: a,
|
|
760
|
-
process: u,
|
|
761
|
-
size: d
|
|
762
|
-
};
|
|
763
|
-
}
|
|
764
|
-
return Be;
|
|
765
|
-
}
|
|
766
|
-
var Re, ht;
|
|
767
|
-
function Rn() {
|
|
768
|
-
if (ht) return Re;
|
|
769
|
-
ht = 1;
|
|
770
|
-
var e = "_erd";
|
|
771
|
-
function t(n) {
|
|
772
|
-
return n[e] = {}, r(n);
|
|
773
|
-
}
|
|
774
|
-
function r(n) {
|
|
775
|
-
return n[e];
|
|
776
|
-
}
|
|
777
|
-
function o(n) {
|
|
778
|
-
delete n[e];
|
|
779
|
-
}
|
|
780
|
-
return Re = {
|
|
781
|
-
initState: t,
|
|
782
|
-
getState: r,
|
|
783
|
-
cleanState: o
|
|
784
|
-
}, Re;
|
|
785
|
-
}
|
|
786
|
-
var We, pt;
|
|
787
|
-
function Wn() {
|
|
788
|
-
if (pt) return We;
|
|
789
|
-
pt = 1;
|
|
790
|
-
var e = Lt();
|
|
791
|
-
return We = function(t) {
|
|
792
|
-
t = t || {};
|
|
793
|
-
var r = t.reporter, o = t.batchProcessor, n = t.stateHandler.getState;
|
|
794
|
-
if (!r)
|
|
795
|
-
throw new Error("Missing required dependency: reporter.");
|
|
796
|
-
function s(f, v) {
|
|
797
|
-
function g() {
|
|
798
|
-
v(f);
|
|
799
|
-
}
|
|
800
|
-
if (e.isIE(8))
|
|
801
|
-
n(f).object = {
|
|
802
|
-
proxy: g
|
|
803
|
-
}, f.attachEvent("onresize", g);
|
|
804
|
-
else {
|
|
805
|
-
var H = d(f);
|
|
806
|
-
if (!H)
|
|
807
|
-
throw new Error("Element is not detectable by this strategy.");
|
|
808
|
-
H.contentDocument.defaultView.addEventListener("resize", g);
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
function a(f) {
|
|
812
|
-
var v = t.important ? " !important; " : "; ";
|
|
813
|
-
return (f.join(v) + v).trim();
|
|
814
|
-
}
|
|
815
|
-
function u(f, v, g) {
|
|
816
|
-
g || (g = v, v = f, f = null), f = f || {}, f.debug;
|
|
817
|
-
function H(w, y) {
|
|
818
|
-
var b = a(["display: block", "position: absolute", "top: 0", "left: 0", "width: 100%", "height: 100%", "border: none", "padding: 0", "margin: 0", "opacity: 0", "z-index: -1000", "pointer-events: none"]), P = !1, B = window.getComputedStyle(w), D = w.offsetWidth, ve = w.offsetHeight;
|
|
819
|
-
n(w).startSize = {
|
|
820
|
-
width: D,
|
|
821
|
-
height: ve
|
|
822
|
-
};
|
|
823
|
-
function p() {
|
|
824
|
-
function i() {
|
|
825
|
-
if (B.position === "static") {
|
|
826
|
-
w.style.setProperty("position", "relative", f.important ? "important" : "");
|
|
827
|
-
var _ = function(A, I, M, E) {
|
|
828
|
-
function V(me) {
|
|
829
|
-
return me.replace(/[^-\d\.]/g, "");
|
|
830
|
-
}
|
|
831
|
-
var U = M[E];
|
|
832
|
-
U !== "auto" && V(U) !== "0" && (A.warn("An element that is positioned static has style." + E + "=" + U + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + E + " will be set to 0. Element: ", I), I.style.setProperty(E, "0", f.important ? "important" : ""));
|
|
833
|
-
};
|
|
834
|
-
_(r, w, B, "top"), _(r, w, B, "right"), _(r, w, B, "bottom"), _(r, w, B, "left");
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
function k() {
|
|
838
|
-
P || i();
|
|
839
|
-
function _(I, M) {
|
|
840
|
-
if (!I.contentDocument) {
|
|
841
|
-
var E = n(I);
|
|
842
|
-
E.checkForObjectDocumentTimeoutId && window.clearTimeout(E.checkForObjectDocumentTimeoutId), E.checkForObjectDocumentTimeoutId = setTimeout(function() {
|
|
843
|
-
E.checkForObjectDocumentTimeoutId = 0, _(I, M);
|
|
844
|
-
}, 100);
|
|
845
|
-
return;
|
|
846
|
-
}
|
|
847
|
-
M(I.contentDocument);
|
|
848
|
-
}
|
|
849
|
-
var A = this;
|
|
850
|
-
_(A, function(M) {
|
|
851
|
-
y(w);
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
B.position !== "" && (i(), P = !0);
|
|
855
|
-
var h = document.createElement("object");
|
|
856
|
-
h.style.cssText = b, h.tabIndex = -1, h.type = "text/html", h.setAttribute("aria-hidden", "true"), h.onload = k, e.isIE() || (h.data = "about:blank"), n(w) && (w.appendChild(h), n(w).object = h, e.isIE() && (h.data = "about:blank"));
|
|
857
|
-
}
|
|
858
|
-
o ? o.add(p) : p();
|
|
859
|
-
}
|
|
860
|
-
e.isIE(8) ? g(v) : H(v, g);
|
|
861
|
-
}
|
|
862
|
-
function d(f) {
|
|
863
|
-
return n(f).object;
|
|
864
|
-
}
|
|
865
|
-
function l(f) {
|
|
866
|
-
if (n(f)) {
|
|
867
|
-
var v = d(f);
|
|
868
|
-
v && (e.isIE(8) ? f.detachEvent("onresize", v.proxy) : f.removeChild(v), n(f).checkForObjectDocumentTimeoutId && window.clearTimeout(n(f).checkForObjectDocumentTimeoutId), delete n(f).object);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
return {
|
|
872
|
-
makeDetectable: u,
|
|
873
|
-
addListener: s,
|
|
874
|
-
uninstall: l
|
|
875
|
-
};
|
|
876
|
-
}, We;
|
|
877
|
-
}
|
|
878
|
-
var Me, vt;
|
|
879
|
-
function Mn() {
|
|
880
|
-
if (vt) return Me;
|
|
881
|
-
vt = 1;
|
|
882
|
-
var e = It().forEach;
|
|
883
|
-
return Me = function(t) {
|
|
884
|
-
t = t || {};
|
|
885
|
-
var r = t.reporter, o = t.batchProcessor, n = t.stateHandler.getState;
|
|
886
|
-
t.stateHandler.hasState;
|
|
887
|
-
var s = t.idHandler;
|
|
888
|
-
if (!o)
|
|
889
|
-
throw new Error("Missing required dependency: batchProcessor");
|
|
890
|
-
if (!r)
|
|
891
|
-
throw new Error("Missing required dependency: reporter.");
|
|
892
|
-
var a = v(), u = "erd_scroll_detection_scrollbar_style", d = "erd_scroll_detection_container";
|
|
893
|
-
function l(p) {
|
|
894
|
-
g(p, u, d);
|
|
895
|
-
}
|
|
896
|
-
l(window.document);
|
|
897
|
-
function f(p) {
|
|
898
|
-
var i = t.important ? " !important; " : "; ";
|
|
899
|
-
return (p.join(i) + i).trim();
|
|
900
|
-
}
|
|
901
|
-
function v() {
|
|
902
|
-
var p = 500, i = 500, k = document.createElement("div");
|
|
903
|
-
k.style.cssText = f(["position: absolute", "width: " + p * 2 + "px", "height: " + i * 2 + "px", "visibility: hidden", "margin: 0", "padding: 0"]);
|
|
904
|
-
var h = document.createElement("div");
|
|
905
|
-
h.style.cssText = f(["position: absolute", "width: " + p + "px", "height: " + i + "px", "overflow: scroll", "visibility: none", "top: " + -500 * 3 + "px", "left: " + -500 * 3 + "px", "visibility: hidden", "margin: 0", "padding: 0"]), h.appendChild(k), document.body.insertBefore(h, document.body.firstChild);
|
|
906
|
-
var _ = p - h.clientWidth, A = i - h.clientHeight;
|
|
907
|
-
return document.body.removeChild(h), {
|
|
908
|
-
width: _,
|
|
909
|
-
height: A
|
|
910
|
-
};
|
|
911
|
-
}
|
|
912
|
-
function g(p, i, k) {
|
|
913
|
-
function h(M, E) {
|
|
914
|
-
E = E || function(U) {
|
|
915
|
-
p.head.appendChild(U);
|
|
916
|
-
};
|
|
917
|
-
var V = p.createElement("style");
|
|
918
|
-
return V.innerHTML = M, V.id = i, E(V), V;
|
|
919
|
-
}
|
|
920
|
-
if (!p.getElementById(i)) {
|
|
921
|
-
var _ = k + "_animation", A = k + "_animation_active", I = `/* Created by the element-resize-detector library. */
|
|
922
|
-
`;
|
|
923
|
-
I += "." + k + " > div::-webkit-scrollbar { " + f(["display: none"]) + ` }
|
|
924
|
-
|
|
925
|
-
`, I += "." + A + " { " + f(["-webkit-animation-duration: 0.1s", "animation-duration: 0.1s", "-webkit-animation-name: " + _, "animation-name: " + _]) + ` }
|
|
926
|
-
`, I += "@-webkit-keyframes " + _ + ` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
|
|
927
|
-
`, I += "@keyframes " + _ + " { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }", h(I);
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
function H(p) {
|
|
931
|
-
p.className += " " + d + "_animation_active";
|
|
932
|
-
}
|
|
933
|
-
function w(p, i, k) {
|
|
934
|
-
if (p.addEventListener)
|
|
935
|
-
p.addEventListener(i, k);
|
|
936
|
-
else if (p.attachEvent)
|
|
937
|
-
p.attachEvent("on" + i, k);
|
|
938
|
-
else
|
|
939
|
-
return r.error("[scroll] Don't know how to add event listeners.");
|
|
940
|
-
}
|
|
941
|
-
function y(p, i, k) {
|
|
942
|
-
if (p.removeEventListener)
|
|
943
|
-
p.removeEventListener(i, k);
|
|
944
|
-
else if (p.detachEvent)
|
|
945
|
-
p.detachEvent("on" + i, k);
|
|
946
|
-
else
|
|
947
|
-
return r.error("[scroll] Don't know how to remove event listeners.");
|
|
948
|
-
}
|
|
949
|
-
function b(p) {
|
|
950
|
-
return n(p).container.childNodes[0].childNodes[0].childNodes[0];
|
|
951
|
-
}
|
|
952
|
-
function P(p) {
|
|
953
|
-
return n(p).container.childNodes[0].childNodes[0].childNodes[1];
|
|
954
|
-
}
|
|
955
|
-
function B(p, i) {
|
|
956
|
-
var k = n(p).listeners;
|
|
957
|
-
if (!k.push)
|
|
958
|
-
throw new Error("Cannot add listener to an element that is not detectable.");
|
|
959
|
-
n(p).listeners.push(i);
|
|
960
|
-
}
|
|
961
|
-
function D(p, i, k) {
|
|
962
|
-
k || (k = i, i = p, p = null), p = p || {};
|
|
963
|
-
function h() {
|
|
964
|
-
if (p.debug) {
|
|
965
|
-
var c = Array.prototype.slice.call(arguments);
|
|
966
|
-
if (c.unshift(s.get(i), "Scroll: "), r.log.apply)
|
|
967
|
-
r.log.apply(null, c);
|
|
968
|
-
else
|
|
969
|
-
for (var m = 0; m < c.length; m++)
|
|
970
|
-
r.log(c[m]);
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
function _(c) {
|
|
974
|
-
function m(S) {
|
|
975
|
-
var N = S.getRootNode && S.getRootNode().contains(S);
|
|
976
|
-
return S === S.ownerDocument.body || S.ownerDocument.body.contains(S) || N;
|
|
977
|
-
}
|
|
978
|
-
return !m(c) || window.getComputedStyle(c) === null;
|
|
979
|
-
}
|
|
980
|
-
function A(c) {
|
|
981
|
-
var m = n(c).container.childNodes[0], S = window.getComputedStyle(m);
|
|
982
|
-
return !S.width || S.width.indexOf("px") === -1;
|
|
983
|
-
}
|
|
984
|
-
function I() {
|
|
985
|
-
var c = window.getComputedStyle(i), m = {};
|
|
986
|
-
return m.position = c.position, m.width = i.offsetWidth, m.height = i.offsetHeight, m.top = c.top, m.right = c.right, m.bottom = c.bottom, m.left = c.left, m.widthCSS = c.width, m.heightCSS = c.height, m;
|
|
987
|
-
}
|
|
988
|
-
function M() {
|
|
989
|
-
var c = I();
|
|
990
|
-
n(i).startSize = {
|
|
991
|
-
width: c.width,
|
|
992
|
-
height: c.height
|
|
993
|
-
}, h("Element start size", n(i).startSize);
|
|
994
|
-
}
|
|
995
|
-
function E() {
|
|
996
|
-
n(i).listeners = [];
|
|
997
|
-
}
|
|
998
|
-
function V() {
|
|
999
|
-
if (h("storeStyle invoked."), !n(i)) {
|
|
1000
|
-
h("Aborting because element has been uninstalled");
|
|
1001
|
-
return;
|
|
1002
|
-
}
|
|
1003
|
-
var c = I();
|
|
1004
|
-
n(i).style = c;
|
|
1005
|
-
}
|
|
1006
|
-
function U(c, m, S) {
|
|
1007
|
-
n(c).lastWidth = m, n(c).lastHeight = S;
|
|
1008
|
-
}
|
|
1009
|
-
function me(c) {
|
|
1010
|
-
return b(c).childNodes[0];
|
|
1011
|
-
}
|
|
1012
|
-
function C() {
|
|
1013
|
-
return 2 * a.width + 1;
|
|
1014
|
-
}
|
|
1015
|
-
function L() {
|
|
1016
|
-
return 2 * a.height + 1;
|
|
1017
|
-
}
|
|
1018
|
-
function Q(c) {
|
|
1019
|
-
return c + 10 + C();
|
|
1020
|
-
}
|
|
1021
|
-
function ge(c) {
|
|
1022
|
-
return c + 10 + L();
|
|
1023
|
-
}
|
|
1024
|
-
function ye(c) {
|
|
1025
|
-
return c * 2 + C();
|
|
1026
|
-
}
|
|
1027
|
-
function ee(c) {
|
|
1028
|
-
return c * 2 + L();
|
|
1029
|
-
}
|
|
1030
|
-
function le(c, m, S) {
|
|
1031
|
-
var N = b(c), K = P(c), de = Q(m), fe = ge(S), W = ye(m), x = ee(S);
|
|
1032
|
-
N.scrollLeft = de, N.scrollTop = fe, K.scrollLeft = W, K.scrollTop = x;
|
|
1033
|
-
}
|
|
1034
|
-
function ce() {
|
|
1035
|
-
var c = n(i).container;
|
|
1036
|
-
if (!c) {
|
|
1037
|
-
c = document.createElement("div"), c.className = d, c.style.cssText = f(["visibility: hidden", "display: inline", "width: 0px", "height: 0px", "z-index: -1", "overflow: hidden", "margin: 0", "padding: 0"]), n(i).container = c, H(c), i.appendChild(c);
|
|
1038
|
-
var m = function() {
|
|
1039
|
-
n(i).onRendered && n(i).onRendered();
|
|
1040
|
-
};
|
|
1041
|
-
w(c, "animationstart", m), n(i).onAnimationStart = m;
|
|
1042
|
-
}
|
|
1043
|
-
return c;
|
|
1044
|
-
}
|
|
1045
|
-
function G() {
|
|
1046
|
-
function c() {
|
|
1047
|
-
var z = n(i).style;
|
|
1048
|
-
if (z.position === "static") {
|
|
1049
|
-
i.style.setProperty("position", "relative", p.important ? "important" : "");
|
|
1050
|
-
var Z = function(pe, ae, Pt, _e) {
|
|
1051
|
-
function Tt(Ot) {
|
|
1052
|
-
return Ot.replace(/[^-\d\.]/g, "");
|
|
1053
|
-
}
|
|
1054
|
-
var Ie = Pt[_e];
|
|
1055
|
-
Ie !== "auto" && Tt(Ie) !== "0" && (pe.warn("An element that is positioned static has style." + _e + "=" + Ie + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + _e + " will be set to 0. Element: ", ae), ae.style[_e] = 0);
|
|
1056
|
-
};
|
|
1057
|
-
Z(r, i, z, "top"), Z(r, i, z, "right"), Z(r, i, z, "bottom"), Z(r, i, z, "left");
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
function m(z, Z, pe, ae) {
|
|
1061
|
-
return z = z ? z + "px" : "0", Z = Z ? Z + "px" : "0", pe = pe ? pe + "px" : "0", ae = ae ? ae + "px" : "0", ["left: " + z, "top: " + Z, "right: " + ae, "bottom: " + pe];
|
|
1062
|
-
}
|
|
1063
|
-
if (h("Injecting elements"), !n(i)) {
|
|
1064
|
-
h("Aborting because element has been uninstalled");
|
|
1065
|
-
return;
|
|
1066
|
-
}
|
|
1067
|
-
c();
|
|
1068
|
-
var S = n(i).container;
|
|
1069
|
-
S || (S = ce());
|
|
1070
|
-
var N = a.width, K = a.height, de = f(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%", "left: 0px", "top: 0px"]), fe = f(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden"].concat(m(-(1 + N), -(1 + K), -K, -N))), W = f(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"]), x = f(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"]), q = f(["position: absolute", "left: 0", "top: 0"]), oe = f(["position: absolute", "width: 200%", "height: 200%"]), J = document.createElement("div"), Y = document.createElement("div"), he = document.createElement("div"), Je = document.createElement("div"), Se = document.createElement("div"), Ye = document.createElement("div");
|
|
1071
|
-
J.dir = "ltr", J.style.cssText = de, J.className = d, Y.className = d, Y.style.cssText = fe, he.style.cssText = W, Je.style.cssText = q, Se.style.cssText = x, Ye.style.cssText = oe, he.appendChild(Je), Se.appendChild(Ye), Y.appendChild(he), Y.appendChild(Se), J.appendChild(Y), S.appendChild(J);
|
|
1072
|
-
function Ze() {
|
|
1073
|
-
var z = n(i);
|
|
1074
|
-
z && z.onExpand ? z.onExpand() : h("Aborting expand scroll handler: element has been uninstalled");
|
|
1075
|
-
}
|
|
1076
|
-
function Xe() {
|
|
1077
|
-
var z = n(i);
|
|
1078
|
-
z && z.onShrink ? z.onShrink() : h("Aborting shrink scroll handler: element has been uninstalled");
|
|
1079
|
-
}
|
|
1080
|
-
w(he, "scroll", Ze), w(Se, "scroll", Xe), n(i).onExpandScroll = Ze, n(i).onShrinkScroll = Xe;
|
|
1081
|
-
}
|
|
1082
|
-
function te() {
|
|
1083
|
-
function c(W, x, q) {
|
|
1084
|
-
var oe = me(W), J = Q(x), Y = ge(q);
|
|
1085
|
-
oe.style.setProperty("width", J + "px", p.important ? "important" : ""), oe.style.setProperty("height", Y + "px", p.important ? "important" : "");
|
|
1086
|
-
}
|
|
1087
|
-
function m(W) {
|
|
1088
|
-
var x = i.offsetWidth, q = i.offsetHeight, oe = x !== n(i).lastWidth || q !== n(i).lastHeight;
|
|
1089
|
-
h("Storing current size", x, q), U(i, x, q), o.add(0, function() {
|
|
1090
|
-
if (oe) {
|
|
1091
|
-
if (!n(i)) {
|
|
1092
|
-
h("Aborting because element has been uninstalled");
|
|
1093
|
-
return;
|
|
1094
|
-
}
|
|
1095
|
-
if (!S()) {
|
|
1096
|
-
h("Aborting because element container has not been initialized");
|
|
1097
|
-
return;
|
|
1098
|
-
}
|
|
1099
|
-
if (p.debug) {
|
|
1100
|
-
var Y = i.offsetWidth, he = i.offsetHeight;
|
|
1101
|
-
(Y !== x || he !== q) && r.warn(s.get(i), "Scroll: Size changed before updating detector elements.");
|
|
1102
|
-
}
|
|
1103
|
-
c(i, x, q);
|
|
1104
|
-
}
|
|
1105
|
-
}), o.add(1, function() {
|
|
1106
|
-
if (!n(i)) {
|
|
1107
|
-
h("Aborting because element has been uninstalled");
|
|
1108
|
-
return;
|
|
1109
|
-
}
|
|
1110
|
-
if (!S()) {
|
|
1111
|
-
h("Aborting because element container has not been initialized");
|
|
1112
|
-
return;
|
|
1113
|
-
}
|
|
1114
|
-
le(i, x, q);
|
|
1115
|
-
}), oe && W && o.add(2, function() {
|
|
1116
|
-
if (!n(i)) {
|
|
1117
|
-
h("Aborting because element has been uninstalled");
|
|
1118
|
-
return;
|
|
1119
|
-
}
|
|
1120
|
-
if (!S()) {
|
|
1121
|
-
h("Aborting because element container has not been initialized");
|
|
1122
|
-
return;
|
|
1123
|
-
}
|
|
1124
|
-
W();
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
function S() {
|
|
1128
|
-
return !!n(i).container;
|
|
1129
|
-
}
|
|
1130
|
-
function N() {
|
|
1131
|
-
function W() {
|
|
1132
|
-
return n(i).lastNotifiedWidth === void 0;
|
|
1133
|
-
}
|
|
1134
|
-
h("notifyListenersIfNeeded invoked");
|
|
1135
|
-
var x = n(i);
|
|
1136
|
-
if (W() && x.lastWidth === x.startSize.width && x.lastHeight === x.startSize.height)
|
|
1137
|
-
return h("Not notifying: Size is the same as the start size, and there has been no notification yet.");
|
|
1138
|
-
if (x.lastWidth === x.lastNotifiedWidth && x.lastHeight === x.lastNotifiedHeight)
|
|
1139
|
-
return h("Not notifying: Size already notified");
|
|
1140
|
-
h("Current size not notified, notifying..."), x.lastNotifiedWidth = x.lastWidth, x.lastNotifiedHeight = x.lastHeight, e(n(i).listeners, function(q) {
|
|
1141
|
-
q(i);
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
function K() {
|
|
1145
|
-
if (h("startanimation triggered."), A(i)) {
|
|
1146
|
-
h("Ignoring since element is still unrendered...");
|
|
1147
|
-
return;
|
|
1148
|
-
}
|
|
1149
|
-
h("Element rendered.");
|
|
1150
|
-
var W = b(i), x = P(i);
|
|
1151
|
-
(W.scrollLeft === 0 || W.scrollTop === 0 || x.scrollLeft === 0 || x.scrollTop === 0) && (h("Scrollbars out of sync. Updating detector elements..."), m(N));
|
|
1152
|
-
}
|
|
1153
|
-
function de() {
|
|
1154
|
-
if (h("Scroll detected."), A(i)) {
|
|
1155
|
-
h("Scroll event fired while unrendered. Ignoring...");
|
|
1156
|
-
return;
|
|
1157
|
-
}
|
|
1158
|
-
m(N);
|
|
1159
|
-
}
|
|
1160
|
-
if (h("registerListenersAndPositionElements invoked."), !n(i)) {
|
|
1161
|
-
h("Aborting because element has been uninstalled");
|
|
1162
|
-
return;
|
|
1163
|
-
}
|
|
1164
|
-
n(i).onRendered = K, n(i).onExpand = de, n(i).onShrink = de;
|
|
1165
|
-
var fe = n(i).style;
|
|
1166
|
-
c(i, fe.width, fe.height);
|
|
1167
|
-
}
|
|
1168
|
-
function O() {
|
|
1169
|
-
if (h("finalizeDomMutation invoked."), !n(i)) {
|
|
1170
|
-
h("Aborting because element has been uninstalled");
|
|
1171
|
-
return;
|
|
1172
|
-
}
|
|
1173
|
-
var c = n(i).style;
|
|
1174
|
-
U(i, c.width, c.height), le(i, c.width, c.height);
|
|
1175
|
-
}
|
|
1176
|
-
function T() {
|
|
1177
|
-
k(i);
|
|
1178
|
-
}
|
|
1179
|
-
function ue() {
|
|
1180
|
-
h("Installing..."), E(), M(), o.add(0, V), o.add(1, G), o.add(2, te), o.add(3, O), o.add(4, T);
|
|
1181
|
-
}
|
|
1182
|
-
h("Making detectable..."), _(i) ? (h("Element is detached"), ce(), h("Waiting until element is attached..."), n(i).onRendered = function() {
|
|
1183
|
-
h("Element is now attached"), ue();
|
|
1184
|
-
}) : ue();
|
|
1185
|
-
}
|
|
1186
|
-
function ve(p) {
|
|
1187
|
-
var i = n(p);
|
|
1188
|
-
i && (i.onExpandScroll && y(b(p), "scroll", i.onExpandScroll), i.onShrinkScroll && y(P(p), "scroll", i.onShrinkScroll), i.onAnimationStart && y(i.container, "animationstart", i.onAnimationStart), i.container && p.removeChild(i.container));
|
|
1189
|
-
}
|
|
1190
|
-
return {
|
|
1191
|
-
makeDetectable: D,
|
|
1192
|
-
addListener: B,
|
|
1193
|
-
uninstall: ve,
|
|
1194
|
-
initDocument: l
|
|
1195
|
-
};
|
|
1196
|
-
}, Me;
|
|
1197
|
-
}
|
|
1198
|
-
var Ne, mt;
|
|
1199
|
-
function Nn() {
|
|
1200
|
-
if (mt) return Ne;
|
|
1201
|
-
mt = 1;
|
|
1202
|
-
var e = It().forEach, t = Tn(), r = On(), o = zn(), n = An(), s = jn(), a = Lt(), u = Bn(), d = Rn(), l = Wn(), f = Mn();
|
|
1203
|
-
function v(y) {
|
|
1204
|
-
return Array.isArray(y) || y.length !== void 0;
|
|
1205
|
-
}
|
|
1206
|
-
function g(y) {
|
|
1207
|
-
if (Array.isArray(y))
|
|
1208
|
-
return y;
|
|
1209
|
-
var b = [];
|
|
1210
|
-
return e(y, function(P) {
|
|
1211
|
-
b.push(P);
|
|
1212
|
-
}), b;
|
|
1213
|
-
}
|
|
1214
|
-
function H(y) {
|
|
1215
|
-
return y && y.nodeType === 1;
|
|
1216
|
-
}
|
|
1217
|
-
Ne = function(y) {
|
|
1218
|
-
y = y || {};
|
|
1219
|
-
var b;
|
|
1220
|
-
if (y.idHandler)
|
|
1221
|
-
b = {
|
|
1222
|
-
get: function(C) {
|
|
1223
|
-
return y.idHandler.get(C, !0);
|
|
1224
|
-
},
|
|
1225
|
-
set: y.idHandler.set
|
|
1226
|
-
};
|
|
1227
|
-
else {
|
|
1228
|
-
var P = o(), B = n({
|
|
1229
|
-
idGenerator: P,
|
|
1230
|
-
stateHandler: d
|
|
1231
|
-
});
|
|
1232
|
-
b = B;
|
|
1233
|
-
}
|
|
1234
|
-
var D = y.reporter;
|
|
1235
|
-
if (!D) {
|
|
1236
|
-
var ve = D === !1;
|
|
1237
|
-
D = s(ve);
|
|
1238
|
-
}
|
|
1239
|
-
var p = w(y, "batchProcessor", u({ reporter: D })), i = {};
|
|
1240
|
-
i.callOnAdd = !!w(y, "callOnAdd", !0), i.debug = !!w(y, "debug", !1);
|
|
1241
|
-
var k = r(b), h = t({
|
|
1242
|
-
stateHandler: d
|
|
1243
|
-
}), _, A = w(y, "strategy", "object"), I = w(y, "important", !1), M = {
|
|
1244
|
-
reporter: D,
|
|
1245
|
-
batchProcessor: p,
|
|
1246
|
-
stateHandler: d,
|
|
1247
|
-
idHandler: b,
|
|
1248
|
-
important: I
|
|
1249
|
-
};
|
|
1250
|
-
if (A === "scroll" && (a.isLegacyOpera() ? (D.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."), A = "object") : a.isIE(9) && (D.warn("Scroll strategy is not supported on IE9. Changing to object strategy."), A = "object")), A === "scroll")
|
|
1251
|
-
_ = f(M);
|
|
1252
|
-
else if (A === "object")
|
|
1253
|
-
_ = l(M);
|
|
1254
|
-
else
|
|
1255
|
-
throw new Error("Invalid strategy name: " + A);
|
|
1256
|
-
var E = {};
|
|
1257
|
-
function V(C, L, Q) {
|
|
1258
|
-
function ge(te) {
|
|
1259
|
-
var O = k.get(te);
|
|
1260
|
-
e(O, function(ue) {
|
|
1261
|
-
ue(te);
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
|
-
function ye(te, O, T) {
|
|
1265
|
-
k.add(O, T), te && T(O);
|
|
1266
|
-
}
|
|
1267
|
-
if (Q || (Q = L, L = C, C = {}), !L)
|
|
1268
|
-
throw new Error("At least one element required.");
|
|
1269
|
-
if (!Q)
|
|
1270
|
-
throw new Error("Listener required.");
|
|
1271
|
-
if (H(L))
|
|
1272
|
-
L = [L];
|
|
1273
|
-
else if (v(L))
|
|
1274
|
-
L = g(L);
|
|
1275
|
-
else
|
|
1276
|
-
return D.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");
|
|
1277
|
-
var ee = 0, le = w(C, "callOnAdd", i.callOnAdd), ce = w(C, "onReady", function() {
|
|
1278
|
-
}), G = w(C, "debug", i.debug);
|
|
1279
|
-
e(L, function(O) {
|
|
1280
|
-
d.getState(O) || (d.initState(O), b.set(O));
|
|
1281
|
-
var T = b.get(O);
|
|
1282
|
-
if (G && D.log("Attaching listener to element", T, O), !h.isDetectable(O)) {
|
|
1283
|
-
if (G && D.log(T, "Not detectable."), h.isBusy(O)) {
|
|
1284
|
-
G && D.log(T, "System busy making it detectable"), ye(le, O, Q), E[T] = E[T] || [], E[T].push(function() {
|
|
1285
|
-
ee++, ee === L.length && ce();
|
|
1286
|
-
});
|
|
1287
|
-
return;
|
|
1288
|
-
}
|
|
1289
|
-
return G && D.log(T, "Making detectable..."), h.markBusy(O, !0), _.makeDetectable({ debug: G, important: I }, O, function(c) {
|
|
1290
|
-
if (G && D.log(T, "onElementDetectable"), d.getState(c)) {
|
|
1291
|
-
h.markAsDetectable(c), h.markBusy(c, !1), _.addListener(c, ge), ye(le, c, Q);
|
|
1292
|
-
var m = d.getState(c);
|
|
1293
|
-
if (m && m.startSize) {
|
|
1294
|
-
var S = c.offsetWidth, N = c.offsetHeight;
|
|
1295
|
-
(m.startSize.width !== S || m.startSize.height !== N) && ge(c);
|
|
1296
|
-
}
|
|
1297
|
-
E[T] && e(E[T], function(K) {
|
|
1298
|
-
K();
|
|
1299
|
-
});
|
|
1300
|
-
} else
|
|
1301
|
-
G && D.log(T, "Element uninstalled before being detectable.");
|
|
1302
|
-
delete E[T], ee++, ee === L.length && ce();
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
G && D.log(T, "Already detecable, adding listener."), ye(le, O, Q), ee++;
|
|
1306
|
-
}), ee === L.length && ce();
|
|
1307
|
-
}
|
|
1308
|
-
function U(C) {
|
|
1309
|
-
if (!C)
|
|
1310
|
-
return D.error("At least one element is required.");
|
|
1311
|
-
if (H(C))
|
|
1312
|
-
C = [C];
|
|
1313
|
-
else if (v(C))
|
|
1314
|
-
C = g(C);
|
|
1315
|
-
else
|
|
1316
|
-
return D.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");
|
|
1317
|
-
e(C, function(L) {
|
|
1318
|
-
k.removeAllListeners(L), _.uninstall(L), d.cleanState(L);
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
|
-
function me(C) {
|
|
1322
|
-
_.initDocument && _.initDocument(C);
|
|
1323
|
-
}
|
|
1324
|
-
return {
|
|
1325
|
-
listenTo: V,
|
|
1326
|
-
removeListener: k.removeListener,
|
|
1327
|
-
removeAllListeners: k.removeAllListeners,
|
|
1328
|
-
uninstall: U,
|
|
1329
|
-
initDocument: me
|
|
1330
|
-
};
|
|
1331
|
-
};
|
|
1332
|
-
function w(y, b, P) {
|
|
1333
|
-
var B = y[b];
|
|
1334
|
-
return B == null && P !== void 0 ? P : B;
|
|
1335
|
-
}
|
|
1336
|
-
return Ne;
|
|
1337
|
-
}
|
|
1338
|
-
var qn = Nn();
|
|
1339
|
-
const Fn = /* @__PURE__ */ Kt(qn), Vn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1340
|
-
__name: "WithDimensions",
|
|
1341
|
-
props: { provideDevice: Boolean },
|
|
1342
|
-
emits: ["width", "height", "resize"],
|
|
1343
|
-
setup(e, { emit: t }) {
|
|
1344
|
-
window.elementResizeDetectorMaker || (window.elementResizeDetectorMaker = Fn({
|
|
1345
|
-
strategy: "scroll"
|
|
1346
|
-
}));
|
|
1347
|
-
const r = e, o = t, n = (l) => l <= 640 ? "mobile" : l <= 1024 ? "tablet" : "desktop", s = re(null), a = re(null), u = re({ device: "desktop" }), d = Jt();
|
|
1348
|
-
return r.provideDevice && (gt("containerType", u), Qe(s, (l) => {
|
|
1349
|
-
u.value.device = n(l);
|
|
1350
|
-
})), bt(() => {
|
|
1351
|
-
var v;
|
|
1352
|
-
const l = (v = d.value) == null ? void 0 : v.nextElementSibling;
|
|
1353
|
-
if (!l) return;
|
|
1354
|
-
const f = () => {
|
|
1355
|
-
s.value = l.offsetWidth, a.value = l.offsetHeight, o("width", l.offsetWidth), o("height", l.offsetHeight), o("resize");
|
|
1356
|
-
};
|
|
1357
|
-
window.elementResizeDetectorMaker.listenTo(l, f), s.value = l.offsetWidth, a.value = l.offsetHeight, Yt(() => {
|
|
1358
|
-
window.elementResizeDetectorMaker.uninstall(l);
|
|
1359
|
-
});
|
|
1360
|
-
}), (l, f) => Ce(l.$slots, "default", {
|
|
1361
|
-
width: s.value,
|
|
1362
|
-
height: a.value
|
|
1363
|
-
});
|
|
1364
|
-
}
|
|
1365
|
-
}), $n = {
|
|
1366
|
-
name: "DocumentLayout",
|
|
1367
|
-
components: {
|
|
1368
|
-
DynamicChapter: xt,
|
|
1369
|
-
DocumentStyleContainer: Pn,
|
|
1370
|
-
WithDimensions: Vn
|
|
1371
|
-
},
|
|
1372
|
-
props: {
|
|
1373
|
-
document: {
|
|
1374
|
-
type: Object,
|
|
1375
|
-
required: !0
|
|
1376
|
-
}
|
|
1377
|
-
},
|
|
1378
|
-
computed: {
|
|
1379
|
-
layout() {
|
|
1380
|
-
var e;
|
|
1381
|
-
return ((e = this.document) == null ? void 0 : e.readLayout) || [];
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
}, Un = { class: "font-family-default h-full w-full" };
|
|
1385
|
-
function Gn(e, t, r, o, n, s) {
|
|
1386
|
-
const a = ne("DynamicChapter"), u = ne("DocumentStyleContainer"), d = ne("WithDimensions");
|
|
1387
|
-
return j(), ie("div", Un, [
|
|
1388
|
-
xe(d, { "provide-device": !0 }, {
|
|
1389
|
-
default: $(() => {
|
|
1390
|
-
var l, f;
|
|
1391
|
-
return [
|
|
1392
|
-
xe(u, {
|
|
1393
|
-
"input-style": (f = (l = r.document) == null ? void 0 : l.data) == null ? void 0 : f.css,
|
|
1394
|
-
style: { flex: "1 0 auto" },
|
|
1395
|
-
class: "h-full w-full"
|
|
1396
|
-
}, {
|
|
1397
|
-
default: $(() => [
|
|
1398
|
-
(j(!0), ie($e, null, Ve(s.layout, (v, g) => (j(), X(a, {
|
|
1399
|
-
key: g,
|
|
1400
|
-
"component-name": v.componentName,
|
|
1401
|
-
"component-props": {
|
|
1402
|
-
...v.props,
|
|
1403
|
-
_document: r.document,
|
|
1404
|
-
_value: v.value
|
|
1405
|
-
},
|
|
1406
|
-
children: v.children,
|
|
1407
|
-
"_first-block": g === 0,
|
|
1408
|
-
"_last-block": g === s.layout.length - 1
|
|
1409
|
-
}, null, 8, ["component-name", "component-props", "children", "_first-block", "_last-block"]))), 128))
|
|
1410
|
-
]),
|
|
1411
|
-
_: 1
|
|
1412
|
-
}, 8, ["input-style"])
|
|
1413
|
-
];
|
|
1414
|
-
}),
|
|
1415
|
-
_: 1
|
|
1416
|
-
})
|
|
1417
|
-
]);
|
|
1418
|
-
}
|
|
1419
|
-
const Qn = /* @__PURE__ */ ke($n, [["render", Gn]]), rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1420
|
-
__proto__: null,
|
|
1421
|
-
default: Qn
|
|
1422
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1423
|
-
export {
|
|
1424
|
-
Qn as D,
|
|
1425
|
-
tr as F,
|
|
1426
|
-
Pn as _,
|
|
1427
|
-
Vn as a,
|
|
1428
|
-
xt as b,
|
|
1429
|
-
rr as c,
|
|
1430
|
-
er as g,
|
|
1431
|
-
nr as i,
|
|
1432
|
-
_t as l,
|
|
1433
|
-
ln as u
|
|
1434
|
-
};
|