@cling-se/widget 0.14.5 → 1.0.0-beta.1
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-BMc-v9rJ.js → AddClientCallout-BWnvyBcK.js} +3 -3
- package/dist/{AnswerModal-Cu0Ke5pl.js → AnswerModal-CLGRdSnK.js} +3 -3
- package/dist/{AttachmentItem-Co8pVvtv.js → AttachmentItem-BPS0-wyc.js} +2 -2
- package/dist/{BaseDatePicker-P5iq-XAp.js → BaseDatePicker-BbmV_GdD.js} +2 -2
- package/dist/{BaseUpload-BDWnWTxr.js → BaseUpload-9gPgI7r6.js} +2 -2
- package/dist/{BlockMedia-B_UiePCr.js → BlockMedia-DkPFWiYL.js} +1 -1
- package/dist/{CCallout-Bbp9ya9n.js → CCallout-T26jwUby.js} +1 -1
- package/dist/{CCurrencyDropdown-Cw39vJWw.js → CCurrencyDropdown-qH-3m2eP.js} +3 -3
- package/dist/{CDropdownItem-BjYnhZJr.js → CDropdownItem-BE8BAMD1.js} +167 -69
- package/dist/{CFormField-CeJ58aN2.js → CFormField-DECEfoVq.js} +1 -1
- package/dist/{CPhoneFormat-BZnmeEeW.js → CPhoneFormat-CfQayFxw.js} +1 -1
- package/dist/{CPriceInput-B07d19qq.js → CPriceInput-C4SOB-P5.js} +2 -2
- package/dist/{ClientAutocomplete-9iM1pR9l.js → ClientAutocomplete-DSebA1Mx.js} +2 -2
- package/dist/{ClientModal-fw8f6UvL.js → ClientModal-BXFYvYCF.js} +5 -5
- package/dist/{ColorPicker-uu6vKe8o.js → ColorPicker-CZ_bJabP.js} +1 -1
- package/dist/{CompanyModal-5t4yhKL4.js → CompanyModal-CDr3t28n.js} +4 -4
- package/dist/{ContentWrapper-DwcOQ21l.js → ContentWrapper-BwmMoe4W.js} +6 -6
- package/dist/{CoverBlockSettings-cCCXzAZ0.js → CoverBlockSettings-_F11-DGc.js} +5 -5
- package/dist/{DocAnswer-9lbgqHRX.js → DocAnswer-BR59xzkT.js} +2 -2
- package/dist/{DocDetails-CoLL_tHs.js → DocDetails-D1qbCbps.js} +42 -29
- package/dist/{DocForm-DUjcuHJe.js → DocForm-DBc2a7z5.js} +68 -69
- package/dist/{DocFormSend-LawcXcM2.js → DocFormSend-Casix-yG.js} +4 -3
- package/dist/{DocLinks-pJT9HpjR.js → DocLinks-DGTaewyX.js} +2 -2
- package/dist/{DocModalBase-xUoskL63.js → DocModalBase-BbS_qvSv.js} +1 -1
- package/dist/{DocPrint-ClEJBiAg.js → DocPrint-0PqX3mbJ.js} +1 -1
- package/dist/{DocReceipt-x_YsXPnG.js → DocReceipt-CU3VD5pt.js} +1 -1
- package/dist/{DocSendReminder-Dbz8CkAz.js → DocSendReminder-CuycBspr.js} +1 -1
- package/dist/{DocTextEditor-AqBE7jZj.js → DocTextEditor-CntS2Bd-.js} +16 -17
- package/dist/{DocTimeline-hq2asPzr.js → DocTimeline-DJuv3yBe.js} +1 -1
- package/dist/{DocumentClient-TmtHqfiw.js → DocumentClient-C25XXzz6.js} +5 -5
- package/dist/{DocumentLayout-CRAp8mfk.js → DocumentLayout-B7afHRMr.js} +4 -4
- package/dist/{DocumentLogotype-emSjQ21f.js → DocumentLogotype-sqI51wvM.js} +3 -3
- package/dist/{DocumentVoided-BOjiWBK6.js → DocumentVoided-TahdTSMn.js} +1 -1
- package/dist/{EmbedInput-B3LFGEee.js → EmbedInput-BY-wHSfc.js} +2 -2
- package/dist/{EmbedSettings-BYPJTGQf.js → EmbedSettings-8pfjk4NP.js} +2 -2
- package/dist/{ErrorCallout-CwgYHBkg.js → ErrorCallout-Dsr8PNsU.js} +1 -1
- package/dist/{FilePreviewModal-81sSrDGg.js → FilePreviewModal-CcEinEFg.js} +2 -2
- package/dist/{Flag-DGFvUTQZ.js → Flag-PJKrghi9.js} +1 -1
- package/dist/{HeaderSettings-BGpkzcbj.js → HeaderSettings-BqczIOsG.js} +7 -7
- package/dist/{ImageSelectModal-Cimviyuy.js → ImageSelectModal-Cd-HhKnH.js} +3 -3
- package/dist/{ImageUploadWrapper-qJDHCf8T.js → ImageUploadWrapper-Dv43rGdb.js} +2 -2
- package/dist/{Index-BpyYa9LR.js → Index--qPMWUMT.js} +3 -3
- package/dist/{Index-BkUzlQaQ.js → Index-6b5VBKE-.js} +5 -5
- package/dist/{Index-BKoXW7GK.js → Index-B4pRJnbw.js} +6 -6
- package/dist/{Index-CObGPoQv.js → Index-B69f8qgZ.js} +4 -4
- package/dist/{Index-Sr3emNkE.js → Index-B79YN9RO.js} +4 -4
- package/dist/{Index-CrOD4_xj.js → Index-BBrlPoe8.js} +4 -4
- package/dist/{Index-C1lsSfnX.js → Index-BXfWJCuq.js} +3 -3
- package/dist/{Index-CqImx-rG.js → Index-Bd76vb37.js} +5 -5
- package/dist/{Index-BXAqgXVi.js → Index-BmbtQO5F.js} +5 -5
- package/dist/{Index-DGG1S8uJ.js → Index-Bu0MGrj6.js} +6 -6
- package/dist/{Index-9_R8_myc.js → Index-ByV_kJaH.js} +1 -1
- package/dist/{Index-Dr7mVlBb.js → Index-CDV5rhWS.js} +3 -3
- package/dist/{Index-BOxSvAug.js → Index-CIx4OOK-.js} +8 -8
- package/dist/{Index-C9sq_RDg.js → Index-CL1OWLt6.js} +6 -6
- package/dist/{Index-CoSt-Bws.js → Index-Caow0eZu.js} +1 -1
- package/dist/{Index-DRWS2z82.js → Index-Cd3-3PEK.js} +11 -11
- package/dist/{Index-CegW1Rim.js → Index-CdpZBEKU.js} +6 -6
- package/dist/{Index-DY5gAUnE.js → Index-CmU3Sys-.js} +2 -2
- package/dist/{Index-VshOfaom.js → Index-CtRtgnpm.js} +4 -4
- package/dist/{Index-BgK_WC0d.js → Index-Cukkr33D.js} +3 -3
- package/dist/{Index-CPNUsaOS.js → Index-Cuqw0ios.js} +2 -2
- package/dist/{Index-18w_qMQH.js → Index-Czm_WdqC.js} +4 -4
- package/dist/{Index-DXRgZZNj.js → Index-D4XgxmbD.js} +2 -2
- package/dist/{Index-BQgW1jlH.js → Index-DIOiMm9f.js} +2 -2
- package/dist/{Index-CMUg61_b.js → Index-DNdYXHgr.js} +4 -4
- package/dist/{Index-Eq3JlTKK.js → Index-DcQbh-z2.js} +2 -2
- package/dist/{Index-BL3-tRGt.js → Index-DcuBxutp.js} +7 -7
- package/dist/{Index-ByzGXUoc.js → Index-DpWNWiyY.js} +12 -13
- package/dist/{Index-DBCNVVm5.js → Index-DzS1rZdF.js} +3 -3
- package/dist/{Index-CDEh3GAi.js → Index-N6s5pZxv.js} +4 -4
- package/dist/{Index-CEG-Hiv6.js → Index-g_DNu4mt.js} +4 -4
- package/dist/{Index-BNfAA-ZJ.js → Index-mJ8F41GY.js} +5 -5
- package/dist/{Index-Dx944wv-.js → Index-q7W9KA8m.js} +2 -2
- package/dist/{Index-CpDgldnz.js → Index-rtzblZp4.js} +5 -5
- package/dist/{InputToggleRow-CQsaayf-.js → InputToggleRow-CZjxsDOQ.js} +1 -1
- package/dist/{ManualPopover-CFXm5cQy.js → ManualPopover-CZrWiT-P.js} +1 -1
- package/dist/{MediaWrapper-Cn0Yr4ce.js → MediaWrapper-D37qK4KR.js} +3 -3
- package/dist/{NotBindingText-CNiszGqn.js → NotBindingText-CNV2Wmdx.js} +2 -2
- package/dist/{PackageGroup-BVys9ouj.js → PackageGroup-Heo_s8ct.js} +5 -5
- package/dist/{PdfTerms-Bbns-jMY.js → PdfTerms-AB9tXAtU.js} +2 -2
- package/dist/{PdfViewer-B1zzZU4Y.js → PdfViewer-CIVkvOBr.js} +5 -6
- package/dist/{PlainHtml-CARRbTxi.js → PlainHtml-CPmIebjY.js} +1 -1
- package/dist/{PriceHeader-CqeC9Lhb.js → PriceHeader-DhDAruwX.js} +7 -7
- package/dist/{SearchApi-bB9FLxUq.js → SearchApi-BMgdaI4s.js} +2 -2
- package/dist/{Setup-p3Du_uf8.js → Setup-VIaIV9uT.js} +1 -1
- package/dist/{SmartList-P5ZfTWBb.js → SmartList-Qgu0rMrI.js} +1 -1
- package/dist/{TermsSettings-CQ8TGwBV.js → TermsSettings-CE3h_xkm.js} +3 -3
- package/dist/{ThemeColorRow-DMWVlFRU.js → ThemeColorRow-DYJNgk6S.js} +3 -3
- package/dist/{ToggleBinding-BPaYWgqP.js → ToggleBinding-CuwCeYpO.js} +3 -3
- package/dist/{UploadModal-9O4HTVZm.js → UploadModal-BITcxG-J.js} +2 -2
- package/dist/{VideoPlayerInput-5KybfY7N.js → VideoPlayerInput-8szEX_8L.js} +3 -3
- package/dist/{VideoPlayerSettings-xSW8tcTZ.js → VideoPlayerSettings-BIPytm6w.js} +2 -2
- package/dist/{VideoSelectModal-BbaNAxGH.js → VideoSelectModal-B-Pe34nb.js} +3 -3
- package/dist/{answerDocumentMixin-S-Bmv15G.js → answerDocumentMixin-W7vE1Gp4.js} +3 -3
- package/dist/{debounce-B_0g8OVh.js → debounce-C1AuSpOZ.js} +1 -1
- package/dist/{focusDrawerMixin-DhsqWZUo.js → focusDrawerMixin-Be6BAK8-.js} +1 -1
- package/dist/{formComponentsInstall-UG7a9vjZ.js → formComponentsInstall-Bm3VMOh6.js} +42 -34
- package/dist/{formDrawerState-BMQrWaBt.js → formDrawerState-DRbg5rVI.js} +1 -1
- package/dist/{formValidationMixin-DUu0omWT.js → formValidationMixin-COkY8COk.js} +2 -2
- package/dist/{index-myOYAnwV.js → index-BFvjENMH.js} +1 -1
- package/dist/{index-Czyda2Ej.js → index-BV2nGWay.js} +1 -1
- package/dist/{index-B4aiQXsr.js → index-BgJ05dYc.js} +8 -9
- package/dist/{index-B3R_uKML.js → index-CMPAXxzs.js} +5 -5
- package/dist/{index-C50JSDKO.js → index-DNDjI5uI.js} +3 -3
- package/dist/{index-CJ9AvuZH.js → index-aoff9oUi.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +101 -101
- package/dist/{main-B9t0ybqW.js → main-WKzC-Dnu.js} +881 -880
- package/dist/{mapFormMixin-ETYhBLl2.js → mapFormMixin-QbevCwJK.js} +1 -1
- package/dist/{omit-DtTfKAed.js → omit-CTp9CXoU.js} +1 -1
- package/dist/{publicSenderState-DD1lN9CR.js → publicSenderState-BujjYsZZ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{throttle-qziKkJJX.js → throttle-CWPJmFid.js} +2 -2
- package/dist/{tinycolor-CMC8Xp7x.js → tinycolor-kTl0yxzz.js} +1 -1
- package/dist/{tippy.esm-DjbYjfS2.js → tippy.esm-sS5koDSU.js} +5 -5
- package/dist/{utils-C5Rg0fQC.js → utils-CA_Zy6u1.js} +1 -1
- package/dist/{vuedraggable.umd-CE3WmaEQ.js → vuedraggable.umd-BA3ZDRAp.js} +1 -1
- package/package.json +1 -1
- package/vite.config.ts +0 -1
- package/dist/dom-CJxkno7i.js +0 -91
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as f } from "./DocumentVoided-
|
|
2
|
-
import { C as g, a as h, w } from "./CDropdownItem-
|
|
3
|
-
import { n as
|
|
4
|
-
import { C as S } from "./CPhoneFormat-
|
|
1
|
+
import { D as f } from "./DocumentVoided-TahdTSMn.js";
|
|
2
|
+
import { C as g, a as h, w } from "./CDropdownItem-BE8BAMD1.js";
|
|
3
|
+
import { n as c, ag as $, b as y, ah as x, ai as b, aj as C } from "./main-WKzC-Dnu.js";
|
|
4
|
+
import { C as S } from "./CPhoneFormat-CfQayFxw.js";
|
|
5
5
|
const D = {
|
|
6
6
|
name: "PublicDocumentEvents",
|
|
7
7
|
props: {
|
|
@@ -14,7 +14,7 @@ const D = {
|
|
|
14
14
|
events() {
|
|
15
15
|
const s = [], { acceptedAt: e } = this.document;
|
|
16
16
|
return this.document.events.filter(({ createdAt: t }) => e ? $(e, t) : !0).forEach((t) => {
|
|
17
|
-
const { code: i, createdAt: n, children:
|
|
17
|
+
const { code: i, createdAt: n, children: r = [] } = t;
|
|
18
18
|
let { data: l = {} } = t;
|
|
19
19
|
l === null && (l = {});
|
|
20
20
|
const { client: a = {}, clients: u = [], status: p, counter: _ } = l, m = {
|
|
@@ -31,7 +31,7 @@ const D = {
|
|
|
31
31
|
};
|
|
32
32
|
}),
|
|
33
33
|
viewed: () => {
|
|
34
|
-
const o = _ ||
|
|
34
|
+
const o = _ || r.length + 1;
|
|
35
35
|
return [
|
|
36
36
|
{
|
|
37
37
|
text: `${this.document.$t(
|
|
@@ -103,7 +103,7 @@ const D = {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
}, z = null, k = null;
|
|
106
|
-
var P = /* @__PURE__ */
|
|
106
|
+
var P = /* @__PURE__ */ c(
|
|
107
107
|
D,
|
|
108
108
|
z,
|
|
109
109
|
k,
|
|
@@ -111,7 +111,7 @@ var P = /* @__PURE__ */ r(
|
|
|
111
111
|
null,
|
|
112
112
|
null
|
|
113
113
|
);
|
|
114
|
-
const F = P.exports,
|
|
114
|
+
const F = P.exports, L = {
|
|
115
115
|
name: "PublicRecipientItem",
|
|
116
116
|
i18nOptions: {
|
|
117
117
|
namespaces: "components",
|
|
@@ -127,13 +127,13 @@ const F = P.exports, A = {
|
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
methods: {
|
|
130
|
-
get:
|
|
130
|
+
get: y,
|
|
131
131
|
getBrowserString({ browser: s, os: e, device: t }) {
|
|
132
132
|
return [s && s.name, e && e.name, t && t.model].filter((i) => !!i).join(", ");
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
|
-
var
|
|
136
|
+
var A = function() {
|
|
137
137
|
var e = this, t = e._self._c;
|
|
138
138
|
return t("div", { staticStyle: { border: "1px solid hsl(0, 0%, 84%)", "border-radius": "3px", "margin-bottom": "1em" } }, [t("div", { staticStyle: { padding: "0.5em 0.75em" } }, [e._l([
|
|
139
139
|
e.recipient.name,
|
|
@@ -144,15 +144,15 @@ var R = function() {
|
|
|
144
144
|
}), t("div", { staticClass: "flex w-full flex-col", staticStyle: { "font-size": "14px", "align-items": "baseline" } }, [e.recipient.email ? t("a", { attrs: { href: `mailto:${e.recipient.email}`, target: "_blank" } }, [e._v(" " + e._s(e.recipient.email) + " ")]) : e._e(), e.recipient.cellphone ? t("CPhoneFormat", { attrs: { phone: e.recipient.cellphone, region: e.recipient.cellphoneRegion }, scopedSlots: e._u([{ key: "default", fn: function({ formattedValue: i }) {
|
|
145
145
|
return t("a", { attrs: { href: `tel:${e.recipient.cellphone}` } }, [e._v(" " + e._s(i) + " ")]);
|
|
146
146
|
} }], null, !1, 2469850174) }) : e._e()], 1)], 2), t("div", { staticStyle: { "background-color": "hsl(0, 0%, 94%)", padding: "0.75em 0.75em", "font-weight": "500", "font-size": "13px", "line-height": "1", color: "hsl(0, 0%, 40%)", position: "relative" } }, [t("div", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.recipient.documentRole}.label`)) + " ")]), t("div", { staticStyle: { position: "absolute", right: "1em", top: "0px", transform: "translate(0, -50%)" } }, [t("v-popover", { attrs: { "popover-inner-class": "signee-popover", trigger: "hover", placement: "bottom-end" } }, [e.recipient.documentRole === "signee" ? t("div", { staticStyle: { padding: "5px 0.75em", background: "hsl(0, 0%, 60%)", "border-radius": "4px", "font-size": "13px", color: "hsl(0, 0%, 100%)", cursor: "default", display: "inline-flex", "align-items": "center" } }, [t("CIcon", { staticStyle: { "margin-right": "0.5ch" }, attrs: { size: 15, type: "info", "stroke-width": "2" } }), e.recipient.answer && e.recipient.answer.didAccept ? [e._v(" " + e._s(e.$t("_common:approved").capitalize()) + " ")] : e.recipient.answer ? [e._v(" " + e._s(e.$t("_common:denied").capitalize()) + " ")] : [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.waitingForAnswer")) + " ")]], 2) : e._e(), t("div", { staticStyle: { padding: "0" }, attrs: { slot: "popover" }, slot: "popover" }, [t("div", { staticStyle: { padding: "1em 1.5em" } }, [e.recipient.answer && e.recipient.answer.didAccept ? [e.recipient.answer.signatureDataURL ? t("div", { staticStyle: { "padding-bottom": "0.5em" } }, [t("div", { staticClass: "has-text-grey", staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("_common:signature").capitalize()) + " ")]), t("img", { staticStyle: { width: "80%" }, attrs: { src: e.recipient.answer.signatureDataURL } })]) : t("div", { staticStyle: { "font-size": "13px", "padding-top": "3px" } }, [e.get(e.recipient, "answerMethod.accept") === "bankId" ? [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.recipient.signedBankId")) + " ")]), t("div", [e._v(e._s(e.recipient.answer.response.name))]), t("div", [e._v(e._s(e.recipient.socialNo))])] : e.get(e.recipient, "answerMethod.accept") === "login" ? t("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.recipient.verifiedLogin")) + " ")]) : e._e()], 2)] : e.recipient.answer ? t("div", [e._v(" " + e._s(e.$t("_common:denied").capitalize()) + " ")]) : t("div", [e._v(" " + e._s(e.$t("pendingAnswer")) + " ")])], 2), e.recipient.answer ? t("div", { staticStyle: { padding: "8px 1.5em", "border-top": "1px solid hsl(0deg 0% 88%)", "background-color": "hsl(0deg 0% 95%)", "font-size": "13px", color: "hsl(0, 0%, 35%)", "font-weight": "500" } }, [e.recipient.answer.didAnswerAt ? t("div", [t("div", [e._v(" " + e._s(e.$t("_common:date").capitalize()) + ": " + e._s(e.$formatDate(e.recipient.answer.didAnswerAt, "P")) + " ")]), t("div", [e._v(" " + e._s(e.$t("_common:time").capitalize()) + ": " + e._s(e.$formatDate(e.recipient.answer.didAnswerAt, "p")) + " ")])]) : e._e(), e.recipient.answer.ip ? t("div", [e._v(" IP: " + e._s(e.recipient.answer.ip) + " ")]) : e._e(), e.recipient.answer.browser ? t("div", [e._v(" Browser: " + e._s(e.getBrowserString(e.recipient.answer)) + " ")]) : e._e()]) : e._e()])])], 1)])]);
|
|
147
|
-
},
|
|
147
|
+
}, R = [], j = /* @__PURE__ */ c(
|
|
148
|
+
L,
|
|
148
149
|
A,
|
|
149
150
|
R,
|
|
150
|
-
L,
|
|
151
151
|
!1,
|
|
152
152
|
null,
|
|
153
153
|
"eee5c92d"
|
|
154
154
|
);
|
|
155
|
-
const I = j.exports,
|
|
155
|
+
const I = j.exports, B = {
|
|
156
156
|
name: "DocumentDetails",
|
|
157
157
|
components: {
|
|
158
158
|
PublicDocumentEvents: F,
|
|
@@ -169,17 +169,28 @@ const I = j.exports, q = {
|
|
|
169
169
|
openPrintFunc: {
|
|
170
170
|
type: Function,
|
|
171
171
|
default: null
|
|
172
|
+
},
|
|
173
|
+
showLanguageSelect: {
|
|
174
|
+
type: Boolean,
|
|
175
|
+
default: !0
|
|
176
|
+
},
|
|
177
|
+
close: {
|
|
178
|
+
type: Function,
|
|
179
|
+
default: null
|
|
172
180
|
}
|
|
173
181
|
},
|
|
174
182
|
data() {
|
|
175
183
|
return {
|
|
176
|
-
docLanguages:
|
|
184
|
+
docLanguages: x,
|
|
177
185
|
nativeTranslations: b
|
|
178
186
|
};
|
|
179
187
|
},
|
|
180
188
|
computed: {
|
|
181
189
|
viewer() {
|
|
182
190
|
return this.document.viewer;
|
|
191
|
+
},
|
|
192
|
+
showActionNav() {
|
|
193
|
+
return !!(this.openPrintFunc || this.showLanguageSelect || this.close);
|
|
183
194
|
}
|
|
184
195
|
},
|
|
185
196
|
methods: {
|
|
@@ -190,30 +201,28 @@ const I = j.exports, q = {
|
|
|
190
201
|
}
|
|
191
202
|
}
|
|
192
203
|
};
|
|
193
|
-
var
|
|
204
|
+
var q = function() {
|
|
194
205
|
var e = this, t = e._self._c;
|
|
195
|
-
return t("div", { staticClass: "relative flex h-full w-full flex-col overflow-hidden rounded-lg bg-white text-base
|
|
206
|
+
return t("div", { staticClass: "relative flex h-full w-full flex-col overflow-hidden rounded-lg bg-white text-base" }, [e.showActionNav ? t("div", { staticClass: "z-10 flex w-full items-center justify-end px-6 py-4 shadow-sm" }, [e.openPrintFunc ? [t("CButton", { staticStyle: { "padding-left": "1em", "padding-right": "1em" }, attrs: { "icon-left": "print", type: "none", pattern: "tertiary", taller: "", size: "small" }, on: { click: e.openPrintFunc } }, [e._v(" " + e._s(e.document.$t("download", { thing: "PDF" })) + " ")]), t("div", { staticStyle: { height: "2rem", width: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "0 6px" } })] : e._e(), e.showLanguageSelect ? t("CDropdown", { attrs: { value: e.document.language } }, [t("CButton", { staticStyle: { color: "hsla(0, 0%, 45%, 1)" }, attrs: { slot: "trigger", "icon-props": { size: 18 }, size: "normal", icon: "globe", circle: "" }, slot: "trigger" }), e._l(e.docLanguages, function(i) {
|
|
196
207
|
return t("CDropdownItem", { key: i, attrs: { value: i }, on: { click: function(n) {
|
|
197
208
|
return e.changeLanguage(i);
|
|
198
209
|
} } }, [e._v(" " + e._s(e.nativeTranslations[i]) + " ")]);
|
|
199
|
-
})], 2), t("CButton", { staticStyle: { "margin-left": "6px", color: "hsla(0, 0%, 45%, 1)" }, attrs: { "icon-props": { size: 18 }, size: "normal", icon: "x", circle: "" }, on: { click: function(i) {
|
|
200
|
-
return e.$emit("close");
|
|
201
|
-
} } })], 2), t("div", { staticClass: "d-root h-full min-h-0 flex-1 overflow-auto px-6 py-8 md:px-12 md:py-16" }, [t("div", { staticClass: "mb-[3em] flex justify-between" }, [t("div", [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600" } }, [e._v(" " + e._s(e.document.$t("detail_plural").capitalize()) + " ")]), t("div", { staticClass: "has-text-grey", staticStyle: { "font-size": "14px" } }, [e._v(" " + e._s(e.document.$t("documentDetails.subTitle")) + " ")])])]), t("div", { staticClass: "d-option", staticStyle: { "margin-bottom": "3em" } }, [t("div", { staticClass: "d-option-title", staticStyle: { "padding-bottom": "0.5rem" } }, [e._v(" " + e._s(e.document.$t("participant_plural").capitalize()) + " ")]), e._l(e.document.recipients, function(i, n) {
|
|
210
|
+
})], 2) : e._e(), e.close ? t("CButton", { staticStyle: { "margin-left": "6px", color: "hsla(0, 0%, 45%, 1)" }, attrs: { "icon-props": { size: 18 }, size: "normal", icon: "x", circle: "" }, on: { click: e.close } }) : e._e()], 2) : e._e(), t("div", { staticClass: "d-root h-full min-h-0 flex-1 overflow-auto px-6 py-8 md:px-12 md:py-16" }, [t("div", { staticClass: "mb-[3em] flex justify-between" }, [t("div", [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600" } }, [e._v(" " + e._s(e.document.$t("detail_plural").capitalize()) + " ")]), t("div", { staticClass: "has-text-grey", staticStyle: { "font-size": "14px" } }, [e._v(" " + e._s(e.document.$t("documentDetails.subTitle")) + " ")])])]), t("div", { staticClass: "d-option", staticStyle: { "margin-bottom": "3em" } }, [t("div", { staticClass: "d-option-title", staticStyle: { "padding-bottom": "0.5rem" } }, [e._v(" " + e._s(e.document.$t("participant_plural").capitalize()) + " ")]), e._l(e.document.recipients, function(i, n) {
|
|
202
211
|
return t("PublicRecipientItem", { key: i._uniqueId + n, attrs: { recipient: i } });
|
|
203
212
|
})], 2), t("PublicDocumentEvents", { attrs: { document: e.document }, scopedSlots: e._u([{ key: "default", fn: function({ events: i }) {
|
|
204
|
-
return [i && i.length ? t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(" " + e._s(e.document.$t("event.event_plural").capitalize()) + " ")]), t("div", { attrs: { id: "timeline" } }, [t("div", e._l(i, function(n,
|
|
205
|
-
return t("div", { key:
|
|
213
|
+
return [i && i.length ? t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(" " + e._s(e.document.$t("event.event_plural").capitalize()) + " ")]), t("div", { attrs: { id: "timeline" } }, [t("div", e._l(i, function(n, r) {
|
|
214
|
+
return t("div", { key: r, staticClass: "e-item" }, [t("div", { staticClass: "e-data" }, [t("div", { staticClass: "e-text" }, [e._v(e._s(n.text))]), t("div", { staticClass: "e-timestamp" }, [t("div", { staticClass: "e-date" }, [e._v(e._s(e.$formatDate(n.time, "P")))]), t("div", { staticClass: "e-time", staticStyle: { "padding-left": "0.5ch" } }, [e._v(" " + e._s(e.$formatDate(n.time, "p")) + " ")])])])]);
|
|
206
215
|
}), 0)])]) : e._e()];
|
|
207
216
|
} }]) }), e.mq === "sm" ? t("div", [e._t("footer")], 2) : e._e()], 1), e.mq !== "sm" ? t("div", [e._t("footer")], 2) : e._e()]);
|
|
208
|
-
},
|
|
209
|
-
q,
|
|
210
|
-
O,
|
|
217
|
+
}, N = [], O = /* @__PURE__ */ c(
|
|
211
218
|
B,
|
|
219
|
+
q,
|
|
220
|
+
N,
|
|
212
221
|
!1,
|
|
213
222
|
null,
|
|
214
|
-
"
|
|
223
|
+
"96a06d9f"
|
|
215
224
|
);
|
|
216
|
-
const V =
|
|
225
|
+
const V = O.exports, E = {
|
|
217
226
|
components: {
|
|
218
227
|
DocumentDetails: V,
|
|
219
228
|
DocumentVoided: f
|
|
@@ -226,19 +235,23 @@ const V = N.exports, E = {
|
|
|
226
235
|
closeFunc: {
|
|
227
236
|
type: Function,
|
|
228
237
|
default: null
|
|
238
|
+
},
|
|
239
|
+
showLanguageSelect: {
|
|
240
|
+
type: Boolean,
|
|
241
|
+
default: !0
|
|
229
242
|
}
|
|
230
243
|
}
|
|
231
244
|
};
|
|
232
245
|
var T = function() {
|
|
233
246
|
var e = this, t = e._self._c;
|
|
234
|
-
return e.document && e.document.status === "voided" ? t("DocumentVoided", { attrs: { document: e.document } }) : t("DocumentDetails", { attrs: { document: e.document
|
|
235
|
-
}, M = [], U = /* @__PURE__ */
|
|
247
|
+
return e.document && e.document.status === "voided" ? t("DocumentVoided", { attrs: { document: e.document } }) : t("DocumentDetails", { attrs: { document: e.document, "show-language-select": e.showLanguageSelect, close: e.closeFunc } });
|
|
248
|
+
}, M = [], U = /* @__PURE__ */ c(
|
|
236
249
|
E,
|
|
237
250
|
T,
|
|
238
251
|
M,
|
|
239
252
|
!1,
|
|
240
253
|
null,
|
|
241
|
-
"
|
|
254
|
+
"f3d78687"
|
|
242
255
|
);
|
|
243
256
|
const K = U.exports;
|
|
244
257
|
export {
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import se from "./AnswerModal-
|
|
2
|
-
import { o as ne } from "./index-
|
|
3
|
-
import { w as x } from "./CDropdownItem-
|
|
4
|
-
import { aT as I, g as m, n as d, c as f, b as u, d as
|
|
1
|
+
import se from "./AnswerModal-CLGRdSnK.js";
|
|
2
|
+
import { o as ne } from "./index-aoff9oUi.js";
|
|
3
|
+
import { w as x, s as oe } from "./CDropdownItem-BE8BAMD1.js";
|
|
4
|
+
import { aT as I, g as m, n as d, c as f, b as u, d as le, aU as re, S as ce, w as U, j as $, aA as de, aN as y, a6 as p, O as H, h as D, ae as h, aV as pe, aW as ue, aX as me, aY as he, aZ as fe, a_ as ge, V as A, aP as O, aQ as R, I as E, a$ as B, aR as Ce, b0 as ve, J as ye, b1 as xe, f as we, k as G, b2 as be, b3 as ke, F as _e, b4 as Le, C as W, b5 as $e, b6 as Se, N as q, b7 as Te, b8 as De, aS as Ve, b9 as Be, ba as Me, bb as Ie, a3 as Fe, bc as He, m as Ae, a as Pe, bd as Ee } from "./main-WKzC-Dnu.js";
|
|
5
5
|
import { a as w, m as g } from "./vuex.esm-DKGl8mcw.js";
|
|
6
|
-
import { s as k } from "./Flag-
|
|
7
|
-
import { l as
|
|
8
|
-
import { F as N, d as
|
|
9
|
-
import { m as S } from "./mapFormMixin-
|
|
10
|
-
import { d as P, t as
|
|
11
|
-
import { d as
|
|
12
|
-
import { C as
|
|
13
|
-
import { C as j } from "./CFormField-
|
|
14
|
-
import { S as
|
|
15
|
-
import { o as
|
|
16
|
-
import { v as F } from "./index-
|
|
17
|
-
import { t as
|
|
18
|
-
import { s as v } from "./formDrawerState-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { B as at } from "./BlockMedia-B_UiePCr.js";
|
|
6
|
+
import { s as k } from "./Flag-PJKrghi9.js";
|
|
7
|
+
import { l as ze, g as Ze, W as Ue, b as Oe, a as Re, D as Ge } from "./DocumentLayout-B7afHRMr.js";
|
|
8
|
+
import { F as N, d as We } from "./tippy.esm-sS5koDSU.js";
|
|
9
|
+
import { m as S } from "./mapFormMixin-QbevCwJK.js";
|
|
10
|
+
import { d as P, t as qe } from "./debounce-C1AuSpOZ.js";
|
|
11
|
+
import { d as Ne } from "./vuedraggable.umd-BA3ZDRAp.js";
|
|
12
|
+
import { C as je, I as _, a as L, s as Ke } from "./index-DNDjI5uI.js";
|
|
13
|
+
import { C as j } from "./CFormField-DECEfoVq.js";
|
|
14
|
+
import { S as Ye } from "./SmartList-Qgu0rMrI.js";
|
|
15
|
+
import { o as Qe, _ as Je } from "./omit-CTp9CXoU.js";
|
|
16
|
+
import { v as F } from "./index-BV2nGWay.js";
|
|
17
|
+
import { t as Xe } from "./tinycolor-kTl0yxzz.js";
|
|
18
|
+
import { s as v } from "./formDrawerState-DRbg5rVI.js";
|
|
19
|
+
import { S as et, i as tt } from "./formComponentsInstall-Bm3VMOh6.js";
|
|
20
|
+
import { f as it } from "./formValidationMixin-COkY8COk.js";
|
|
21
|
+
import { B as at } from "./BlockMedia-DkPFWiYL.js";
|
|
23
22
|
const st = {
|
|
24
23
|
name: "DocumentPostSendStep",
|
|
25
24
|
mixins: [x],
|
|
@@ -659,7 +658,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
659
658
|
}
|
|
660
659
|
},
|
|
661
660
|
onInput: ({ family: a, weight: s, options: n = [] }) => {
|
|
662
|
-
this.update(i, a),
|
|
661
|
+
this.update(i, a), ze(a), t != s && this.update("fontWeight", s), this.fontWeightOptions = n;
|
|
663
662
|
}
|
|
664
663
|
}
|
|
665
664
|
]
|
|
@@ -1125,7 +1124,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
|
|
|
1125
1124
|
watch: {
|
|
1126
1125
|
async activeItem(i) {
|
|
1127
1126
|
const e = u(i, "style.fontFamily");
|
|
1128
|
-
e && (this.fontWeightOptions = await
|
|
1127
|
+
e && (this.fontWeightOptions = await Ze(e));
|
|
1129
1128
|
}
|
|
1130
1129
|
},
|
|
1131
1130
|
methods: {
|
|
@@ -1294,7 +1293,7 @@ const a1 = i1.exports, s1 = {
|
|
|
1294
1293
|
vatTypes() {
|
|
1295
1294
|
var e;
|
|
1296
1295
|
const i = ["vat"];
|
|
1297
|
-
return ((e =
|
|
1296
|
+
return ((e = le[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
|
|
1298
1297
|
},
|
|
1299
1298
|
options() {
|
|
1300
1299
|
return [
|
|
@@ -1325,7 +1324,7 @@ const a1 = i1.exports, s1 = {
|
|
|
1325
1324
|
component: "select",
|
|
1326
1325
|
props: {
|
|
1327
1326
|
value: this.language,
|
|
1328
|
-
options:
|
|
1327
|
+
options: re.map((i) => ({
|
|
1329
1328
|
value: i,
|
|
1330
1329
|
label: this.$t(`iso:language.${i}`)
|
|
1331
1330
|
})).sort((i, e) => i.label.localeCompare(e.label))
|
|
@@ -1558,8 +1557,8 @@ const r1 = l1.exports, c1 = {
|
|
|
1558
1557
|
},
|
|
1559
1558
|
name: "ExtensionTab",
|
|
1560
1559
|
components: {
|
|
1561
|
-
draggable:
|
|
1562
|
-
Spinner:
|
|
1560
|
+
draggable: Ne,
|
|
1561
|
+
Spinner: ce
|
|
1563
1562
|
},
|
|
1564
1563
|
mixins: [S(["externalReferences", "clients", "articles"])],
|
|
1565
1564
|
data() {
|
|
@@ -1690,7 +1689,7 @@ const r1 = l1.exports, c1 = {
|
|
|
1690
1689
|
});
|
|
1691
1690
|
if (Array.isArray(a) && a.length) {
|
|
1692
1691
|
const n = (s = this._document) == null ? void 0 : s.defaultAnswerMethod, o = a.map((l) => ({
|
|
1693
|
-
...
|
|
1692
|
+
...de(),
|
|
1694
1693
|
...n && { answerMethod: n },
|
|
1695
1694
|
...l
|
|
1696
1695
|
}));
|
|
@@ -1881,7 +1880,7 @@ const m1 = u1.exports, h1 = {
|
|
|
1881
1880
|
remove() {
|
|
1882
1881
|
if (!this.existingFieldId)
|
|
1883
1882
|
return;
|
|
1884
|
-
const i =
|
|
1883
|
+
const i = Qe(this.document.fields, [this.existingFieldId]);
|
|
1885
1884
|
this.set({ key: "data.fields", value: i }), this.$emit("close");
|
|
1886
1885
|
}
|
|
1887
1886
|
}
|
|
@@ -1929,8 +1928,8 @@ const v1 = C1.exports, y1 = {
|
|
|
1929
1928
|
},
|
|
1930
1929
|
name: "DocumentFormFields",
|
|
1931
1930
|
components: {
|
|
1932
|
-
SmartList:
|
|
1933
|
-
CAccordion:
|
|
1931
|
+
SmartList: Ye,
|
|
1932
|
+
CAccordion: je,
|
|
1934
1933
|
CField: j
|
|
1935
1934
|
},
|
|
1936
1935
|
mixins: [S()],
|
|
@@ -3040,7 +3039,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
|
|
|
3040
3039
|
background: o,
|
|
3041
3040
|
priceSummaryBackground: l,
|
|
3042
3041
|
backgroundFilter: r
|
|
3043
|
-
} = s || {}, c = l || "hsl(228, 52%, 18%)", C =
|
|
3042
|
+
} = s || {}, c = l || "hsl(228, 52%, 18%)", C = Xe.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
|
|
3044
3043
|
return [
|
|
3045
3044
|
{
|
|
3046
3045
|
key: `header-${i}`,
|
|
@@ -4357,17 +4356,17 @@ const f2 = ({
|
|
|
4357
4356
|
], z = {
|
|
4358
4357
|
titleAndText2: _2,
|
|
4359
4358
|
attachments2: $1,
|
|
4360
|
-
pdf:
|
|
4359
|
+
pdf: ue,
|
|
4361
4360
|
packageGroup: h2,
|
|
4362
4361
|
multiGroupPricing: l2,
|
|
4363
4362
|
coverBlock: V1,
|
|
4364
4363
|
videoPlayer: T2,
|
|
4365
4364
|
embed: z1,
|
|
4366
4365
|
header: a2,
|
|
4367
|
-
answer:
|
|
4366
|
+
answer: me,
|
|
4368
4367
|
terms: x2,
|
|
4369
4368
|
parties: H1,
|
|
4370
|
-
custom:
|
|
4369
|
+
custom: he,
|
|
4371
4370
|
// legacy
|
|
4372
4371
|
presentation: C2,
|
|
4373
4372
|
estimatedTimeCompleted: G1,
|
|
@@ -4381,7 +4380,7 @@ const f2 = ({
|
|
|
4381
4380
|
packageGroup: f2,
|
|
4382
4381
|
embed: Z1,
|
|
4383
4382
|
videoPlayer: D2,
|
|
4384
|
-
custom:
|
|
4383
|
+
custom: pe
|
|
4385
4384
|
}, V2 = {
|
|
4386
4385
|
name: "AddBlock",
|
|
4387
4386
|
props: {
|
|
@@ -4396,14 +4395,14 @@ const f2 = ({
|
|
|
4396
4395
|
},
|
|
4397
4396
|
render() {
|
|
4398
4397
|
return this.$scopedSlots.default({
|
|
4399
|
-
addBlock: (i) =>
|
|
4398
|
+
addBlock: (i) => fe({
|
|
4400
4399
|
...i,
|
|
4401
4400
|
set: this.set,
|
|
4402
4401
|
tplGenerators: z,
|
|
4403
4402
|
includeMockData: this.includeMockData,
|
|
4404
4403
|
emit: (...e) => this.$emit(...e)
|
|
4405
4404
|
}),
|
|
4406
|
-
getBlockPayload: (i) =>
|
|
4405
|
+
getBlockPayload: (i) => ge(
|
|
4407
4406
|
i,
|
|
4408
4407
|
this.set,
|
|
4409
4408
|
z,
|
|
@@ -4916,7 +4915,7 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
|
|
|
4916
4915
|
if (this.mq === "sm")
|
|
4917
4916
|
return;
|
|
4918
4917
|
const { tooltips: i } = this, e = (n = (s = this.$el).getRootNode) == null ? void 0 : n.call(s), a = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.body;
|
|
4919
|
-
this.tippyInstances =
|
|
4918
|
+
this.tippyInstances = We(this.$el, {
|
|
4920
4919
|
target: "[data-tooltip-key]",
|
|
4921
4920
|
allowHTML: !0,
|
|
4922
4921
|
duration: [150, 0],
|
|
@@ -5055,7 +5054,7 @@ const G2 = R2.exports, W2 = {
|
|
|
5055
5054
|
Fields: k1,
|
|
5056
5055
|
ExtensionTab: m1,
|
|
5057
5056
|
DocumentGeneralSettings: r1,
|
|
5058
|
-
DocumentGuide: () => import("./index-
|
|
5057
|
+
DocumentGuide: () => import("./index-BFvjENMH.js"),
|
|
5059
5058
|
MenuBlocks: G2,
|
|
5060
5059
|
Simplebar: k
|
|
5061
5060
|
},
|
|
@@ -5200,16 +5199,16 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
|
|
|
5200
5199
|
},
|
|
5201
5200
|
name: "DocumentFormContainer",
|
|
5202
5201
|
components: {
|
|
5203
|
-
WithDimensions:
|
|
5202
|
+
WithDimensions: Ue,
|
|
5204
5203
|
DragList: O,
|
|
5205
5204
|
DragItem: R,
|
|
5206
|
-
DynamicChapter:
|
|
5205
|
+
DynamicChapter: Oe,
|
|
5207
5206
|
DocumentFormMenu: K2,
|
|
5208
5207
|
DynamicBlock: Pt,
|
|
5209
5208
|
DocumentFormViewRadio: St,
|
|
5210
5209
|
DocumentFormNav: bt,
|
|
5211
5210
|
DocumentDrawer: Ct,
|
|
5212
|
-
DocumentStyleContainer:
|
|
5211
|
+
DocumentStyleContainer: Re,
|
|
5213
5212
|
simplebar: k,
|
|
5214
5213
|
LogoBanner: Ot,
|
|
5215
5214
|
IsPremium: L
|
|
@@ -5347,7 +5346,7 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
|
|
|
5347
5346
|
},
|
|
5348
5347
|
methods: {
|
|
5349
5348
|
onAddBlockMount(i, e) {
|
|
5350
|
-
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() =>
|
|
5349
|
+
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => oe(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
|
|
5351
5350
|
},
|
|
5352
5351
|
onBlockToggleVisible(i, e) {
|
|
5353
5352
|
const a = [...this.readLayout].findIndex(
|
|
@@ -5411,7 +5410,7 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
|
|
|
5411
5410
|
if (e !== null && t !== null) {
|
|
5412
5411
|
if (e === t)
|
|
5413
5412
|
return;
|
|
5414
|
-
const s =
|
|
5413
|
+
const s = Ce(
|
|
5415
5414
|
this.nestedReadLayout,
|
|
5416
5415
|
e,
|
|
5417
5416
|
t
|
|
@@ -5432,7 +5431,7 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
|
|
|
5432
5431
|
contentData: l
|
|
5433
5432
|
});
|
|
5434
5433
|
o({ validation: c, data: C });
|
|
5435
|
-
const te =
|
|
5434
|
+
const te = ve({ tree: r }), ie = [
|
|
5436
5435
|
...this.nestedReadLayout.slice(0, t),
|
|
5437
5436
|
...te,
|
|
5438
5437
|
...this.nestedReadLayout.slice(t)
|
|
@@ -5561,9 +5560,9 @@ const ei = X2.exports, ti = {
|
|
|
5561
5560
|
AddBlock: Q,
|
|
5562
5561
|
Drawer: K,
|
|
5563
5562
|
SendForm: et,
|
|
5564
|
-
CCheckbox:
|
|
5565
|
-
CIcon:
|
|
5566
|
-
CButton:
|
|
5563
|
+
CCheckbox: ye,
|
|
5564
|
+
CIcon: xe,
|
|
5565
|
+
CButton: we,
|
|
5567
5566
|
IsPremium: L,
|
|
5568
5567
|
IsPremiumPreStep: _
|
|
5569
5568
|
},
|
|
@@ -5850,7 +5849,7 @@ const X = ci.exports;
|
|
|
5850
5849
|
function di(i, e, t) {
|
|
5851
5850
|
return i === i && (t !== void 0 && (i = i <= t ? i : t), e !== void 0 && (i = i >= e ? i : e)), i;
|
|
5852
5851
|
}
|
|
5853
|
-
var pi = di, ui = pi, M =
|
|
5852
|
+
var pi = di, ui = pi, M = qe;
|
|
5854
5853
|
function mi(i, e, t) {
|
|
5855
5854
|
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = M(t), t = t === t ? t : 0), e !== void 0 && (e = M(e), e = e === e ? e : 0), ui(M(i), e, t);
|
|
5856
5855
|
}
|
|
@@ -6113,7 +6112,7 @@ const Li = _i.exports, $i = {
|
|
|
6113
6112
|
async fetchDocuments(i) {
|
|
6114
6113
|
const e = this.query ? 180 : 90, t = {
|
|
6115
6114
|
createdAt: {
|
|
6116
|
-
$gte: this.$formatDate(
|
|
6115
|
+
$gte: this.$formatDate(be(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
|
|
6117
6116
|
},
|
|
6118
6117
|
// Only provide or if there is a search query to filter on
|
|
6119
6118
|
...this.query && {
|
|
@@ -6130,7 +6129,7 @@ const Li = _i.exports, $i = {
|
|
|
6130
6129
|
}
|
|
6131
6130
|
]
|
|
6132
6131
|
}
|
|
6133
|
-
}, { data: a } = await
|
|
6132
|
+
}, { data: a } = await ke.getAll({
|
|
6134
6133
|
lean: !0,
|
|
6135
6134
|
filter: encodeURIComponent(JSON.stringify(t)),
|
|
6136
6135
|
fields: "clients,data.name,createdAt",
|
|
@@ -6192,7 +6191,7 @@ var Si = function() {
|
|
|
6192
6191
|
);
|
|
6193
6192
|
const Vi = Di.exports, Bi = {
|
|
6194
6193
|
name: "DocumentIcon",
|
|
6195
|
-
truncate:
|
|
6194
|
+
truncate: _e,
|
|
6196
6195
|
inject: {
|
|
6197
6196
|
components: {
|
|
6198
6197
|
default: {
|
|
@@ -6318,7 +6317,7 @@ function Ui(i, { availableProducts: e }) {
|
|
|
6318
6317
|
async function Oi(i) {
|
|
6319
6318
|
if (!i)
|
|
6320
6319
|
throw new Error("Missing argument stripeProduct");
|
|
6321
|
-
const e = i == null ? void 0 : i.prices[0], { data: t } = await
|
|
6320
|
+
const e = i == null ? void 0 : i.prices[0], { data: t } = await Le.createCheckoutSession({
|
|
6322
6321
|
items: [
|
|
6323
6322
|
{
|
|
6324
6323
|
stripePriceStripeId: e.stripeId,
|
|
@@ -6348,7 +6347,7 @@ const Ri = {
|
|
|
6348
6347
|
name: "GalleryTemplateModal",
|
|
6349
6348
|
components: {
|
|
6350
6349
|
simplebar: k,
|
|
6351
|
-
DocumentLayout:
|
|
6350
|
+
DocumentLayout: Ge,
|
|
6352
6351
|
IsPremium: L,
|
|
6353
6352
|
IsPremiumPreStep: _
|
|
6354
6353
|
},
|
|
@@ -6434,7 +6433,7 @@ const Ri = {
|
|
|
6434
6433
|
}
|
|
6435
6434
|
},
|
|
6436
6435
|
created() {
|
|
6437
|
-
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn =
|
|
6436
|
+
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = $e.on(
|
|
6438
6437
|
"event",
|
|
6439
6438
|
async ({ type: i, action: e, data: t }) => {
|
|
6440
6439
|
var a;
|
|
@@ -6463,7 +6462,7 @@ const Ri = {
|
|
|
6463
6462
|
const i = this.template.id;
|
|
6464
6463
|
i || (this.templateStat = null);
|
|
6465
6464
|
try {
|
|
6466
|
-
const { data: e } = await
|
|
6465
|
+
const { data: e } = await Se.get(i);
|
|
6467
6466
|
this.templateStat = e;
|
|
6468
6467
|
} catch {
|
|
6469
6468
|
this.templateStat = null;
|
|
@@ -6640,7 +6639,7 @@ const Ni = qi.exports, ji = {
|
|
|
6640
6639
|
}
|
|
6641
6640
|
},
|
|
6642
6641
|
beforeCreate() {
|
|
6643
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
6642
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Ke);
|
|
6644
6643
|
},
|
|
6645
6644
|
async created() {
|
|
6646
6645
|
var t, a, s, n;
|
|
@@ -6699,7 +6698,7 @@ const Ni = qi.exports, ji = {
|
|
|
6699
6698
|
isVisibleApp: !0,
|
|
6700
6699
|
includePurchaseInfo: !0
|
|
6701
6700
|
}, t = await this.fetchGallery(e), a = (n = t == null ? void 0 : t[0]) == null ? void 0 : n.templateId;
|
|
6702
|
-
return a ? (
|
|
6701
|
+
return a ? (Te(a), new De(a)) : null;
|
|
6703
6702
|
},
|
|
6704
6703
|
onUseTemplate(i) {
|
|
6705
6704
|
if (!i)
|
|
@@ -6954,7 +6953,7 @@ const Ji = Qi.exports, Xi = {
|
|
|
6954
6953
|
},
|
|
6955
6954
|
async saveTemplate(i) {
|
|
6956
6955
|
try {
|
|
6957
|
-
const { data: e } = i, t =
|
|
6956
|
+
const { data: e } = i, t = Ve(e, [
|
|
6958
6957
|
"_id",
|
|
6959
6958
|
"id",
|
|
6960
6959
|
"companyId",
|
|
@@ -6985,7 +6984,7 @@ const Ji = Qi.exports, Xi = {
|
|
|
6985
6984
|
);
|
|
6986
6985
|
},
|
|
6987
6986
|
async fetchGallery(i = {}) {
|
|
6988
|
-
const { data: e } = await
|
|
6987
|
+
const { data: e } = await Be.get(i);
|
|
6989
6988
|
return e;
|
|
6990
6989
|
},
|
|
6991
6990
|
canUseTemplate(i) {
|
|
@@ -7053,7 +7052,7 @@ var ea = function() {
|
|
|
7053
7052
|
"5c1a776a"
|
|
7054
7053
|
);
|
|
7055
7054
|
const aa = ia.exports;
|
|
7056
|
-
var sa =
|
|
7055
|
+
var sa = Me, na = Ie, oa = Fe;
|
|
7057
7056
|
function la(i, e, t) {
|
|
7058
7057
|
for (var a = -1, s = e.length, n = {}; ++a < s; ) {
|
|
7059
7058
|
var o = e[a], l = sa(i, o);
|
|
@@ -7061,13 +7060,13 @@ function la(i, e, t) {
|
|
|
7061
7060
|
}
|
|
7062
7061
|
return n;
|
|
7063
7062
|
}
|
|
7064
|
-
var ra = la, ca = ra, da =
|
|
7063
|
+
var ra = la, ca = ra, da = He;
|
|
7065
7064
|
function pa(i, e) {
|
|
7066
7065
|
return ca(i, e, function(t, a) {
|
|
7067
7066
|
return da(i, a);
|
|
7068
7067
|
});
|
|
7069
7068
|
}
|
|
7070
|
-
var ua = pa, ma = ua, ha =
|
|
7069
|
+
var ua = pa, ma = ua, ha = Je, fa = ha(function(i, e) {
|
|
7071
7070
|
return i == null ? {} : ma(i, e);
|
|
7072
7071
|
}), ga = fa;
|
|
7073
7072
|
const Ca = /* @__PURE__ */ G(ga);
|
|
@@ -7151,7 +7150,7 @@ const va = {
|
|
|
7151
7150
|
};
|
|
7152
7151
|
},
|
|
7153
7152
|
computed: {
|
|
7154
|
-
...
|
|
7153
|
+
...Ae({
|
|
7155
7154
|
company: "application/company",
|
|
7156
7155
|
feature: "application/feature",
|
|
7157
7156
|
can: "application/can",
|
|
@@ -7184,7 +7183,7 @@ const va = {
|
|
|
7184
7183
|
(!this.rawDoc || (i = this.rawDoc) != null && i.__isNew) && (this.view = "templateSelect");
|
|
7185
7184
|
},
|
|
7186
7185
|
methods: {
|
|
7187
|
-
...
|
|
7186
|
+
...Pe({
|
|
7188
7187
|
removeFormKeyValue: m.REMOVE_FORM_KEY_VALUE,
|
|
7189
7188
|
loadDocumentForm: m.LOAD_DOCUMENT2_FORM,
|
|
7190
7189
|
duplicateDocumentForm: m.LOAD_DUPLICATE_DOCUMENT2_FORM,
|
|
@@ -7216,7 +7215,7 @@ const va = {
|
|
|
7216
7215
|
_formData: a
|
|
7217
7216
|
}) : await this.loadDocumentForm({
|
|
7218
7217
|
templateId: i,
|
|
7219
|
-
formData: t ?
|
|
7218
|
+
formData: t ? Ee(t, a) : null,
|
|
7220
7219
|
_formData: a
|
|
7221
7220
|
}), (s = a == null ? void 0 : a.data) != null && s.name && this.setDocValue({ key: "data.name", value: a.data.name }), await this.initDoc(), this.view = "editor";
|
|
7222
7221
|
},
|
|
@@ -7267,7 +7266,7 @@ var ya = function() {
|
|
|
7267
7266
|
null,
|
|
7268
7267
|
"2c3d4461"
|
|
7269
7268
|
);
|
|
7270
|
-
const
|
|
7269
|
+
const Ra = wa.exports;
|
|
7271
7270
|
export {
|
|
7272
|
-
|
|
7271
|
+
Ra as default
|
|
7273
7272
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as s, S as l } from "./formComponentsInstall-
|
|
2
|
-
import { V as n, m as r, a as i, g as u, C as c, n as m } from "./main-
|
|
1
|
+
import { i as s, S as l } from "./formComponentsInstall-Bm3VMOh6.js";
|
|
2
|
+
import { V as n, m as r, a as i, g as u, C as c, n as m } from "./main-WKzC-Dnu.js";
|
|
3
3
|
n.use(s);
|
|
4
4
|
const a = n.observable({
|
|
5
5
|
canEdit: !1,
|
|
@@ -115,7 +115,8 @@ const a = n.observable({
|
|
|
115
115
|
typeof this.beforeSave == "function" && (e = await this.beforeSave(this.document)), t && typeof this.beforeSend == "function" && (e = await this.beforeSend(this.document)), !(e || !await this.saveDocument({ doSend: t })) && this.close();
|
|
116
116
|
},
|
|
117
117
|
close() {
|
|
118
|
-
|
|
118
|
+
var t;
|
|
119
|
+
(t = this.closeFunc) == null || t.call(this);
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
};
|