@cling-se/widget 0.9.1 → 0.9.3
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-746899d9.js +57 -0
- package/dist/{AnswerModal-c22c6729.js → AnswerModal-fdfea0f8.js} +7 -5
- package/dist/{AttachmentItem-ab7c264b.js → AttachmentItem-5671c64d.js} +5 -7
- package/dist/BaseDatePicker-a9240306.js +3156 -0
- package/dist/{BaseInput-2b048506.js → BaseInput-d3c3688b.js} +4 -4
- package/dist/{BaseUpload-869cbd9a.js → BaseUpload-8e7a2b72.js} +3 -3
- package/dist/BlockMedia-b613a2a4.js +72 -0
- package/dist/CCallout-e9ff903a.js +52 -0
- package/dist/CDropdownItem-05d84f95.js +610 -0
- package/dist/CField-cd4dcae9.js +183 -0
- package/dist/CField.vue_vue_type_style_index_0_lang-4ed993c7.js +1 -0
- package/dist/CSlider.vue_vue_type_style_index_0_lang-383db616.js +83 -0
- package/dist/ClientAutocomplete-421a2216.js +80 -0
- package/dist/ClientModal-11341b1c.js +547 -0
- package/dist/ColorPicker-f90939b5.js +2881 -0
- package/dist/{CompanyModal-26243605.js → CompanyModal-2bfd21b8.js} +12 -11
- package/dist/{ContentWrapper-315b8ac7.js → ContentWrapper-4aae35b2.js} +21 -14
- package/dist/{CoverBlockSettings-ff4d5ccc.js → CoverBlockSettings-1f917be3.js} +7 -7
- package/dist/DocForm-0891c6b2.js +6767 -0
- package/dist/DocFormSend-2b35999d.js +135 -0
- package/dist/{DocModalBase-3d81e120.js → DocModalBase-225e2f2d.js} +1 -1
- package/dist/{DocReceipt-c9c5aefc.js → DocReceipt-1391c17a.js} +1 -1
- package/dist/{DocSendReminder-ab8e6f0f.js → DocSendReminder-c488842d.js} +1 -1
- package/dist/{DocTextEditor-88987249.js → DocTextEditor-2538e1ab.js} +16 -12
- package/dist/{DocTimeline-8e8a1b51.js → DocTimeline-69ada0de.js} +11 -11
- package/dist/DocumentClient-74b8f25b.js +145 -0
- package/dist/{DocumentLogotype-a777ea0d.js → DocumentLogotype-e89b53fb.js} +3 -3
- package/dist/{EmbedInput-4b92adae.js → EmbedInput-b7fefe5e.js} +10 -11
- package/dist/{EmbedSettings-0701c838.js → EmbedSettings-4957252f.js} +10 -11
- package/dist/ErrorCallout-42e45ec0.js +30 -0
- package/dist/{FilePreviewModal-fa0f4b2c.js → FilePreviewModal-75693619.js} +6 -7
- package/dist/FormInputRow-09d450e3.js +2045 -0
- package/dist/{HeaderSettings-3b1f470a.js → HeaderSettings-9b69eada.js} +23 -19
- package/dist/{ImageSelectModal-24b1d738.js → ImageSelectModal-94d4dc7f.js} +20 -18
- package/dist/{ImageUploadWrapper-f9d3ab48.js → ImageUploadWrapper-a144b042.js} +2 -2
- package/dist/{Index-a6d8cb6c.js → Index-00ef9241.js} +10 -10
- package/dist/{Index-17041bc1.js → Index-023c3119.js} +6 -7
- package/dist/{Index-1df9e104.js → Index-1bafafca.js} +2 -2
- package/dist/{Index-e9dcaa48.js → Index-2cb8fa22.js} +73 -118
- package/dist/{Index-9797765e.js → Index-304c45be.js} +21 -16
- package/dist/{Index-ec4600d0.js → Index-35387450.js} +52 -42
- package/dist/Index-37a9183b.js +28 -0
- package/dist/{Index-d21e1d0d.js → Index-3dff19dd.js} +7 -7
- package/dist/{Index-53f58582.js → Index-3ee2e944.js} +2 -2
- package/dist/{Index-41e37657.js → Index-42e26b46.js} +11 -11
- package/dist/{Index-36b91cfc.js → Index-4440fe3d.js} +6 -7
- package/dist/{Index-36fc26f9.js → Index-4563d3fa.js} +33 -31
- package/dist/{Index-9262d0cb.js → Index-53da7be8.js} +3 -3
- package/dist/{Index-bfc7f353.js → Index-62936c19.js} +16 -17
- package/dist/{Index-9a0239fe.js → Index-693005f0.js} +6 -7
- package/dist/{Index-5c0744c1.js → Index-78f13416.js} +6 -7
- package/dist/{Index-a01c2862.js → Index-90492f19.js} +5 -6
- package/dist/{Index-8bb9f798.js → Index-96f39afc.js} +6 -7
- package/dist/{Index-ee9ff714.js → Index-97d1f2f3.js} +8 -8
- package/dist/{Index-41e93dd5.js → Index-9a243eb8.js} +2 -2
- package/dist/{Index-01f77191.js → Index-9ffe9766.js} +11 -12
- package/dist/{Index-be520920.js → Index-a37beb03.js} +1 -1
- package/dist/{Index-e5ebcd2f.js → Index-a554b58c.js} +6 -7
- package/dist/{Index-aa1323ee.js → Index-a86ea774.js} +8 -9
- package/dist/{Index-c070cd5e.js → Index-abb8c6e4.js} +6 -6
- package/dist/{Index-74d98d97.js → Index-b7def77a.js} +8 -9
- package/dist/{Index-6f5192b8.js → Index-bcc478b3.js} +7 -8
- package/dist/{Index-033cd5ed.js → Index-cec7d4f1.js} +22 -15
- package/dist/{Index-560f7a0f.js → Index-d68a28da.js} +7 -7
- package/dist/{Index-5ba3dd14.js → Index-dbe97658.js} +2 -2
- package/dist/{Index-a5b8ec5c.js → Index-ec8d534f.js} +4 -6
- package/dist/{Index-013c4412.js → Index-f2b66b79.js} +6 -7
- package/dist/{Index-8ad015e2.js → Index-f453850f.js} +6 -7
- package/dist/{Index-78391f8b.js → Index-f9b5f03c.js} +27 -20
- package/dist/{InputToggleRow-9aa959ff.js → InputToggleRow-68320d9f.js} +1 -1
- package/dist/IsPremiumPreStep-0c7032a3.js +1919 -0
- package/dist/{MediaWrapper-03b27562.js → MediaWrapper-c50879c2.js} +4 -4
- package/dist/{NotBindingText-fb4e9ecb.js → NotBindingText-8f2d9244.js} +2 -2
- package/dist/{PackageGroup-821d41fa.js → PackageGroup-2c49e99b.js} +24 -17
- package/dist/{PdfTerms-4a29bcc9.js → PdfTerms-94153a5f.js} +6 -7
- package/dist/{PdfViewer-374bfe41.js → PdfViewer-701ad40e.js} +2 -2
- package/dist/{PlainHtml-65923dd4.js → PlainHtml-04a6d7f9.js} +1 -1
- package/dist/PriceHeader-7f92d5a7.js +336 -0
- package/dist/SearchApi-ffe5b697.js +148 -0
- package/dist/{TermsSettings-4a40aaa2.js → TermsSettings-b1bf19e9.js} +6 -6
- package/dist/{ThemeColorRow-72b7a35b.js → ThemeColorRow-913497f6.js} +7 -6
- package/dist/{ToggleBinding-00c37a9d.js → ToggleBinding-6518935d.js} +8 -9
- package/dist/{UploadModal-761770b9.js → UploadModal-3c399d25.js} +21 -22
- package/dist/{VideoPlayerInput-6692fe27.js → VideoPlayerInput-b54845a4.js} +5 -6
- package/dist/{VideoPlayerSettings-2b7a8a39.js → VideoPlayerSettings-496e9e79.js} +13 -14
- package/dist/{VideoSelectModal-4596e9b4.js → VideoSelectModal-3a566398.js} +10 -10
- package/dist/anime.es-e284c852.js +858 -0
- package/dist/answerDocumentMixin-0e5e4dbb.js +54 -0
- package/dist/color-71c20583.js +15 -0
- package/dist/{cssMode-34bf902e.js → cssMode-c0865919.js} +15 -14
- package/dist/focusDrawerMixin-298861bc.js +68 -0
- package/dist/formComponentsInstall-1be6791d.js +2491 -0
- package/dist/formValidationMixin-df38771c.js +4984 -0
- package/dist/{freemarker2-61453951.js → freemarker2-85dde97c.js} +19 -18
- package/dist/{handlebars-24c80c6f.js → handlebars-6aa1e52b.js} +18 -17
- package/dist/{html-fc291ba3.js → html-f0c735cd.js} +14 -13
- package/dist/{htmlMode-bb27a86a.js → htmlMode-7b3bd7c9.js} +19 -18
- package/dist/{index-afe3eb26.js → index-1ef6f423.js} +21 -15
- package/dist/index-30808a2c.js +490 -0
- package/dist/{index-053f9545.js → index-431938de.js} +13 -12
- package/dist/index-6d08eac3.js +14 -0
- package/dist/index-805c56e4.js +4 -0
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +713 -600
- package/dist/{javascript-584c9812.js → javascript-9c54ad9e.js} +11 -10
- package/dist/{jsonMode-f03e810a.js → jsonMode-1d1176fa.js} +19 -18
- package/dist/{liquid-2157b417.js → liquid-0738c73d.js} +11 -10
- package/dist/{main-e2129a84.js → main-2d9b8259.js} +19557 -20415
- package/dist/mapFormMixin-308bbdab.js +66 -0
- package/dist/{publicSenderState-11d47322.js → publicSenderState-9eecb11f.js} +1 -1
- package/dist/{python-7f1728ff.js → python-588c9e64.js} +11 -10
- package/dist/{razor-54008302.js → razor-fbaa1d21.js} +14 -13
- package/dist/regions-29ee6964.js +1250 -0
- package/dist/simplebar.min-75960401.js +2429 -0
- package/dist/style.css +4 -0
- package/dist/template-b877debf.js +526 -0
- package/dist/throttle-d7bed81a.js +18 -0
- package/dist/tinycolor-ef496244.js +634 -0
- package/dist/{tsMode-6bcf5f10.js → tsMode-c1de8e10.js} +15 -14
- package/dist/{typescript-f225fd6d.js → typescript-737827aa.js} +11 -10
- package/dist/{utils-c4dbd526.js → utils-69c41ae9.js} +5 -5
- package/dist/vuedraggable.umd-67b8cddf.js +3179 -0
- package/dist/{xml-8680011c.js → xml-30e811a1.js} +11 -10
- package/package.json +4 -4
- package/stats.html +1 -1
- package/dist/DocForm-b6cc1bdf.js +0 -22074
- package/dist/DocFormSend-1c7e370d.js +0 -113
- package/dist/Index-0f345bed.js +0 -29
- package/dist/PriceHeader-4fb21725.js +0 -329
- package/dist/formComponentsInstall-0d5f842a.js +0 -11121
- package/dist/index-3a6d34e0.js +0 -11
- package/dist/throttle-7fc52dc7.js +0 -18
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { V as n, m as r, a as l, g as a, C as i, u as m, n as c } from "./main-2d9b8259.js";
|
|
2
|
+
import { i as u, S as d } from "./formComponentsInstall-1be6791d.js";
|
|
3
|
+
import "./vuex.esm-4a0fff7c.js";
|
|
4
|
+
import "./simplebar.min-75960401.js";
|
|
5
|
+
import "./mapFormMixin-308bbdab.js";
|
|
6
|
+
import "./BaseDatePicker-a9240306.js";
|
|
7
|
+
import "./ErrorCallout-42e45ec0.js";
|
|
8
|
+
import "./AddClientCallout-746899d9.js";
|
|
9
|
+
import "./ClientAutocomplete-421a2216.js";
|
|
10
|
+
import "./SearchApi-ffe5b697.js";
|
|
11
|
+
import "./CDropdownItem-05d84f95.js";
|
|
12
|
+
import "./ClientModal-11341b1c.js";
|
|
13
|
+
import "./index-805c56e4.js";
|
|
14
|
+
import "./CSlider.vue_vue_type_style_index_0_lang-383db616.js";
|
|
15
|
+
import "./CCallout-e9ff903a.js";
|
|
16
|
+
import "./CField-cd4dcae9.js";
|
|
17
|
+
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
18
|
+
import "./regions-29ee6964.js";
|
|
19
|
+
n.use(u);
|
|
20
|
+
const s = n.observable({
|
|
21
|
+
canEdit: !1,
|
|
22
|
+
isForm: !0,
|
|
23
|
+
setFormValue: null
|
|
24
|
+
}), p = {
|
|
25
|
+
name: "DocFormSend",
|
|
26
|
+
components: {
|
|
27
|
+
SendForm: d
|
|
28
|
+
},
|
|
29
|
+
provide: () => ({ viewSettings: s, allowSenderSign: !1 }),
|
|
30
|
+
// TODO maybe not needed
|
|
31
|
+
props: {
|
|
32
|
+
showName: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !0
|
|
35
|
+
},
|
|
36
|
+
showSave: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !0
|
|
39
|
+
},
|
|
40
|
+
showSchedule: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !0
|
|
43
|
+
},
|
|
44
|
+
allowManualDelivery: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !1
|
|
47
|
+
},
|
|
48
|
+
contentSlot: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: null
|
|
51
|
+
},
|
|
52
|
+
footerSlot: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: null
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
data() {
|
|
58
|
+
return {
|
|
59
|
+
document: null
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
computed: {
|
|
63
|
+
...r({
|
|
64
|
+
company: "application/company",
|
|
65
|
+
can: "application/can",
|
|
66
|
+
rawDoc: "forms/document",
|
|
67
|
+
isPosting: "documents2/isPosting"
|
|
68
|
+
})
|
|
69
|
+
},
|
|
70
|
+
watch: {
|
|
71
|
+
rawDoc: {
|
|
72
|
+
immediate: !0,
|
|
73
|
+
handler() {
|
|
74
|
+
this.initDoc();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
async created() {
|
|
79
|
+
this.setFormValue && (s.setFormValue = this.setDocValue);
|
|
80
|
+
},
|
|
81
|
+
methods: {
|
|
82
|
+
...l({
|
|
83
|
+
setFormValue: a.SET_FORM_VALUE,
|
|
84
|
+
removeFormValue: a.REMOVE_FORM_VALUE,
|
|
85
|
+
saveDocument: a.SAVE_DYNDOC_FORM
|
|
86
|
+
// loadCompanyUser: global.LOAD_COMPANY_USER,
|
|
87
|
+
}),
|
|
88
|
+
async initDoc() {
|
|
89
|
+
if (!this.rawDoc)
|
|
90
|
+
throw new Error("Missing initiated form document");
|
|
91
|
+
this.document = new i({
|
|
92
|
+
data: this.rawDoc,
|
|
93
|
+
can: this.can,
|
|
94
|
+
getters: this.$store.getters,
|
|
95
|
+
updateSender: !0
|
|
96
|
+
});
|
|
97
|
+
},
|
|
98
|
+
setDocValue({ key: t, value: e }) {
|
|
99
|
+
return this.setFormValue({ key: `document2.${t}`, value: e });
|
|
100
|
+
},
|
|
101
|
+
removeDocValue(t) {
|
|
102
|
+
return this.removeFormValue(`document2.${t}`);
|
|
103
|
+
},
|
|
104
|
+
async onSaveDocument({ doSend: t = !1 } = {}) {
|
|
105
|
+
await this.saveDocument({ doSend: t }), this.close();
|
|
106
|
+
},
|
|
107
|
+
close() {
|
|
108
|
+
m.open = !1;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
var f = function() {
|
|
113
|
+
var e = this, o = e._self._c;
|
|
114
|
+
return e.document ? o("SendForm", { staticClass: "w-full h-full", attrs: { _document: e.document, _value: {
|
|
115
|
+
expiresAt: "data.expiresAt",
|
|
116
|
+
personalMessage: "data.personalMessage",
|
|
117
|
+
defaultAnswerMethod: "data.defaultAnswerMethod",
|
|
118
|
+
clients: "clients",
|
|
119
|
+
reminders: "data.reminders",
|
|
120
|
+
name: "data.name"
|
|
121
|
+
}, "show-name": e.showName, "show-save": e.showSave, "show-schedule": e.showSchedule, "allow-manual-delivery": e.allowManualDelivery, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument, "use-scroll": "" } }, [e.contentSlot ? o("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.contentSlot) }, slot: "content" }) : e._e(), e.footerSlot ? o("div", { attrs: { slot: "footer" }, domProps: { innerHTML: e._s(e.footerSlot) }, slot: "footer" }) : e._e()]) : o("div", { staticClass: "grid w-full h-full place-items-center" }, [o("BaseIcon", { staticClass: "text-gray-400 animate-spin", attrs: { type: "loader", size: 28 } })], 1);
|
|
122
|
+
}, h = [], v = /* @__PURE__ */ c(
|
|
123
|
+
p,
|
|
124
|
+
f,
|
|
125
|
+
h,
|
|
126
|
+
!1,
|
|
127
|
+
null,
|
|
128
|
+
null,
|
|
129
|
+
null,
|
|
130
|
+
null
|
|
131
|
+
);
|
|
132
|
+
const b = v.exports;
|
|
133
|
+
export {
|
|
134
|
+
b as default
|
|
135
|
+
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { V as Vn, n as ut,
|
|
3
|
-
import {
|
|
1
|
+
import { t as qo, F as Pa, s as _a, d as Ko } from "./FormInputRow-09d450e3.js";
|
|
2
|
+
import { V as Vn, n as ut, Y as gs, b as ys, p as za } from "./main-2d9b8259.js";
|
|
3
|
+
import { i as Uo } from "./CDropdownItem-05d84f95.js";
|
|
4
|
+
import "./CSlider.vue_vue_type_style_index_0_lang-383db616.js";
|
|
5
|
+
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
6
|
+
import { C as $a } from "./ColorPicker-f90939b5.js";
|
|
7
|
+
import { h as Ha } from "./color-71c20583.js";
|
|
4
8
|
function ee(n) {
|
|
5
9
|
this.content = n;
|
|
6
10
|
}
|
|
@@ -13736,7 +13740,7 @@ const lm = om.exports;
|
|
|
13736
13740
|
const am = {
|
|
13737
13741
|
name: "TextEditorColorMenu",
|
|
13738
13742
|
components: {
|
|
13739
|
-
ColorPicker:
|
|
13743
|
+
ColorPicker: $a
|
|
13740
13744
|
},
|
|
13741
13745
|
props: {
|
|
13742
13746
|
editor: {
|
|
@@ -13767,7 +13771,7 @@ const am = {
|
|
|
13767
13771
|
this.$emit("update:show-picker", !1);
|
|
13768
13772
|
},
|
|
13769
13773
|
setColor(n) {
|
|
13770
|
-
const e = typeof n == "object" ?
|
|
13774
|
+
const e = typeof n == "object" ? Ha(n.hsl) : n;
|
|
13771
13775
|
this.internalColor = e;
|
|
13772
13776
|
const t = e ? "setColor" : "unsetColor";
|
|
13773
13777
|
this.editor.chain().focus()[t](e).run();
|
|
@@ -13948,8 +13952,8 @@ var pm = function() {
|
|
|
13948
13952
|
const ym = gm.exports;
|
|
13949
13953
|
const bm = {
|
|
13950
13954
|
components: {
|
|
13951
|
-
FormInputRow:
|
|
13952
|
-
TextTemplates: () => import("./index-
|
|
13955
|
+
FormInputRow: Pa,
|
|
13956
|
+
TextTemplates: () => import("./index-1ef6f423.js")
|
|
13953
13957
|
},
|
|
13954
13958
|
props: {
|
|
13955
13959
|
editor: {
|
|
@@ -14592,7 +14596,7 @@ function Fm(n = null) {
|
|
|
14592
14596
|
placement: "bottom-start",
|
|
14593
14597
|
// 'top-start'
|
|
14594
14598
|
// sticky: true, // make sure position of tippy is updated when content changes
|
|
14595
|
-
plugins: [
|
|
14599
|
+
plugins: [_a]
|
|
14596
14600
|
// trigger: 'mouseenter', // manual
|
|
14597
14601
|
// theme: 'dark',
|
|
14598
14602
|
// placement: 'top-start',
|
|
@@ -14799,7 +14803,7 @@ const Im = {
|
|
|
14799
14803
|
},
|
|
14800
14804
|
async openPreview() {
|
|
14801
14805
|
var r;
|
|
14802
|
-
const n = () => import("./FilePreviewModal-
|
|
14806
|
+
const n = () => import("./FilePreviewModal-75693619.js"), { src: e, title: t } = ((r = this.node) == null ? void 0 : r.attrs) || {};
|
|
14803
14807
|
this.$modal.show(
|
|
14804
14808
|
n,
|
|
14805
14809
|
{
|
|
@@ -16708,7 +16712,7 @@ const qg = Z.create({
|
|
|
16708
16712
|
const Wo = async (n) => {
|
|
16709
16713
|
const e = new FormData();
|
|
16710
16714
|
e.append("file", n, n.name);
|
|
16711
|
-
const { data: t } = await
|
|
16715
|
+
const { data: t } = await za("/file", e, { timeout: 6e4 });
|
|
16712
16716
|
return t.url;
|
|
16713
16717
|
}, Kg = wa.extend({
|
|
16714
16718
|
addAttributes() {
|
|
@@ -17063,8 +17067,8 @@ var Zg = function() {
|
|
|
17063
17067
|
null,
|
|
17064
17068
|
null
|
|
17065
17069
|
);
|
|
17066
|
-
const
|
|
17070
|
+
const h0 = t0.exports;
|
|
17067
17071
|
export {
|
|
17068
17072
|
Xg as B,
|
|
17069
|
-
|
|
17073
|
+
h0 as T
|
|
17070
17074
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as u,
|
|
1
|
+
import { n as u, Y as b, b as S, Z as _, $ as f } from "./main-2d9b8259.js";
|
|
2
2
|
import { m as D } from "./vuex.esm-4a0fff7c.js";
|
|
3
3
|
const x = {
|
|
4
4
|
new: {
|
|
@@ -432,7 +432,7 @@ var G = function() {
|
|
|
432
432
|
return e("div", [t._t("header"), t._l(t.events, function(n, r) {
|
|
433
433
|
return e("EventItem", { key: r, attrs: { title: n.title, content: n.content, createdAt: n.createdAt, icon: n.icon, color: n.color, "is-future": n.isFuture, size: t.size } });
|
|
434
434
|
})], 2);
|
|
435
|
-
}, V = [],
|
|
435
|
+
}, V = [], U = /* @__PURE__ */ u(
|
|
436
436
|
P,
|
|
437
437
|
G,
|
|
438
438
|
V,
|
|
@@ -442,11 +442,11 @@ var G = function() {
|
|
|
442
442
|
null,
|
|
443
443
|
null
|
|
444
444
|
);
|
|
445
|
-
const
|
|
445
|
+
const H = U.exports, K = {
|
|
446
446
|
name: "DocTimeline",
|
|
447
447
|
components: {
|
|
448
448
|
StatusBadge: B,
|
|
449
|
-
DocumentTimeline:
|
|
449
|
+
DocumentTimeline: H
|
|
450
450
|
},
|
|
451
451
|
props: {
|
|
452
452
|
document: {
|
|
@@ -455,20 +455,20 @@ const K = H.exports, U = {
|
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
|
-
var
|
|
458
|
+
var Y = function() {
|
|
459
459
|
var t = this, e = t._self._c;
|
|
460
460
|
return e("div", { staticClass: "p-8" }, [e("DocumentTimeline", { attrs: { document: t.document, size: "large" } }, [e("div", { staticClass: "border-b mb-4 pb-4", attrs: { slot: "header" }, slot: "header" }, [e("div", { staticClass: "mb-2" }, [e("div", { staticClass: "text-xs text-gray-600", domProps: { textContent: t._s(t.$t("_common:document").capitalize()) } }), e("div", { staticClass: "font-semibold text-lg" }, [t._v(t._s(t.document.name))])]), e("div", { staticClass: "inline-flex items-center -ml-2" }, [e("div", { staticClass: "text-xs text-gray-600 mr-1.5 py-1 pl-2", domProps: { textContent: t._s(t.$t("_common:status.status")) } }), e("StatusBadge", { attrs: { status: t.document.status } })], 1)])])], 1);
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
461
|
+
}, Z = [], J = /* @__PURE__ */ u(
|
|
462
|
+
K,
|
|
463
|
+
Y,
|
|
464
|
+
Z,
|
|
465
465
|
!1,
|
|
466
466
|
null,
|
|
467
467
|
null,
|
|
468
468
|
null,
|
|
469
469
|
null
|
|
470
470
|
);
|
|
471
|
-
const
|
|
471
|
+
const X = J.exports;
|
|
472
472
|
export {
|
|
473
|
-
|
|
473
|
+
X as default
|
|
474
474
|
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { n, V as d } from "./main-2d9b8259.js";
|
|
2
|
+
import { D as u, f as m } from "./formValidationMixin-df38771c.js";
|
|
3
|
+
import { a as l } from "./answerDocumentMixin-0e5e4dbb.js";
|
|
4
|
+
import "./CDropdownItem-05d84f95.js";
|
|
5
|
+
const f = (s) => {
|
|
6
|
+
var e;
|
|
7
|
+
return (e = window == null ? void 0 : window.parent) == null ? void 0 : e.postMessage(s, "*");
|
|
8
|
+
}, o = (s) => typeof s == "object" && "event" in s;
|
|
9
|
+
class _ {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.observers = {}, this.registered = !0, window.addEventListener("message", this._onMessage.bind(this));
|
|
12
|
+
}
|
|
13
|
+
_onMessage(e) {
|
|
14
|
+
if (e.source === window.parent && o(e == null ? void 0 : e.data)) {
|
|
15
|
+
const { event: t, data: r } = e.data;
|
|
16
|
+
this.observers[t] && this.observers[t].forEach((c) => c(r));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
on(e, t) {
|
|
20
|
+
this.registered || window.addEventListener("message", this._onMessage.bind(this)), this.observers[e] = this.observers[e] || [], this.observers[e].push(t);
|
|
21
|
+
}
|
|
22
|
+
off(e, t) {
|
|
23
|
+
if (this.observers[e]) {
|
|
24
|
+
if (!t) {
|
|
25
|
+
delete this.observers[e];
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
this.observers[e] = this.observers[e].filter(
|
|
29
|
+
(r) => r !== t
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
emit(e) {
|
|
34
|
+
if (!o(e))
|
|
35
|
+
throw new Error(
|
|
36
|
+
"Invalid message, must be an object including an event property"
|
|
37
|
+
);
|
|
38
|
+
f(e);
|
|
39
|
+
}
|
|
40
|
+
destroy() {
|
|
41
|
+
window.removeEventListener("message", this._onMessage.bind(this)), this.registered = !1;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const i = new _(), p = {
|
|
45
|
+
name: "DocumentVoided",
|
|
46
|
+
props: {
|
|
47
|
+
document: {
|
|
48
|
+
type: Object,
|
|
49
|
+
required: !0
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var v = function() {
|
|
54
|
+
var e = this, t = e._self._c;
|
|
55
|
+
return t("div", { staticClass: "grid h-full text-center place-items-center" }, [t("div", [t("BaseIcon", { staticClass: "mb-2 text-primary-500", attrs: { type: "info" } }), t("div", { staticClass: "text-lg font-medium", domProps: { textContent: e._s(e.document.$t("documentVoided.title")) } }), t("div", { staticClass: "text-gray-700", domProps: { textContent: e._s(e.document.$t("documentVoided.description")) } })], 1)]);
|
|
56
|
+
}, h = [], b = /* @__PURE__ */ n(
|
|
57
|
+
p,
|
|
58
|
+
v,
|
|
59
|
+
h,
|
|
60
|
+
!1,
|
|
61
|
+
null,
|
|
62
|
+
null,
|
|
63
|
+
null,
|
|
64
|
+
null
|
|
65
|
+
);
|
|
66
|
+
const w = b.exports, a = d.observable({
|
|
67
|
+
canEdit: !1,
|
|
68
|
+
isForm: !1,
|
|
69
|
+
setFormValue: null
|
|
70
|
+
}), g = {
|
|
71
|
+
props: {
|
|
72
|
+
document: {
|
|
73
|
+
type: Object,
|
|
74
|
+
required: !0
|
|
75
|
+
},
|
|
76
|
+
setFormValue: {
|
|
77
|
+
type: Function,
|
|
78
|
+
required: !0
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
components: {
|
|
82
|
+
DocumentLayout: u,
|
|
83
|
+
DocumentVoided: w
|
|
84
|
+
},
|
|
85
|
+
mixins: [m, l()],
|
|
86
|
+
provide: () => ({ viewSettings: a }),
|
|
87
|
+
created() {
|
|
88
|
+
this.setFormValue && (a.setFormValue = this.setFormValue), i.on("answer", this.onAnswerMessage);
|
|
89
|
+
},
|
|
90
|
+
beforeDestroy() {
|
|
91
|
+
i.off("answer", this.onAnswerMessage);
|
|
92
|
+
},
|
|
93
|
+
methods: {
|
|
94
|
+
onAnswerMessage(s) {
|
|
95
|
+
this.onAnswer(s == null ? void 0 : s.mode);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
var V = function() {
|
|
100
|
+
var r;
|
|
101
|
+
var e = this, t = e._self._c;
|
|
102
|
+
return t("div", [e._t("default"), ((r = e.document) == null ? void 0 : r.status) === "voided" ? t("DocumentVoided", { attrs: { document: e.document } }) : t("DocumentLayout", { attrs: { document: e.document } })], 2);
|
|
103
|
+
}, y = [], M = /* @__PURE__ */ n(
|
|
104
|
+
g,
|
|
105
|
+
V,
|
|
106
|
+
y,
|
|
107
|
+
!1,
|
|
108
|
+
null,
|
|
109
|
+
null,
|
|
110
|
+
null,
|
|
111
|
+
null
|
|
112
|
+
);
|
|
113
|
+
const x = M.exports, F = {
|
|
114
|
+
name: "DocumentClient",
|
|
115
|
+
components: {
|
|
116
|
+
ClientView: x
|
|
117
|
+
},
|
|
118
|
+
props: {
|
|
119
|
+
document: {
|
|
120
|
+
type: Object,
|
|
121
|
+
required: !0
|
|
122
|
+
},
|
|
123
|
+
setFormValue: {
|
|
124
|
+
type: Function,
|
|
125
|
+
required: !0
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
var C = function() {
|
|
130
|
+
var e = this, t = e._self._c;
|
|
131
|
+
return t("ClientView", { attrs: { document: e.document, "set-form-value": e.setFormValue } });
|
|
132
|
+
}, D = [], $ = /* @__PURE__ */ n(
|
|
133
|
+
F,
|
|
134
|
+
C,
|
|
135
|
+
D,
|
|
136
|
+
!1,
|
|
137
|
+
null,
|
|
138
|
+
null,
|
|
139
|
+
null,
|
|
140
|
+
null
|
|
141
|
+
);
|
|
142
|
+
const A = $.exports;
|
|
143
|
+
export {
|
|
144
|
+
A as default
|
|
145
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as s, n as a } from "./main-
|
|
1
|
+
import { g as s, n as a } from "./main-2d9b8259.js";
|
|
2
2
|
import { m as l, a as p } from "./vuex.esm-4a0fff7c.js";
|
|
3
|
-
import { a as r } from "./publicSenderState-
|
|
3
|
+
import { a as r } from "./publicSenderState-9eecb11f.js";
|
|
4
4
|
const c = {
|
|
5
5
|
name: "DocumentLogotype",
|
|
6
6
|
components: {
|
|
7
|
-
ImageUploadWrapper: () => import("./ImageUploadWrapper-
|
|
7
|
+
ImageUploadWrapper: () => import("./ImageUploadWrapper-a144b042.js")
|
|
8
8
|
},
|
|
9
9
|
props: {
|
|
10
10
|
value: {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./vuex.esm-4a0fff7c.js";
|
|
1
|
+
import { d } from "./CDropdownItem-05d84f95.js";
|
|
2
|
+
import { b as l, n as o } from "./main-2d9b8259.js";
|
|
4
3
|
const m = (t) => {
|
|
5
|
-
const i = new DOMParser().parseFromString(t, "text/html"), [
|
|
6
|
-
return !
|
|
7
|
-
(
|
|
4
|
+
const i = new DOMParser().parseFromString(t, "text/html"), [s] = l(i, "body.children") || [];
|
|
5
|
+
return !s || s.tagName !== "IFRAME" ? {} : Array.from(s.attributes).reduce(
|
|
6
|
+
(a, { name: r, value: n }) => ({ ...a, [r]: n }),
|
|
8
7
|
{}
|
|
9
8
|
);
|
|
10
9
|
}, u = (t) => {
|
|
@@ -96,9 +95,9 @@ var f = function() {
|
|
|
96
95
|
display: "flex",
|
|
97
96
|
flexDirection: "column",
|
|
98
97
|
alignItems: "flex-start"
|
|
99
|
-
}, attrs: { grouped: !e.isDrawerMode } }, [i("CField", { staticStyle: { width: "100%" }, attrs: { validator: e.$v.embed, messages: e.messages.embed, expanded: "" } }, [i("CInput", { ref: "input", attrs: { placeholder: e.inputPlaceholder, size: e.isDrawerMode ? "small" : void 0, loading: e.isLoading, filled: e.isDrawerMode, "auto-resize": !0, type: "textarea", expanded: "" }, on: { input: e.onInput }, model: { value: e.iFrameTplString, callback: function(
|
|
100
|
-
e.iFrameTplString =
|
|
101
|
-
}, expression: "iFrameTplString" } })], 1), i("CButton", { attrs: { disabled: e.isLoading, size: e.isDrawerMode ? "small" : void 0, type: "secondary" }, on: { click: function(
|
|
98
|
+
}, attrs: { grouped: !e.isDrawerMode } }, [i("CField", { staticStyle: { width: "100%" }, attrs: { validator: e.$v.embed, messages: e.messages.embed, expanded: "" } }, [i("CInput", { ref: "input", attrs: { placeholder: e.inputPlaceholder, size: e.isDrawerMode ? "small" : void 0, loading: e.isLoading, filled: e.isDrawerMode, "auto-resize": !0, type: "textarea", expanded: "" }, on: { input: e.onInput }, model: { value: e.iFrameTplString, callback: function(s) {
|
|
99
|
+
e.iFrameTplString = s;
|
|
100
|
+
}, expression: "iFrameTplString" } })], 1), i("CButton", { attrs: { disabled: e.isLoading, size: e.isDrawerMode ? "small" : void 0, type: "secondary" }, on: { click: function(s) {
|
|
102
101
|
return e.validateInput(e.iFrameTplString);
|
|
103
102
|
} } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")])], 1);
|
|
104
103
|
}, h = [], b = /* @__PURE__ */ o(
|
|
@@ -111,7 +110,7 @@ var f = function() {
|
|
|
111
110
|
null,
|
|
112
111
|
null
|
|
113
112
|
);
|
|
114
|
-
const
|
|
113
|
+
const v = b.exports;
|
|
115
114
|
export {
|
|
116
|
-
|
|
115
|
+
v as default
|
|
117
116
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import n from "./EmbedInput-
|
|
2
|
-
import { n as l } from "./main-
|
|
3
|
-
import "./
|
|
4
|
-
import "./vuex.esm-4a0fff7c.js";
|
|
1
|
+
import n from "./EmbedInput-b7fefe5e.js";
|
|
2
|
+
import { n as l } from "./main-2d9b8259.js";
|
|
3
|
+
import "./CDropdownItem-05d84f95.js";
|
|
5
4
|
const o = {
|
|
6
5
|
i18nOptions: {
|
|
7
6
|
namespaces: "embedSettings",
|
|
@@ -53,12 +52,12 @@ const o = {
|
|
|
53
52
|
};
|
|
54
53
|
var r = function() {
|
|
55
54
|
var e = this, t = e._self._c;
|
|
56
|
-
return t("div", { staticClass: "d-root" }, [t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(e._s(e.$t("title").capitalize()))]), t("div", { staticClass: "has-text-grey-dark", staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("subTitle")) + " ")]), t("EmbedInput", { attrs: { value: e.value, "is-drawer-mode": !0 }, on: { input: function(
|
|
57
|
-
return e.$emit("input",
|
|
58
|
-
} } })], 1), t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("responsiveSize")) + " ")]), t("CSwitch", { staticStyle: { "margin-right": "0" }, attrs: { value: !!e.size, size: "small", type: "secondary" }, on: { input: (
|
|
55
|
+
return t("div", { staticClass: "d-root" }, [t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(e._s(e.$t("title").capitalize()))]), t("div", { staticClass: "has-text-grey-dark", staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("subTitle")) + " ")]), t("EmbedInput", { attrs: { value: e.value, "is-drawer-mode": !0 }, on: { input: function(s) {
|
|
56
|
+
return e.$emit("input", s);
|
|
57
|
+
} } })], 1), t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("responsiveSize")) + " ")]), t("CSwitch", { staticStyle: { "margin-right": "0" }, attrs: { value: !!e.size, size: "small", type: "secondary" }, on: { input: (s) => e.$emit("update:size", s ? "small" : null) } })], 1), e.size ? t("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "padding-top": "5px" } }, e._l(e.sizeOptions, function({ value: s, svg: i }, a) {
|
|
59
58
|
return t("div", { key: a, staticClass: "size-option", on: { click: function(m) {
|
|
60
|
-
return e.$emit("update:size",
|
|
61
|
-
} } }, [t("svg", { staticClass: "size-option-image", class: { "is-active": e.size ===
|
|
59
|
+
return e.$emit("update:size", s);
|
|
60
|
+
} } }, [t("svg", { staticClass: "size-option-image", class: { "is-active": e.size === s }, attrs: { viewBox: "0 0 99 65" }, domProps: { innerHTML: e._s(i) } })]);
|
|
62
61
|
}), 0) : e._e()])]);
|
|
63
62
|
}, d = [], p = /* @__PURE__ */ l(
|
|
64
63
|
o,
|
|
@@ -70,7 +69,7 @@ var r = function() {
|
|
|
70
69
|
null,
|
|
71
70
|
null
|
|
72
71
|
);
|
|
73
|
-
const
|
|
72
|
+
const z = p.exports;
|
|
74
73
|
export {
|
|
75
|
-
|
|
74
|
+
z as default
|
|
76
75
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { n as r } from "./main-2d9b8259.js";
|
|
2
|
+
const s = {
|
|
3
|
+
name: "ErrorCallout",
|
|
4
|
+
props: {
|
|
5
|
+
message: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: !0
|
|
8
|
+
},
|
|
9
|
+
size: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "normal"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
var a = function(e, t) {
|
|
16
|
+
return e("div", { staticClass: "flex items-center", class: [t.data.staticClass], staticStyle: { "margin-top": "1rem" }, style: [t.data.staticStyle] }, [e("div", { staticClass: "error-wrapper bg-red-50 text-red-500", class: [`is-${t.props.size}`], staticStyle: { margin: "1rem 0" } }, [e("BaseIcon", { staticStyle: { "margin-right": "0.5em", flex: "0 0 18px" }, attrs: { type: "alert", size: "18" } }), e("div", [t._v(" " + t._s(t.props.message) + " ")])], 1)]);
|
|
17
|
+
}, n = [], l = /* @__PURE__ */ r(
|
|
18
|
+
s,
|
|
19
|
+
a,
|
|
20
|
+
n,
|
|
21
|
+
!0,
|
|
22
|
+
null,
|
|
23
|
+
"300a015f",
|
|
24
|
+
null,
|
|
25
|
+
null
|
|
26
|
+
);
|
|
27
|
+
const p = l.exports;
|
|
28
|
+
export {
|
|
29
|
+
p as E
|
|
30
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { n, S as o } from "./main-
|
|
2
|
-
import { V as r } from "./PdfViewer-
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./formComponentsInstall-0d5f842a.js";
|
|
1
|
+
import { n, S as o } from "./main-2d9b8259.js";
|
|
2
|
+
import { V as r } from "./PdfViewer-701ad40e.js";
|
|
3
|
+
import "./formValidationMixin-df38771c.js";
|
|
4
|
+
import "./CDropdownItem-05d84f95.js";
|
|
6
5
|
const a = {
|
|
7
6
|
name: "FilesPreviewModal",
|
|
8
7
|
components: {
|
|
@@ -80,7 +79,7 @@ var l = function() {
|
|
|
80
79
|
null,
|
|
81
80
|
null
|
|
82
81
|
);
|
|
83
|
-
const
|
|
82
|
+
const m = c.exports;
|
|
84
83
|
export {
|
|
85
|
-
|
|
84
|
+
m as default
|
|
86
85
|
};
|