@cling-se/widget 1.0.0-beta.3 → 1.0.0-beta.4
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-DRcy9Dqb.js → AddClientCallout-C2OgCvX1.js} +4 -4
- package/dist/{AnswerModal-Dc3cgkap.js → AnswerModal-C3ZiCo8B.js} +9 -6
- package/dist/{AttachmentItem-Bef5zdHr.js → AttachmentItem-Bmp-QH-3.js} +4 -4
- package/dist/{BaseUpload--paElAyr.js → BaseUpload-D5hFSuY1.js} +3 -3
- package/dist/{BlockMedia-DbVE3vsb.js → BlockMedia-CaOxWdgC.js} +1 -1
- package/dist/{CCallout-81NkOge7.js → CCallout-DpRDlPTh.js} +1 -1
- package/dist/{CCurrencyDropdown-M3hi1VVi.js → CCurrencyDropdown-BAYBH0At.js} +3 -3
- package/dist/{CDropdownItem-DvaU14-V.js → CDropdownItem-D_JIqQry.js} +2 -2
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-B4s_Zfsp.js → CFormField.vue_vue_type_script_setup_true_lang-Dc8lJfJY.js} +2 -2
- package/dist/{CPhoneFormat-BBQ_UIc_.js → CPhoneFormat-Btul_rlt.js} +1 -1
- package/dist/{CPhoneInput-Dw_LJDgc.js → CPhoneInput-D-p7_u60.js} +5 -5
- package/dist/{CPriceInput-BfWZZv0f.js → CPriceInput-DQCgLaC1.js} +2 -2
- package/dist/{CSelect-B1AAIFbK.js → CSelect-0b-bjuIN.js} +1 -1
- package/dist/{CSkeleton.vue_vue_type_script_setup_true_lang-D56L_PYT.js → CSkeleton.vue_vue_type_script_setup_true_lang-YuPayxdi.js} +1 -1
- package/dist/{ClientAutocomplete-D5veIKyZ.js → ClientAutocomplete-BgNYrRFx.js} +3 -3
- package/dist/{ClientModal-D8_TPzkv.js → ClientModal-CpvE9Yri.js} +8 -8
- package/dist/{ColorPicker-C0OahiVg.js → ColorPicker-GwUKNxvH.js} +1 -1
- package/dist/{CompanyModal-CjzwQU4B.js → CompanyModal-DtswcomF.js} +7 -7
- package/dist/{ContentWrapper-DrmiaFOz.js → ContentWrapper-CFEzfK8g.js} +6 -6
- package/dist/{CoverBlockSettings-C9DWvA-C.js → CoverBlockSettings-CgLUx9us.js} +7 -7
- package/dist/{DocAnswer-BEsvAMEp.js → DocAnswer-BcoD8Yw-.js} +2 -2
- package/dist/{DocDetails--LO0-S5d.js → DocDetails-_NvlTv8l.js} +4 -4
- package/dist/{DocForm-D6_tGw06.js → DocForm-DqcBP2UJ.js} +420 -424
- package/dist/{DocFormSend-CdFL6rOD.js → DocFormSend-TzrCOshc.js} +2 -2
- package/dist/{DocLinks-CIQFUh7c.js → DocLinks-DdGHeEK5.js} +2 -2
- package/dist/{DocModalBase-DtPJK9sp.js → DocModalBase-uEWXUCOP.js} +1 -1
- package/dist/{DocPrint-qX88Ue2I.js → DocPrint-DpwJqeth.js} +1 -1
- package/dist/{DocReceipt-BbXoCmpz.js → DocReceipt-CHDIaBsy.js} +2 -2
- package/dist/{DocSendReminder-DZqOkd63.js → DocSendReminder-Cgd1CoAa.js} +1 -1
- package/dist/{DocTextEditor-Cw-Skmd4.js → DocTextEditor-Bms9GA2x.js} +10 -9
- package/dist/{DocTimeline-CdbSOVD1.js → DocTimeline-Cl_R4cvY.js} +2 -2
- package/dist/{DocumentClient-DtTv7gkF.js → DocumentClient-DRJu10BP.js} +5 -5
- package/dist/{DocumentLayout-BRfEjoYq.js → DocumentLayout-BaoFdMO6.js} +29 -29
- package/dist/{DocumentLogotype-CUNzyewq.js → DocumentLogotype-BaSeCt14.js} +4 -4
- package/dist/{DocumentVoided-CgDt-JFI.js → DocumentVoided-BufyN2Zg.js} +1 -1
- package/dist/{EmbedInput-rPvTnpXn.js → EmbedInput-C8Ihhw_-.js} +4 -4
- package/dist/{EmbedSettings-BtmFxYGB.js → EmbedSettings-CUivGrWn.js} +3 -3
- package/dist/{ErrorCallout-B6YrdUsG.js → ErrorCallout-BGE4T44w.js} +1 -1
- package/dist/{FilePreviewModal-BfIqIIbb.js → FilePreviewModal-ehIP1e7n.js} +2 -2
- package/dist/{Flag-CE3K7-8a.js → Flag-Dm9W55kn.js} +1 -1
- package/dist/{HeaderSettings-5QR7MmVf.js → HeaderSettings-C4qr3GJS.js} +9 -9
- package/dist/{ImageSelectModal-E3hGi8ty.js → ImageSelectModal-uXAwJvLi.js} +3 -3
- package/dist/{ImageUploadWrapper-BaexFAAh.js → ImageUploadWrapper-DPPNn3Jl.js} +2 -2
- package/dist/{Index-BIXfUsHH.js → Index--fE6Lnz4.js} +3 -3
- package/dist/{Index-CXqdBSZ3.js → Index-0VQ5iLzN.js} +81 -66
- package/dist/{Index-CqrTij2j.js → Index-9TcCW4m0.js} +3 -3
- package/dist/{Index-L913X8Ly.js → Index-B4O99pvQ.js} +5 -5
- package/dist/{Index-bgKndj-l.js → Index-BAXiY2iZ.js} +4 -4
- package/dist/{Index-D9keESQi.js → Index-BWZ911DD.js} +19 -18
- package/dist/{Index-CSGk060H.js → Index-Bab6i9Cy.js} +8 -8
- package/dist/{Index-B7ECpXAa.js → Index-Bbs2o-XY.js} +4 -4
- package/dist/{Index-_ellB2fs.js → Index-BcoM6Ey6.js} +8 -8
- package/dist/{Index-Dnmt6W0u.js → Index-Bh2soZ1F.js} +4 -4
- package/dist/{Index--gv5fH24.js → Index-BhiRvxHn.js} +9 -9
- package/dist/{Index-CbZ65-O3.js → Index-Bs5HNmiU.js} +10 -10
- package/dist/{Index-baSB5tPv.js → Index-BvTmpPmR.js} +2 -2
- package/dist/{Index-Dd6ueeUc.js → Index-BwT8Hwoq.js} +6 -6
- package/dist/{Index-DexIUz3R.js → Index-CCFnGPfp.js} +2 -2
- package/dist/{Index-BM658CCq.js → Index-CUkfchwo.js} +1 -1
- package/dist/{Index-D7Z2w9cd.js → Index-Cb5darWj.js} +5 -5
- package/dist/{Index-lNYXAFUH.js → Index-Cb8tNL45.js} +5 -5
- package/dist/{Index-B_DCM_bL.js → Index-CojPfAIx.js} +2 -2
- package/dist/{Index-BpWFU3Td.js → Index-CyKsGzuK.js} +2 -2
- package/dist/{Index-CavttI66.js → Index-D8KEDcDO.js} +7 -7
- package/dist/{Index-BcMATT2_.js → Index-DHdoQxcG.js} +3 -3
- package/dist/{Index-COYqsxs9.js → Index-DNS5qQfm.js} +4 -4
- package/dist/Index-DXAI1Ne1.js +4 -0
- package/dist/{Index-Mdn0niR_.js → Index-Db3i6u-o.js} +4 -4
- package/dist/{Index-D7ixmzBH.js → Index-Dhh6Hcr9.js} +4 -4
- package/dist/{Index-BulSI5iO.js → Index-DifFBTvj.js} +4 -4
- package/dist/{Index-D7pzv-AR.js → Index-DsY2ydJE.js} +5 -5
- package/dist/{Index-CxY5Ii6K.js → Index-DyHhaZLs.js} +1 -1
- package/dist/{Index-B3ycPjAI.js → Index-JomDf8y9.js} +2 -2
- package/dist/{Index-CHInIRw5.js → Index-Nx_Pp81f.js} +6 -6
- package/dist/{Index-CV2O2fWT.js → Index-RRgjc-py.js} +3 -3
- package/dist/{Index-DuDVafLn.js → Index-d37tI3EX.js} +14 -14
- package/dist/{Index-CrsGxDWC.js → Index-sn6tE9Is.js} +1 -1
- package/dist/{Index.vue_vue_type_script_lang-DLogex2i.js → Index.vue_vue_type_script_lang-Df0f-ak3.js} +2 -2
- package/dist/{InputToggleRow-BCvMVbW-.js → InputToggleRow-CzoU5I5q.js} +1 -1
- package/dist/ManualPopover-CFr4JxmL.js +64 -0
- package/dist/{MediaWrapper-_LPau2Ks.js → MediaWrapper-B5iL81Z_.js} +3 -3
- package/dist/{NotBindingText-DgcOjUmQ.js → NotBindingText-B4_b2Zig.js} +2 -2
- package/dist/{PackageGroup-1X3jUipj.js → PackageGroup-C7FCSBfp.js} +5 -5
- package/dist/{PdfTerms-Bf4TlzP5.js → PdfTerms-Dlvz9_Ud.js} +2 -2
- package/dist/{PdfViewer-BdhwFfc6.js → PdfViewer-dI4v28Bk.js} +3 -3
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BgsfquR_.js → PlainHtml.vue_vue_type_script_setup_true_lang-i7vjlHZm.js} +1 -1
- package/dist/{PriceHeader-DyC8xssf.js → PriceHeader-BA-ft89g.js} +7 -7
- package/dist/{SearchApi-C__orGkO.js → SearchApi-BrSR5t7r.js} +2 -2
- package/dist/{SendForm-Be8uiuaJ.js → SendForm-CEA1OWuP.js} +8 -8
- package/dist/{Setup-DbXs2Zar.js → Setup-BTMzlhTj.js} +1 -1
- package/dist/{SmartList-BmmtZoZ0.js → SmartList-BbJIkRWT.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-D0mloJIN.js → Sortable.vue_vue_type_script_setup_true_lang-BKt64PhC.js} +422 -414
- package/dist/{TermsSettings-DsN6v5yj.js → TermsSettings-D1JXAN6J.js} +5 -5
- package/dist/{ThemeColorRow-BL6p09pN.js → ThemeColorRow-DPW6oW_h.js} +3 -3
- package/dist/{ToggleBinding-B-tVioQ9.js → ToggleBinding-CriwSuzJ.js} +4 -4
- package/dist/{UploadModal-BnA1xLMy.js → UploadModal-C2UwnKBa.js} +2 -2
- package/dist/{VideoPlayerInput-D38S1IDH.js → VideoPlayerInput-BWxlDUeC.js} +5 -5
- package/dist/{VideoPlayerSettings-B5iXoj5E.js → VideoPlayerSettings-BesM2EOS.js} +2 -2
- package/dist/{VideoSelectModal-BNCoMFKU.js → VideoSelectModal-BPipM_DD.js} +3 -3
- package/dist/{debounce-CBRJalZI.js → debounce-maYKTo6w.js} +1 -1
- package/dist/{focusDrawerMixin-T94b2Y6F.js → focusDrawerMixin-Cv4Fnb64.js} +1 -1
- package/dist/{formDrawerState-jssoGOce.js → formDrawerState-Cdrp-3tw.js} +1 -1
- package/dist/{helpers-Vo_6Zz3M.js → helpers-lVEFx0PD.js} +1 -1
- package/dist/{index-D63IJVsJ.js → index-5ijAriB0.js} +7 -7
- package/dist/{index-HXiq8Yxs.js → index-CuYKY2w0.js} +5 -5
- package/dist/{index-FRHGChx1.js → index-D0vSroeo.js} +1 -1
- package/dist/{index-DCYCN_FR.js → index-DEAKYn6U.js} +8 -8
- package/dist/{index-jOufDnZ8.js → index-dVnUqU3i.js} +1 -1
- package/dist/{index-B0udVHyo.js → index-x9x0Q0A6.js} +1 -1
- package/dist/{index-8g2jwLJx.js → index-ypqE1092.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +143 -143
- package/dist/{main-C4OdoeS2.js → main-HovvOABR.js} +5766 -5745
- package/dist/{mapFormMixin-v-nbaWcx.js → mapFormMixin-Drw03jK5.js} +2 -2
- package/dist/{omit-GuxX6Zt-.js → omit-CD-TQz-x.js} +1 -1
- package/dist/{publicSenderState-C-7OMKKW.js → publicSenderState-DYJ1eAeA.js} +1 -1
- package/dist/{splitpanes-DChJiJ8d.js → splitpanes-n62uCqvD.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-m1V22cUt.js → template-Cjq_4YHS.js} +1 -1
- package/dist/{throttle-WWMDZKby.js → throttle-euWYHMPo.js} +2 -2
- package/dist/{tippy.esm-Dz-faEsS.js → tippy.esm-15L5vY3N.js} +5 -5
- package/dist/{useTermsModal-C_eLdGLi.js → useTermsModal-CHDFrnZm.js} +4 -4
- package/dist/{utils-vnvZGRwQ.js → utils-CcUDRZ3Y.js} +1 -1
- package/dist/{validation-C-dQpENM.js → validation-021sKbqs.js} +2 -2
- package/package.json +7 -7
- package/dist/Index-DtcV6rl1.js +0 -4
- package/dist/ManualPopover-BzBvSl_x.js +0 -57
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import Ne from "./AnswerModal-
|
|
2
|
-
import { o as We } from "./index-
|
|
3
|
-
import { w as Z, C as ue, a as me } from "./CDropdownItem-
|
|
4
|
-
import {
|
|
1
|
+
import Ne from "./AnswerModal-C3ZiCo8B.js";
|
|
2
|
+
import { o as We } from "./index-dVnUqU3i.js";
|
|
3
|
+
import { w as Z, C as ue, a as me } from "./CDropdownItem-D_JIqQry.js";
|
|
4
|
+
import { dW as de, a as W, g as B, _ as F, b as m, o as a, d as p, s as l, e as c, v as d, w as u, B as T, l as E, f as C, aj as te, n as L, ao as q, S as M, a$ as Q, c as v, aq as G, Z as pe, F as I, h as he, I as ve, i as H, x as Ce, H as je, p as j, $ as be, dX as Ze, j as De, aa as V, k as P, m as O, D as Ke, dY as Qe, ah as Ye, A as Se, W as ee, dB as Je, aL as ke, a3 as le, E as N, aG as Xe, af as et, aA as fe, y as se, dN as $e, dO as Ie, G as ce, z as tt, a5 as we, dZ as ae, dP as nt, d_ as it, bF as ot, a8 as Fe, d$ as st, Y as lt, e0 as at, a1 as Le, r as rt, e1 as dt, e2 as ct, cR as ut, u as mt, aK as _e, a7 as pt, e3 as ht, C as Ve, e4 as ft, e5 as gt, az as Be, e6 as yt, e7 as vt, dQ as Ct, e8 as bt, e9 as kt, ea as wt, aV as _t, eb as xt, ec as Tt } from "./main-HovvOABR.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { l as
|
|
7
|
-
import { F as Me, d as
|
|
8
|
-
import { m as ne, u as Pe, c as xe, i as
|
|
9
|
-
import "./helpers-
|
|
10
|
-
import { a as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { d as ge, t as
|
|
13
|
-
import { C as
|
|
14
|
-
import { _ as ye } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { S as
|
|
16
|
-
import { u as Ee } from "./index-
|
|
17
|
-
import { r as Te, a as
|
|
18
|
-
import { o as
|
|
19
|
-
import { s as U } from "./formDrawerState-
|
|
20
|
-
import { s as
|
|
21
|
-
import { S as
|
|
22
|
-
import "./template-
|
|
23
|
-
import { u as
|
|
24
|
-
import { C as
|
|
25
|
-
import { _ as
|
|
26
|
-
import { B as
|
|
27
|
-
const
|
|
6
|
+
import { l as Dt, g as St, a as $t, b as It, _ as Ft, D as Lt } from "./DocumentLayout-BaoFdMO6.js";
|
|
7
|
+
import { F as Me, d as Vt } from "./tippy.esm-15L5vY3N.js";
|
|
8
|
+
import { m as ne, u as Pe, c as xe, i as Bt } from "./mapFormMixin-Drw03jK5.js";
|
|
9
|
+
import "./helpers-lVEFx0PD.js";
|
|
10
|
+
import { a as Mt } from "./ClientAutocomplete-BgNYrRFx.js";
|
|
11
|
+
import { _ as Pt } from "./Sortable.vue_vue_type_script_setup_true_lang-BKt64PhC.js";
|
|
12
|
+
import { d as ge, t as At } from "./debounce-maYKTo6w.js";
|
|
13
|
+
import { C as Et, I as Y, _ as Ae, a as J, s as zt } from "./index-5ijAriB0.js";
|
|
14
|
+
import { _ as ye } from "./CFormField.vue_vue_type_script_setup_true_lang-Dc8lJfJY.js";
|
|
15
|
+
import { S as Rt } from "./SmartList-BbJIkRWT.js";
|
|
16
|
+
import { u as Ee } from "./index-ypqE1092.js";
|
|
17
|
+
import { r as Te, a as Ot } from "./index-D0vSroeo.js";
|
|
18
|
+
import { o as Ht, _ as Ut } from "./omit-CD-TQz-x.js";
|
|
19
|
+
import { s as U } from "./formDrawerState-Cdrp-3tw.js";
|
|
20
|
+
import { s as qt } from "./dom-CkTGWrfu.js";
|
|
21
|
+
import { S as Gt } from "./SendForm-CEA1OWuP.js";
|
|
22
|
+
import "./template-Cjq_4YHS.js";
|
|
23
|
+
import { u as Nt } from "./validation-021sKbqs.js";
|
|
24
|
+
import { C as Wt } from "./CCallout-DpRDlPTh.js";
|
|
25
|
+
import { _ as jt } from "./CSkeleton.vue_vue_type_script_setup_true_lang-YuPayxdi.js";
|
|
26
|
+
import { B as Zt } from "./BlockMedia-CaOxWdgC.js";
|
|
27
|
+
const Kt = {
|
|
28
28
|
name: "DocumentPostSendStep",
|
|
29
29
|
mixins: [Z],
|
|
30
30
|
i18nOptions: {
|
|
@@ -57,9 +57,6 @@ const Zt = {
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
computed: {
|
|
60
|
-
modalHeight() {
|
|
61
|
-
return this.mq === "sm" ? "100%" : "auto";
|
|
62
|
-
},
|
|
63
60
|
usesManualDelivery() {
|
|
64
61
|
const e = de(this.document);
|
|
65
62
|
return !e.sms && !e.email;
|
|
@@ -101,7 +98,6 @@ const Zt = {
|
|
|
101
98
|
Ne,
|
|
102
99
|
{
|
|
103
100
|
_document: this.document,
|
|
104
|
-
fullScreen: this.modalHeight === "100%",
|
|
105
101
|
isSender: !0,
|
|
106
102
|
// todo: redundant or for easy access in template for other translations etc?
|
|
107
103
|
// actions intended mirror public requests made in accept/bankId modals
|
|
@@ -124,8 +120,8 @@ const Zt = {
|
|
|
124
120
|
{
|
|
125
121
|
adaptive: !0,
|
|
126
122
|
scrollable: !0,
|
|
127
|
-
height:
|
|
128
|
-
maxWidth: this.
|
|
123
|
+
height: "auto",
|
|
124
|
+
maxWidth: this.mq === "sm" ? 999 : 450,
|
|
129
125
|
classes: "overflow-visible",
|
|
130
126
|
transition: "fade-in-slide-up"
|
|
131
127
|
},
|
|
@@ -141,12 +137,12 @@ const Zt = {
|
|
|
141
137
|
this.onCloseFunc && this.onCloseFunc();
|
|
142
138
|
}
|
|
143
139
|
}
|
|
144
|
-
},
|
|
145
|
-
function
|
|
140
|
+
}, Qt = { class: "font-inter root" }, Yt = { class: "container" }, Jt = { class: "icon-wrapper" }, Xt = ["textContent"];
|
|
141
|
+
function en(e, t, n, s, i, o) {
|
|
146
142
|
const r = m("CIcon"), g = m("CButton");
|
|
147
|
-
return a(), p("div",
|
|
148
|
-
l("div",
|
|
149
|
-
l("div",
|
|
143
|
+
return a(), p("div", Qt, [
|
|
144
|
+
l("div", Yt, [
|
|
145
|
+
l("div", Jt, [
|
|
150
146
|
c(r, {
|
|
151
147
|
size: 20,
|
|
152
148
|
type: "email"
|
|
@@ -155,7 +151,7 @@ function Xt(e, t, n, s, i, o) {
|
|
|
155
151
|
l("div", {
|
|
156
152
|
class: "title",
|
|
157
153
|
textContent: d(e.$t("title"))
|
|
158
|
-
}, null, 8,
|
|
154
|
+
}, null, 8, Xt),
|
|
159
155
|
t[0] || (t[0] = l("div", { class: "divider" }, null, -1)),
|
|
160
156
|
c(g, {
|
|
161
157
|
type: "secondary",
|
|
@@ -170,7 +166,7 @@ function Xt(e, t, n, s, i, o) {
|
|
|
170
166
|
])
|
|
171
167
|
]);
|
|
172
168
|
}
|
|
173
|
-
const
|
|
169
|
+
const tn = /* @__PURE__ */ F(Kt, [["render", en], ["__scopeId", "data-v-063acc4f"]]), nn = {
|
|
174
170
|
name: "Drawer",
|
|
175
171
|
props: {
|
|
176
172
|
modelValue: {
|
|
@@ -214,7 +210,7 @@ const en = /* @__PURE__ */ F(Zt, [["render", Xt], ["__scopeId", "data-v-4ecd38dc
|
|
|
214
210
|
}
|
|
215
211
|
}
|
|
216
212
|
};
|
|
217
|
-
function
|
|
213
|
+
function on(e, t, n, s, i, o) {
|
|
218
214
|
return a(), p("div", null, [
|
|
219
215
|
c(te, { name: "fade" }, {
|
|
220
216
|
default: u(() => [
|
|
@@ -259,7 +255,7 @@ function nn(e, t, n, s, i, o) {
|
|
|
259
255
|
}, 8, ["name"])
|
|
260
256
|
]);
|
|
261
257
|
}
|
|
262
|
-
const ze = /* @__PURE__ */ F(
|
|
258
|
+
const ze = /* @__PURE__ */ F(nn, [["render", on], ["__scopeId", "data-v-05571167"]]), sn = {
|
|
263
259
|
name: "DocumentDrawer",
|
|
264
260
|
components: {
|
|
265
261
|
simplebar: Q,
|
|
@@ -285,8 +281,8 @@ const ze = /* @__PURE__ */ F(tn, [["render", nn], ["__scopeId", "data-v-05571167
|
|
|
285
281
|
}
|
|
286
282
|
},
|
|
287
283
|
emits: ["update:open"]
|
|
288
|
-
},
|
|
289
|
-
function
|
|
284
|
+
}, ln = { style: { height: "100%", "z-index": "110" } }, an = { style: { height: "100%", overflow: "auto" } };
|
|
285
|
+
function rn(e, t, n, s, i, o) {
|
|
290
286
|
return a(), v(te, {
|
|
291
287
|
name: n.fixed ? void 0 : "grow-anim",
|
|
292
288
|
mode: "out-in"
|
|
@@ -305,8 +301,8 @@ function an(e, t, n, s, i, o) {
|
|
|
305
301
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => n.fixed ? e.$emit("update:open", r) : null)
|
|
306
302
|
}), {
|
|
307
303
|
default: u(() => [
|
|
308
|
-
l("div",
|
|
309
|
-
l("div",
|
|
304
|
+
l("div", ln, [
|
|
305
|
+
l("div", an, [
|
|
310
306
|
l("div", {
|
|
311
307
|
style: E(
|
|
312
308
|
n.fixed && {
|
|
@@ -328,25 +324,25 @@ function an(e, t, n, s, i, o) {
|
|
|
328
324
|
_: 3
|
|
329
325
|
}, 8, ["name"]);
|
|
330
326
|
}
|
|
331
|
-
const
|
|
327
|
+
const dn = /* @__PURE__ */ F(sn, [["render", rn], ["__scopeId", "data-v-cd55344e"]]), cn = {
|
|
332
328
|
name: "DocumentFormNav"
|
|
333
|
-
},
|
|
334
|
-
function
|
|
335
|
-
return a(), p("div",
|
|
336
|
-
l("div",
|
|
337
|
-
l("div",
|
|
329
|
+
}, un = { class: "DocumentFormNav fixed left-0 right-0 top-0 z-[98] bg-gray-200 px-2 py-2 shadow-lg md:px-6" }, mn = { class: "flex" }, pn = { class: "inline-flex flex-grow items-center" }, hn = { class: "inline-flex flex-auto items-center justify-center" }, fn = { class: "inline-flex flex-grow items-center justify-end" };
|
|
330
|
+
function gn(e, t, n, s, i, o) {
|
|
331
|
+
return a(), p("div", un, [
|
|
332
|
+
l("div", mn, [
|
|
333
|
+
l("div", pn, [
|
|
338
334
|
M(e.$slots, "left")
|
|
339
335
|
]),
|
|
340
|
-
l("div",
|
|
336
|
+
l("div", hn, [
|
|
341
337
|
M(e.$slots, "center")
|
|
342
338
|
]),
|
|
343
|
-
l("div",
|
|
339
|
+
l("div", fn, [
|
|
344
340
|
M(e.$slots, "right")
|
|
345
341
|
])
|
|
346
342
|
])
|
|
347
343
|
]);
|
|
348
344
|
}
|
|
349
|
-
const
|
|
345
|
+
const yn = /* @__PURE__ */ F(cn, [["render", gn]]), vn = {
|
|
350
346
|
name: "DocumentFormViewRadio",
|
|
351
347
|
props: {
|
|
352
348
|
modelValue: {
|
|
@@ -359,10 +355,10 @@ const gn = /* @__PURE__ */ F(dn, [["render", fn]]), yn = {
|
|
|
359
355
|
}
|
|
360
356
|
},
|
|
361
357
|
emits: ["update:modelValue"]
|
|
362
|
-
},
|
|
363
|
-
function
|
|
358
|
+
}, Cn = { class: "inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 text-sm text-white" };
|
|
359
|
+
function bn(e, t, n, s, i, o) {
|
|
364
360
|
const r = m("CIcon");
|
|
365
|
-
return a(), p("div",
|
|
361
|
+
return a(), p("div", Cn, [
|
|
366
362
|
l("div", {
|
|
367
363
|
class: L([{
|
|
368
364
|
"m-0 bg-white px-3 py-[1em] text-zinc-900 drop-shadow-md": n.modelValue === "edit"
|
|
@@ -394,7 +390,7 @@ function Cn(e, t, n, s, i, o) {
|
|
|
394
390
|
], 2)
|
|
395
391
|
]);
|
|
396
392
|
}
|
|
397
|
-
const
|
|
393
|
+
const kn = /* @__PURE__ */ F(vn, [["render", bn]]), wn = {
|
|
398
394
|
name: "BlockControlButtons",
|
|
399
395
|
i18nOptions: {
|
|
400
396
|
namespace: "blockControlButtons",
|
|
@@ -426,22 +422,22 @@ const bn = /* @__PURE__ */ F(yn, [["render", Cn]]), kn = {
|
|
|
426
422
|
return typeof this.isVisible == "boolean" && !this.isVisible;
|
|
427
423
|
}
|
|
428
424
|
}
|
|
429
|
-
},
|
|
425
|
+
}, _n = { class: "control-root flex gap-2" }, xn = {
|
|
430
426
|
key: 0,
|
|
431
427
|
class: "px-1.5 text-xs text-gray-600"
|
|
432
|
-
},
|
|
428
|
+
}, Tn = {
|
|
433
429
|
key: 1,
|
|
434
430
|
class: "flex flex-col gap-1.5"
|
|
435
|
-
},
|
|
436
|
-
function
|
|
431
|
+
}, Dn = { class: "control-direction" };
|
|
432
|
+
function Sn(e, t, n, s, i, o) {
|
|
437
433
|
const r = m("CIcon");
|
|
438
|
-
return a(), p("div",
|
|
434
|
+
return a(), p("div", _n, [
|
|
439
435
|
o.canToggleVisibility ? (a(), p("div", {
|
|
440
436
|
key: 0,
|
|
441
437
|
class: "control-button",
|
|
442
438
|
onClick: t[0] || (t[0] = (g) => e.$emit("toggle-visible", !n.isVisible))
|
|
443
439
|
}, [
|
|
444
|
-
n.isVisible ? C("", !0) : (a(), p("span",
|
|
440
|
+
n.isVisible ? C("", !0) : (a(), p("span", xn, d(e.$t("hidden")), 1)),
|
|
445
441
|
c(r, {
|
|
446
442
|
type: n.isVisible ? "eye" : "eye-off",
|
|
447
443
|
size: "14",
|
|
@@ -449,8 +445,8 @@ function Dn(e, t, n, s, i, o) {
|
|
|
449
445
|
}, null, 8, ["type", "class"])
|
|
450
446
|
])) : C("", !0),
|
|
451
447
|
M(e.$slots, "default", {}, void 0, !0),
|
|
452
|
-
!o.isHidden && n.isMovable ? (a(), p("div",
|
|
453
|
-
l("div",
|
|
448
|
+
!o.isHidden && n.isMovable ? (a(), p("div", Tn, [
|
|
449
|
+
l("div", Dn, [
|
|
454
450
|
l("div", {
|
|
455
451
|
class: "control-button",
|
|
456
452
|
onClick: t[1] || (t[1] = (g) => e.$emit("move", "up"))
|
|
@@ -482,7 +478,7 @@ function Dn(e, t, n, s, i, o) {
|
|
|
482
478
|
])) : C("", !0)
|
|
483
479
|
]);
|
|
484
480
|
}
|
|
485
|
-
const
|
|
481
|
+
const $n = /* @__PURE__ */ F(wn, [["render", Sn], ["__scopeId", "data-v-2b534db7"]]), In = ["inert"], Fn = /* @__PURE__ */ he({
|
|
486
482
|
__name: "DynamicBlock",
|
|
487
483
|
props: {
|
|
488
484
|
isDragging: { type: Boolean, default: !1 },
|
|
@@ -525,8 +521,8 @@ const Sn = /* @__PURE__ */ F(kn, [["render", Dn], ["__scopeId", "data-v-2b534db7
|
|
|
525
521
|
inert: r.value
|
|
526
522
|
}, [
|
|
527
523
|
M(_.$slots, "default", {}, void 0, !0)
|
|
528
|
-
], 10,
|
|
529
|
-
g.value ? (a(), v(
|
|
524
|
+
], 10, In),
|
|
525
|
+
g.value ? (a(), v($n, {
|
|
530
526
|
key: 0,
|
|
531
527
|
class: "control-root z-10",
|
|
532
528
|
"is-movable": _.canMove,
|
|
@@ -559,7 +555,7 @@ const Sn = /* @__PURE__ */ F(kn, [["render", Dn], ["__scopeId", "data-v-2b534db7
|
|
|
559
555
|
});
|
|
560
556
|
};
|
|
561
557
|
}
|
|
562
|
-
}),
|
|
558
|
+
}), Ln = /* @__PURE__ */ F(Fn, [["__scopeId", "data-v-9cab60b2"]]), Vn = {
|
|
563
559
|
name: "LogoBanner",
|
|
564
560
|
props: {
|
|
565
561
|
position: {
|
|
@@ -576,8 +572,8 @@ const Sn = /* @__PURE__ */ F(kn, [["render", Dn], ["__scopeId", "data-v-2b534db7
|
|
|
576
572
|
return e === "cling" ? "/img/cling/icons/apple-touch-icon-60x60.png" : `/img/${e.includes("fortnox") ? "fortnox" : e}/icons/apple-touch-icon-60x60.png`;
|
|
577
573
|
}
|
|
578
574
|
}
|
|
579
|
-
},
|
|
580
|
-
function
|
|
575
|
+
}, Bn = ["href"], Mn = { class: "mr-2 h-5 w-5 overflow-hidden rounded bg-white" }, Pn = ["src", "alt"], An = { class: "text-xs font-medium text-white" };
|
|
576
|
+
function En(e, t, n, s, i, o) {
|
|
581
577
|
return a(), p("div", {
|
|
582
578
|
class: L([n.position, "pointer-events-none bottom-0 left-0 right-0 z-50 flex justify-end px-[10px] pb-[10px]"])
|
|
583
579
|
}, [
|
|
@@ -588,18 +584,18 @@ function An(e, t, n, s, i, o) {
|
|
|
588
584
|
)}?utm_source=document&utm_medium=logo-banner`,
|
|
589
585
|
target: "_blank"
|
|
590
586
|
}, [
|
|
591
|
-
l("div",
|
|
587
|
+
l("div", Mn, [
|
|
592
588
|
l("img", {
|
|
593
589
|
src: o.logoUrl,
|
|
594
590
|
alt: e.$t("brand.name"),
|
|
595
591
|
class: "h-full w-full"
|
|
596
|
-
}, null, 8,
|
|
592
|
+
}, null, 8, Pn)
|
|
597
593
|
]),
|
|
598
|
-
l("div",
|
|
599
|
-
], 8,
|
|
594
|
+
l("div", An, " Made in " + d(e.$t("brand.name")), 1)
|
|
595
|
+
], 8, Bn)
|
|
600
596
|
], 2);
|
|
601
597
|
}
|
|
602
|
-
const
|
|
598
|
+
const zn = /* @__PURE__ */ F(Vn, [["render", En]]), Rn = { class: "relative h-full w-full" }, On = { class: "mb-4 text-xl font-bold" }, Re = /* @__PURE__ */ he({
|
|
603
599
|
__name: "DragWindow",
|
|
604
600
|
props: {
|
|
605
601
|
offset: {},
|
|
@@ -621,7 +617,7 @@ const En = /* @__PURE__ */ F(Ln, [["render", An]]), zn = { class: "relative h-fu
|
|
|
621
617
|
style: E(De(o)),
|
|
622
618
|
class: "popup fixed z-[999] min-h-[400px] w-[280px] rounded-lg bg-white p-[1em] pb-[3em] text-sm shadow-xl"
|
|
623
619
|
}, [
|
|
624
|
-
l("div",
|
|
620
|
+
l("div", Rn, [
|
|
625
621
|
c(h, {
|
|
626
622
|
icon: "x",
|
|
627
623
|
size: "small",
|
|
@@ -641,7 +637,7 @@ const En = /* @__PURE__ */ F(Ln, [["render", An]]), zn = { class: "relative h-fu
|
|
|
641
637
|
circle: "",
|
|
642
638
|
class: "absolute right-9 top-0 cursor-grab"
|
|
643
639
|
}, null, 512),
|
|
644
|
-
l("div",
|
|
640
|
+
l("div", On, d(r.title), 1),
|
|
645
641
|
M(r.$slots, "default")
|
|
646
642
|
])
|
|
647
643
|
], 4)
|
|
@@ -650,7 +646,7 @@ const En = /* @__PURE__ */ F(Ln, [["render", An]]), zn = { class: "relative h-fu
|
|
|
650
646
|
});
|
|
651
647
|
};
|
|
652
648
|
}
|
|
653
|
-
}),
|
|
649
|
+
}), Hn = /([\d+.]*)(.*)/, K = (e) => (e || "").match(Hn), Un = {
|
|
654
650
|
i18nOptions: {
|
|
655
651
|
namespaces: "common",
|
|
656
652
|
keyPrefix: "designLabels"
|
|
@@ -738,7 +734,7 @@ const En = /* @__PURE__ */ F(Ln, [["render", An]]), zn = { class: "relative h-fu
|
|
|
738
734
|
}
|
|
739
735
|
},
|
|
740
736
|
onInput: ({ family: s, weight: i, options: o = [] }) => {
|
|
741
|
-
this.update(e, s),
|
|
737
|
+
this.update(e, s), Dt(s), n != i && this.update("fontWeight", i), this.fontWeightOptions = o;
|
|
742
738
|
}
|
|
743
739
|
}
|
|
744
740
|
]
|
|
@@ -1203,7 +1199,7 @@ const En = /* @__PURE__ */ F(Ln, [["render", An]]), zn = { class: "relative h-fu
|
|
|
1203
1199
|
watch: {
|
|
1204
1200
|
async activeItem(e) {
|
|
1205
1201
|
const t = V(e, "style.fontFamily");
|
|
1206
|
-
t && (this.fontWeightOptions = await
|
|
1202
|
+
t && (this.fontWeightOptions = await St(t));
|
|
1207
1203
|
}
|
|
1208
1204
|
},
|
|
1209
1205
|
methods: {
|
|
@@ -1213,12 +1209,12 @@ const En = /* @__PURE__ */ F(Ln, [["render", An]]), zn = { class: "relative h-fu
|
|
|
1213
1209
|
n[e] = t || "", this.css = { ...this.css, [this.activeItem.selector]: n };
|
|
1214
1210
|
}
|
|
1215
1211
|
}
|
|
1216
|
-
},
|
|
1217
|
-
function
|
|
1212
|
+
}, qn = { style: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, Gn = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, Nn = ["onClick"], Wn = { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, jn = { style: { padding: "calc(0.75 * var(--rem))" } }, Zn = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, Kn = ["onClick"], Qn = { style: { "font-size": "1.075em", "font-weight": "500" } };
|
|
1213
|
+
function Yn(e, t, n, s, i, o) {
|
|
1218
1214
|
const r = m("FormInputRow"), g = m("DragWindow");
|
|
1219
1215
|
return a(), p("div", null, [
|
|
1220
|
-
l("div",
|
|
1221
|
-
l("div",
|
|
1216
|
+
l("div", qn, [
|
|
1217
|
+
l("div", Gn, d(e.$t("typography")), 1),
|
|
1222
1218
|
(a(!0), p(I, null, P(o.typography, (h) => (a(), p("div", {
|
|
1223
1219
|
key: h.label,
|
|
1224
1220
|
class: "list-option",
|
|
@@ -1233,20 +1229,20 @@ function Qn(e, t, n, s, i, o) {
|
|
|
1233
1229
|
lineHeight: 1
|
|
1234
1230
|
})
|
|
1235
1231
|
}, d(h.label), 5),
|
|
1236
|
-
l("div",
|
|
1237
|
-
], 8,
|
|
1232
|
+
l("div", Wn, d(h.style.fontFamily) + " " + d(h.style.fontSize), 1)
|
|
1233
|
+
], 8, Nn))), 128))
|
|
1238
1234
|
]),
|
|
1239
1235
|
t[2] || (t[2] = l("div", { style: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(0.5 * var(--rem)) calc(1 * var(--rem))" } }, null, -1)),
|
|
1240
|
-
l("div",
|
|
1241
|
-
l("div",
|
|
1236
|
+
l("div", jn, [
|
|
1237
|
+
l("div", Zn, d(e.$t("section_plural")), 1),
|
|
1242
1238
|
(a(!0), p(I, null, P(i.sections, (h) => (a(), p("div", {
|
|
1243
1239
|
key: h.label,
|
|
1244
1240
|
class: "list-option",
|
|
1245
1241
|
onClick: (b) => i.activeItem = h
|
|
1246
1242
|
}, [
|
|
1247
|
-
l("div",
|
|
1243
|
+
l("div", Qn, d(h.label), 1),
|
|
1248
1244
|
t[1] || (t[1] = l("div", { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, " #000000 ", -1))
|
|
1249
|
-
], 8,
|
|
1245
|
+
], 8, Kn))), 128))
|
|
1250
1246
|
]),
|
|
1251
1247
|
i.activeItem ? (a(), v(g, {
|
|
1252
1248
|
key: 0,
|
|
@@ -1265,7 +1261,7 @@ function Qn(e, t, n, s, i, o) {
|
|
|
1265
1261
|
}, 8, ["title", "offset"])) : C("", !0)
|
|
1266
1262
|
]);
|
|
1267
1263
|
}
|
|
1268
|
-
const
|
|
1264
|
+
const Jn = /* @__PURE__ */ F(Un, [["render", Yn], ["__scopeId", "data-v-83027693"]]), Xn = {
|
|
1269
1265
|
i18nOptions: {
|
|
1270
1266
|
namespaces: "DocSettings",
|
|
1271
1267
|
messages: {
|
|
@@ -1598,13 +1594,13 @@ const Yn = /* @__PURE__ */ F(Hn, [["render", Qn], ["__scopeId", "data-v-83027693
|
|
|
1598
1594
|
n.push({ name: e, type: "category" }), this.tags = n, this.series = e;
|
|
1599
1595
|
}
|
|
1600
1596
|
}
|
|
1601
|
-
},
|
|
1597
|
+
}, ei = { style: { height: "100%", padding: "1em" } }, ti = {
|
|
1602
1598
|
key: 0,
|
|
1603
1599
|
class: "divider"
|
|
1604
1600
|
};
|
|
1605
|
-
function
|
|
1601
|
+
function ni(e, t, n, s, i, o) {
|
|
1606
1602
|
const r = m("FormInputRow"), g = m("DragWindow");
|
|
1607
|
-
return a(), p("div",
|
|
1603
|
+
return a(), p("div", ei, [
|
|
1608
1604
|
(a(!0), p(I, null, P(o.options, (h, b) => (a(), v(r, {
|
|
1609
1605
|
key: b,
|
|
1610
1606
|
label: h.label,
|
|
@@ -1619,7 +1615,7 @@ function ti(e, t, n, s, i, o) {
|
|
|
1619
1615
|
}, {
|
|
1620
1616
|
default: u(() => [
|
|
1621
1617
|
(a(!0), p(I, null, P(o.priceOptions, (h, b) => (a(), p(I, { key: b }, [
|
|
1622
|
-
h.type === "divider" ? (a(), p("div",
|
|
1618
|
+
h.type === "divider" ? (a(), p("div", ti)) : (a(), v(r, {
|
|
1623
1619
|
key: b,
|
|
1624
1620
|
label: h.label,
|
|
1625
1621
|
"info-tooltip": h.infoTooltip,
|
|
@@ -1631,7 +1627,7 @@ function ti(e, t, n, s, i, o) {
|
|
|
1631
1627
|
}, 8, ["offset", "title"])) : C("", !0)
|
|
1632
1628
|
]);
|
|
1633
1629
|
}
|
|
1634
|
-
const
|
|
1630
|
+
const ii = /* @__PURE__ */ F(Xn, [["render", ni], ["__scopeId", "data-v-5b9bfecb"]]), oi = {
|
|
1635
1631
|
i18nOptions: {
|
|
1636
1632
|
messages: {
|
|
1637
1633
|
en: {
|
|
@@ -1674,9 +1670,9 @@ const ni = /* @__PURE__ */ F(Jn, [["render", ti], ["__scopeId", "data-v-5b9bfecb
|
|
|
1674
1670
|
},
|
|
1675
1671
|
name: "ExtensionTab",
|
|
1676
1672
|
components: {
|
|
1677
|
-
Sortable:
|
|
1673
|
+
Sortable: Pt,
|
|
1678
1674
|
Spinner: Ye,
|
|
1679
|
-
CAutocomplete:
|
|
1675
|
+
CAutocomplete: Mt,
|
|
1680
1676
|
CDropdown: ue,
|
|
1681
1677
|
CDropdownItem: me
|
|
1682
1678
|
},
|
|
@@ -1835,42 +1831,42 @@ const ni = /* @__PURE__ */ F(Jn, [["render", ti], ["__scopeId", "data-v-5b9bfecb
|
|
|
1835
1831
|
});
|
|
1836
1832
|
}
|
|
1837
1833
|
}
|
|
1838
|
-
},
|
|
1834
|
+
}, si = { style: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, li = {
|
|
1839
1835
|
key: 1,
|
|
1840
1836
|
style: { "padding-top": "calc(2 * var(--rem))" },
|
|
1841
1837
|
class: "flex w-full items-center justify-center"
|
|
1842
|
-
},
|
|
1843
|
-
calc(0.5 * var(--rem))` } },
|
|
1838
|
+
}, ai = { style: { padding: `0 calc(0.5 * var(--rem)) calc(2 * var(--rem))
|
|
1839
|
+
calc(0.5 * var(--rem))` } }, ri = { style: { "font-weight": "500", "font-size": "16px" } }, di = { key: 0 }, ci = { class: "x-hint" }, ui = { class: "flex w-full" }, mi = ["textContent"], pi = ["textContent"], hi = { class: "text-gray-600" }, fi = {
|
|
1844
1840
|
class: "text-gray-400",
|
|
1845
1841
|
style: { "font-size": "12px" }
|
|
1846
|
-
},
|
|
1842
|
+
}, gi = {
|
|
1847
1843
|
key: 0,
|
|
1848
1844
|
style: { padding: "0.5em", "border-radius": "3px", "background-color": "hsl(205, 100%, 95%)", border: "1px solid hsl(205, 100%, 78%)" }
|
|
1849
|
-
},
|
|
1845
|
+
}, yi = {
|
|
1850
1846
|
key: 0,
|
|
1851
1847
|
style: { opacity: "0.75", "font-size": "13px" }
|
|
1852
|
-
},
|
|
1848
|
+
}, vi = { key: 2 }, Ci = ["textContent"], bi = { style: { "line-height": "1.5" } }, ki = { style: { "font-weight": "500" } }, wi = {
|
|
1853
1849
|
class: "text-gray-600",
|
|
1854
1850
|
style: { "font-size": "14px" }
|
|
1855
|
-
},
|
|
1856
|
-
calc(0.5 * var(--rem))` } },
|
|
1851
|
+
}, _i = { key: 0 }, xi = { style: { padding: `0 calc(0.5 * var(--rem)) calc(1 * var(--rem))
|
|
1852
|
+
calc(0.5 * var(--rem))` } }, Ti = { style: { "font-weight": "500" } }, Di = ["textContent"], Si = ["onClick"], $i = ["textContent"], Ii = {
|
|
1857
1853
|
class: "text-gray-600",
|
|
1858
1854
|
style: { "font-size": "12px" }
|
|
1859
|
-
},
|
|
1855
|
+
}, Fi = {
|
|
1860
1856
|
key: 1,
|
|
1861
1857
|
class: "flex w-full text-gray-600",
|
|
1862
1858
|
style: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "5px", "font-size": "12px", "border-radius": "5px", "line-height": "1.35" }
|
|
1863
|
-
},
|
|
1859
|
+
}, Li = ["textContent"], Vi = {
|
|
1864
1860
|
key: 3,
|
|
1865
1861
|
class: "flex w-full flex-col items-center justify-center text-center",
|
|
1866
1862
|
style: { "padding-top": "calc(1 * var(--rem))" }
|
|
1867
|
-
},
|
|
1863
|
+
}, Bi = { class: "text-gray-600" }, Mi = {
|
|
1868
1864
|
class: "text-center",
|
|
1869
1865
|
style: { "padding-top": "calc(1 * var(--rem))" }
|
|
1870
1866
|
};
|
|
1871
|
-
function
|
|
1867
|
+
function Pi(e, t, n, s, i, o) {
|
|
1872
1868
|
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("Spinner"), _ = m("CAutocomplete"), k = m("CIcon"), S = m("Sortable"), D = m("router-link"), y = le("tooltip");
|
|
1873
|
-
return a(), p("div",
|
|
1869
|
+
return a(), p("div", si, [
|
|
1874
1870
|
e.allAuthenticatedCRMs.length > 1 ? (a(), v(h, {
|
|
1875
1871
|
key: 0,
|
|
1876
1872
|
position: "is-bottom-left",
|
|
@@ -1900,17 +1896,17 @@ function Mi(e, t, n, s, i, o) {
|
|
|
1900
1896
|
]),
|
|
1901
1897
|
_: 1
|
|
1902
1898
|
})) : C("", !0),
|
|
1903
|
-
i.isLoading && !i.dealDetails ? (a(), p("div",
|
|
1899
|
+
i.isLoading && !i.dealDetails ? (a(), p("div", li, [
|
|
1904
1900
|
c(b, {
|
|
1905
1901
|
size: "24",
|
|
1906
1902
|
color: "grey"
|
|
1907
1903
|
})
|
|
1908
1904
|
])) : i.activeCrm ? (a(), p(I, { key: 2 }, [
|
|
1909
|
-
l("div",
|
|
1910
|
-
l("div",
|
|
1911
|
-
i.typeDetails ? (a(), p("div",
|
|
1912
|
-
l("div",
|
|
1913
|
-
l("div",
|
|
1905
|
+
l("div", ai, [
|
|
1906
|
+
l("div", ri, d(i.activeCrm.capitalize()), 1),
|
|
1907
|
+
i.typeDetails ? (a(), p("div", di, [
|
|
1908
|
+
l("div", ci, [
|
|
1909
|
+
l("div", ui, [
|
|
1914
1910
|
l("div", {
|
|
1915
1911
|
textContent: d(
|
|
1916
1912
|
e.$t("referenceTo", {
|
|
@@ -1918,7 +1914,7 @@ function Mi(e, t, n, s, i, o) {
|
|
|
1918
1914
|
type: e.$t(`type.${i.typeDetails.type}`)
|
|
1919
1915
|
})
|
|
1920
1916
|
)
|
|
1921
|
-
}, null, 8,
|
|
1917
|
+
}, null, 8, mi),
|
|
1922
1918
|
c(r, {
|
|
1923
1919
|
icon: "x",
|
|
1924
1920
|
size: "small",
|
|
@@ -1932,15 +1928,15 @@ function Mi(e, t, n, s, i, o) {
|
|
|
1932
1928
|
l("div", {
|
|
1933
1929
|
class: "x-hint-name",
|
|
1934
1930
|
textContent: d(i.typeDetails.name || "")
|
|
1935
|
-
}, null, 8,
|
|
1931
|
+
}, null, 8, pi)
|
|
1936
1932
|
]),
|
|
1937
1933
|
t[7] || (t[7] = l("div", { class: "divider" }, null, -1))
|
|
1938
1934
|
])) : C("", !0),
|
|
1939
|
-
l("div",
|
|
1935
|
+
l("div", hi, d(e.$t("headerText", { crm: i.activeCrm.capitalize() })), 1),
|
|
1940
1936
|
t[8] || (t[8] = l("div", { style: { height: "2em" } }, null, -1)),
|
|
1941
1937
|
o.currentExternalDeal ? (a(), p(I, { key: 1 }, [
|
|
1942
|
-
l("div",
|
|
1943
|
-
i.dealDetails ? (a(), p("div",
|
|
1938
|
+
l("div", fi, d(e.$t("connectedTo", { type: o.dealType })), 1),
|
|
1939
|
+
i.dealDetails ? (a(), p("div", gi, [
|
|
1944
1940
|
l("div", null, [
|
|
1945
1941
|
(a(), v(G(i.dealDetails.externalUrl ? "a" : "span"), {
|
|
1946
1942
|
href: i.dealDetails.externalUrl || "#",
|
|
@@ -1950,7 +1946,7 @@ function Mi(e, t, n, s, i, o) {
|
|
|
1950
1946
|
textContent: d(i.dealDetails.name)
|
|
1951
1947
|
}, null, 8, ["href", "textContent"]))
|
|
1952
1948
|
]),
|
|
1953
|
-
i.dealDetails.currency ? (a(), p("div",
|
|
1949
|
+
i.dealDetails.currency ? (a(), p("div", yi, d(o.priceFormat(i.dealDetails.value, {
|
|
1954
1950
|
showZero: !1,
|
|
1955
1951
|
currency: i.dealDetails.currency
|
|
1956
1952
|
})), 1)) : C("", !0)
|
|
@@ -1982,12 +1978,12 @@ function Mi(e, t, n, s, i, o) {
|
|
|
1982
1978
|
textContent: d(e.$t("suggestClients"))
|
|
1983
1979
|
}, null, 8, ["textContent"])
|
|
1984
1980
|
])
|
|
1985
|
-
], 64)) : (a(), p("div",
|
|
1981
|
+
], 64)) : (a(), p("div", vi, [
|
|
1986
1982
|
l("div", {
|
|
1987
1983
|
style: { padding: "0 4px 0.25em" },
|
|
1988
1984
|
class: "text-gray-600",
|
|
1989
1985
|
textContent: d(e.$t("linkToDoc", { type: o.dealType }))
|
|
1990
|
-
}, null, 8,
|
|
1986
|
+
}, null, 8, Ci),
|
|
1991
1987
|
c(_, {
|
|
1992
1988
|
ref: "input",
|
|
1993
1989
|
modelValue: i.searchQuery,
|
|
@@ -2004,9 +2000,9 @@ function Mi(e, t, n, s, i, o) {
|
|
|
2004
2000
|
onSelect: t[6] || (t[6] = (f) => o.useSearchResult(f))
|
|
2005
2001
|
}, {
|
|
2006
2002
|
default: u(({ option: f }) => [
|
|
2007
|
-
l("div",
|
|
2008
|
-
l("div",
|
|
2009
|
-
l("div",
|
|
2003
|
+
l("div", bi, [
|
|
2004
|
+
l("div", ki, d(f.name), 1),
|
|
2005
|
+
l("div", wi, [
|
|
2010
2006
|
T(d(f.externalReference.type.capitalize()) + " " + d(f.externalReference.typeId) + " ", 1),
|
|
2011
2007
|
f.value && f.currency ? (a(), p(I, { key: 0 }, [
|
|
2012
2008
|
T(" · " + d(o.priceFormat(f.value, {
|
|
@@ -2024,9 +2020,9 @@ function Mi(e, t, n, s, i, o) {
|
|
|
2024
2020
|
}, 8, ["modelValue", "data", "loading", "placeholder"])
|
|
2025
2021
|
]))
|
|
2026
2022
|
]),
|
|
2027
|
-
o.showDealProducts ? (a(), p("div",
|
|
2028
|
-
l("div",
|
|
2029
|
-
l("div",
|
|
2023
|
+
o.showDealProducts ? (a(), p("div", _i, [
|
|
2024
|
+
l("div", xi, [
|
|
2025
|
+
l("div", Ti, [
|
|
2030
2026
|
T(d(e.$t("productsTitle")) + " ", 1),
|
|
2031
2027
|
N(c(k, {
|
|
2032
2028
|
type: "info",
|
|
@@ -2046,7 +2042,7 @@ function Mi(e, t, n, s, i, o) {
|
|
|
2046
2042
|
crm: i.activeCrm.capitalize()
|
|
2047
2043
|
})
|
|
2048
2044
|
)
|
|
2049
|
-
}, null, 8,
|
|
2045
|
+
}, null, 8, Di)
|
|
2050
2046
|
]),
|
|
2051
2047
|
i.dealDetails.articles && i.dealDetails.articles.length ? (a(), v(S, {
|
|
2052
2048
|
key: 0,
|
|
@@ -2070,8 +2066,8 @@ function Mi(e, t, n, s, i, o) {
|
|
|
2070
2066
|
l("div", {
|
|
2071
2067
|
style: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" },
|
|
2072
2068
|
textContent: d(f.name)
|
|
2073
|
-
}, null, 8,
|
|
2074
|
-
l("div",
|
|
2069
|
+
}, null, 8, $i),
|
|
2070
|
+
l("div", Ii, [
|
|
2075
2071
|
T(d(o.priceFormat(f.price || 0, {
|
|
2076
2072
|
showZero: !1,
|
|
2077
2073
|
currency: f.currency || "USD"
|
|
@@ -2080,10 +2076,10 @@ function Mi(e, t, n, s, i, o) {
|
|
|
2080
2076
|
T(" · " + d(e._document.$t("vat").capitalize()) + " " + d(f.vat) + "% ", 1)
|
|
2081
2077
|
], 64)) : C("", !0)
|
|
2082
2078
|
])
|
|
2083
|
-
], 8,
|
|
2079
|
+
], 8, Si)
|
|
2084
2080
|
]),
|
|
2085
2081
|
_: 1
|
|
2086
|
-
}, 8, ["list", "clone"])) : (a(), p("div",
|
|
2082
|
+
}, 8, ["list", "clone"])) : (a(), p("div", Fi, [
|
|
2087
2083
|
c(k, {
|
|
2088
2084
|
type: "info",
|
|
2089
2085
|
size: "13",
|
|
@@ -2091,18 +2087,18 @@ function Mi(e, t, n, s, i, o) {
|
|
|
2091
2087
|
}),
|
|
2092
2088
|
l("div", {
|
|
2093
2089
|
textContent: d(e.$t("noProducts", { type: o.dealType }))
|
|
2094
|
-
}, null, 8,
|
|
2090
|
+
}, null, 8, Li)
|
|
2095
2091
|
]))
|
|
2096
2092
|
])) : C("", !0)
|
|
2097
|
-
], 64)) : (a(), p("div",
|
|
2093
|
+
], 64)) : (a(), p("div", Vi, [
|
|
2098
2094
|
c(k, {
|
|
2099
2095
|
type: "info",
|
|
2100
2096
|
size: "16",
|
|
2101
2097
|
class: "text-primary-500",
|
|
2102
2098
|
style: { "padding-bottom": "5px" }
|
|
2103
2099
|
}),
|
|
2104
|
-
l("div",
|
|
2105
|
-
l("div",
|
|
2100
|
+
l("div", Bi, d(e.$t("noCrm")), 1),
|
|
2101
|
+
l("div", Mi, [
|
|
2106
2102
|
c(D, {
|
|
2107
2103
|
to: { name: "settings" },
|
|
2108
2104
|
style: { "font-weight": "500" },
|
|
@@ -2117,7 +2113,7 @@ function Mi(e, t, n, s, i, o) {
|
|
|
2117
2113
|
]))
|
|
2118
2114
|
]);
|
|
2119
2115
|
}
|
|
2120
|
-
const
|
|
2116
|
+
const Ai = /* @__PURE__ */ F(oi, [["render", Pi], ["__scopeId", "data-v-5c4afae3"]]), Ei = {
|
|
2121
2117
|
name: "FieldsModal",
|
|
2122
2118
|
i18nOptions: {
|
|
2123
2119
|
namespaces: "FieldsModal",
|
|
@@ -2231,20 +2227,20 @@ const Pi = /* @__PURE__ */ F(ii, [["render", Mi], ["__scopeId", "data-v-5c4afae3
|
|
|
2231
2227
|
},
|
|
2232
2228
|
remove() {
|
|
2233
2229
|
if (!this.existingFieldId) return;
|
|
2234
|
-
const e =
|
|
2230
|
+
const e = Ht(this.document.fields, [this.existingFieldId]);
|
|
2235
2231
|
this.set({ key: "data.fields", value: e }), this.$emit("close");
|
|
2236
2232
|
}
|
|
2237
2233
|
}
|
|
2238
|
-
},
|
|
2234
|
+
}, zi = {
|
|
2239
2235
|
class: "font-inter flex w-full flex-col items-center bg-white text-center",
|
|
2240
2236
|
style: { padding: "2em", "border-radius": "10px" }
|
|
2241
|
-
},
|
|
2242
|
-
function
|
|
2237
|
+
}, Ri = { style: { "padding-bottom": "2em" } }, Oi = { style: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, Hi = { style: { "margin-bottom": "0.25em", opacity: "0.65" } };
|
|
2238
|
+
function Ui(e, t, n, s, i, o) {
|
|
2243
2239
|
const r = m("CInput"), g = m("CField"), h = m("CButton");
|
|
2244
|
-
return a(), p("div",
|
|
2245
|
-
l("div",
|
|
2246
|
-
l("div",
|
|
2247
|
-
l("div",
|
|
2240
|
+
return a(), p("div", zi, [
|
|
2241
|
+
l("div", Ri, [
|
|
2242
|
+
l("div", Oi, d(n.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")), 1),
|
|
2243
|
+
l("div", Hi, d(e.$t("description")), 1)
|
|
2248
2244
|
]),
|
|
2249
2245
|
l("form", {
|
|
2250
2246
|
style: { width: "100%" },
|
|
@@ -2304,7 +2300,7 @@ function Hi(e, t, n, s, i, o) {
|
|
|
2304
2300
|
], 32)
|
|
2305
2301
|
]);
|
|
2306
2302
|
}
|
|
2307
|
-
const
|
|
2303
|
+
const qi = /* @__PURE__ */ F(Ei, [["render", Ui]]), Gi = {
|
|
2308
2304
|
i18nOptions: {
|
|
2309
2305
|
namespaces: "DocumentFormFields",
|
|
2310
2306
|
messages: {
|
|
@@ -2328,8 +2324,8 @@ const Ui = /* @__PURE__ */ F(Ai, [["render", Hi]]), qi = {
|
|
|
2328
2324
|
},
|
|
2329
2325
|
name: "DocumentFormFields",
|
|
2330
2326
|
components: {
|
|
2331
|
-
SmartList:
|
|
2332
|
-
CAccordion:
|
|
2327
|
+
SmartList: Rt,
|
|
2328
|
+
CAccordion: Et,
|
|
2333
2329
|
CField: ye
|
|
2334
2330
|
},
|
|
2335
2331
|
mixins: [ne()],
|
|
@@ -2406,7 +2402,7 @@ const Ui = /* @__PURE__ */ F(Ai, [["render", Hi]]), qi = {
|
|
|
2406
2402
|
},
|
|
2407
2403
|
openFieldModal({ existingFieldId: e }) {
|
|
2408
2404
|
this.$modal.show(
|
|
2409
|
-
|
|
2405
|
+
qi,
|
|
2410
2406
|
{
|
|
2411
2407
|
document: this._document,
|
|
2412
2408
|
set: this.set,
|
|
@@ -2437,37 +2433,37 @@ const Ui = /* @__PURE__ */ F(Ai, [["render", Hi]]), qi = {
|
|
|
2437
2433
|
e.dataTransfer.setData("text/html", n), e.dataTransfer.setData("text", `{{${t.key}}}`);
|
|
2438
2434
|
}
|
|
2439
2435
|
}
|
|
2440
|
-
},
|
|
2436
|
+
}, Ni = { style: { padding: "1em" } }, Wi = { style: { margin: "15px 0" } }, ji = ["textContent"], Zi = ["textContent"], Ki = {
|
|
2441
2437
|
key: 0,
|
|
2442
2438
|
style: { "margin-top": "15px", "padding-top": "15px", "border-top": "1px solid hsl(0, 0%, 88%)" }
|
|
2443
|
-
},
|
|
2439
|
+
}, Qi = {
|
|
2444
2440
|
class: "field-container",
|
|
2445
2441
|
style: { position: "relative", flex: "1 1 auto" }
|
|
2446
|
-
},
|
|
2442
|
+
}, Yi = ["onDragstart", "textContent"], Ji = { class: "field-actions" }, Xi = {
|
|
2447
2443
|
key: 1,
|
|
2448
2444
|
style: { "text-align": "center" }
|
|
2449
|
-
},
|
|
2445
|
+
}, eo = {
|
|
2450
2446
|
key: 1,
|
|
2451
2447
|
style: { "padding-top": "20px" }
|
|
2452
|
-
},
|
|
2448
|
+
}, to = {
|
|
2453
2449
|
class: "flex w-full justify-end",
|
|
2454
2450
|
style: { "margin-top": "0.5em", "margin-bottom": "0.5em" }
|
|
2455
|
-
},
|
|
2451
|
+
}, no = { class: "list-button" }, io = ["textContent"], oo = ["textContent"], so = { style: { "padding-bottom": "2em" } }, lo = ["textContent"], ao = {
|
|
2456
2452
|
class: "field-container",
|
|
2457
2453
|
style: { position: "relative", flex: "1 1 auto" }
|
|
2458
|
-
},
|
|
2459
|
-
function
|
|
2454
|
+
}, ro = ["onDragstart", "textContent"], co = { class: "field-actions" };
|
|
2455
|
+
function uo(e, t, n, s, i, o) {
|
|
2460
2456
|
const r = m("CInput"), g = m("CField"), h = m("CButton"), b = m("SmartList"), _ = m("CIcon"), k = m("CAccordion");
|
|
2461
|
-
return a(), p("div",
|
|
2462
|
-
l("div",
|
|
2457
|
+
return a(), p("div", Ni, [
|
|
2458
|
+
l("div", Wi, [
|
|
2463
2459
|
l("div", {
|
|
2464
2460
|
style: { "font-size": "16px", "font-weight": "600" },
|
|
2465
2461
|
textContent: d(e.$t("title"))
|
|
2466
|
-
}, null, 8,
|
|
2462
|
+
}, null, 8, ji),
|
|
2467
2463
|
l("div", {
|
|
2468
2464
|
style: { color: "hsl(0, 0%, 35%)" },
|
|
2469
2465
|
textContent: d(e.$t("description"))
|
|
2470
|
-
}, null, 8,
|
|
2466
|
+
}, null, 8, Zi)
|
|
2471
2467
|
]),
|
|
2472
2468
|
c(r, {
|
|
2473
2469
|
modelValue: i.query,
|
|
@@ -2476,7 +2472,7 @@ function co(e, t, n, s, i, o) {
|
|
|
2476
2472
|
filled: "",
|
|
2477
2473
|
size: "small"
|
|
2478
2474
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
2479
|
-
i.query ? (a(), p("div",
|
|
2475
|
+
i.query ? (a(), p("div", Ki, [
|
|
2480
2476
|
c(b, {
|
|
2481
2477
|
items: o.options,
|
|
2482
2478
|
"filter-method": o.filterMethod,
|
|
@@ -2488,7 +2484,7 @@ function co(e, t, n, s, i, o) {
|
|
|
2488
2484
|
key: y,
|
|
2489
2485
|
class: "field-parent flex w-full items-center"
|
|
2490
2486
|
}, [
|
|
2491
|
-
l("div",
|
|
2487
|
+
l("div", Qi, [
|
|
2492
2488
|
c(g, {
|
|
2493
2489
|
label: " ",
|
|
2494
2490
|
"label-position": "inside",
|
|
@@ -2500,7 +2496,7 @@ function co(e, t, n, s, i, o) {
|
|
|
2500
2496
|
draggable: !0,
|
|
2501
2497
|
onDragstart: (f) => o.onDragStart(f, D),
|
|
2502
2498
|
textContent: d(D.label)
|
|
2503
|
-
}, null, 40,
|
|
2499
|
+
}, null, 40, Yi),
|
|
2504
2500
|
c(r, {
|
|
2505
2501
|
"model-value": D.value,
|
|
2506
2502
|
disabled: D.inputDisabled,
|
|
@@ -2515,7 +2511,7 @@ function co(e, t, n, s, i, o) {
|
|
|
2515
2511
|
]),
|
|
2516
2512
|
_: 2
|
|
2517
2513
|
}, 1024),
|
|
2518
|
-
l("div",
|
|
2514
|
+
l("div", Ji, [
|
|
2519
2515
|
!D.inputDisabled && !D.virtual ? (a(), v(h, {
|
|
2520
2516
|
key: 0,
|
|
2521
2517
|
icon: "edit",
|
|
@@ -2535,13 +2531,13 @@ function co(e, t, n, s, i, o) {
|
|
|
2535
2531
|
}, null, 8, ["onClick"])
|
|
2536
2532
|
])
|
|
2537
2533
|
])
|
|
2538
|
-
]))), 128)) : (a(), p("div",
|
|
2534
|
+
]))), 128)) : (a(), p("div", Xi, d(e.$t("_common:noResults")), 1))
|
|
2539
2535
|
])
|
|
2540
2536
|
]),
|
|
2541
2537
|
_: 1
|
|
2542
2538
|
}, 8, ["items", "filter-method", "query"])
|
|
2543
|
-
])) : (a(), p("div",
|
|
2544
|
-
l("div",
|
|
2539
|
+
])) : (a(), p("div", eo, [
|
|
2540
|
+
l("div", to, [
|
|
2545
2541
|
c(h, {
|
|
2546
2542
|
type: "none",
|
|
2547
2543
|
pattern: "secondary",
|
|
@@ -2575,15 +2571,15 @@ function co(e, t, n, s, i, o) {
|
|
|
2575
2571
|
style: { "border-top": "1px solid hsl(0, 0%, 88%)" }
|
|
2576
2572
|
}, {
|
|
2577
2573
|
trigger: u(({ expanded: y }) => [
|
|
2578
|
-
l("div",
|
|
2574
|
+
l("div", no, [
|
|
2579
2575
|
l("span", null, [
|
|
2580
2576
|
l("span", {
|
|
2581
2577
|
textContent: d(S.label)
|
|
2582
|
-
}, null, 8,
|
|
2578
|
+
}, null, 8, io),
|
|
2583
2579
|
l("span", {
|
|
2584
2580
|
style: { opacity: "0.45", "padding-left": "0.5em" },
|
|
2585
2581
|
textContent: d(S.items.length)
|
|
2586
|
-
}, null, 8,
|
|
2582
|
+
}, null, 8, oo)
|
|
2587
2583
|
]),
|
|
2588
2584
|
c(_, {
|
|
2589
2585
|
style: E([{ transform: `rotate(${y ? "180deg" : "0deg"})` }, { transition: "200ms" }]),
|
|
@@ -2593,12 +2589,12 @@ function co(e, t, n, s, i, o) {
|
|
|
2593
2589
|
])
|
|
2594
2590
|
]),
|
|
2595
2591
|
default: u(() => [
|
|
2596
|
-
l("div",
|
|
2592
|
+
l("div", so, [
|
|
2597
2593
|
S.items.length ? (a(!0), p(I, { key: 1 }, P(S.items, (y, f) => (a(), p("div", {
|
|
2598
2594
|
key: f,
|
|
2599
2595
|
class: "field-parent flex w-full items-center"
|
|
2600
2596
|
}, [
|
|
2601
|
-
l("div",
|
|
2597
|
+
l("div", ao, [
|
|
2602
2598
|
c(g, {
|
|
2603
2599
|
label: " ",
|
|
2604
2600
|
"label-position": "inside",
|
|
@@ -2610,7 +2606,7 @@ function co(e, t, n, s, i, o) {
|
|
|
2610
2606
|
draggable: !0,
|
|
2611
2607
|
onDragstart: (x) => o.onDragStart(x, y),
|
|
2612
2608
|
textContent: d(y.label)
|
|
2613
|
-
}, null, 40,
|
|
2609
|
+
}, null, 40, ro),
|
|
2614
2610
|
c(r, {
|
|
2615
2611
|
"model-value": y.value,
|
|
2616
2612
|
disabled: y.inputDisabled,
|
|
@@ -2625,7 +2621,7 @@ function co(e, t, n, s, i, o) {
|
|
|
2625
2621
|
]),
|
|
2626
2622
|
_: 2
|
|
2627
2623
|
}, 1024),
|
|
2628
|
-
l("div",
|
|
2624
|
+
l("div", co, [
|
|
2629
2625
|
!y.inputDisabled && !y.virtual ? (a(), v(h, {
|
|
2630
2626
|
key: 0,
|
|
2631
2627
|
icon: "edit",
|
|
@@ -2649,7 +2645,7 @@ function co(e, t, n, s, i, o) {
|
|
|
2649
2645
|
key: 0,
|
|
2650
2646
|
style: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" },
|
|
2651
2647
|
textContent: d(e.$t("noResults"))
|
|
2652
|
-
}, null, 8,
|
|
2648
|
+
}, null, 8, lo))
|
|
2653
2649
|
])
|
|
2654
2650
|
]),
|
|
2655
2651
|
_: 2
|
|
@@ -2657,7 +2653,7 @@ function co(e, t, n, s, i, o) {
|
|
|
2657
2653
|
]))
|
|
2658
2654
|
]);
|
|
2659
2655
|
}
|
|
2660
|
-
const
|
|
2656
|
+
const mo = /* @__PURE__ */ F(Gi, [["render", uo], ["__scopeId", "data-v-454d81b5"]]), po = {
|
|
2661
2657
|
name: "MenuBlockConvertPopover",
|
|
2662
2658
|
emits: ["close", "convert"],
|
|
2663
2659
|
props: {
|
|
@@ -2690,11 +2686,11 @@ const uo = /* @__PURE__ */ F(qi, [["render", co], ["__scopeId", "data-v-454d81b5
|
|
|
2690
2686
|
}
|
|
2691
2687
|
}
|
|
2692
2688
|
}
|
|
2693
|
-
},
|
|
2689
|
+
}, ho = {
|
|
2694
2690
|
ref: "popover",
|
|
2695
2691
|
class: "absolute z-10 w-52 -translate-y-1/2 rounded-lg bg-white p-4 text-sm shadow-xl"
|
|
2696
|
-
},
|
|
2697
|
-
function
|
|
2692
|
+
}, fo = ["innerHTML"];
|
|
2693
|
+
function go(e, t, n, s, i, o) {
|
|
2698
2694
|
const r = m("CButton");
|
|
2699
2695
|
return a(), p("div", null, [
|
|
2700
2696
|
l("div", {
|
|
@@ -2712,11 +2708,11 @@ function fo(e, t, n, s, i, o) {
|
|
|
2712
2708
|
"leave-to-class": "opacity-0"
|
|
2713
2709
|
}, {
|
|
2714
2710
|
default: u(() => [
|
|
2715
|
-
l("div",
|
|
2711
|
+
l("div", ho, [
|
|
2716
2712
|
l("div", {
|
|
2717
2713
|
class: "pb-4",
|
|
2718
2714
|
innerHTML: e.$t("text")
|
|
2719
|
-
}, null, 8,
|
|
2715
|
+
}, null, 8, fo),
|
|
2720
2716
|
c(r, {
|
|
2721
2717
|
type: "secondary",
|
|
2722
2718
|
size: "small",
|
|
@@ -2734,7 +2730,7 @@ function fo(e, t, n, s, i, o) {
|
|
|
2734
2730
|
})
|
|
2735
2731
|
]);
|
|
2736
2732
|
}
|
|
2737
|
-
const
|
|
2733
|
+
const yo = /* @__PURE__ */ F(po, [["render", go]]), vo = {
|
|
2738
2734
|
name: "MenuBlocks",
|
|
2739
2735
|
i18nOptions: {
|
|
2740
2736
|
namespaces: "menuBlocks",
|
|
@@ -2809,7 +2805,7 @@ const go = /* @__PURE__ */ F(mo, [["render", fo]]), yo = {
|
|
|
2809
2805
|
DragItem: Ie,
|
|
2810
2806
|
IsPremiumPreStep: Y,
|
|
2811
2807
|
ProBadge: Ae,
|
|
2812
|
-
MenuBlockConvertPopover:
|
|
2808
|
+
MenuBlockConvertPopover: yo
|
|
2813
2809
|
},
|
|
2814
2810
|
mixins: [Z],
|
|
2815
2811
|
inject: {
|
|
@@ -3175,7 +3171,7 @@ const go = /* @__PURE__ */ F(mo, [["render", fo]]), yo = {
|
|
|
3175
3171
|
var i, o;
|
|
3176
3172
|
if (this.mq === "sm") return;
|
|
3177
3173
|
const { tooltips: e } = this, t = (o = (i = this.$el).getRootNode) == null ? void 0 : o.call(i), s = (t == null ? void 0 : t.toString()) === "[object ShadowRoot]" ? t : document.body;
|
|
3178
|
-
this.tippyInstances =
|
|
3174
|
+
this.tippyInstances = Vt(this.$el, {
|
|
3179
3175
|
target: "[data-tooltip-key]",
|
|
3180
3176
|
allowHTML: !0,
|
|
3181
3177
|
duration: [150, 0],
|
|
@@ -3242,17 +3238,17 @@ const go = /* @__PURE__ */ F(mo, [["render", fo]]), yo = {
|
|
|
3242
3238
|
};
|
|
3243
3239
|
}
|
|
3244
3240
|
}
|
|
3245
|
-
},
|
|
3241
|
+
}, Co = { class: "menu-container" }, bo = {
|
|
3246
3242
|
key: 0,
|
|
3247
3243
|
style: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(1 * var(--rem))" }
|
|
3248
|
-
},
|
|
3244
|
+
}, ko = ["onMouseoverPassive"], wo = {
|
|
3249
3245
|
class: "flex items-center",
|
|
3250
3246
|
style: { width: "230px" }
|
|
3251
|
-
},
|
|
3247
|
+
}, _o = {
|
|
3252
3248
|
class: "flex items-center",
|
|
3253
3249
|
style: { width: "initial", flex: "1 1 auto" }
|
|
3254
|
-
},
|
|
3255
|
-
function
|
|
3250
|
+
}, xo = ["innerHTML"], To = { class: "option-title" }, Do = { class: "relative" }, So = ["onClick", "innerHTML"];
|
|
3251
|
+
function $o(e, t, n, s, i, o) {
|
|
3256
3252
|
const r = m("MenuBlockConvertPopover"), g = m("ProBadge"), h = m("CIcon"), b = m("CButton"), _ = m("DragItem"), k = m("DragList"), S = m("Simplebar"), D = m("IsPremiumPreStep");
|
|
3257
3253
|
return a(), p("div", {
|
|
3258
3254
|
onMouseleavePassive: t[4] || (t[4] = (...y) => o.onMouseleaveDrawer && o.onMouseleaveDrawer(...y))
|
|
@@ -3265,12 +3261,12 @@ function So(e, t, n, s, i, o) {
|
|
|
3265
3261
|
onConvert: o.deSyncTemplate,
|
|
3266
3262
|
onClose: t[0] || (t[0] = (f) => i.showConvertEditableDialog = !1)
|
|
3267
3263
|
}, null, 8, ["target", "onConvert"])) : C("", !0),
|
|
3268
|
-
l("div",
|
|
3264
|
+
l("div", Co, [
|
|
3269
3265
|
(a(!0), p(I, null, P([
|
|
3270
3266
|
{ data: o.primaryBlocks },
|
|
3271
3267
|
{ data: o.secondaryBlocks }
|
|
3272
3268
|
], (f, x) => (a(), p("div", { key: x }, [
|
|
3273
|
-
x > 0 ? (a(), p("div",
|
|
3269
|
+
x > 0 ? (a(), p("div", bo)) : C("", !0),
|
|
3274
3270
|
c(k, {
|
|
3275
3271
|
group: { name: "blocks", pull: "clone", put: !1 },
|
|
3276
3272
|
"get-child-payload": (w) => s.getBlockPayload(o.getSectionKey({ data: f.data, index: w })),
|
|
@@ -3314,13 +3310,13 @@ function So(e, t, n, s, i, o) {
|
|
|
3314
3310
|
onClick: (A) => o.onUseBlock({ block: w, openUpgradeModal: y })
|
|
3315
3311
|
}, {
|
|
3316
3312
|
default: u(() => [
|
|
3317
|
-
l("div",
|
|
3318
|
-
l("div",
|
|
3313
|
+
l("div", wo, [
|
|
3314
|
+
l("div", _o, [
|
|
3319
3315
|
l("div", {
|
|
3320
3316
|
class: "option-image",
|
|
3321
3317
|
innerHTML: w.icon
|
|
3322
|
-
}, null, 8,
|
|
3323
|
-
l("div",
|
|
3318
|
+
}, null, 8, xo),
|
|
3319
|
+
l("div", To, d(e.$t(`blocks.${w.key}`)), 1)
|
|
3324
3320
|
]),
|
|
3325
3321
|
w.locked ? (a(), v(g, { key: 0 })) : !n.fixed && w.subMenu ? (a(), v(h, {
|
|
3326
3322
|
key: 1,
|
|
@@ -3332,7 +3328,7 @@ function So(e, t, n, s, i, o) {
|
|
|
3332
3328
|
]),
|
|
3333
3329
|
_: 2
|
|
3334
3330
|
}, 1032, ["disabled", "class", "onClick"])
|
|
3335
|
-
], 16,
|
|
3331
|
+
], 16, ko)
|
|
3336
3332
|
]),
|
|
3337
3333
|
_: 2
|
|
3338
3334
|
}, 1032, ["class"]))), 128))
|
|
@@ -3371,12 +3367,12 @@ function So(e, t, n, s, i, o) {
|
|
|
3371
3367
|
class: L(["px-1.5", { "drag-item": !f.locked && n.canUseBlocks }])
|
|
3372
3368
|
}, {
|
|
3373
3369
|
default: u(() => [
|
|
3374
|
-
l("div",
|
|
3370
|
+
l("div", Do, [
|
|
3375
3371
|
l("div", {
|
|
3376
3372
|
class: "drag-item-preview",
|
|
3377
3373
|
onClick: (w) => o.onUseBlock({ block: f, openUpgradeModal: y }),
|
|
3378
3374
|
innerHTML: f.previewUrl
|
|
3379
|
-
}, null, 8,
|
|
3375
|
+
}, null, 8, So),
|
|
3380
3376
|
f.locked ? (a(), v(g, {
|
|
3381
3377
|
key: 0,
|
|
3382
3378
|
class: "absolute bottom-2 right-4"
|
|
@@ -3402,7 +3398,7 @@ function So(e, t, n, s, i, o) {
|
|
|
3402
3398
|
})
|
|
3403
3399
|
], 32);
|
|
3404
3400
|
}
|
|
3405
|
-
const
|
|
3401
|
+
const Io = /* @__PURE__ */ F(vo, [["render", $o], ["__scopeId", "data-v-babdf4c0"]]), Fo = {
|
|
3406
3402
|
name: "DocumentFormMenu",
|
|
3407
3403
|
i18nOptions: {
|
|
3408
3404
|
namespaces: "documentFormMenu",
|
|
@@ -3418,14 +3414,14 @@ const $o = /* @__PURE__ */ F(yo, [["render", So], ["__scopeId", "data-v-babdf4c0
|
|
|
3418
3414
|
}
|
|
3419
3415
|
},
|
|
3420
3416
|
components: {
|
|
3421
|
-
Design:
|
|
3422
|
-
Fields:
|
|
3423
|
-
ExtensionTab:
|
|
3424
|
-
DocumentGeneralSettings:
|
|
3417
|
+
Design: Jn,
|
|
3418
|
+
Fields: mo,
|
|
3419
|
+
ExtensionTab: Ai,
|
|
3420
|
+
DocumentGeneralSettings: ii,
|
|
3425
3421
|
DocumentGuide: tt(
|
|
3426
|
-
() => import("./index-
|
|
3422
|
+
() => import("./index-x9x0Q0A6.js")
|
|
3427
3423
|
),
|
|
3428
|
-
MenuBlocks:
|
|
3424
|
+
MenuBlocks: Io,
|
|
3429
3425
|
Simplebar: Q
|
|
3430
3426
|
},
|
|
3431
3427
|
emits: ["close"],
|
|
@@ -3487,17 +3483,17 @@ const $o = /* @__PURE__ */ F(yo, [["render", So], ["__scopeId", "data-v-babdf4c0
|
|
|
3487
3483
|
this.showGuide = !0, this.showGuideNotification = !1, we.setItem("hideFormGuideNotification", !0);
|
|
3488
3484
|
}
|
|
3489
3485
|
}
|
|
3490
|
-
},
|
|
3486
|
+
}, Lo = {
|
|
3491
3487
|
key: 0,
|
|
3492
3488
|
class: "tab-list"
|
|
3493
|
-
},
|
|
3489
|
+
}, Vo = ["textContent"], Bo = ["textContent"], Mo = ["textContent"], Po = { style: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "flex-end", "align-items": "flex-start", padding: "calc(1 * var(--rem))" } }, Ao = {
|
|
3494
3490
|
key: 0,
|
|
3495
3491
|
class: "circle-pulse"
|
|
3496
|
-
},
|
|
3492
|
+
}, Eo = {
|
|
3497
3493
|
key: 2,
|
|
3498
3494
|
class: "menu-container"
|
|
3499
3495
|
};
|
|
3500
|
-
function
|
|
3496
|
+
function zo(e, t, n, s, i, o) {
|
|
3501
3497
|
const r = m("CIcon"), g = m("CButton"), h = m("MenuBlocks"), b = m("Design"), _ = m("Fields"), k = m("ExtensionTab"), S = m("DocumentGeneralSettings"), D = m("Simplebar"), y = m("DocumentGuide");
|
|
3502
3498
|
return a(), p("div", null, [
|
|
3503
3499
|
l("div", {
|
|
@@ -3512,22 +3508,22 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3512
3508
|
l("div", {
|
|
3513
3509
|
style: E([{ width: `${n.width}px` }, { height: "100%", "font-size": "14px", "border-radius": "0 8px 8px 0", "box-shadow": "0 10px 20px rgba(0, 0, 0, 0.2)" }])
|
|
3514
3510
|
}, [
|
|
3515
|
-
n.isLegacyTemplate ? C("", !0) : (a(), p("div",
|
|
3511
|
+
n.isLegacyTemplate ? C("", !0) : (a(), p("div", Lo, [
|
|
3516
3512
|
l("div", {
|
|
3517
3513
|
class: L([{ "is-active": i.tab === "blocks" }, "tab-item"]),
|
|
3518
3514
|
onClick: t[1] || (t[1] = (f) => i.tab = "blocks"),
|
|
3519
3515
|
textContent: d(e.$t("tabs.blocks"))
|
|
3520
|
-
}, null, 10,
|
|
3516
|
+
}, null, 10, Vo),
|
|
3521
3517
|
l("div", {
|
|
3522
3518
|
class: L([{ "is-active": i.tab === "design" }, "tab-item"]),
|
|
3523
3519
|
onClick: t[2] || (t[2] = (f) => i.tab = "design"),
|
|
3524
3520
|
textContent: d(e.$t("tabs.design"))
|
|
3525
|
-
}, null, 10,
|
|
3521
|
+
}, null, 10, Bo),
|
|
3526
3522
|
l("div", {
|
|
3527
3523
|
class: L([{ "is-active": i.tab === "fields" }, "tab-item"]),
|
|
3528
3524
|
onClick: t[3] || (t[3] = (f) => i.tab = "fields"),
|
|
3529
3525
|
textContent: d(e.$t("tabs.fields"))
|
|
3530
|
-
}, null, 10,
|
|
3526
|
+
}, null, 10, Mo),
|
|
3531
3527
|
o.extensionTabType ? (a(), p("div", {
|
|
3532
3528
|
key: 0,
|
|
3533
3529
|
class: L([{ "is-active": i.tab === "extension" }, "tab-item"]),
|
|
@@ -3571,7 +3567,7 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3571
3567
|
onBlockAdded: t[6] || (t[6] = (f) => n.fixed ? e.$emit("close") : null)
|
|
3572
3568
|
}, {
|
|
3573
3569
|
footer: u(() => [
|
|
3574
|
-
l("div",
|
|
3570
|
+
l("div", Po, [
|
|
3575
3571
|
c(g, {
|
|
3576
3572
|
"icon-left": "help",
|
|
3577
3573
|
type: "none",
|
|
@@ -3582,14 +3578,14 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3582
3578
|
}, {
|
|
3583
3579
|
default: u(() => [
|
|
3584
3580
|
T(d(e.$t("guideButton")) + " ", 1),
|
|
3585
|
-
i.showGuideNotification ? (a(), p("div",
|
|
3581
|
+
i.showGuideNotification ? (a(), p("div", Ao)) : C("", !0)
|
|
3586
3582
|
]),
|
|
3587
3583
|
_: 1
|
|
3588
3584
|
}, 8, ["onClick"])
|
|
3589
3585
|
])
|
|
3590
3586
|
]),
|
|
3591
3587
|
_: 1
|
|
3592
|
-
}, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (a(), p("div",
|
|
3588
|
+
}, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (a(), p("div", Eo, [
|
|
3593
3589
|
c(D, { class: "h-full w-full" }, {
|
|
3594
3590
|
default: u(() => [
|
|
3595
3591
|
i.tab === "design" ? (a(), v(b, {
|
|
@@ -3648,12 +3644,12 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3648
3644
|
], 4)
|
|
3649
3645
|
]);
|
|
3650
3646
|
}
|
|
3651
|
-
const
|
|
3647
|
+
const Ro = /* @__PURE__ */ F(Fo, [["render", zo], ["__scopeId", "data-v-2721fb3f"]]), Oe = (e, t, n = "children") => {
|
|
3652
3648
|
if (!e) return;
|
|
3653
3649
|
t(e);
|
|
3654
3650
|
const s = e[n];
|
|
3655
3651
|
!s && !Array.isArray(s) || s.forEach((i) => Oe(i, t));
|
|
3656
|
-
},
|
|
3652
|
+
}, Oo = {
|
|
3657
3653
|
i18nOptions: {
|
|
3658
3654
|
namespaces: "DocumentFormContainer",
|
|
3659
3655
|
messages: {
|
|
@@ -3669,18 +3665,18 @@ const zo = /* @__PURE__ */ F(Io, [["render", Eo], ["__scopeId", "data-v-2721fb3f
|
|
|
3669
3665
|
},
|
|
3670
3666
|
name: "DocumentFormContainer",
|
|
3671
3667
|
components: {
|
|
3672
|
-
WithDimensions:
|
|
3668
|
+
WithDimensions: $t,
|
|
3673
3669
|
DragList: $e,
|
|
3674
3670
|
DragItem: Ie,
|
|
3675
|
-
DynamicChapter:
|
|
3676
|
-
DocumentFormMenu:
|
|
3677
|
-
DynamicBlock:
|
|
3678
|
-
DocumentFormViewRadio:
|
|
3679
|
-
DocumentFormNav:
|
|
3680
|
-
DocumentDrawer:
|
|
3681
|
-
DocumentStyleContainer:
|
|
3671
|
+
DynamicChapter: It,
|
|
3672
|
+
DocumentFormMenu: Ro,
|
|
3673
|
+
DynamicBlock: Ln,
|
|
3674
|
+
DocumentFormViewRadio: kn,
|
|
3675
|
+
DocumentFormNav: yn,
|
|
3676
|
+
DocumentDrawer: dn,
|
|
3677
|
+
DocumentStyleContainer: Ft,
|
|
3682
3678
|
simplebar: Q,
|
|
3683
|
-
LogoBanner:
|
|
3679
|
+
LogoBanner: zn,
|
|
3684
3680
|
IsPremium: J
|
|
3685
3681
|
},
|
|
3686
3682
|
emits: ["update:view"],
|
|
@@ -3813,7 +3809,7 @@ const zo = /* @__PURE__ */ F(Io, [["render", Eo], ["__scopeId", "data-v-2721fb3f
|
|
|
3813
3809
|
},
|
|
3814
3810
|
methods: {
|
|
3815
3811
|
onAddBlockMount(e, t) {
|
|
3816
|
-
t &&
|
|
3812
|
+
t && Bt(e) && this.$nextTick(() => qt(t, { offset: 100 }));
|
|
3817
3813
|
},
|
|
3818
3814
|
onBlockToggleVisible(e, t) {
|
|
3819
3815
|
const s = [...this.readLayout].findIndex(
|
|
@@ -3907,17 +3903,17 @@ const zo = /* @__PURE__ */ F(Io, [["render", Eo], ["__scopeId", "data-v-2721fb3f
|
|
|
3907
3903
|
return e && e.behaviour === "move";
|
|
3908
3904
|
}
|
|
3909
3905
|
}
|
|
3910
|
-
},
|
|
3906
|
+
}, Ho = { class: "h-screen overflow-auto" }, Uo = { class: "relative flex w-full items-center space-x-4" }, qo = { class: "relative" }, Go = {
|
|
3911
3907
|
key: 0,
|
|
3912
3908
|
style: { left: "calc(100% + calc(1.25 * var(--rem)))" },
|
|
3913
3909
|
class: "absolute inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 backdrop-blur-lg backdrop-saturate-[180%]"
|
|
3914
|
-
},
|
|
3910
|
+
}, No = ["onClick"], Wo = {
|
|
3915
3911
|
key: 0,
|
|
3916
3912
|
class: "drag-drop-empty-list is-placeholder text-gray-400"
|
|
3917
|
-
},
|
|
3918
|
-
function
|
|
3913
|
+
}, jo = ["innerHTML"];
|
|
3914
|
+
function Zo(e, t, n, s, i, o) {
|
|
3919
3915
|
const r = m("CButton"), g = m("DocumentFormViewRadio"), h = m("CIcon"), b = m("DocumentFormNav"), _ = m("DocumentFormMenu"), k = m("DynamicChapter"), S = m("DynamicBlock"), D = m("LogoBanner"), y = m("IsPremium"), f = m("DocumentStyleContainer"), x = m("WithDimensions"), w = m("portal-target"), A = m("DocumentDrawer");
|
|
3920
|
-
return a(), p("div",
|
|
3916
|
+
return a(), p("div", Ho, [
|
|
3921
3917
|
l("div", {
|
|
3922
3918
|
class: L([{
|
|
3923
3919
|
"is-edit-view": o.isEditView,
|
|
@@ -3926,7 +3922,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3926
3922
|
}, [
|
|
3927
3923
|
c(b, { close: n.close }, {
|
|
3928
3924
|
left: u(() => [
|
|
3929
|
-
l("div",
|
|
3925
|
+
l("div", Uo, [
|
|
3930
3926
|
n.close ? (a(), v(r, {
|
|
3931
3927
|
key: 0,
|
|
3932
3928
|
"icon-props": { size: 20 },
|
|
@@ -3961,7 +3957,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3961
3957
|
])
|
|
3962
3958
|
]),
|
|
3963
3959
|
center: u(() => [
|
|
3964
|
-
l("div",
|
|
3960
|
+
l("div", qo, [
|
|
3965
3961
|
N(c(g, {
|
|
3966
3962
|
small: e.mq === "sm",
|
|
3967
3963
|
"model-value": n.view,
|
|
@@ -3969,7 +3965,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3969
3965
|
}, null, 8, ["small", "model-value"]), [
|
|
3970
3966
|
[ce, o.nestedReadLayout.length]
|
|
3971
3967
|
]),
|
|
3972
|
-
!o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (a(), p("div",
|
|
3968
|
+
!o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (a(), p("div", Go, [
|
|
3973
3969
|
(a(), p(I, null, P(["desktop", "tablet", "mobile"], (z) => l("div", {
|
|
3974
3970
|
key: z,
|
|
3975
3971
|
style: E(
|
|
@@ -3986,7 +3982,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3986
3982
|
type: z,
|
|
3987
3983
|
size: "20"
|
|
3988
3984
|
}, null, 8, ["type"])
|
|
3989
|
-
], 12,
|
|
3985
|
+
], 12, No)), 64))
|
|
3990
3986
|
])) : C("", !0)
|
|
3991
3987
|
])
|
|
3992
3988
|
]),
|
|
@@ -4029,13 +4025,13 @@ function jo(e, t, n, s, i, o) {
|
|
|
4029
4025
|
o.isEditView && "mx-auto min-h-full w-[1200px] max-w-full overflow-hidden rounded-md px-0 shadow-[0_20px_35px_-8px_hsla(0,0%,0%,0.27)] md:max-w-[90%]"
|
|
4030
4026
|
], "list-container"])
|
|
4031
4027
|
}, [
|
|
4032
|
-
!o.nestedReadLayout.length && !o.isFixedSidebar ? (a(), p("div",
|
|
4028
|
+
!o.nestedReadLayout.length && !o.isFixedSidebar ? (a(), p("div", Wo, [
|
|
4033
4029
|
t[8] || (t[8] = ot('<div style="position:relative;" data-v-91d0aa83><div class="drag-drop-illustration-block" data-v-91d0aa83><div data-v-91d0aa83></div><div data-v-91d0aa83></div></div><svg class="drag-drop-illustration" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" data-v-91d0aa83><path class="drag-drop-illustration-finger" d="M8 0a4 4 0 00-2.7 1C4.6 1.6 4 2.7 4 4v21.4c-.4.2-.8.2-1.7 1A7.2 7.2 0 000 31.8c0 2 .8 3.8 1 4.5L4 42s-.1 0 0 0c1.4 3.1 4.5 5 8 5h9c5 0 9-4 9-9V22c0-.8-.1-2-.7-3-.5-1-1.7-2-3.3-2-1 0-2 .4-2.6.9 0-.3-.1-.7-.3-1-.6-1-1.7-1.9-3.1-1.9a4 4 0 00-2.7 1c-.6-1.1-1.7-2-3.3-2-.8 0-1.4.2-2 .6V4a4 4 0 00-4-4z" fill="#000" fill-rule="nonzero" data-v-91d0aa83></path><path class="drag-drop-illustration-grabbing" transform="translate(0 11)" d="M14 1c-.8 0-1.8.2-2.6.8l-.9 1a4 4 0 00-5.2.2C4.6 3.6 4 4.7 4 5.9V14c-1.7.7-4 3-4 7 0 2.2.9 4.2 1 4.5L3.9 31c1.5 3.1 4.6 5 8 5H21c5 0 9-4 9-9V9c0-4.4-2.5-5-4-5-.7 0-1.5.1-2.3.7C23 2.5 21.4 2 20 2c-1 0-2 .3-2.6.8l-.6-.9A4 4 0 0014 1z" fill="#000" fill-rule="nonzero" data-v-91d0aa83></path></svg></div>', 1)),
|
|
4034
4030
|
l("div", {
|
|
4035
4031
|
class: "text-center",
|
|
4036
4032
|
style: { "max-width": "22ch" },
|
|
4037
4033
|
innerHTML: e.$t("emptyBlockPlaceholderLarge")
|
|
4038
|
-
}, null, 8,
|
|
4034
|
+
}, null, 8, jo)
|
|
4039
4035
|
])) : C("", !0),
|
|
4040
4036
|
(a(), v(G(o.isEditView ? "div" : "simplebar"), { class: "h-full w-full" }, {
|
|
4041
4037
|
default: u(() => [
|
|
@@ -4161,7 +4157,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
4161
4157
|
], 2)
|
|
4162
4158
|
]);
|
|
4163
4159
|
}
|
|
4164
|
-
const
|
|
4160
|
+
const Ko = /* @__PURE__ */ F(Oo, [["render", Zo], ["__scopeId", "data-v-91d0aa83"]]), Qo = {
|
|
4165
4161
|
name: "DocumentSend",
|
|
4166
4162
|
i18nOptions: {
|
|
4167
4163
|
namespaces: "documentSend",
|
|
@@ -4188,7 +4184,7 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-91d0aa83
|
|
|
4188
4184
|
},
|
|
4189
4185
|
components: {
|
|
4190
4186
|
Drawer: ze,
|
|
4191
|
-
SendForm:
|
|
4187
|
+
SendForm: Gt,
|
|
4192
4188
|
CCheckbox: Fe,
|
|
4193
4189
|
CIcon: st,
|
|
4194
4190
|
CButton: lt,
|
|
@@ -4300,14 +4296,14 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-91d0aa83
|
|
|
4300
4296
|
}));
|
|
4301
4297
|
}
|
|
4302
4298
|
}
|
|
4303
|
-
},
|
|
4299
|
+
}, Yo = {
|
|
4304
4300
|
key: "1",
|
|
4305
4301
|
class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
|
|
4306
|
-
},
|
|
4302
|
+
}, Jo = { class: "pl-2" }, Xo = ["textContent"], es = { class: "mb-4 text-sm text-red-600 text-opacity-80" }, ts = {
|
|
4307
4303
|
for: "checkbox-save-as-temp",
|
|
4308
4304
|
class: "inline-flex cursor-pointer select-none items-center py-2 text-[12px] font-[500] text-gray-600"
|
|
4309
|
-
},
|
|
4310
|
-
function
|
|
4305
|
+
}, ns = ["onClick"], is = { style: { "padding-left": "0.5em" } };
|
|
4306
|
+
function os(e, t, n, s, i, o) {
|
|
4311
4307
|
const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"), b = m("ProBadge"), _ = m("IsPremiumPreStep"), k = m("IsPremium"), S = m("SendForm"), D = le("tooltip");
|
|
4312
4308
|
return e.mq !== "sm" || i.isOpen ? (a(), v(G(e.mq === "sm" ? "div" : "Drawer"), {
|
|
4313
4309
|
key: 0,
|
|
@@ -4351,7 +4347,7 @@ function is(e, t, n, s, i, o) {
|
|
|
4351
4347
|
}, 8, ["onClick"])) : C("", !0)
|
|
4352
4348
|
]),
|
|
4353
4349
|
[o.saveTemplateSlot]: u(() => [
|
|
4354
|
-
l("label",
|
|
4350
|
+
l("label", ts, [
|
|
4355
4351
|
c(k, null, {
|
|
4356
4352
|
default: u(({ canCreateTemplate: y }) => [
|
|
4357
4353
|
c(_, { feature: "saveDocTemplate" }, {
|
|
@@ -4371,7 +4367,7 @@ function is(e, t, n, s, i, o) {
|
|
|
4371
4367
|
size: "small",
|
|
4372
4368
|
type: "secondary"
|
|
4373
4369
|
}, null, 8, ["modelValue"]),
|
|
4374
|
-
l("div",
|
|
4370
|
+
l("div", is, [
|
|
4375
4371
|
T(d(e.$t("saveDocAsTemplate")) + " ", 1),
|
|
4376
4372
|
N(c(g, {
|
|
4377
4373
|
type: "info",
|
|
@@ -4384,7 +4380,7 @@ function is(e, t, n, s, i, o) {
|
|
|
4384
4380
|
key: 0,
|
|
4385
4381
|
class: "ml-2 self-center"
|
|
4386
4382
|
}))
|
|
4387
|
-
], 8,
|
|
4383
|
+
], 8, ns)
|
|
4388
4384
|
]),
|
|
4389
4385
|
_: 2
|
|
4390
4386
|
}, 1024)
|
|
@@ -4394,7 +4390,7 @@ function is(e, t, n, s, i, o) {
|
|
|
4394
4390
|
])
|
|
4395
4391
|
]),
|
|
4396
4392
|
default: u(() => [
|
|
4397
|
-
o.hasAnswerBlock ? C("", !0) : (a(), p("div",
|
|
4393
|
+
o.hasAnswerBlock ? C("", !0) : (a(), p("div", Yo, [
|
|
4398
4394
|
l("div", null, [
|
|
4399
4395
|
c(g, {
|
|
4400
4396
|
type: "error",
|
|
@@ -4403,12 +4399,12 @@ function is(e, t, n, s, i, o) {
|
|
|
4403
4399
|
})
|
|
4404
4400
|
]),
|
|
4405
4401
|
l("div", null, [
|
|
4406
|
-
l("div",
|
|
4402
|
+
l("div", Jo, [
|
|
4407
4403
|
l("div", {
|
|
4408
4404
|
class: "text-sm font-semibold text-red-600",
|
|
4409
4405
|
textContent: d(e.$t("signMissingTitle"))
|
|
4410
|
-
}, null, 8,
|
|
4411
|
-
l("div",
|
|
4406
|
+
}, null, 8, Xo),
|
|
4407
|
+
l("div", es, d(e.$t("signMissingText")), 1)
|
|
4412
4408
|
]),
|
|
4413
4409
|
c(r, {
|
|
4414
4410
|
type: "secondary",
|
|
@@ -4431,7 +4427,7 @@ function is(e, t, n, s, i, o) {
|
|
|
4431
4427
|
_: 1
|
|
4432
4428
|
}, 8, ["modelValue"])) : C("", !0);
|
|
4433
4429
|
}
|
|
4434
|
-
const
|
|
4430
|
+
const ss = /* @__PURE__ */ F(Qo, [["render", os], ["__scopeId", "data-v-d0c772d2"]]), ls = {
|
|
4435
4431
|
i18nOptions: {
|
|
4436
4432
|
namespaces: "DocumentTemplateFormModal",
|
|
4437
4433
|
messages: {
|
|
@@ -4461,7 +4457,7 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-d0c772d2
|
|
|
4461
4457
|
},
|
|
4462
4458
|
name: "DocumentTemplateFormModal",
|
|
4463
4459
|
components: {
|
|
4464
|
-
CCallout:
|
|
4460
|
+
CCallout: Wt,
|
|
4465
4461
|
CCheckbox: Fe,
|
|
4466
4462
|
CField: ye
|
|
4467
4463
|
},
|
|
@@ -4500,7 +4496,7 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-d0c772d2
|
|
|
4500
4496
|
validations() {
|
|
4501
4497
|
return {
|
|
4502
4498
|
name: {
|
|
4503
|
-
required:
|
|
4499
|
+
required: Ot(!this.updateExistingDocTemplate)
|
|
4504
4500
|
}
|
|
4505
4501
|
};
|
|
4506
4502
|
},
|
|
@@ -4539,7 +4535,7 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-d0c772d2
|
|
|
4539
4535
|
updateSettings: B.UPDATE_SETTINGS
|
|
4540
4536
|
}),
|
|
4541
4537
|
async onSave() {
|
|
4542
|
-
if (!this.document && !this.template && (
|
|
4538
|
+
if (!this.document && !this.template && (at.error('Missing prop "document" or "template"'), this.$emit("close")), this.v$.$invalid) return;
|
|
4543
4539
|
let e;
|
|
4544
4540
|
this.document ? (e = this.getNewTemplate(), this.updateExistingDocTemplate && this.canUpdateExistingDocTemplate && this.document.template.id && (e.id = this.document.template.id, delete e.name)) : this.template && (e = this.getExistingTemplateBody()), await this.saveTemplate({ body: e, callback: this.onSaveTemplate }), this.$emit("close");
|
|
4545
4541
|
},
|
|
@@ -4589,11 +4585,11 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-d0c772d2
|
|
|
4589
4585
|
this.canUpdateExistingDocTemplate = !1;
|
|
4590
4586
|
}
|
|
4591
4587
|
}
|
|
4592
|
-
},
|
|
4593
|
-
function
|
|
4588
|
+
}, as = { class: "t-root font-inter" }, rs = { style: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, ds = { key: 1 }, cs = { class: "text-gray-600" }, us = { key: 2 }, ms = { class: "text-gray-600" };
|
|
4589
|
+
function ps(e, t, n, s, i, o) {
|
|
4594
4590
|
const r = m("CCallout"), g = m("CInput"), h = m("CField"), b = m("CCheckbox"), _ = m("CButton");
|
|
4595
|
-
return a(), p("div",
|
|
4596
|
-
l("div",
|
|
4591
|
+
return a(), p("div", as, [
|
|
4592
|
+
l("div", rs, d(n.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })), 1),
|
|
4597
4593
|
l("div", null, [
|
|
4598
4594
|
n.template ? C("", !0) : (a(), v(r, { key: 0 }, {
|
|
4599
4595
|
default: u(() => [
|
|
@@ -4621,7 +4617,7 @@ function ms(e, t, n, s, i, o) {
|
|
|
4621
4617
|
]),
|
|
4622
4618
|
_: 1
|
|
4623
4619
|
}, 8, ["vuelidate", "vuelidate-messages", "label"]),
|
|
4624
|
-
n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (a(), p("div",
|
|
4620
|
+
n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (a(), p("div", ds, [
|
|
4625
4621
|
c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
|
|
4626
4622
|
default: u(() => [
|
|
4627
4623
|
c(b, {
|
|
@@ -4631,7 +4627,7 @@ function ms(e, t, n, s, i, o) {
|
|
|
4631
4627
|
size: "normal"
|
|
4632
4628
|
}, {
|
|
4633
4629
|
default: u(() => [
|
|
4634
|
-
l("div",
|
|
4630
|
+
l("div", cs, d(e.$t("updateExisting")), 1)
|
|
4635
4631
|
]),
|
|
4636
4632
|
_: 1
|
|
4637
4633
|
}, 8, ["modelValue"])
|
|
@@ -4639,7 +4635,7 @@ function ms(e, t, n, s, i, o) {
|
|
|
4639
4635
|
_: 1
|
|
4640
4636
|
})
|
|
4641
4637
|
])) : C("", !0),
|
|
4642
|
-
n.document && n.document.clients.length && n.showKeepClientsOption ? (a(), p("div",
|
|
4638
|
+
n.document && n.document.clients.length && n.showKeepClientsOption ? (a(), p("div", us, [
|
|
4643
4639
|
c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
|
|
4644
4640
|
default: u(() => [
|
|
4645
4641
|
c(b, {
|
|
@@ -4649,7 +4645,7 @@ function ms(e, t, n, s, i, o) {
|
|
|
4649
4645
|
size: "normal"
|
|
4650
4646
|
}, {
|
|
4651
4647
|
default: u(() => [
|
|
4652
|
-
l("div",
|
|
4648
|
+
l("div", ms, d(e.$t("keepClients")), 1)
|
|
4653
4649
|
]),
|
|
4654
4650
|
_: 1
|
|
4655
4651
|
}, 8, ["modelValue"])
|
|
@@ -4673,16 +4669,16 @@ function ms(e, t, n, s, i, o) {
|
|
|
4673
4669
|
}, 8, ["loading", "onClick"])
|
|
4674
4670
|
]);
|
|
4675
4671
|
}
|
|
4676
|
-
const He = /* @__PURE__ */ F(
|
|
4677
|
-
function
|
|
4672
|
+
const He = /* @__PURE__ */ F(ls, [["render", ps], ["__scopeId", "data-v-54a3575d"]]);
|
|
4673
|
+
function hs(e, t, n) {
|
|
4678
4674
|
return e === e && (n !== void 0 && (e = e <= n ? e : n), t !== void 0 && (e = e >= t ? e : t)), e;
|
|
4679
4675
|
}
|
|
4680
|
-
var
|
|
4681
|
-
function
|
|
4682
|
-
return n === void 0 && (n = t, t = void 0), n !== void 0 && (n = re(n), n = n === n ? n : 0), t !== void 0 && (t = re(t), t = t === t ? t : 0),
|
|
4676
|
+
var fs = hs, gs = fs, re = At;
|
|
4677
|
+
function ys(e, t, n) {
|
|
4678
|
+
return n === void 0 && (n = t, t = void 0), n !== void 0 && (n = re(n), n = n === n ? n : 0), t !== void 0 && (t = re(t), t = t === t ? t : 0), gs(re(e), t, n);
|
|
4683
4679
|
}
|
|
4684
|
-
var
|
|
4685
|
-
const
|
|
4680
|
+
var vs = ys;
|
|
4681
|
+
const Cs = /* @__PURE__ */ Le(vs), bs = {
|
|
4686
4682
|
name: "RemainingTrialButton",
|
|
4687
4683
|
components: { IsPremium: J },
|
|
4688
4684
|
i18nOptions: {
|
|
@@ -4714,10 +4710,10 @@ const vs = /* @__PURE__ */ Le(ys), Cs = {
|
|
|
4714
4710
|
},
|
|
4715
4711
|
mixins: [Z],
|
|
4716
4712
|
methods: {
|
|
4717
|
-
clamp:
|
|
4713
|
+
clamp: Cs
|
|
4718
4714
|
}
|
|
4719
|
-
},
|
|
4720
|
-
function
|
|
4715
|
+
}, ks = { class: "relative mr-2 flex h-9 cursor-pointer select-none flex-col justify-center rounded-md bg-gray-200/50 px-2 text-xs font-semibold backdrop-blur-lg backdrop-saturate-150" }, ws = { class: "text-gray-600" }, _s = { class: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, xs = { class: "w-56 p-4 text-sm" }, Ts = { class: "font-semibold" }, Ds = { class: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, Ss = { class: "text-sm text-gray-600" }, $s = { class: "inline-flex rounded-md border border-gray-300 bg-gray-200 px-1.5 py-[3px] text-xs font-semibold leading-none text-gray-600" }, Is = { class: "mt-5" };
|
|
4716
|
+
function Fs(e, t, n, s, i, o) {
|
|
4721
4717
|
const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), b = le("close-popper");
|
|
4722
4718
|
return a(), v(h, null, {
|
|
4723
4719
|
default: u(({
|
|
@@ -4731,18 +4727,18 @@ function Is(e, t, n, s, i, o) {
|
|
|
4731
4727
|
"popper-class": "trial-popover"
|
|
4732
4728
|
}, {
|
|
4733
4729
|
popper: u(() => [
|
|
4734
|
-
l("div",
|
|
4735
|
-
l("div",
|
|
4730
|
+
l("div", xs, [
|
|
4731
|
+
l("div", Ts, [
|
|
4736
4732
|
T(d(e.$t("title.1")) + " ", 1),
|
|
4737
|
-
l("span",
|
|
4733
|
+
l("span", Ds, d(e.$t("title.2")), 1),
|
|
4738
4734
|
T(" " + d(e.$t("title.3", { trialDaysLeft: k })) + ". ", 1)
|
|
4739
4735
|
]),
|
|
4740
|
-
l("div",
|
|
4736
|
+
l("div", Ss, [
|
|
4741
4737
|
T(d(e.$t("title.4")) + " ", 1),
|
|
4742
|
-
l("span",
|
|
4738
|
+
l("span", $s, d(e.$t("title.5")), 1),
|
|
4743
4739
|
t[0] || (t[0] = T(". "))
|
|
4744
4740
|
]),
|
|
4745
|
-
l("div",
|
|
4741
|
+
l("div", Is, [
|
|
4746
4742
|
N((a(), v(r, {
|
|
4747
4743
|
type: "secondary",
|
|
4748
4744
|
size: "small",
|
|
@@ -4760,9 +4756,9 @@ function Is(e, t, n, s, i, o) {
|
|
|
4760
4756
|
])
|
|
4761
4757
|
]),
|
|
4762
4758
|
default: u(() => [
|
|
4763
|
-
l("div",
|
|
4764
|
-
l("div",
|
|
4765
|
-
l("div",
|
|
4759
|
+
l("div", ks, [
|
|
4760
|
+
l("div", ws, d(e.$tc("_common:day", { count: k })) + " " + d(e.$t("button")), 1),
|
|
4761
|
+
l("div", _s, [
|
|
4766
4762
|
l("div", {
|
|
4767
4763
|
style: E({
|
|
4768
4764
|
width: o.clamp(k / D * 100, 0, 100) + "%"
|
|
@@ -4778,24 +4774,24 @@ function Is(e, t, n, s, i, o) {
|
|
|
4778
4774
|
_: 1
|
|
4779
4775
|
});
|
|
4780
4776
|
}
|
|
4781
|
-
const
|
|
4777
|
+
const Ls = /* @__PURE__ */ F(bs, [["render", Fs]]), oe = rt({
|
|
4782
4778
|
canEdit: !1,
|
|
4783
4779
|
isForm: !0,
|
|
4784
4780
|
setFormValue: null,
|
|
4785
4781
|
removeFormValue: null
|
|
4786
|
-
}),
|
|
4782
|
+
}), Vs = {
|
|
4787
4783
|
name: "DocumentForm",
|
|
4788
4784
|
components: {
|
|
4789
|
-
DocumentFormContainer:
|
|
4785
|
+
DocumentFormContainer: Ko,
|
|
4790
4786
|
IsPremium: J,
|
|
4791
4787
|
IsPremiumPreStep: Y,
|
|
4792
|
-
DocumentSend:
|
|
4793
|
-
RemainingTrialButton:
|
|
4788
|
+
DocumentSend: ss,
|
|
4789
|
+
RemainingTrialButton: Ls,
|
|
4794
4790
|
CDropdown: ue,
|
|
4795
4791
|
CDropdownItem: me
|
|
4796
4792
|
},
|
|
4797
4793
|
setup() {
|
|
4798
|
-
const { isValid: e } =
|
|
4794
|
+
const { isValid: e } = Nt();
|
|
4799
4795
|
return { isValid: e };
|
|
4800
4796
|
},
|
|
4801
4797
|
mixins: [Z],
|
|
@@ -4904,13 +4900,13 @@ const Fs = /* @__PURE__ */ F(Cs, [["render", Is]]), oe = at({
|
|
|
4904
4900
|
);
|
|
4905
4901
|
}
|
|
4906
4902
|
}
|
|
4907
|
-
},
|
|
4903
|
+
}, Bs = {
|
|
4908
4904
|
key: 0,
|
|
4909
4905
|
class: "flex w-screen flex-col bg-white"
|
|
4910
|
-
},
|
|
4911
|
-
function
|
|
4906
|
+
}, Ms = { class: "flex self-center" }, Ps = { class: "buttons has-addons whitespace-nowrap" };
|
|
4907
|
+
function As(e, t, n, s, i, o) {
|
|
4912
4908
|
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("IsPremiumPreStep"), _ = m("RemainingTrialButton"), k = m("IsPremium"), S = m("DocumentFormContainer"), D = m("DocumentSend");
|
|
4913
|
-
return n.document ? (a(), p("div",
|
|
4909
|
+
return n.document ? (a(), p("div", Bs, [
|
|
4914
4910
|
c(S, {
|
|
4915
4911
|
view: i.view,
|
|
4916
4912
|
"onUpdate:view": t[0] || (t[0] = (y) => i.view = y),
|
|
@@ -4933,7 +4929,7 @@ function Ps(e, t, n, s, i, o) {
|
|
|
4933
4929
|
}, [
|
|
4934
4930
|
c(b, { feature: "saveDocTemplate" }, {
|
|
4935
4931
|
default: u(({ onClick: w }) => [
|
|
4936
|
-
l("div",
|
|
4932
|
+
l("div", Ms, [
|
|
4937
4933
|
c(h, {
|
|
4938
4934
|
disabled: !o.canDoActions
|
|
4939
4935
|
}, {
|
|
@@ -4988,7 +4984,7 @@ function Ps(e, t, n, s, i, o) {
|
|
|
4988
4984
|
}, 1024),
|
|
4989
4985
|
M(e.$slots, "nav-right-action", {}, () => [
|
|
4990
4986
|
c(_),
|
|
4991
|
-
l("div",
|
|
4987
|
+
l("div", Ps, [
|
|
4992
4988
|
c(r, {
|
|
4993
4989
|
ref: "sendButton",
|
|
4994
4990
|
disabled: !o.canDoActions,
|
|
@@ -5030,7 +5026,7 @@ function Ps(e, t, n, s, i, o) {
|
|
|
5030
5026
|
}, null, 8, ["_document", "set-form-value", "remove-form-value", "on-save-document"])
|
|
5031
5027
|
])) : C("", !0);
|
|
5032
5028
|
}
|
|
5033
|
-
const
|
|
5029
|
+
const Es = /* @__PURE__ */ F(Vs, [["render", As]]), zs = {
|
|
5034
5030
|
name: "DocumentFormRecent",
|
|
5035
5031
|
i18nOptions: {
|
|
5036
5032
|
namespaces: "DocumentFormRecent",
|
|
@@ -5048,7 +5044,7 @@ const As = /* @__PURE__ */ F(Ls, [["render", Ps]]), Es = {
|
|
|
5048
5044
|
components: {
|
|
5049
5045
|
IsPremium: J,
|
|
5050
5046
|
IsPremiumPreStep: Y,
|
|
5051
|
-
CSkeleton:
|
|
5047
|
+
CSkeleton: jt
|
|
5052
5048
|
},
|
|
5053
5049
|
emits: ["save-template", "use-doc-template"],
|
|
5054
5050
|
data() {
|
|
@@ -5078,7 +5074,7 @@ const As = /* @__PURE__ */ F(Ls, [["render", Ps]]), Es = {
|
|
|
5078
5074
|
async fetchDocuments(e) {
|
|
5079
5075
|
const t = this.query ? 180 : 90, n = {
|
|
5080
5076
|
createdAt: {
|
|
5081
|
-
$gte: this.$formatDate(
|
|
5077
|
+
$gte: this.$formatDate(dt(/* @__PURE__ */ new Date(), t), "yyyy-MM-dd")
|
|
5082
5078
|
},
|
|
5083
5079
|
// Only provide or if there is a search query to filter on
|
|
5084
5080
|
...this.query && {
|
|
@@ -5095,7 +5091,7 @@ const As = /* @__PURE__ */ F(Ls, [["render", Ps]]), Es = {
|
|
|
5095
5091
|
}
|
|
5096
5092
|
]
|
|
5097
5093
|
}
|
|
5098
|
-
}, { data: s } = await
|
|
5094
|
+
}, { data: s } = await ct.getAll({
|
|
5099
5095
|
lean: !0,
|
|
5100
5096
|
filter: encodeURIComponent(JSON.stringify(n)),
|
|
5101
5097
|
fields: "clients,data.name,createdAt",
|
|
@@ -5119,25 +5115,25 @@ const As = /* @__PURE__ */ F(Ls, [["render", Ps]]), Es = {
|
|
|
5119
5115
|
return this.$emit("use-doc-template", { documentId: e });
|
|
5120
5116
|
}
|
|
5121
5117
|
}
|
|
5122
|
-
},
|
|
5118
|
+
}, Rs = {
|
|
5123
5119
|
class: "flex w-full",
|
|
5124
5120
|
style: { "padding-bottom": "1em" }
|
|
5125
|
-
},
|
|
5121
|
+
}, Os = { class: "recent-list" }, Hs = {
|
|
5126
5122
|
key: 1,
|
|
5127
5123
|
class: "rounded-md border border-gray-200 bg-gray-100 p-4 text-center text-gray-400",
|
|
5128
5124
|
style: { "font-size": "15px" }
|
|
5129
|
-
},
|
|
5125
|
+
}, Us = {
|
|
5130
5126
|
key: 2,
|
|
5131
5127
|
class: "text-center text-gray-400",
|
|
5132
5128
|
style: { padding: "1em" }
|
|
5133
|
-
},
|
|
5129
|
+
}, qs = ["onClick", "onMouseoverPassive"], Gs = {
|
|
5134
5130
|
key: 0,
|
|
5135
5131
|
style: { display: "inline-flex", "align-items": "center", position: "absolute", right: "1em", top: "50%", transform: "translateY(-50%)" }
|
|
5136
5132
|
};
|
|
5137
|
-
function
|
|
5133
|
+
function Ns(e, t, n, s, i, o) {
|
|
5138
5134
|
const r = m("CInput"), g = m("CSkeleton"), h = m("CButton"), b = m("IsPremiumPreStep"), _ = m("IsPremium");
|
|
5139
5135
|
return a(), p("div", null, [
|
|
5140
|
-
l("div",
|
|
5136
|
+
l("div", Rs, [
|
|
5141
5137
|
M(e.$slots, "default", {}, void 0, !0),
|
|
5142
5138
|
i.hasItems ? (a(), v(r, {
|
|
5143
5139
|
key: 0,
|
|
@@ -5154,7 +5150,7 @@ function Gs(e, t, n, s, i, o) {
|
|
|
5154
5150
|
class: "hidden md:flex"
|
|
5155
5151
|
}, null, 8, ["modelValue", "loading", "placeholder", "onUpdate:modelValue"])) : C("", !0)
|
|
5156
5152
|
]),
|
|
5157
|
-
l("div",
|
|
5153
|
+
l("div", Os, [
|
|
5158
5154
|
i.isLoading && !i.list.length ? (a(), p(I, { key: 0 }, P(3, (k) => l("div", {
|
|
5159
5155
|
key: k,
|
|
5160
5156
|
class: "recent-item placeholder"
|
|
@@ -5164,7 +5160,7 @@ function Gs(e, t, n, s, i, o) {
|
|
|
5164
5160
|
class: "recent-item-name"
|
|
5165
5161
|
}),
|
|
5166
5162
|
c(g, { width: "35%" })
|
|
5167
|
-
])), 64)) : !i.isLoading && !i.query && !i.list.length ? (a(), p("div",
|
|
5163
|
+
])), 64)) : !i.isLoading && !i.query && !i.list.length ? (a(), p("div", Hs, d(e.$t("emptyPlaceholder")), 1)) : i.query && !i.isLoading && !i.list.length ? (a(), p("div", Us, d(e.$t("noResults")), 1)) : (a(), v(_, { key: 3 }, {
|
|
5168
5164
|
default: u(({ canCreateTemplate: k, canUseTemplate: S }) => [
|
|
5169
5165
|
c(b, { feature: "useDocTemplate" }, {
|
|
5170
5166
|
default: u(({ onClick: D }) => [
|
|
@@ -5182,7 +5178,7 @@ function Gs(e, t, n, s, i, o) {
|
|
|
5182
5178
|
class: L([{ "text-gray-400": !y.data.name }, "recent-item-name"])
|
|
5183
5179
|
}, d(y.data.name || e.$t("_common:untitled")), 3),
|
|
5184
5180
|
l("div", null, d(e.$formatDistanceToNow(y.createdAt)), 1),
|
|
5185
|
-
i.hoverIndex === f ? (a(), p("div",
|
|
5181
|
+
i.hoverIndex === f ? (a(), p("div", Gs, [
|
|
5186
5182
|
c(b, { feature: "saveDocTemplate" }, {
|
|
5187
5183
|
default: u(({ onClick: x }) => [
|
|
5188
5184
|
c(h, {
|
|
@@ -5211,7 +5207,7 @@ function Gs(e, t, n, s, i, o) {
|
|
|
5211
5207
|
_: 1
|
|
5212
5208
|
})
|
|
5213
5209
|
])) : C("", !0)
|
|
5214
|
-
], 40,
|
|
5210
|
+
], 40, qs))), 128))
|
|
5215
5211
|
])
|
|
5216
5212
|
]),
|
|
5217
5213
|
_: 2
|
|
@@ -5222,13 +5218,13 @@ function Gs(e, t, n, s, i, o) {
|
|
|
5222
5218
|
])
|
|
5223
5219
|
]);
|
|
5224
5220
|
}
|
|
5225
|
-
const
|
|
5221
|
+
const Ws = /* @__PURE__ */ F(zs, [["render", Ns], ["__scopeId", "data-v-afd30dd3"]]), js = { class: "item-paper" }, Zs = {
|
|
5226
5222
|
key: 2,
|
|
5227
5223
|
class: "absolute bottom-2 right-2"
|
|
5228
|
-
},
|
|
5224
|
+
}, Ks = {
|
|
5229
5225
|
key: 3,
|
|
5230
5226
|
class: "add-button"
|
|
5231
|
-
},
|
|
5227
|
+
}, Qs = { class: "item-footer" }, Ys = ["textContent"], Js = ["textContent"], Xs = /* @__PURE__ */ he({
|
|
5232
5228
|
__name: "DocumentIcon",
|
|
5233
5229
|
props: {
|
|
5234
5230
|
isPlaceholder: { type: Boolean, default: !1 },
|
|
@@ -5240,9 +5236,9 @@ const Ns = /* @__PURE__ */ F(Es, [["render", Gs], ["__scopeId", "data-v-afd30dd3
|
|
|
5240
5236
|
},
|
|
5241
5237
|
emits: ["triggerOpenTemplate"],
|
|
5242
5238
|
setup(e, { emit: t }) {
|
|
5243
|
-
const n = e, s = t, i = () => s("triggerOpenTemplate"), o =
|
|
5239
|
+
const n = e, s = t, i = () => s("triggerOpenTemplate"), o = ut(), r = mt(), g = H(() => r.style), h = H(() => r.staticClass), b = H(() => r.class), _ = H(() => r.key), k = H(() => r.attrs), S = H(
|
|
5244
5240
|
() => _e.t("_common:empty", { thing: _e.t("_common:template") })
|
|
5245
|
-
), D = H(() =>
|
|
5241
|
+
), D = H(() => pt(n.name, 60));
|
|
5246
5242
|
return (y, f) => {
|
|
5247
5243
|
const x = m("CIcon");
|
|
5248
5244
|
return a(), p("div", pe(k.value, {
|
|
@@ -5259,22 +5255,22 @@ const Ns = /* @__PURE__ */ F(Es, [["render", Gs], ["__scopeId", "data-v-afd30dd3
|
|
|
5259
5255
|
style: g.value,
|
|
5260
5256
|
onClick: i
|
|
5261
5257
|
}), [
|
|
5262
|
-
l("div",
|
|
5258
|
+
l("div", js, [
|
|
5263
5259
|
y.thumbnail ? (a(), p("div", {
|
|
5264
5260
|
key: 0,
|
|
5265
5261
|
style: E([{
|
|
5266
5262
|
backgroundImage: `url(${y.thumbnail})`
|
|
5267
5263
|
}, { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }])
|
|
5268
|
-
}, null, 4)) : y.isPlaceholder || y.isAdd ? C("", !0) : (a(), v(
|
|
5264
|
+
}, null, 4)) : y.isPlaceholder || y.isAdd ? C("", !0) : (a(), v(Zt, {
|
|
5269
5265
|
key: 1,
|
|
5270
5266
|
media: y.media,
|
|
5271
5267
|
preview: "",
|
|
5272
5268
|
class: "item-media"
|
|
5273
5269
|
}, null, 8, ["media"])),
|
|
5274
|
-
De(o).badge ? (a(), p("div",
|
|
5270
|
+
De(o).badge ? (a(), p("div", Zs, [
|
|
5275
5271
|
M(y.$slots, "badge", {}, void 0, !0)
|
|
5276
5272
|
])) : C("", !0),
|
|
5277
|
-
y.isAdd ? (a(), p("div",
|
|
5273
|
+
y.isAdd ? (a(), p("div", Ks, [
|
|
5278
5274
|
c(x, {
|
|
5279
5275
|
size: 18,
|
|
5280
5276
|
"stroke-width": 3,
|
|
@@ -5282,24 +5278,24 @@ const Ns = /* @__PURE__ */ F(Es, [["render", Gs], ["__scopeId", "data-v-afd30dd3
|
|
|
5282
5278
|
})
|
|
5283
5279
|
])) : C("", !0)
|
|
5284
5280
|
]),
|
|
5285
|
-
l("div",
|
|
5281
|
+
l("div", Qs, [
|
|
5286
5282
|
y.isAdd ? (a(), p("div", {
|
|
5287
5283
|
key: 0,
|
|
5288
5284
|
class: "item-text",
|
|
5289
5285
|
style: { color: "hsl(0, 0%, 55%)" },
|
|
5290
5286
|
textContent: d(S.value)
|
|
5291
|
-
}, null, 8,
|
|
5287
|
+
}, null, 8, Ys)) : y.name ? (a(), p(I, { key: 1 }, [
|
|
5292
5288
|
l("div", {
|
|
5293
5289
|
class: "item-text",
|
|
5294
5290
|
textContent: d(D.value)
|
|
5295
|
-
}, null, 8,
|
|
5291
|
+
}, null, 8, Js),
|
|
5296
5292
|
M(y.$slots, "default", {}, void 0, !0)
|
|
5297
5293
|
], 64)) : C("", !0)
|
|
5298
5294
|
])
|
|
5299
5295
|
], 16);
|
|
5300
5296
|
};
|
|
5301
5297
|
}
|
|
5302
|
-
}),
|
|
5298
|
+
}), el = /* @__PURE__ */ F(Xs, [["__scopeId", "data-v-f3357197"]]), tl = {
|
|
5303
5299
|
name: "HorizontalScroll",
|
|
5304
5300
|
components: {
|
|
5305
5301
|
Simplebar: Q
|
|
@@ -5351,14 +5347,14 @@ const Ns = /* @__PURE__ */ F(Es, [["render", Gs], ["__scopeId", "data-v-afd30dd3
|
|
|
5351
5347
|
}, 50);
|
|
5352
5348
|
}
|
|
5353
5349
|
}
|
|
5354
|
-
},
|
|
5350
|
+
}, nl = {
|
|
5355
5351
|
ref: "container",
|
|
5356
5352
|
class: "horizontal-scroll"
|
|
5357
|
-
},
|
|
5358
|
-
function
|
|
5353
|
+
}, il = { class: "hl-navigation" }, ol = { class: "hl-container" }, sl = { class: "flex w-full" };
|
|
5354
|
+
function ll(e, t, n, s, i, o) {
|
|
5359
5355
|
const r = m("CButton"), g = m("Simplebar");
|
|
5360
|
-
return a(), p("div",
|
|
5361
|
-
l("div",
|
|
5356
|
+
return a(), p("div", nl, [
|
|
5357
|
+
l("div", il, [
|
|
5362
5358
|
i.hasPrev ? (a(), p("div", {
|
|
5363
5359
|
key: 0,
|
|
5364
5360
|
class: "hl-btn-left max-sm:hidden",
|
|
@@ -5391,14 +5387,14 @@ function sl(e, t, n, s, i, o) {
|
|
|
5391
5387
|
], !0)
|
|
5392
5388
|
])) : C("", !0)
|
|
5393
5389
|
]),
|
|
5394
|
-
l("div",
|
|
5390
|
+
l("div", ol, [
|
|
5395
5391
|
c(g, {
|
|
5396
5392
|
ref: "list",
|
|
5397
5393
|
class: "hl-list",
|
|
5398
5394
|
onScroll: o.scrollHandler
|
|
5399
5395
|
}, {
|
|
5400
5396
|
default: u(() => [
|
|
5401
|
-
l("div",
|
|
5397
|
+
l("div", sl, [
|
|
5402
5398
|
M(e.$slots, "default", {}, void 0, !0)
|
|
5403
5399
|
])
|
|
5404
5400
|
]),
|
|
@@ -5407,8 +5403,8 @@ function sl(e, t, n, s, i, o) {
|
|
|
5407
5403
|
])
|
|
5408
5404
|
], 512);
|
|
5409
5405
|
}
|
|
5410
|
-
const
|
|
5411
|
-
function
|
|
5406
|
+
const al = /* @__PURE__ */ F(tl, [["render", ll], ["__scopeId", "data-v-f0c49197"]]);
|
|
5407
|
+
function rl(e, { availableProducts: t }) {
|
|
5412
5408
|
if (!e) throw new Error("Missing parameter templateId");
|
|
5413
5409
|
const n = t, s = Object.keys(n).find((i) => {
|
|
5414
5410
|
var r;
|
|
@@ -5420,9 +5416,9 @@ function al(e, { availableProducts: t }) {
|
|
|
5420
5416
|
});
|
|
5421
5417
|
return s ? n[s] : null;
|
|
5422
5418
|
}
|
|
5423
|
-
async function
|
|
5419
|
+
async function dl(e) {
|
|
5424
5420
|
if (!e) throw new Error("Missing argument stripeProduct");
|
|
5425
|
-
const t = e == null ? void 0 : e.prices[0], { data: n } = await
|
|
5421
|
+
const t = e == null ? void 0 : e.prices[0], { data: n } = await ht.createCheckoutSession({
|
|
5426
5422
|
items: [
|
|
5427
5423
|
{
|
|
5428
5424
|
stripePriceStripeId: t.stripeId,
|
|
@@ -5437,7 +5433,7 @@ async function rl(e) {
|
|
|
5437
5433
|
function Ue(e, { availableProducts: t }) {
|
|
5438
5434
|
var i, o, r;
|
|
5439
5435
|
let n = null;
|
|
5440
|
-
const s =
|
|
5436
|
+
const s = rl(e.templateId, {
|
|
5441
5437
|
availableProducts: t
|
|
5442
5438
|
});
|
|
5443
5439
|
return s && (n = {
|
|
@@ -5445,14 +5441,14 @@ function Ue(e, { availableProducts: t }) {
|
|
|
5445
5441
|
currency: (o = s == null ? void 0 : s.prices) == null ? void 0 : o[0].currency
|
|
5446
5442
|
}),
|
|
5447
5443
|
isPurchased: ((r = e.purchaseInfo) == null ? void 0 : r.isPurchased) || !1,
|
|
5448
|
-
onBuy: async () =>
|
|
5444
|
+
onBuy: async () => dl(s)
|
|
5449
5445
|
}), n;
|
|
5450
5446
|
}
|
|
5451
|
-
const
|
|
5447
|
+
const cl = {
|
|
5452
5448
|
name: "GalleryTemplateModal",
|
|
5453
5449
|
components: {
|
|
5454
5450
|
Simplebar: Q,
|
|
5455
|
-
DocumentLayout:
|
|
5451
|
+
DocumentLayout: Lt,
|
|
5456
5452
|
IsPremium: J,
|
|
5457
5453
|
IsPremiumPreStep: Y
|
|
5458
5454
|
},
|
|
@@ -5539,7 +5535,7 @@ const dl = {
|
|
|
5539
5535
|
}
|
|
5540
5536
|
},
|
|
5541
5537
|
created() {
|
|
5542
|
-
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn =
|
|
5538
|
+
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = ft.on(
|
|
5543
5539
|
"event",
|
|
5544
5540
|
async ({ type: e, action: t, data: n }) => {
|
|
5545
5541
|
var s;
|
|
@@ -5567,7 +5563,7 @@ const dl = {
|
|
|
5567
5563
|
const e = this.template.id;
|
|
5568
5564
|
e || (this.templateStat = null);
|
|
5569
5565
|
try {
|
|
5570
|
-
const { data: t } = await
|
|
5566
|
+
const { data: t } = await gt.get(e);
|
|
5571
5567
|
this.templateStat = t;
|
|
5572
5568
|
} catch {
|
|
5573
5569
|
this.templateStat = null;
|
|
@@ -5587,21 +5583,21 @@ const dl = {
|
|
|
5587
5583
|
await Be(t) && fe("info", this.$t("copyMessage"));
|
|
5588
5584
|
}
|
|
5589
5585
|
}
|
|
5590
|
-
},
|
|
5586
|
+
}, ul = { class: "template-modal font-inter bg-gray-200" }, ml = { style: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": `rgb(244, 244, 244) 0px 2px 14px 0px inset,
|
|
5591
5587
|
rgba(0, 0, 0, 0.09) 0px 8px 35px 0px,
|
|
5592
|
-
rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset`, flex: "1 1 auto", "min-height": "0" } },
|
|
5588
|
+
rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset`, flex: "1 1 auto", "min-height": "0" } }, pl = { style: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, hl = { style: { "padding-bottom": "2em" } }, fl = { style: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, gl = { style: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, yl = { style: { hyphens: "auto" } }, vl = {
|
|
5593
5589
|
key: 0,
|
|
5594
5590
|
style: { "padding-top": "1.5em" },
|
|
5595
5591
|
class: "flex items-center"
|
|
5596
|
-
},
|
|
5592
|
+
}, Cl = { style: { "margin-left": "0.5em" } }, bl = { style: { "font-weight": "500" } }, kl = { style: { "font-weight": "400", "font-size": "14px" } }, wl = { style: { "padding-bottom": "2em" } }, _l = {
|
|
5597
5593
|
key: 0,
|
|
5598
5594
|
class: "mb-5 flex items-center gap-2 rounded-full border border-gray-300 bg-gray-300/60 p-1 text-sm"
|
|
5599
|
-
},
|
|
5600
|
-
function
|
|
5595
|
+
}, xl = { class: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, Tl = ["textContent"], Dl = ["textContent"];
|
|
5596
|
+
function Sl(e, t, n, s, i, o) {
|
|
5601
5597
|
var S;
|
|
5602
5598
|
const r = m("DocumentLayout"), g = m("Simplebar"), h = m("CIcon"), b = m("CButton"), _ = m("IsPremiumPreStep"), k = m("IsPremium");
|
|
5603
|
-
return a(), p("div",
|
|
5604
|
-
l("div",
|
|
5599
|
+
return a(), p("div", ul, [
|
|
5600
|
+
l("div", ml, [
|
|
5605
5601
|
c(g, {
|
|
5606
5602
|
class: "h-full w-full",
|
|
5607
5603
|
"data-simplebar-auto-hide": "false"
|
|
@@ -5621,24 +5617,24 @@ function Dl(e, t, n, s, i, o) {
|
|
|
5621
5617
|
_: 1
|
|
5622
5618
|
})
|
|
5623
5619
|
]),
|
|
5624
|
-
l("div",
|
|
5625
|
-
l("div",
|
|
5626
|
-
l("div",
|
|
5627
|
-
l("div",
|
|
5620
|
+
l("div", pl, [
|
|
5621
|
+
l("div", hl, [
|
|
5622
|
+
l("div", fl, d(n.meta.name), 1),
|
|
5623
|
+
l("div", gl, [
|
|
5628
5624
|
(S = i.templateStat) != null && S.usedTimes ? (a(), p(I, { key: 0 }, [
|
|
5629
5625
|
T(d(e.$t("_common:used").capitalize()) + " " + d(i.templateStat.usedTimes) + " " + d(e.$t("_common:times", { count: i.templateStat.usedTimes })), 1)
|
|
5630
5626
|
], 64)) : C("", !0)
|
|
5631
5627
|
]),
|
|
5632
|
-
l("div",
|
|
5633
|
-
n.meta.author ? (a(), p("div",
|
|
5628
|
+
l("div", yl, d(n.meta.text), 1),
|
|
5629
|
+
n.meta.author ? (a(), p("div", vl, [
|
|
5634
5630
|
l("div", {
|
|
5635
5631
|
style: E([{ "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, {
|
|
5636
5632
|
backgroundImage: `url(${n.meta.author.avatar})`
|
|
5637
5633
|
}])
|
|
5638
5634
|
}, null, 4),
|
|
5639
|
-
l("div",
|
|
5640
|
-
l("div",
|
|
5641
|
-
l("div",
|
|
5635
|
+
l("div", Cl, [
|
|
5636
|
+
l("div", bl, d(n.meta.author.name), 1),
|
|
5637
|
+
l("div", kl, [
|
|
5642
5638
|
n.meta.author.templatesCount ? (a(), p(I, { key: 0 }, [
|
|
5643
5639
|
T(d(n.meta.author.templatesCount) + " " + d(e.$t("_common:template", { count: n.meta.author.templatesCount })), 1)
|
|
5644
5640
|
], 64)) : (a(), p(I, { key: 1 }, [
|
|
@@ -5648,10 +5644,10 @@ function Dl(e, t, n, s, i, o) {
|
|
|
5648
5644
|
])
|
|
5649
5645
|
])) : C("", !0)
|
|
5650
5646
|
]),
|
|
5651
|
-
l("div",
|
|
5647
|
+
l("div", wl, [
|
|
5652
5648
|
n.product ? (a(), p(I, { key: 0 }, [
|
|
5653
|
-
i.privateProduct.isPurchased ? (a(), p("div",
|
|
5654
|
-
l("div",
|
|
5649
|
+
i.privateProduct.isPurchased ? (a(), p("div", _l, [
|
|
5650
|
+
l("div", xl, [
|
|
5655
5651
|
c(h, {
|
|
5656
5652
|
type: "check",
|
|
5657
5653
|
size: "12",
|
|
@@ -5663,7 +5659,7 @@ function Dl(e, t, n, s, i, o) {
|
|
|
5663
5659
|
textContent: d(
|
|
5664
5660
|
e.$t("_common:purchased", { thing: e.$t("_common:template") })
|
|
5665
5661
|
)
|
|
5666
|
-
}, null, 8,
|
|
5662
|
+
}, null, 8, Tl)
|
|
5667
5663
|
])) : (a(), v(b, {
|
|
5668
5664
|
key: 1,
|
|
5669
5665
|
type: "secondary",
|
|
@@ -5677,7 +5673,7 @@ function Dl(e, t, n, s, i, o) {
|
|
|
5677
5673
|
l("div", {
|
|
5678
5674
|
class: "bg-primary-400/80 border-primary-600/60 absolute right-2 top-1/2 -translate-y-1/2 rounded-md border px-2 py-1.5 text-sm leading-none text-white",
|
|
5679
5675
|
textContent: d(i.privateProduct.price)
|
|
5680
|
-
}, null, 8,
|
|
5676
|
+
}, null, 8, Dl)
|
|
5681
5677
|
]),
|
|
5682
5678
|
_: 1
|
|
5683
5679
|
}, 8, ["onClick"]))
|
|
@@ -5748,7 +5744,7 @@ function Dl(e, t, n, s, i, o) {
|
|
|
5748
5744
|
])
|
|
5749
5745
|
]);
|
|
5750
5746
|
}
|
|
5751
|
-
const
|
|
5747
|
+
const $l = /* @__PURE__ */ F(cl, [["render", Sl], ["__scopeId", "data-v-dc48f31c"]]), Il = {
|
|
5752
5748
|
name: "GalleryLogic",
|
|
5753
5749
|
i18nOptions: {
|
|
5754
5750
|
namespaces: "GalleryLogic",
|
|
@@ -5873,7 +5869,7 @@ const Sl = /* @__PURE__ */ F(dl, [["render", Dl], ["__scopeId", "data-v-dc48f31c
|
|
|
5873
5869
|
}
|
|
5874
5870
|
},
|
|
5875
5871
|
beforeCreate() {
|
|
5876
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
5872
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", zt);
|
|
5877
5873
|
},
|
|
5878
5874
|
async created() {
|
|
5879
5875
|
var n, s, i, o;
|
|
@@ -5932,7 +5928,7 @@ const Sl = /* @__PURE__ */ F(dl, [["render", Dl], ["__scopeId", "data-v-dc48f31c
|
|
|
5932
5928
|
isVisibleApp: !0,
|
|
5933
5929
|
includePurchaseInfo: !0
|
|
5934
5930
|
}, n = await this.fetchGallery(t), s = (o = n == null ? void 0 : n[0]) == null ? void 0 : o.templateId;
|
|
5935
|
-
return s ? (
|
|
5931
|
+
return s ? (yt(s), new vt(s)) : null;
|
|
5936
5932
|
},
|
|
5937
5933
|
onUseTemplate(e) {
|
|
5938
5934
|
if (!e) throw new Error("Could not find template");
|
|
@@ -5954,7 +5950,7 @@ const Sl = /* @__PURE__ */ F(dl, [["render", Dl], ["__scopeId", "data-v-dc48f31c
|
|
|
5954
5950
|
fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
|
|
5955
5951
|
};
|
|
5956
5952
|
this.$modal.show(
|
|
5957
|
-
|
|
5953
|
+
$l,
|
|
5958
5954
|
{
|
|
5959
5955
|
template: e,
|
|
5960
5956
|
fetchGallery: this.fetchGallery,
|
|
@@ -5999,7 +5995,7 @@ const Sl = /* @__PURE__ */ F(dl, [["render", Dl], ["__scopeId", "data-v-dc48f31c
|
|
|
5999
5995
|
}
|
|
6000
5996
|
}
|
|
6001
5997
|
};
|
|
6002
|
-
function
|
|
5998
|
+
function Fl(e, t, n, s, i, o) {
|
|
6003
5999
|
return M(e.$slots, "default", {
|
|
6004
6000
|
galleryItems: o.galleryItems,
|
|
6005
6001
|
categories: o.categories,
|
|
@@ -6008,7 +6004,7 @@ function Il(e, t, n, s, i, o) {
|
|
|
6008
6004
|
selectGalleryItem: o.selectGalleryItem
|
|
6009
6005
|
});
|
|
6010
6006
|
}
|
|
6011
|
-
const
|
|
6007
|
+
const Ll = /* @__PURE__ */ F(Il, [["render", Fl]]), Vl = {
|
|
6012
6008
|
i18nOptions: {
|
|
6013
6009
|
namespaces: "TemplateSelector",
|
|
6014
6010
|
messages: {
|
|
@@ -6052,10 +6048,10 @@ const Fl = /* @__PURE__ */ F($l, [["render", Il]]), Ll = {
|
|
|
6052
6048
|
},
|
|
6053
6049
|
name: "TemplateSelector",
|
|
6054
6050
|
components: {
|
|
6055
|
-
HorizontalScroll:
|
|
6056
|
-
DocumentIcon:
|
|
6057
|
-
DocumentRecent:
|
|
6058
|
-
GalleryLogic:
|
|
6051
|
+
HorizontalScroll: al,
|
|
6052
|
+
DocumentIcon: el,
|
|
6053
|
+
DocumentRecent: Ws,
|
|
6054
|
+
GalleryLogic: Ll,
|
|
6059
6055
|
IsPremiumPreStep: Y,
|
|
6060
6056
|
CDropdown: ue,
|
|
6061
6057
|
CDropdownItem: me
|
|
@@ -6182,7 +6178,7 @@ const Fl = /* @__PURE__ */ F($l, [["render", Il]]), Ll = {
|
|
|
6182
6178
|
},
|
|
6183
6179
|
async saveTemplate(e) {
|
|
6184
6180
|
try {
|
|
6185
|
-
const { data: t } = e, n =
|
|
6181
|
+
const { data: t } = e, n = Ct(t, [
|
|
6186
6182
|
"_id",
|
|
6187
6183
|
"id",
|
|
6188
6184
|
"companyId",
|
|
@@ -6214,7 +6210,7 @@ const Fl = /* @__PURE__ */ F($l, [["render", Il]]), Ll = {
|
|
|
6214
6210
|
);
|
|
6215
6211
|
},
|
|
6216
6212
|
async fetchGallery(e = {}) {
|
|
6217
|
-
const { data: t } = await
|
|
6213
|
+
const { data: t } = await bt.get(e);
|
|
6218
6214
|
return t;
|
|
6219
6215
|
},
|
|
6220
6216
|
canUseTemplate(e) {
|
|
@@ -6225,30 +6221,30 @@ const Fl = /* @__PURE__ */ F($l, [["render", Il]]), Ll = {
|
|
|
6225
6221
|
await Be(t) && fe("info", this.$t("copyMessage"));
|
|
6226
6222
|
}
|
|
6227
6223
|
}
|
|
6228
|
-
},
|
|
6224
|
+
}, Bl = { class: "h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16" }, Ml = { style: { width: "100%", "padding-bottom": "5em" } }, Pl = { class: "section-title" }, Al = { class: "section-subtitle" }, El = {
|
|
6229
6225
|
key: 0,
|
|
6230
6226
|
class: "inline-flex h-5 items-center gap-1 rounded border border-gray-300 bg-gray-200 px-1 leading-none text-gray-500/90 shadow-sm"
|
|
6231
|
-
},
|
|
6227
|
+
}, zl = {
|
|
6232
6228
|
key: 1,
|
|
6233
6229
|
class: "bg-primary-500 border-primary-600 inline-flex h-5 items-center rounded border px-1.5 text-[11px] font-semibold capitalize leading-none text-white shadow-sm"
|
|
6234
|
-
},
|
|
6230
|
+
}, Rl = { style: { width: "100%", "padding-bottom": "5em" } }, Ol = { class: "section-title w-full" }, Hl = { class: "flex items-center justify-between" }, Ul = ["innerHTML"], ql = {
|
|
6235
6231
|
key: 0,
|
|
6236
6232
|
class: "bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg"
|
|
6237
|
-
},
|
|
6233
|
+
}, Gl = ["textContent"], Nl = {
|
|
6238
6234
|
class: "section-title",
|
|
6239
6235
|
style: { flex: "1 1 auto", "padding-bottom": "0.5em" }
|
|
6240
|
-
},
|
|
6241
|
-
function
|
|
6236
|
+
}, Wl = { class: "section-subtitle" };
|
|
6237
|
+
function jl(e, t, n, s, i, o) {
|
|
6242
6238
|
const r = m("CIcon"), g = m("CButton"), h = m("CDropdownItem"), b = m("CDropdown"), _ = m("DocumentIcon"), k = m("IsPremiumPreStep"), S = m("HorizontalScroll"), D = m("GalleryLogic"), y = m("DocumentRecent"), f = le("tooltip");
|
|
6243
|
-
return a(), p("div",
|
|
6239
|
+
return a(), p("div", Bl, [
|
|
6244
6240
|
l("div", {
|
|
6245
6241
|
class: L([{ small: e.mq === "sm" }, "font-inter form-start main mx-auto max-w-5xl"])
|
|
6246
6242
|
}, [
|
|
6247
6243
|
M(e.$slots, "header", {}, void 0, !0),
|
|
6248
|
-
l("div",
|
|
6249
|
-
l("div",
|
|
6244
|
+
l("div", Ml, [
|
|
6245
|
+
l("div", Pl, [
|
|
6250
6246
|
l("div", null, d(e.$t("myTemplates")), 1),
|
|
6251
|
-
l("div",
|
|
6247
|
+
l("div", Al, d(e.$t("myTemplatesSubTitle")), 1)
|
|
6252
6248
|
]),
|
|
6253
6249
|
c(k, { feature: "useDocTemplate" }, {
|
|
6254
6250
|
default: u(({ onClick: x }) => [
|
|
@@ -6268,7 +6264,7 @@ function Wl(e, t, n, s, i, o) {
|
|
|
6268
6264
|
onTriggerOpenTemplate: (A) => w.placeholder ? null : o.canUseTemplate(w) ? o.select({ templateId: w.id }) : x()
|
|
6269
6265
|
}, {
|
|
6270
6266
|
badge: u(() => [
|
|
6271
|
-
o.canUseTemplate(w) ? !w.doConsumeDocumentQuota && !w.placeholder ? (a(), p("div",
|
|
6267
|
+
o.canUseTemplate(w) ? !w.doConsumeDocumentQuota && !w.placeholder ? (a(), p("div", zl, d(e.$t("_common:free")), 1)) : C("", !0) : (a(), p("div", El, [
|
|
6272
6268
|
c(r, {
|
|
6273
6269
|
type: "lock",
|
|
6274
6270
|
size: "12",
|
|
@@ -6380,9 +6376,9 @@ function Wl(e, t, n, s, i, o) {
|
|
|
6380
6376
|
selectCategory: z,
|
|
6381
6377
|
selectGalleryItem: X
|
|
6382
6378
|
}) => [
|
|
6383
|
-
l("div",
|
|
6384
|
-
l("div",
|
|
6385
|
-
l("div",
|
|
6379
|
+
l("div", Rl, [
|
|
6380
|
+
l("div", Ol, [
|
|
6381
|
+
l("div", Hl, [
|
|
6386
6382
|
l("div", null, d(e.$t("gallery")), 1),
|
|
6387
6383
|
c(b, {
|
|
6388
6384
|
style: { "margin-left": "calc(0.5 * var(--rem))" },
|
|
@@ -6420,7 +6416,7 @@ function Wl(e, t, n, s, i, o) {
|
|
|
6420
6416
|
l("div", {
|
|
6421
6417
|
class: "section-subtitle",
|
|
6422
6418
|
innerHTML: e.$t("gallerySubTitle")
|
|
6423
|
-
}, null, 8,
|
|
6419
|
+
}, null, 8, Ul)
|
|
6424
6420
|
]),
|
|
6425
6421
|
c(S, { class: "template-list" }, {
|
|
6426
6422
|
default: u(() => [
|
|
@@ -6433,7 +6429,7 @@ function Wl(e, t, n, s, i, o) {
|
|
|
6433
6429
|
onTriggerOpenTemplate: (ie) => $.placeholder ? null : X($)
|
|
6434
6430
|
}, {
|
|
6435
6431
|
badge: u(() => [
|
|
6436
|
-
$.product ? (a(), p("div",
|
|
6432
|
+
$.product ? (a(), p("div", ql, [
|
|
6437
6433
|
$.product.isPurchased ? (a(), v(r, {
|
|
6438
6434
|
key: 0,
|
|
6439
6435
|
type: "check",
|
|
@@ -6442,7 +6438,7 @@ function Wl(e, t, n, s, i, o) {
|
|
|
6442
6438
|
})) : (a(), p("div", {
|
|
6443
6439
|
key: 1,
|
|
6444
6440
|
textContent: d($.product.price)
|
|
6445
|
-
}, null, 8,
|
|
6441
|
+
}, null, 8, Gl))
|
|
6446
6442
|
])) : C("", !0)
|
|
6447
6443
|
]),
|
|
6448
6444
|
_: 2
|
|
@@ -6460,9 +6456,9 @@ function Wl(e, t, n, s, i, o) {
|
|
|
6460
6456
|
onSaveTemplate: o.openTemplateFormModal
|
|
6461
6457
|
}, {
|
|
6462
6458
|
default: u(() => [
|
|
6463
|
-
l("div",
|
|
6459
|
+
l("div", Nl, [
|
|
6464
6460
|
l("div", null, d(e.$t("recent")), 1),
|
|
6465
|
-
l("div",
|
|
6461
|
+
l("div", Wl, d(e.$t("recentSubTitle")), 1)
|
|
6466
6462
|
])
|
|
6467
6463
|
]),
|
|
6468
6464
|
_: 1
|
|
@@ -6470,25 +6466,25 @@ function Wl(e, t, n, s, i, o) {
|
|
|
6470
6466
|
], 2)
|
|
6471
6467
|
]);
|
|
6472
6468
|
}
|
|
6473
|
-
const
|
|
6474
|
-
var
|
|
6475
|
-
function
|
|
6469
|
+
const Zl = /* @__PURE__ */ F(Vl, [["render", jl], ["__scopeId", "data-v-2fb04074"]]);
|
|
6470
|
+
var Kl = kt, Ql = wt, Yl = _t;
|
|
6471
|
+
function Jl(e, t, n) {
|
|
6476
6472
|
for (var s = -1, i = t.length, o = {}; ++s < i; ) {
|
|
6477
|
-
var r = t[s], g =
|
|
6478
|
-
n(g, r) &&
|
|
6473
|
+
var r = t[s], g = Kl(e, r);
|
|
6474
|
+
n(g, r) && Ql(o, Yl(r, e), g);
|
|
6479
6475
|
}
|
|
6480
6476
|
return o;
|
|
6481
6477
|
}
|
|
6482
|
-
var
|
|
6483
|
-
function
|
|
6484
|
-
return
|
|
6485
|
-
return
|
|
6478
|
+
var Xl = Jl, ea = Xl, ta = xt;
|
|
6479
|
+
function na(e, t) {
|
|
6480
|
+
return ea(e, t, function(n, s) {
|
|
6481
|
+
return ta(e, s);
|
|
6486
6482
|
});
|
|
6487
6483
|
}
|
|
6488
|
-
var
|
|
6489
|
-
return e == null ? {} :
|
|
6490
|
-
}),
|
|
6491
|
-
const
|
|
6484
|
+
var ia = na, oa = ia, sa = Ut, la = sa(function(e, t) {
|
|
6485
|
+
return e == null ? {} : oa(e, t);
|
|
6486
|
+
}), aa = la;
|
|
6487
|
+
const ra = /* @__PURE__ */ Le(aa), da = {
|
|
6492
6488
|
name: "DocForm",
|
|
6493
6489
|
i18nOptions: {
|
|
6494
6490
|
namespaces: "widgetDocForm",
|
|
@@ -6502,9 +6498,9 @@ const aa = /* @__PURE__ */ Le(la), ra = {
|
|
|
6502
6498
|
}
|
|
6503
6499
|
},
|
|
6504
6500
|
components: {
|
|
6505
|
-
TemplateSelector:
|
|
6506
|
-
DocumentForm:
|
|
6507
|
-
PostSend:
|
|
6501
|
+
TemplateSelector: Zl,
|
|
6502
|
+
DocumentForm: Es,
|
|
6503
|
+
PostSend: tn
|
|
6508
6504
|
},
|
|
6509
6505
|
provide() {
|
|
6510
6506
|
return {
|
|
@@ -6623,7 +6619,7 @@ const aa = /* @__PURE__ */ Le(la), ra = {
|
|
|
6623
6619
|
},
|
|
6624
6620
|
async onTemplateSelect({ templateId: e, documentId: t, formData: n }) {
|
|
6625
6621
|
var i;
|
|
6626
|
-
const s =
|
|
6622
|
+
const s = ra({ ...this.rawDoc }, [
|
|
6627
6623
|
"__tempId",
|
|
6628
6624
|
"externalReferences",
|
|
6629
6625
|
"subscriberCompanyUserIds",
|
|
@@ -6635,7 +6631,7 @@ const aa = /* @__PURE__ */ Le(la), ra = {
|
|
|
6635
6631
|
_formData: s
|
|
6636
6632
|
}) : await this.loadDocumentForm({
|
|
6637
6633
|
templateId: e,
|
|
6638
|
-
formData: n ?
|
|
6634
|
+
formData: n ? Tt(n, s) : null,
|
|
6639
6635
|
_formData: s
|
|
6640
6636
|
}), (i = s == null ? void 0 : s.data) != null && i.name && this.setDocValue({ key: "data.name", value: s.data.name }), await this.initDoc(), this.view = "editor";
|
|
6641
6637
|
},
|
|
@@ -6672,15 +6668,15 @@ const aa = /* @__PURE__ */ Le(la), ra = {
|
|
|
6672
6668
|
return !t.sms && !t.email;
|
|
6673
6669
|
}
|
|
6674
6670
|
}
|
|
6675
|
-
},
|
|
6671
|
+
}, ca = { class: "flex h-full w-full flex-col" }, ua = {
|
|
6676
6672
|
key: 0,
|
|
6677
6673
|
class: "flex h-full w-full flex-col"
|
|
6678
|
-
},
|
|
6679
|
-
function
|
|
6674
|
+
}, ma = { class: "relative flex h-16 items-center justify-center border-b border-gray-200" };
|
|
6675
|
+
function pa(e, t, n, s, i, o) {
|
|
6680
6676
|
const r = m("CButton"), g = m("TemplateSelector"), h = m("DocumentForm"), b = m("PostSend");
|
|
6681
|
-
return a(), p("div",
|
|
6682
|
-
i.view === "templateSelect" ? (a(), p("div",
|
|
6683
|
-
l("div",
|
|
6677
|
+
return a(), p("div", ca, [
|
|
6678
|
+
i.view === "templateSelect" ? (a(), p("div", ua, [
|
|
6679
|
+
l("div", ma, [
|
|
6684
6680
|
n.closeFunc ? (a(), v(r, {
|
|
6685
6681
|
key: 0,
|
|
6686
6682
|
icon: "x",
|
|
@@ -6742,7 +6738,7 @@ function ma(e, t, n, s, i, o) {
|
|
|
6742
6738
|
}, null, 8, ["document", "on-send-func", "on-close-func"])) : C("", !0)
|
|
6743
6739
|
]);
|
|
6744
6740
|
}
|
|
6745
|
-
const
|
|
6741
|
+
const Oa = /* @__PURE__ */ F(da, [["render", pa], ["__scopeId", "data-v-4c6b6a6b"]]);
|
|
6746
6742
|
export {
|
|
6747
|
-
|
|
6743
|
+
Oa as default
|
|
6748
6744
|
};
|