@cling-se/widget 0.9.4 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddClientCallout-d472aa84.js → AddClientCallout-d8f5bc53.js} +5 -5
- package/dist/{AnswerModal-06487437.js → AnswerModal-5f83562b.js} +248 -248
- package/dist/{AttachmentItem-d98488ee.js → AttachmentItem-79eb718b.js} +8 -8
- package/dist/{BaseDatePicker-8c098701.js → BaseDatePicker-ae7aebf1.js} +43 -43
- package/dist/{BaseInput-2723d613.js → BaseInput-2c476604.js} +1 -1
- package/dist/{BaseUpload-996d74b3.js → BaseUpload-9e15729d.js} +3 -3
- package/dist/{BlockMedia-00907fb6.js → BlockMedia-a3f00a2f.js} +1 -1
- package/dist/{CCallout-ffa95028.js → CCallout-04e2c8c6.js} +6 -6
- package/dist/{CDropdownItem-74672842.js → CDropdownItem-5532f8af.js} +76 -75
- package/dist/{CField-06dd50f1.js → CField-0bc9de28.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js → CSlider.vue_vue_type_style_index_0_lang-d9c2f582.js} +1 -1
- package/dist/{ClientAutocomplete-f65643dd.js → ClientAutocomplete-e13c2753.js} +4 -4
- package/dist/{ClientModal-d276aabd.js → ClientModal-da9fddf9.js} +16 -16
- package/dist/{ColorPicker-4f6b70af.js → ColorPicker-06b731b7.js} +2 -2
- package/dist/{CompanyModal-30c54ce3.js → CompanyModal-b7c42f2a.js} +8 -8
- package/dist/{ContentWrapper-d5653fef.js → ContentWrapper-fe4a67bc.js} +19 -19
- package/dist/{CoverBlockSettings-2335f3a8.js → CoverBlockSettings-2024e993.js} +19 -19
- package/dist/DocForm-af03179d.js +7012 -0
- package/dist/{DocFormSend-d0c6fa1d.js → DocFormSend-44161541.js} +14 -14
- package/dist/{DocModalBase-f4915a62.js → DocModalBase-9eb0f26f.js} +4 -4
- package/dist/DocPrint-92d12950.js +222 -0
- package/dist/{DocReceipt-d192000e.js → DocReceipt-4df57e1d.js} +1 -1
- package/dist/{DocSendReminder-06d5b34c.js → DocSendReminder-041af744.js} +1 -1
- package/dist/{DocTextEditor-c6d1df3c.js → DocTextEditor-b07dd391.js} +19 -19
- package/dist/{DocTimeline-b4c20f93.js → DocTimeline-2ae2ca63.js} +7 -7
- package/dist/{DocumentClient-c2319f00.js → DocumentClient-3a1aecf2.js} +8 -6
- package/dist/{formValidationMixin-4920ab53.js → DocumentLayout-ae49ac7a.js} +1617 -1709
- package/dist/{DocumentLogotype-1efd1ce9.js → DocumentLogotype-91436523.js} +3 -3
- package/dist/{EmbedInput-654c0477.js → EmbedInput-05e22228.js} +2 -2
- package/dist/{EmbedSettings-b81ec734.js → EmbedSettings-9dabb6d4.js} +10 -10
- package/dist/ErrorCallout-c7f69cd9.js +30 -0
- package/dist/{FilePreviewModal-895bd1bd.js → FilePreviewModal-167a40c8.js} +8 -7
- package/dist/{HeaderSettings-c6dac755.js → HeaderSettings-e9b177e0.js} +29 -29
- package/dist/{ImageSelectModal-7cece54e.js → ImageSelectModal-8565c461.js} +11 -11
- package/dist/{ImageUploadWrapper-53afd31d.js → ImageUploadWrapper-1e61e8da.js} +3 -3
- package/dist/{Index-5cc51230.js → Index-0708b238.js} +12 -12
- package/dist/{Index-82574a41.js → Index-0799eaba.js} +18 -19
- package/dist/{Index-1a7e98d7.js → Index-1f3de208.js} +11 -10
- package/dist/{Index-d8879ca9.js → Index-27a05d76.js} +2 -2
- package/dist/{Index-b15cfd62.js → Index-43899daf.js} +13 -13
- package/dist/{Index-c4de05aa.js → Index-4446581c.js} +10 -9
- package/dist/{Index-01c63c88.js → Index-49766088.js} +2 -2
- package/dist/{Index-caf5cf44.js → Index-630600c9.js} +94 -94
- package/dist/{Index-b14d0f03.js → Index-6b63686e.js} +4 -4
- package/dist/{Index-34c84bab.js → Index-716dbe24.js} +10 -10
- package/dist/{Index-f935c492.js → Index-72bcad54.js} +10 -10
- package/dist/{Index-61f7dc92.js → Index-84820d3d.js} +2 -2
- package/dist/{Index-e749f6f1.js → Index-85e8119e.js} +14 -14
- package/dist/Index-88e175bf.js +54 -0
- package/dist/{Index-e45a0c32.js → Index-89addabd.js} +27 -27
- package/dist/{Index-701f0d05.js → Index-8b29bd10.js} +2 -2
- package/dist/{Index-d45a1eff.js → Index-8d1c62be.js} +4 -4
- package/dist/{Index-63805642.js → Index-96a07794.js} +9 -9
- package/dist/{Index-60fc8a6e.js → Index-9bbfa37b.js} +3 -3
- package/dist/{Index-7443e91c.js → Index-a7a6f91c.js} +31 -31
- package/dist/{Index-8bca2d87.js → Index-a987a099.js} +9 -9
- package/dist/{Index-98e8bb86.js → Index-b6b60b81.js} +8 -8
- package/dist/{Index-5e35f4a2.js → Index-ba0c8eaa.js} +8 -8
- package/dist/{Index-9aaf8b90.js → Index-c038406f.js} +26 -26
- package/dist/Index-c53330d6.js +79 -0
- package/dist/{Index-9233cc83.js → Index-c58260f8.js} +15 -15
- package/dist/{Index-2535f58f.js → Index-c893d091.js} +2 -2
- package/dist/{Index-1d361d01.js → Index-ca112d97.js} +4 -4
- package/dist/{Index-cd76b120.js → Index-e728d2f7.js} +7 -7
- package/dist/{Index-6ef78b7a.js → Index-ecf93915.js} +2 -2
- package/dist/{Index-c7e68382.js → Index-eda700f4.js} +4 -4
- package/dist/{Index-82b5de12.js → Index-ee75e74a.js} +4 -4
- package/dist/{Index-c67218ce.js → Index-f75b1dd5.js} +15 -15
- package/dist/{Index-66c8cbfa.js → Index-fc722547.js} +4 -4
- package/dist/{InputToggleRow-9d8a7da4.js → InputToggleRow-483acc75.js} +5 -5
- package/dist/{IsPremiumPreStep-3a087524.js → IsPremiumPreStep-aa08f8c8.js} +856 -432
- package/dist/{MediaWrapper-d4a4b66f.js → MediaWrapper-ed7db800.js} +3 -3
- package/dist/{NotBindingText-b199006c.js → NotBindingText-a99b4f85.js} +2 -2
- package/dist/{PackageGroup-37ac99b1.js → PackageGroup-8cae78f1.js} +56 -56
- package/dist/{PdfTerms-8b52bb6e.js → PdfTerms-9c1c806e.js} +8 -7
- package/dist/{PdfViewer-38bd8439.js → PdfViewer-1227dda6.js} +5 -4
- package/dist/{PlainHtml-9174cbf6.js → PlainHtml-647219e9.js} +1 -1
- package/dist/PriceHeader-cfb22169.js +337 -0
- package/dist/{SearchApi-2e286be6.js → SearchApi-c0067742.js} +2 -2
- package/dist/{TermsSettings-c74eec79.js → TermsSettings-a0282ad7.js} +11 -11
- package/dist/{ThemeColorRow-3558367b.js → ThemeColorRow-71af67bd.js} +3 -3
- package/dist/{ToggleBinding-6c9c1ac3.js → ToggleBinding-16c2879e.js} +3 -3
- package/dist/{UploadModal-6d0abd77.js → UploadModal-084e3c2e.js} +16 -16
- package/dist/{VideoPlayerInput-77cd86aa.js → VideoPlayerInput-fe87698e.js} +3 -3
- package/dist/{VideoPlayerSettings-b7eb781c.js → VideoPlayerSettings-06cfaccc.js} +12 -12
- package/dist/VideoSelectModal-fa81fb92.js +111 -0
- package/dist/{answerDocumentMixin-66023e62.js → answerDocumentMixin-ef48c7eb.js} +3 -3
- package/dist/{cssMode-8552fc56.js → cssMode-916ae2c1.js} +7 -7
- package/dist/dom-068d1a7b.js +59 -0
- package/dist/{focusDrawerMixin-67462262.js → focusDrawerMixin-24942dd1.js} +1 -1
- package/dist/{formComponentsInstall-ad9c2a83.js → formComponentsInstall-2dfa2def.js} +25 -25
- package/dist/formValidationMixin-82793652.js +49 -0
- package/dist/{freemarker2-7e10a65d.js → freemarker2-6fd30e77.js} +7 -7
- package/dist/{handlebars-8045bfa8.js → handlebars-ff07e526.js} +7 -7
- package/dist/{html-8afcb633.js → html-5ad143f9.js} +7 -7
- package/dist/{htmlMode-1a2d1b48.js → htmlMode-adc834ff.js} +7 -7
- package/dist/{index-3d6d7a03.js → index-045c9c73.js} +31 -31
- package/dist/{index-c48c5eb4.js → index-1f068e8e.js} +3 -3
- package/dist/{index-bf93d7c2.js → index-6eda8be0.js} +7 -7
- package/dist/{index-f805bfce.js → index-b3fb8f92.js} +45 -45
- package/dist/index.es.js +8 -8
- package/dist/index.umd.js +565 -561
- package/dist/{javascript-dad5561e.js → javascript-9c241e8d.js} +8 -8
- package/dist/{jsonMode-ce09245f.js → jsonMode-36a8e1fd.js} +7 -7
- package/dist/{liquid-05247459.js → liquid-da99d7af.js} +7 -7
- package/dist/{main-04025a56.js → main-2dc98356.js} +15380 -12891
- package/dist/{mapFormMixin-8d073f99.js → mapFormMixin-4ac649c2.js} +1 -1
- package/dist/{publicSenderState-97108de1.js → publicSenderState-1db8a50c.js} +1 -1
- package/dist/{python-3f3513c5.js → python-15d86041.js} +7 -7
- package/dist/{razor-1f3e9c4e.js → razor-19e0207f.js} +7 -7
- package/dist/simplebar.min-9f5e0b8a.js +71 -0
- package/dist/style.css +2 -2
- package/dist/{template-42a1d852.js → template-069f0890.js} +1 -1
- package/dist/{throttle-a2c1f34d.js → throttle-f8ef830f.js} +2 -2
- package/dist/{tinycolor-88fa380f.js → tinycolor-78c3e3d5.js} +1 -1
- package/dist/{FormInputRow-9819eb71.js → tippy.esm-d2a6f864.js} +285 -285
- package/dist/{tsMode-4c026047.js → tsMode-7fcdffc4.js} +7 -7
- package/dist/{typescript-baf56f67.js → typescript-f492bdab.js} +7 -7
- package/dist/{utils-6670dea6.js → utils-aab0bc31.js} +1 -1
- package/dist/{vuedraggable.umd-d7138234.js → vuedraggable.umd-eb01eee5.js} +41 -41
- package/dist/{xml-ffc6146a.js → xml-976a8723.js} +7 -7
- package/package.json +3 -2
- package/stats.html +1 -1
- package/vite-plugin-library-asset-external/index.js +134 -0
- package/dist/DocForm-9ca24de4.js +0 -6772
- package/dist/ErrorCallout-60d0b3ab.js +0 -30
- package/dist/Index-b020a80c.js +0 -47
- package/dist/Index-e80f5f9c.js +0 -79
- package/dist/PriceHeader-e357afe9.js +0 -336
- package/dist/VideoSelectModal-d2299552.js +0 -111
- package/dist/simplebar.min-3af55aab.js +0 -2429
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { k as h, n as f, j as g } from "./main-2dc98356.js";
|
|
2
|
+
import { B as _, a as y } from "./index-6eda8be0.js";
|
|
3
|
+
import x from "./VideoPlayerInput-fe87698e.js";
|
|
4
|
+
import "./CDropdownItem-5532f8af.js";
|
|
5
|
+
import "./throttle-f8ef830f.js";
|
|
6
|
+
import "./dom-068d1a7b.js";
|
|
7
|
+
import "./simplebar.min-9f5e0b8a.js";
|
|
8
|
+
import "./utils-aab0bc31.js";
|
|
9
|
+
const V = h.pexels.id, b = {
|
|
10
|
+
name: "VideoSelectModal",
|
|
11
|
+
i18nOptions: {
|
|
12
|
+
namespaces: "videoSelectModal",
|
|
13
|
+
messages: {
|
|
14
|
+
en: {
|
|
15
|
+
creditVideos: "Videos from {{thing}}",
|
|
16
|
+
tabLink: "Use link"
|
|
17
|
+
},
|
|
18
|
+
sv: {
|
|
19
|
+
creditVideos: "Videor från {{thing}}",
|
|
20
|
+
tabLink: "Egen länk"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
components: {
|
|
25
|
+
BackgroundModal: _,
|
|
26
|
+
BackgroundList: y,
|
|
27
|
+
VideoPlayerInput: x
|
|
28
|
+
},
|
|
29
|
+
data() {
|
|
30
|
+
return {
|
|
31
|
+
activeTab: "pexels",
|
|
32
|
+
selectedVideo: null,
|
|
33
|
+
customVideo: null
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
async fetch({ query: a, page: t }) {
|
|
38
|
+
const { data: e } = await g.get("https://api.pexels.com/videos/search", {
|
|
39
|
+
headers: {
|
|
40
|
+
Authorization: V
|
|
41
|
+
},
|
|
42
|
+
params: {
|
|
43
|
+
page: t,
|
|
44
|
+
per_page: 12,
|
|
45
|
+
query: a
|
|
46
|
+
}
|
|
47
|
+
}), s = (o, i) => o.height < i.height || o.width < i.width ? -1 : 1, u = (o) => (o.find(({ height: i }) => i > 1e3 && i < 1200) || {}).link;
|
|
48
|
+
return {
|
|
49
|
+
items: (e.videos || []).map(({
|
|
50
|
+
id: o,
|
|
51
|
+
image: i,
|
|
52
|
+
video_files: c = [],
|
|
53
|
+
user: d
|
|
54
|
+
}) => {
|
|
55
|
+
const { sd: m, hd: p } = (c || []).sort(s).reduce((r, l) => (r[l.quality] && l.link && r[l.quality].push(l.link), r), { sd: [], hd: [] }), [v] = m;
|
|
56
|
+
let n = u(c);
|
|
57
|
+
return n || ([n] = p.length ? p : m.slice(-1)), {
|
|
58
|
+
id: `${o}`,
|
|
59
|
+
image: i,
|
|
60
|
+
minImage: i,
|
|
61
|
+
video: n,
|
|
62
|
+
minVideo: v,
|
|
63
|
+
userName: d.name,
|
|
64
|
+
userLink: d.link
|
|
65
|
+
};
|
|
66
|
+
}),
|
|
67
|
+
total: e.total_results
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
selectVideo(a) {
|
|
71
|
+
const {
|
|
72
|
+
id: t,
|
|
73
|
+
image: e,
|
|
74
|
+
video: s
|
|
75
|
+
} = a || {};
|
|
76
|
+
this.selectedVideo = {
|
|
77
|
+
id: t,
|
|
78
|
+
url: s,
|
|
79
|
+
thumbnail: e,
|
|
80
|
+
provider: "pexels"
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
onSave() {
|
|
84
|
+
const a = this.activeTab === "pexels" ? this.selectedVideo : this.customVideo;
|
|
85
|
+
this.$emit("input", a), this.$parent && this.$parent.$emit("input", a), this.$emit("close");
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
var w = function() {
|
|
90
|
+
var t = this, e = t._self._c;
|
|
91
|
+
return e("BackgroundModal", [e("div", { staticClass: "flex items-center justify-center w-full", staticStyle: { padding: "calc(0.25 * var(--rem)) calc(1 * var(--rem))", "border-bottom": "1px solid hsl(0, 0%, 88%)" }, attrs: { slot: "header" }, slot: "header" }, [e("CButton", { staticStyle: { "font-size": "15px", "font-weight": "700", opacity: "0.5", "box-shadow": "none" }, style: t.activeTab === "pexels" && { opacity: 1 }, on: { click: function(s) {
|
|
92
|
+
t.activeTab = "pexels";
|
|
93
|
+
} } }, [e("span", { staticStyle: { display: "inline-flex", "align-items": "center" } }, [e("svg", { staticStyle: { "margin-right": "calc(0.5 * var(--rem))" }, attrs: { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", viewBox: "0 0 32 32" } }, [e("path", { attrs: { d: "M2 0h28a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z", fill: "#05A081" } }), e("path", { attrs: { d: "M13 21h3.863v-3.752h1.167a3.124 3.124 0 1 0 0-6.248H13v10zm5.863 2H11V9h7.03a5.124 5.124 0 0 1 .833 10.18V23z", fill: "#fff" } })]), t._v(" " + t._s(t.$t("_common:video").capitalize()) + " ")])]), e("CButton", { staticStyle: { "font-size": "15px", "font-weight": "700", opacity: "0.5", "box-shadow": "none" }, style: t.activeTab === "customUrl" && { opacity: 1 }, on: { click: function(s) {
|
|
94
|
+
t.activeTab = "customUrl";
|
|
95
|
+
} } }, [e("span", { staticStyle: { display: "inline-flex", "align-items": "center" } }, [e("svg", { staticStyle: { "margin-right": "calc(0.5 * var(--rem))" }, attrs: { width: "28", height: "28", xmlns: "http://www.w3.org/2000/svg", version: "1.1", x: "0", y: "0", "xml:space": "preserve", viewBox: "0 0 71.412 50" } }, [e("g", { attrs: { transform: "scale(.58824)" } }, [e("path", { attrs: { d: "M118.9 13.3c-1.4-5.2-5.5-9.3-10.7-10.7C98.7 0 60.7 0 60.7 0s-38 0-47.5 2.5C8.1 3.9 3.9 8.1 2.5 13.3 0 22.8 0 42.5 0 42.5s0 19.8 2.5 29.2C3.9 76.9 8 81 13.2 82.4 22.8 85 60.7 85 60.7 85s38 0 47.5-2.5c5.2-1.4 9.3-5.5 10.7-10.7 2.5-9.5 2.5-29.2 2.5-29.2s.1-19.8-2.5-29.3z", fill: "red", "fill-opacity": "1" } }), e("path", { attrs: { fill: "#fff", d: "M80.2 42.5L48.6 24.3v36.4z" } })])]), t._v(" " + t._s(t.$t("tabLink").capitalize()) + " ")])])], 1), t.activeTab === "pexels" ? e("BackgroundList", { attrs: { fetch: t.fetch, "credit-text": t.$t("creditVideos", { thing: "Pexels" }), "default-query": "nature" }, on: { select: t.selectVideo } }, [e("CButton", { staticStyle: { "margin-left": "0.5em" }, attrs: { slot: "footer", disable: !t.selectedVideo, type: "secondary" }, on: { click: t.onSave }, slot: "footer" }, [t._v(" " + t._s(t.$t("_common:save")) + " ")])], 1) : e("div", { staticClass: "flex flex-col items-center justify-center w-full" }, [e("div", { staticStyle: { "max-width": "500px", width: "100%", margin: "0 auto", "padding-top": "calc(3 * var(--rem))" } }, [e("div", { staticStyle: { position: "relative", width: "100%", "padding-top": "56.25%", "background-color": "hsl(var(--gray-color-100) / 1)", "border-radius": "0.5em", "margin-bottom": "calc(1.5 * var(--rem))" } }, [t.customVideo ? e("iframe", { staticClass: "custom-video-preview", attrs: { src: t.customVideo.url } }) : t._e()]), e("VideoPlayerInput", { attrs: { filled: !0, "video-options": { background: !0 } }, model: { value: t.customVideo, callback: function(s) {
|
|
96
|
+
t.customVideo = s;
|
|
97
|
+
}, expression: "customVideo" } }, [e("CButton", { attrs: { disable: !t.customVideo, type: "secondary" }, on: { click: t.onSave } }, [t._v(" " + t._s(t.$t("_common:save")) + " ")])], 1)], 1)])], 1);
|
|
98
|
+
}, k = [], S = /* @__PURE__ */ f(
|
|
99
|
+
b,
|
|
100
|
+
w,
|
|
101
|
+
k,
|
|
102
|
+
!1,
|
|
103
|
+
null,
|
|
104
|
+
"8d77a3bb",
|
|
105
|
+
null,
|
|
106
|
+
null
|
|
107
|
+
);
|
|
108
|
+
const j = S.exports;
|
|
109
|
+
export {
|
|
110
|
+
j as default
|
|
111
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as r } from "./main-
|
|
2
|
-
import { w as l } from "./CDropdownItem-
|
|
1
|
+
import { b as r } from "./main-2dc98356.js";
|
|
2
|
+
import { w as l } from "./CDropdownItem-5532f8af.js";
|
|
3
3
|
const m = ({ documentKey: s = "document" } = {}) => ({
|
|
4
4
|
mixins: [l],
|
|
5
5
|
inject: {
|
|
@@ -26,7 +26,7 @@ const m = ({ documentKey: s = "document" } = {}) => ({
|
|
|
26
26
|
const o = t === "decline" ? !0 : this.isValid();
|
|
27
27
|
if (!i.isPreview && !o)
|
|
28
28
|
return;
|
|
29
|
-
const n = this.mq === "sm" ? "100%" : "auto", a = () => import("./AnswerModal-
|
|
29
|
+
const n = this.mq === "sm" ? "100%" : "auto", a = () => import("./AnswerModal-5f83562b.js");
|
|
30
30
|
this.$modal.show(
|
|
31
31
|
a,
|
|
32
32
|
{
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var Le = Object.defineProperty;
|
|
2
2
|
var Fe = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var E = (e, n, i) => (Fe(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as je } from "./Index-
|
|
5
|
-
import "./mapFormMixin-
|
|
6
|
-
import "./main-
|
|
7
|
-
import "./throttle-
|
|
8
|
-
import "./CDropdownItem-
|
|
4
|
+
import { m as je } from "./Index-c038406f.js";
|
|
5
|
+
import "./mapFormMixin-4ac649c2.js";
|
|
6
|
+
import "./main-2dc98356.js";
|
|
7
|
+
import "./throttle-f8ef830f.js";
|
|
8
|
+
import "./CDropdownItem-5532f8af.js";
|
|
9
9
|
import "./splitpanes-ba7897bf.js";
|
|
10
|
-
import "./
|
|
11
|
-
import "./template-
|
|
10
|
+
import "./DocumentLayout-ae49ac7a.js";
|
|
11
|
+
import "./template-069f0890.js";
|
|
12
12
|
/*!-----------------------------------------------------------------------------
|
|
13
13
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
14
14
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const c = {}, u = {};
|
|
2
|
+
function m(t) {
|
|
3
|
+
if (u[t])
|
|
4
|
+
return;
|
|
5
|
+
if (c[t])
|
|
6
|
+
return c[t];
|
|
7
|
+
const e = new Promise((r, n) => {
|
|
8
|
+
const s = document.createElement("script"), i = window.setTimeout(() => {
|
|
9
|
+
c[t] = null, n(new Error(`Failed to load ${t} in 20s`));
|
|
10
|
+
}, 2e4);
|
|
11
|
+
s.onload = () => {
|
|
12
|
+
i && window.clearTimeout(i), u[t] = !0, c[t] = null, r();
|
|
13
|
+
}, s.onerror = (d) => {
|
|
14
|
+
i && window.clearTimeout(i), c[t] = null, n(d);
|
|
15
|
+
}, s.src = t, document.body.appendChild(s);
|
|
16
|
+
});
|
|
17
|
+
return c[t] = e, e;
|
|
18
|
+
}
|
|
19
|
+
function w(t) {
|
|
20
|
+
const e = t.getBoundingClientRect(), r = window.innerHeight || document.documentElement.clientHeight, n = window.innerWidth || document.documentElement.clientWidth, s = e.top <= r && e.top + e.height >= 0, i = e.left <= n && e.left + e.width >= 0;
|
|
21
|
+
return s && i;
|
|
22
|
+
}
|
|
23
|
+
const a = (t) => {
|
|
24
|
+
const e = /(auto|scroll)/, r = (o, l) => o.parentNode === null ? l : r(o.parentNode, l.concat([o])), n = (o, l) => getComputedStyle(o, null).getPropertyValue(l), s = (o) => n(o, "overflow") + n(o, "overflow-y") + n(o, "overflow-x"), i = (o) => e.test(s(o));
|
|
25
|
+
return ((o) => {
|
|
26
|
+
if (!(o instanceof HTMLElement || o instanceof SVGElement))
|
|
27
|
+
return null;
|
|
28
|
+
const l = r(o.parentNode, []);
|
|
29
|
+
for (let f = 0; f < l.length; f += 1)
|
|
30
|
+
if (i(l[f]))
|
|
31
|
+
return l[f];
|
|
32
|
+
return document.scrollingElement || document.documentElement;
|
|
33
|
+
})(t);
|
|
34
|
+
}, p = (t) => {
|
|
35
|
+
let e = 0;
|
|
36
|
+
for (; t; )
|
|
37
|
+
e += t.offsetTop, t = t.offsetParent;
|
|
38
|
+
return e;
|
|
39
|
+
};
|
|
40
|
+
function h(t, e) {
|
|
41
|
+
let r = t;
|
|
42
|
+
typeof r == "string" && (r = document.querySelector(r));
|
|
43
|
+
const n = {
|
|
44
|
+
offset: 0,
|
|
45
|
+
behavior: "smooth",
|
|
46
|
+
body: a(r),
|
|
47
|
+
// custom option used for choosing parent scroll element
|
|
48
|
+
...e
|
|
49
|
+
}, s = p(r);
|
|
50
|
+
HTMLElement.prototype.scrollTo ? n.body.scrollTo({
|
|
51
|
+
behavior: n.behavior,
|
|
52
|
+
top: s - n.offset
|
|
53
|
+
}) : n.body.scrollTop = s - n.offset;
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
m as e,
|
|
57
|
+
w as i,
|
|
58
|
+
h as s
|
|
59
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { b as H, m as f } from "./vuex.esm-4a0fff7c.js";
|
|
2
|
-
import { s as q } from "./simplebar.min-
|
|
3
|
-
import { m as u } from "./mapFormMixin-
|
|
4
|
-
import { B as O } from "./BaseDatePicker-
|
|
5
|
-
import { E as j } from "./ErrorCallout-
|
|
6
|
-
import { n as r,
|
|
7
|
-
import Y from "./AddClientCallout-
|
|
8
|
-
import G from "./ClientModal-
|
|
9
|
-
import { c as J, r as Z, g as ee, C as p, b as h, e as m } from "./CDropdownItem-
|
|
10
|
-
import { S as te } from "./CSlider.vue_vue_type_style_index_0_lang-
|
|
11
|
-
import { C as _ } from "./CCallout-
|
|
12
|
-
import { C as z } from "./CField-
|
|
2
|
+
import { s as q } from "./simplebar.min-9f5e0b8a.js";
|
|
3
|
+
import { m as u } from "./mapFormMixin-4ac649c2.js";
|
|
4
|
+
import { B as O } from "./BaseDatePicker-ae7aebf1.js";
|
|
5
|
+
import { E as j } from "./ErrorCallout-c7f69cd9.js";
|
|
6
|
+
import { n as r, al as I, am as v, h as K, b as d, an as W, l as X, ao as U, ap as Q, o as T, aq as P, ar as R, c as M, A as y } from "./main-2dc98356.js";
|
|
7
|
+
import Y from "./AddClientCallout-d8f5bc53.js";
|
|
8
|
+
import G from "./ClientModal-da9fddf9.js";
|
|
9
|
+
import { c as J, r as Z, g as ee, C as p, b as h, e as m } from "./CDropdownItem-5532f8af.js";
|
|
10
|
+
import { S as te } from "./CSlider.vue_vue_type_style_index_0_lang-d9c2f582.js";
|
|
11
|
+
import { C as _ } from "./CCallout-04e2c8c6.js";
|
|
12
|
+
import { C as z } from "./CField-0bc9de28.js";
|
|
13
13
|
import { r as o } from "./regions-29ee6964.js";
|
|
14
14
|
const ie = {
|
|
15
15
|
name: "DocumentSendReminderItem",
|
|
@@ -117,7 +117,7 @@ const re = ae.exports, oe = {
|
|
|
117
117
|
};
|
|
118
118
|
var le = function() {
|
|
119
119
|
var e = this, i = e._self._c;
|
|
120
|
-
return i("div", { staticStyle: { "background-color": "white", "border-radius": "0.
|
|
120
|
+
return i("div", { staticStyle: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(2 * var(--rem))", "font-size": "16px" } }, [i("div", { staticStyle: { "font-size": "1.25em", "font-weight": "700", "margin-bottom": "0.25em", "text-align": "center" } }, [e._v(" " + e._s(e.$t("_common:reminder_plural").capitalize()) + " ")]), i("div", { staticClass: "text-center text-gray-600", staticStyle: { "max-width": "calc(20 * var(--rem))", margin: "0 auto calc(2 * var(--rem)) auto" } }, [e._v(" " + e._s(e.$t("description")) + " ")]), e._l([
|
|
121
121
|
{ type: "notViewed", fallbackKey: "viewed" },
|
|
122
122
|
{ type: "notAnswered", fallbackKey: "reminder" },
|
|
123
123
|
{ type: "expires", fallbackKey: "expires" }
|
|
@@ -125,7 +125,7 @@ var le = function() {
|
|
|
125
125
|
return i("DocumentSendReminderItem", { key: n, attrs: { label: e.$t(s.type), value: e.reminders[s.type] ? e.reminders[s.type].sendDays : 0, done: e.reminders[s.type] && e.reminders[s.type].status === "successful" }, on: { input: function(a) {
|
|
126
126
|
return e.setReminder(e.reminders[s.type] || s.fallbackKey, a);
|
|
127
127
|
} } });
|
|
128
|
-
}), i("div", { staticClass: "flex items-center justify-center w-full", staticStyle: { "margin-top": "2.
|
|
128
|
+
}), i("div", { staticClass: "flex items-center justify-center w-full", staticStyle: { "margin-top": "calc(2.5 * var(--rem))" } }, [i("CButton", { attrs: { type: "secondary", expanded: "" }, on: { click: function(s) {
|
|
129
129
|
return e.$emit("close");
|
|
130
130
|
} } }, [e._v(" " + e._s(e.$t("_common:save")) + " ")])], 1)], 2);
|
|
131
131
|
}, de = [], ce = /* @__PURE__ */ r(
|
|
@@ -274,7 +274,7 @@ var pe = function() {
|
|
|
274
274
|
return i("div", { key: n, staticClass: "bg-gray-50 border border-gray-200 p-4 rounded-md mb-4 cursor-pointer flex items-center justify-between text-sm hover:bg-gray-100 hover:border-gray-300 active:bg-gray-200 active:border-gray-400 select-none", on: { click: () => e.onSendAt(s[0]) } }, [i("div", { staticClass: "font-medium" }, [e._v(e._s(e.$t(s[1])))]), i("div", { staticClass: "text-gray-500" }, [e._v(" " + e._s(e.$formatDate(s[0], "p, d MMM")) + " ")])]);
|
|
275
275
|
}), 0)]), i("div", { staticClass: "px-8 py-6 bg-gray-100 border-t border-gray-200", class: e.showCustom ? "" : "cursor-pointer hover:bg-gray-200", on: { click: function(s) {
|
|
276
276
|
e.showCustom = !0;
|
|
277
|
-
} } }, [i("div", { staticClass: "flex items-center text-sm" }, [i("BaseIcon", { staticClass: "text-primary-500 mr-2", attrs: { type: "calendar", size: "18" } }), i("div", { staticClass: "font-medium", domProps: { textContent: e._s(e.$t("custom.title")) } })], 1), i("Animation", [i("div", { directives: [{ name: "show", rawName: "v-show", value: e.showCustom, expression: "showCustom" }], staticClass: "mt-4" }, [i("div", { staticClass: "grid grid-cols-2 gap-4" }, [i("BaseDatePicker", { attrs: { value: e.sendAt }, on: { input: e.setDate } }), i("CInput", { attrs: { value: e.$formatDate(e.sendAt, "HH:mm"), clearable: !1, type: "time" }, on: { input: e.setTime } })], 1), e.$v.$invalid ? i("div", { staticClass: "error-wrapper" }, [i("BaseIcon", { staticClass: "mr-2 text-primary-500", attrs: { type: "calendar" } }), e._v(" " + e._s(e.$t("custom.invalid")) + " ")], 1) : e._e(), i("CButton", { staticStyle: { "margin-top": "1.
|
|
277
|
+
} } }, [i("div", { staticClass: "flex items-center text-sm" }, [i("BaseIcon", { staticClass: "text-primary-500 mr-2", attrs: { type: "calendar", size: "18" } }), i("div", { staticClass: "font-medium", domProps: { textContent: e._s(e.$t("custom.title")) } })], 1), i("Animation", [i("div", { directives: [{ name: "show", rawName: "v-show", value: e.showCustom, expression: "showCustom" }], staticClass: "mt-4" }, [i("div", { staticClass: "grid grid-cols-2 gap-4" }, [i("BaseDatePicker", { attrs: { value: e.sendAt }, on: { input: e.setDate } }), i("CInput", { attrs: { value: e.$formatDate(e.sendAt, "HH:mm"), clearable: !1, type: "time" }, on: { input: e.setTime } })], 1), e.$v.$invalid ? i("div", { staticClass: "error-wrapper" }, [i("BaseIcon", { staticClass: "mr-2 text-primary-500", attrs: { type: "calendar" } }), e._v(" " + e._s(e.$t("custom.invalid")) + " ")], 1) : e._e(), i("CButton", { staticStyle: { "margin-top": "calc(1.5 * var(--rem))" }, attrs: { loading: e.isPostingDocument || e.isPostingProject, type: "secondary", wide: "" }, on: { click: function(s) {
|
|
278
278
|
return e.onSendAt(e.sendAt);
|
|
279
279
|
} } }, [e._v(" " + e._s(e.$t("_common:send")) + " " + e._s(e.$formatDate(e.sendAt, "d MMM - p")) + " ")])], 1)])], 1)]);
|
|
280
280
|
}, he = [], fe = /* @__PURE__ */ r(
|
|
@@ -283,7 +283,7 @@ var pe = function() {
|
|
|
283
283
|
he,
|
|
284
284
|
!1,
|
|
285
285
|
null,
|
|
286
|
-
"
|
|
286
|
+
"3b80f637",
|
|
287
287
|
null,
|
|
288
288
|
null
|
|
289
289
|
);
|
|
@@ -340,13 +340,13 @@ var ye = function() {
|
|
|
340
340
|
return n.preventDefault(), n.stopPropagation(), e.$emit("move", -1);
|
|
341
341
|
} } }), i("CButton", { staticClass: "rc-order__button down", attrs: { type: "none", pattern: "primary", circle: "", raised: "", size: "small", icon: "plus" }, on: { click: function(n) {
|
|
342
342
|
return n.preventDefault(), n.stopPropagation(), e.$emit("move", 1);
|
|
343
|
-
} } }), i("div", { staticClass: "rc-order" }, [e._v(" " + e._s(e.client.signOrder) + " ")])], 1) : i("BaseIcon", { staticClass: "text-primary-500", staticStyle: { "margin-right": "8px", flex: "0 0 18px" }, attrs: { type: e.isSender ? "send" : ["signee", "approver"].includes(e.client.documentRole) ? "pen-tool" : "eye", size: "18" } })], 1), i("div", { staticClass: "rc-data truncate-text" }, [e.client.name || e.client.companyName ? i("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.client.name || e.client.companyName) + " ")]) : e.isSender ? i("div", { staticClass: "text-gray-500" }, [e._v(" " + e._s(e.$t("_common:empty", { thing: e.$t("_common:reference") })) + " ")]) : i("div", { staticClass: "text-gray-500" }, [e._v(" " + e._s(e.$t("_common:missing", { thing: e.$t("_common:name") })) + " ")]), i("div", { staticClass: "text-gray-700", staticStyle: { "font-size": "12px" } }, [e.isSender ? [e.isSender ? i("span", [e._v(" " + e._s(e.$t("_common:documentRole.sender.description")) + " ")]) : e._e(), e.client.documentRole === "signee" ? i("span", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.client.documentRole}.description`)) + " ")]) : e._e()] : [((s = e.client.answerMethod) == null ? void 0 : s.accept) === "inPerson" ? i("span", { staticClass: "text-red-500" }, [e._v(" " + e._s(e.$t("_common:signMethod.title")) + ": "), i("span", [e._v(" " + e._s(e.$t("_common:signMethod.inPerson")) + " ")])]) : e._e(), e.client.documentRole ? i("span", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.client.documentRole}.description`)) + " ")]) : e._e(), e.client.email ? i("span", [e._v(e._s(e.client.email))]) : e._e(), e.client.cellphone ? i("span", [e._v(e._s(e.client.cellphone))]) : e._e()]], 2)])], e.rightButton ? i("transition", { attrs: { name: "fade-100" } }, [e.isHover || e.isDropdownOpen ? [e.isSender ? i("CDropdown", { ref: "dropdown", staticStyle: { position: "absolute", right: "0.
|
|
343
|
+
} } }), i("div", { staticClass: "rc-order" }, [e._v(" " + e._s(e.client.signOrder) + " ")])], 1) : i("BaseIcon", { staticClass: "text-primary-500", staticStyle: { "margin-right": "8px", flex: "0 0 18px" }, attrs: { type: e.isSender ? "send" : ["signee", "approver"].includes(e.client.documentRole) ? "pen-tool" : "eye", size: "18" } })], 1), i("div", { staticClass: "rc-data truncate-text" }, [e.client.name || e.client.companyName ? i("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.client.name || e.client.companyName) + " ")]) : e.isSender ? i("div", { staticClass: "text-gray-500" }, [e._v(" " + e._s(e.$t("_common:empty", { thing: e.$t("_common:reference") })) + " ")]) : i("div", { staticClass: "text-gray-500" }, [e._v(" " + e._s(e.$t("_common:missing", { thing: e.$t("_common:name") })) + " ")]), i("div", { staticClass: "text-gray-700", staticStyle: { "font-size": "12px" } }, [e.isSender ? [e.isSender ? i("span", [e._v(" " + e._s(e.$t("_common:documentRole.sender.description")) + " ")]) : e._e(), e.client.documentRole === "signee" ? i("span", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.client.documentRole}.description`)) + " ")]) : e._e()] : [((s = e.client.answerMethod) == null ? void 0 : s.accept) === "inPerson" ? i("span", { staticClass: "text-red-500" }, [e._v(" " + e._s(e.$t("_common:signMethod.title")) + ": "), i("span", [e._v(" " + e._s(e.$t("_common:signMethod.inPerson")) + " ")])]) : e._e(), e.client.documentRole ? i("span", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.client.documentRole}.description`)) + " ")]) : e._e(), e.client.email ? i("span", [e._v(e._s(e.client.email))]) : e._e(), e.client.cellphone ? i("span", [e._v(e._s(e.client.cellphone))]) : e._e()]], 2)])], e.rightButton ? i("transition", { attrs: { name: "fade-100" } }, [e.isHover || e.isDropdownOpen ? [e.isSender ? i("CDropdown", { ref: "dropdown", staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))" }, attrs: { position: "is-bottom-left", "menu-styling": {
|
|
344
344
|
width: "220px"
|
|
345
345
|
} }, on: { "active-change": function(n) {
|
|
346
346
|
e.isDropdownOpen = n;
|
|
347
347
|
} }, nativeOn: { click: function(n) {
|
|
348
348
|
n.stopPropagation();
|
|
349
|
-
} } }, [i("CButton", { attrs: { slot: "trigger", circle: "", size: "small", type: "none", pattern: "secondary", raised: "", icon: "more-horizontal" }, slot: "trigger" }), e._t("dropdownOptions")], 2) : i("CButton", { staticStyle: { position: "absolute", right: "0.
|
|
349
|
+
} } }, [i("CButton", { attrs: { slot: "trigger", circle: "", size: "small", type: "none", pattern: "secondary", raised: "", icon: "more-horizontal" }, slot: "trigger" }), e._t("dropdownOptions")], 2) : i("CButton", { staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))" }, attrs: { circle: "", size: "small", icon: "x", type: "none", pattern: "secondary", raised: "" }, on: { click: function(n) {
|
|
350
350
|
return n.stopPropagation(), e.$emit("remove");
|
|
351
351
|
} } })] : e._e()], 2) : e._e()], 2);
|
|
352
352
|
}, _e = [], be = /* @__PURE__ */ r(
|
|
@@ -355,7 +355,7 @@ var ye = function() {
|
|
|
355
355
|
_e,
|
|
356
356
|
!1,
|
|
357
357
|
null,
|
|
358
|
-
"
|
|
358
|
+
"4102ea12",
|
|
359
359
|
null,
|
|
360
360
|
null
|
|
361
361
|
);
|
|
@@ -450,7 +450,7 @@ const Ce = {
|
|
|
450
450
|
};
|
|
451
451
|
var we = function() {
|
|
452
452
|
var e = this, i = e._self._c;
|
|
453
|
-
return e.senderClientData ? i("RecipientBlockItem", { staticClass: "first-of-group last-of-group", staticStyle: { display: "inline-flex", width: "auto", "padding-right": "2em", "min-width": "220px" }, attrs: { client: e.senderClientData, "right-button": e.allowSenderSign, "is-sender": !0 } }, [i("template", { slot: "dropdownOptions" }, [i("CDropdownItem", { attrs: { value: !!e.senderClient, "close-on-click": !1, toggle: "" }, on: { input: e.toggleSenderSign } }, [e._v(" " + e._s(e.$t("toggle.label")) + " ")]), e.senderClient ? [i("CDropdownItem", { attrs: { separator: "" } }), i("div", { staticClass: "
|
|
453
|
+
return e.senderClientData ? i("RecipientBlockItem", { staticClass: "first-of-group last-of-group", staticStyle: { display: "inline-flex", width: "auto", "padding-right": "2em", "min-width": "220px" }, attrs: { client: e.senderClientData, "right-button": e.allowSenderSign, "is-sender": !0 } }, [i("template", { slot: "dropdownOptions" }, [i("CDropdownItem", { attrs: { value: !!e.senderClient, "close-on-click": !1, toggle: "" }, on: { input: e.toggleSenderSign } }, [e._v(" " + e._s(e.$t("toggle.label")) + " ")]), e.senderClient ? [i("CDropdownItem", { attrs: { separator: "" } }), i("div", { staticClass: "text-gray-400", staticStyle: { "font-size": "13px", padding: "calc(0.5 * var(--rem)) 0 calc(0.25 * var(--rem)) calc(1 * var(--rem))", "font-weight": "500" } }, [e._v(" " + e._s(e.$t("_common:signMethod.title")) + " ")]), e._l([
|
|
454
454
|
"login",
|
|
455
455
|
"signature",
|
|
456
456
|
...e.feature("bankId") ? ["bankId"] : []
|
|
@@ -458,14 +458,14 @@ var we = function() {
|
|
|
458
458
|
return i("CDropdownItem", { key: s, attrs: { "icon-right": e.get(e.senderClient, "answerMethod.accept") === s ? "check" : "" }, on: { click: function(n) {
|
|
459
459
|
return e.setSenderMethod(s);
|
|
460
460
|
} } }, [e._v(" " + e._s(e.$t(`_common:signMethod.${s}`)) + " ")]);
|
|
461
|
-
})] : i("div", { staticClass: "
|
|
461
|
+
})] : i("div", { staticClass: "text-gray-700 bg-gray-100", staticStyle: { padding: "calc(0.5 * var(--rem))", margin: "calc(0.5 * var(--rem))", "font-size": "13px", "border-radius": "4px", "line-height": "1.25", "font-weight": "500" } }, [e._v(" " + e._s(e.$t("toggle.description")) + " ")])], 2)], 2) : e._e();
|
|
462
462
|
}, xe = [], $e = /* @__PURE__ */ r(
|
|
463
463
|
Ce,
|
|
464
464
|
we,
|
|
465
465
|
xe,
|
|
466
466
|
!1,
|
|
467
467
|
null,
|
|
468
|
-
"
|
|
468
|
+
"f5277e62",
|
|
469
469
|
null,
|
|
470
470
|
null
|
|
471
471
|
);
|
|
@@ -1641,7 +1641,7 @@ var ct = function() {
|
|
|
1641
1641
|
ut,
|
|
1642
1642
|
!1,
|
|
1643
1643
|
null,
|
|
1644
|
-
"
|
|
1644
|
+
"839e1835",
|
|
1645
1645
|
null,
|
|
1646
1646
|
null
|
|
1647
1647
|
);
|
|
@@ -1828,7 +1828,7 @@ var ft = function() {
|
|
|
1828
1828
|
gt,
|
|
1829
1829
|
!1,
|
|
1830
1830
|
null,
|
|
1831
|
-
"
|
|
1831
|
+
"08518f65",
|
|
1832
1832
|
null,
|
|
1833
1833
|
null
|
|
1834
1834
|
);
|
|
@@ -1939,7 +1939,7 @@ const V = Ct.exports, wt = {
|
|
|
1939
1939
|
}
|
|
1940
1940
|
};
|
|
1941
1941
|
var xt = function(e, i) {
|
|
1942
|
-
return e("div", { class: [i.data.class, i.data.staticClass], staticStyle: { padding: "0.75em 1em", display: "flex", "align-items": "flex-start", "border-radius": "0.6em", "background-color": "hsl(
|
|
1942
|
+
return e("div", { class: [i.data.class, i.data.staticClass], staticStyle: { padding: "0.75em 1em", display: "flex", "align-items": "flex-start", "border-radius": "0.6em", "background-color": "hsl(var(--gray-color-100) / 1)" }, style: { ...i.data.staticStyle } }, [e("div", { class: [
|
|
1943
1943
|
`has-background-${i.props.type}`
|
|
1944
1944
|
], staticStyle: { display: "inline-block", padding: "0.5em", "border-radius": "0.45em", "font-weight": "700", color: "white", "line-height": "1", "font-size": "12px", "margin-right": "1.25em" } }, [i._v(" " + i._s(i.props.badge || i.parent.$t("components:cling.message.tip")) + " ")]), e("div", { staticStyle: { color: "hsl(0, 0%, 25%)" } }, [i.props.text ? [i._v(" " + i._s(i.props.text) + " ")] : i._e(), i._t("default")], 2)]);
|
|
1945
1945
|
}, $t = [], St = /* @__PURE__ */ r(
|
|
@@ -1948,7 +1948,7 @@ var xt = function(e, i) {
|
|
|
1948
1948
|
$t,
|
|
1949
1949
|
!0,
|
|
1950
1950
|
null,
|
|
1951
|
-
"
|
|
1951
|
+
"a14c1e41",
|
|
1952
1952
|
null,
|
|
1953
1953
|
null
|
|
1954
1954
|
);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { h as n } from "./main-2dc98356.js";
|
|
2
|
+
import { s as l } from "./dom-068d1a7b.js";
|
|
3
|
+
const s = (r) => {
|
|
4
|
+
var i;
|
|
5
|
+
const t = [];
|
|
6
|
+
return (i = r.$options) != null && i.validations && t.push(r), r.$children && r.$children.forEach((o) => t.push(...s(o))), t;
|
|
7
|
+
}, m = {
|
|
8
|
+
provide() {
|
|
9
|
+
return {
|
|
10
|
+
formValidation: {
|
|
11
|
+
isFormValid: this.isFormValid,
|
|
12
|
+
scrollToInvalidInput: this.scrollToInvalidInput
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
data() {
|
|
17
|
+
return {
|
|
18
|
+
_formItems: []
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
created() {
|
|
22
|
+
this._formItems = s(this);
|
|
23
|
+
},
|
|
24
|
+
methods: {
|
|
25
|
+
_getInvalidInputs() {
|
|
26
|
+
return this._formItems.filter((r) => {
|
|
27
|
+
var t;
|
|
28
|
+
return (t = r.$v) == null ? void 0 : t.$invalid;
|
|
29
|
+
});
|
|
30
|
+
},
|
|
31
|
+
isFormValid() {
|
|
32
|
+
return this._formItems.every((r) => {
|
|
33
|
+
var t, i;
|
|
34
|
+
return (t = r.$v) == null || t.$touch(), !((i = r.$v) != null && i.$invalid);
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
scrollToInvalidInput({ offset: r = 0 } = {}) {
|
|
38
|
+
try {
|
|
39
|
+
const [t] = this._getInvalidInputs();
|
|
40
|
+
t != null && t.$el && l(t.$el, { offset: r });
|
|
41
|
+
} catch (t) {
|
|
42
|
+
n(t);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
m as f
|
|
49
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { m as f } from "./Index-
|
|
2
|
-
import "./mapFormMixin-
|
|
3
|
-
import "./main-
|
|
4
|
-
import "./throttle-
|
|
5
|
-
import "./CDropdownItem-
|
|
1
|
+
import { m as f } from "./Index-c038406f.js";
|
|
2
|
+
import "./mapFormMixin-4ac649c2.js";
|
|
3
|
+
import "./main-2dc98356.js";
|
|
4
|
+
import "./throttle-f8ef830f.js";
|
|
5
|
+
import "./CDropdownItem-5532f8af.js";
|
|
6
6
|
import "./splitpanes-ba7897bf.js";
|
|
7
|
-
import "./
|
|
8
|
-
import "./template-
|
|
7
|
+
import "./DocumentLayout-ae49ac7a.js";
|
|
8
|
+
import "./template-069f0890.js";
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
11
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { m as i } from "./Index-
|
|
2
|
-
import "./mapFormMixin-
|
|
3
|
-
import "./main-
|
|
4
|
-
import "./throttle-
|
|
5
|
-
import "./CDropdownItem-
|
|
1
|
+
import { m as i } from "./Index-c038406f.js";
|
|
2
|
+
import "./mapFormMixin-4ac649c2.js";
|
|
3
|
+
import "./main-2dc98356.js";
|
|
4
|
+
import "./throttle-f8ef830f.js";
|
|
5
|
+
import "./CDropdownItem-5532f8af.js";
|
|
6
6
|
import "./splitpanes-ba7897bf.js";
|
|
7
|
-
import "./
|
|
8
|
-
import "./template-
|
|
7
|
+
import "./DocumentLayout-ae49ac7a.js";
|
|
8
|
+
import "./template-069f0890.js";
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
11
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { m as p } from "./Index-
|
|
2
|
-
import "./mapFormMixin-
|
|
3
|
-
import "./main-
|
|
4
|
-
import "./throttle-
|
|
5
|
-
import "./CDropdownItem-
|
|
1
|
+
import { m as p } from "./Index-c038406f.js";
|
|
2
|
+
import "./mapFormMixin-4ac649c2.js";
|
|
3
|
+
import "./main-2dc98356.js";
|
|
4
|
+
import "./throttle-f8ef830f.js";
|
|
5
|
+
import "./CDropdownItem-5532f8af.js";
|
|
6
6
|
import "./splitpanes-ba7897bf.js";
|
|
7
|
-
import "./
|
|
8
|
-
import "./template-
|
|
7
|
+
import "./DocumentLayout-ae49ac7a.js";
|
|
8
|
+
import "./template-069f0890.js";
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
11
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var Be = Object.defineProperty;
|
|
2
2
|
var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var E = (e, n, i) => ($e(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as qe } from "./Index-
|
|
5
|
-
import "./mapFormMixin-
|
|
6
|
-
import "./main-
|
|
7
|
-
import "./throttle-
|
|
8
|
-
import "./CDropdownItem-
|
|
4
|
+
import { m as qe } from "./Index-c038406f.js";
|
|
5
|
+
import "./mapFormMixin-4ac649c2.js";
|
|
6
|
+
import "./main-2dc98356.js";
|
|
7
|
+
import "./throttle-f8ef830f.js";
|
|
8
|
+
import "./CDropdownItem-5532f8af.js";
|
|
9
9
|
import "./splitpanes-ba7897bf.js";
|
|
10
|
-
import "./
|
|
11
|
-
import "./template-
|
|
10
|
+
import "./DocumentLayout-ae49ac7a.js";
|
|
11
|
+
import "./template-069f0890.js";
|
|
12
12
|
/*!-----------------------------------------------------------------------------
|
|
13
13
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
14
14
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|