@cling-se/widget 0.18.1 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/dist/{AddClientCallout-CCt78VvH.js → AddClientCallout-C15ZADPr.js} +4 -4
- package/dist/{AnswerModal-B4LwVv2N.js → AnswerModal-CkLsmYLt.js} +5 -5
- package/dist/{AttachmentItem-DnvYffKP.js → AttachmentItem-DlVB9TGZ.js} +4 -4
- package/dist/{BaseUpload-DFoV0ZLe.js → BaseUpload-DkQT7Zch.js} +2 -2
- package/dist/{BlockMedia-Amo_kdHo.js → BlockMedia-BPQ2S6bm.js} +1 -1
- package/dist/{CCallout-Gd06ds6O.js → CCallout-Crx-Kp-6.js} +1 -1
- package/dist/{CCurrencyDropdown-B4GNmOGA.js → CCurrencyDropdown-CIhSWM6-.js} +3 -3
- package/dist/{CDropdownItem-BUNVCpSR.js → CDropdownItem-B-lI5fj3.js} +2 -2
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js → CFormField.vue_vue_type_script_setup_true_lang-DRTfuuEt.js} +2 -2
- package/dist/{CPhoneFormat-DmN5r9Ci.js → CPhoneFormat-7-et0t62.js} +1 -1
- package/dist/{CPhoneInput-B6iyhsOG.js → CPhoneInput-CjVAt5Tw.js} +5 -5
- package/dist/{CPriceInput-BLQaNu1d.js → CPriceInput-Bg3ywErx.js} +2 -2
- package/dist/{CSelect-BVO9iO9L.js → CSelect-72o7797K.js} +1 -1
- package/dist/{CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js → CSkeleton.vue_vue_type_script_setup_true_lang-eIedRPK6.js} +1 -1
- package/dist/{ClientAutocomplete-C__yUaxD.js → ClientAutocomplete-sXK0PDk-.js} +3 -3
- package/dist/{ClientModal-B9cbuEiC.js → ClientModal-Bg9-oHXI.js} +8 -8
- package/dist/{ColorPicker-G2kkxL7_.js → ColorPicker-Bzrx59wx.js} +1 -1
- package/dist/{CompanyModal-por9AG4P.js → CompanyModal-hlijfpOa.js} +7 -7
- package/dist/{ContentWrapper-CQtaGA2u.js → ContentWrapper-CdlTSpuO.js} +6 -6
- package/dist/{CoverBlockSettings-BCBDouyl.js → CoverBlockSettings-B1Gsn4ei.js} +7 -7
- package/dist/{DocAnswer-BrKctwrY.js → DocAnswer-DjrO9JmW.js} +2 -2
- package/dist/DocDetails-DcVcUbpW.js +509 -0
- package/dist/{DocForm-D6T7NmfO.js → DocForm-DndKZ3Gd.js} +547 -519
- package/dist/{DocFormSend-COYPrhl7.js → DocFormSend-B9mXtg-k.js} +2 -2
- package/dist/{DocLinks-B0LjxXIk.js → DocLinks-HxgTdd7U.js} +2 -2
- package/dist/{DocModalBase-DObZHuYr.js → DocModalBase-CqgYEZYS.js} +1 -1
- package/dist/{DocPrint-CkDq78fB.js → DocPrint-BKv6drT2.js} +1 -1
- package/dist/{DocReceipt-CYBPyePC.js → DocReceipt-BIuz0urm.js} +2 -2
- package/dist/{DocSendReminder-Dau6s43e.js → DocSendReminder-BtEEEuNy.js} +1 -1
- package/dist/{DocTextEditor-CVn6gE1i.js → DocTextEditor-DEe46YXi.js} +8 -8
- package/dist/{DocTimeline-ChBDPOfd.js → DocTimeline-BqWG4urL.js} +2 -2
- package/dist/{DocumentClient-MLXzzXLb.js → DocumentClient-tVPN1eX8.js} +5 -5
- package/dist/{DocumentLayout-BMHOt380.js → DocumentLayout-COIPNz_0.js} +5 -5
- package/dist/{DocumentLogotype-Clj3fopX.js → DocumentLogotype-klh1tiix.js} +4 -4
- package/dist/{DocumentVoided-B5_MSBbC.js → DocumentVoided-Bq5V4GhU.js} +1 -1
- package/dist/{EmbedInput-CzkOa02p.js → EmbedInput-0DOo5_q2.js} +3 -3
- package/dist/{EmbedSettings-Cf_F3KrM.js → EmbedSettings-F09rsVRV.js} +3 -3
- package/dist/{ErrorCallout-CJn6NCse.js → ErrorCallout-zWwBIYef.js} +1 -1
- package/dist/{FilePreviewModal-Di1VnPNY.js → FilePreviewModal-oeAKab06.js} +2 -2
- package/dist/{Flag-C4_G5IY1.js → Flag-BO5d1sg2.js} +1 -1
- package/dist/{HeaderSettings-DWN0TjVD.js → HeaderSettings-BXxz8DOe.js} +9 -9
- package/dist/{ImageSelectModal-DmAJ9PrN.js → ImageSelectModal-DZhwmyrr.js} +3 -3
- package/dist/{ImageUploadWrapper-QLEhA_dI.js → ImageUploadWrapper-C3AhBven.js} +2 -2
- package/dist/{Index-CxTwWRD9.js → Index-2o0vnQ6s.js} +1 -1
- package/dist/{Index-DTn47-hP.js → Index-9eOQV1-O.js} +5 -5
- package/dist/{Index-qFAg7VVU.js → Index-B2UqAKo6.js} +8 -8
- package/dist/{Index-CpxzwwQS.js → Index-B6NpGYNm.js} +3 -3
- package/dist/{Index-C9aBeBBk.js → Index-BKaP2TtX.js} +3 -3
- package/dist/{Index-B06eCuBA.js → Index-BLv34ee8.js} +4 -4
- package/dist/{Index-D9WFWlE6.js → Index-Bc7Ezeec.js} +4 -4
- package/dist/{Index-CmxFh3dW.js → Index-Bg5AgTlC.js} +2 -2
- package/dist/{Index-CE3pWPzp.js → Index-Bh_tM1iz.js} +1 -1
- package/dist/{Index-rDndJKo1.js → Index-BtFxmY9B.js} +5 -5
- package/dist/{Index-B8Zj0-MX.js → Index-BvyrE2XH.js} +5 -5
- package/dist/{Index-W10PQb8i.js → Index-BwN7sXdZ.js} +5 -5
- package/dist/{Index-BODJXJNp.js → Index-BzdPvWwe.js} +2 -2
- package/dist/{Index-DL_9LzoR.js → Index-C4adqlVm.js} +2 -2
- package/dist/{Index-DRoOW5Pn.js → Index-CN6JxwmL.js} +5 -5
- package/dist/{Index-DhYYK4bK.js → Index-COyTQZ3i.js} +4 -4
- package/dist/{Index-BBBXL4zh.js → Index-CSMfsD_9.js} +4 -4
- package/dist/{Index-s-6Qh_NE.js → Index-D04fiNgg.js} +2 -2
- package/dist/{Index-CdsOdgG2.js → Index-D1TkEaRE.js} +4 -4
- package/dist/{Index-DeGDlj0B.js → Index-D28FYNuB.js} +2 -2
- package/dist/{Index-CNhBDG2e.js → Index-DBQof0TR.js} +7 -7
- package/dist/Index-DFmSfUFl.js +4 -0
- package/dist/{Index-D9bulLeI.js → Index-DVMn1_t-.js} +4 -4
- package/dist/{Index-BCHLxp7B.js → Index-D_cpQ4XT.js} +3 -3
- package/dist/{Index-BFbcjFo4.js → Index-DiKyKI0e.js} +1 -1
- package/dist/{Index-OcBnU480.js → Index-DkBoR3Wt.js} +8 -8
- package/dist/{Index-BDAp1CwZ.js → Index-DkpGziRO.js} +8 -8
- package/dist/{Index-Bt97lEsI.js → Index-Ds56UbDJ.js} +6 -6
- package/dist/{Index-BgZNiD7A.js → Index-Dyk_cf5q.js} +3 -3
- package/dist/{Index-Dssdb-0Z.js → Index-HT3_Q5TW.js} +10 -10
- package/dist/{Index-DR-sGE3Y.js → Index-gJGHIZtP.js} +4 -4
- package/dist/{Index-Qh_8JqAv.js → Index-lGRdjphx.js} +14 -14
- package/dist/{Index-BOx_9tTM.js → Index-oZUbkrw5.js} +6 -6
- package/dist/{Index-CMdPSsp4.js → Index-ocQiYLh6.js} +4 -4
- package/dist/{Index.vue_vue_type_script_lang-CriDqp1F.js → Index.vue_vue_type_script_lang-BFxI2lBU.js} +2 -2
- package/dist/{InputToggleRow-DJarYsVL.js → InputToggleRow-Cy3ypHku.js} +1 -1
- package/dist/{ManualPopover-BMrkEHtV.js → ManualPopover-C9dBUH6i.js} +1 -1
- package/dist/{MediaWrapper-BYdVpmov.js → MediaWrapper-CxChx0Dk.js} +3 -3
- package/dist/{NotBindingText-DGjJoN8-.js → NotBindingText-e9VLnaS6.js} +2 -2
- package/dist/{PackageGroup-q7_oBOqw.js → PackageGroup-U4U_hwe2.js} +5 -5
- package/dist/{PdfTerms-DBEClYQ5.js → PdfTerms-BJPFR4RX.js} +2 -2
- package/dist/{PdfViewer-C_y5sqXB.js → PdfViewer-D6b-NClH.js} +3 -3
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js → PlainHtml.vue_vue_type_script_setup_true_lang-lMUtUlUh.js} +1 -1
- package/dist/{PriceHeader-BSwv3mzc.js → PriceHeader-CEKxyfcU.js} +7 -7
- package/dist/{SearchApi-BM6TTqxW.js → SearchApi-bWsoFtUT.js} +1 -1
- package/dist/{SendForm-DfmBbhp9.js → SendForm-gg8K9LX-.js} +8 -8
- package/dist/{Setup-BC1feKr_.js → Setup-Cog4wuNr.js} +1 -1
- package/dist/{SmartList-B3pgsg4S.js → SmartList-Vd_cYxGv.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js → Sortable.vue_vue_type_script_setup_true_lang-CoCrKHli.js} +1 -1
- package/dist/{TermsSettings-DEkACrRU.js → TermsSettings-BvIULFU2.js} +5 -5
- package/dist/{ThemeColorRow-qG8Dkkyj.js → ThemeColorRow-AumZk6nN.js} +3 -3
- package/dist/{ToggleBinding-Cdtl_-1s.js → ToggleBinding-DE00Ofrp.js} +4 -4
- package/dist/{UploadModal-1OWPRxA5.js → UploadModal-ZJcv9f3T.js} +2 -2
- package/dist/{VideoPlayerInput-DgFNjiKK.js → VideoPlayerInput-ByjJSehS.js} +4 -4
- package/dist/{VideoPlayerSettings-CFuA-7RC.js → VideoPlayerSettings-D6ufN67b.js} +2 -2
- package/dist/{VideoSelectModal-CSv67eA8.js → VideoSelectModal-CXTvWeQD.js} +3 -3
- package/dist/{focusDrawerMixin-r-OZchfV.js → focusDrawerMixin-B4MYMOTA.js} +1 -1
- package/dist/{formDrawerState-COVczNhJ.js → formDrawerState-DJe3YHdV.js} +1 -1
- package/dist/{helpers-ChwW54Ex.js → helpers-CIS5XXda.js} +1 -1
- package/dist/{index-C7chK2UD.js → index-BLQPIxld.js} +6 -6
- package/dist/{index-Bf-fiKJf.js → index-BjNlfnSK.js} +3 -3
- package/dist/{index-BMZle8Ew.js → index-C5TU_8dE.js} +1 -1
- package/dist/{index-CR52qIBO.js → index-CSKtbb-t.js} +1 -1
- package/dist/{index-YFcPqc9m.js → index-Wk6zmCon.js} +8 -8
- package/dist/{index-D1x9O_nJ.js → index-pUuf2jlt.js} +1 -1
- package/dist/{index-Bg4JRi5S.js → index-wqAfBru7.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +129 -129
- package/dist/{main-DI0diChK.js → main-CC0euzp8.js} +31 -20
- package/dist/{mapFormMixin-Cgvwie9a.js → mapFormMixin-B-L8nWA6.js} +2 -2
- package/dist/{omit-DpjD7Dj9.js → omit-D6QUfIgq.js} +1 -1
- package/dist/{publicSenderState-BcjNldje.js → publicSenderState-B6ku_-cH.js} +1 -1
- package/dist/{splitpanes-BypKTSRL.js → splitpanes-WOw_KmQw.js} +1 -1
- package/dist/{template-Dzexob5I.js → template-Dw1pJZG6.js} +1 -1
- package/dist/{tippy.esm-0UMN6kWf.js → tippy.esm-zitfL42N.js} +5 -5
- package/dist/{useTermsModal-DzH_PDFP.js → useTermsModal-HHZVcSXa.js} +4 -4
- package/dist/{utils--kBYCNZD.js → utils-oHA3dQ8M.js} +1 -1
- package/dist/{validation-B-omH73u.js → validation-DcxnlaTB.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/DocDetails-B_LWVHGt.js +0 -452
- package/dist/Index-lbWFEELM.js +0 -4
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import et from "./AnswerModal-
|
|
2
|
-
import { o as tt } from "./index-
|
|
3
|
-
import { w as Z, C as fe, a as ge } from "./CDropdownItem-
|
|
4
|
-
import { cK as pe, a as W, g as B, _ as F, o as
|
|
1
|
+
import et from "./AnswerModal-CkLsmYLt.js";
|
|
2
|
+
import { o as tt } from "./index-pUuf2jlt.js";
|
|
3
|
+
import { w as Z, C as fe, a as ge } from "./CDropdownItem-B-lI5fj3.js";
|
|
4
|
+
import { cK as pe, a as W, g as B, _ as F, o as a, b as p, s as l, d as c, v as d, w as u, B as T, e as m, l as E, f as v, ai as te, n as L, an as q, S as M, aR as Q, c as C, ap as G, $ as ye, F as $, h as ve, I as we, i as H, x as _e, H as nt, p as j, a0 as xe, cL as it, j as Pe, a9 as V, k as P, m as O, D as ot, cM as st, ag as lt, A as Ae, W as ee, X as Ce, cI as at, aD as Te, E as N, a2 as le, aC as rt, ae as dt, az as be, y as se, c5 as Ee, c6 as ze, G as he, z as ct, a4 as De, cN as ae, c7 as ut, cO as mt, bi as pt, a7 as Re, cP as ht, Z as ft, cQ as gt, cR as yt, aI as Oe, r as vt, cS as Ct, cT as bt, cU as kt, u as wt, aB as Se, a6 as _t, cV as xt, C as He, cW as Tt, cX as Dt, ay as Ue, cY as St, cZ as It, c9 as $t, c_ as Ft, c$ as Lt, d0 as Vt, aZ as Bt, d1 as Mt, d2 as Pt } from "./main-CC0euzp8.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { l as At, g as Et, a as zt, b as Rt, _ as Ot, D as Ht } from "./DocumentLayout-
|
|
7
|
-
import { F as qe, d as Ut } from "./tippy.esm-
|
|
8
|
-
import { m as ne, u as Ge, c as Ie, i as qt } from "./mapFormMixin-
|
|
9
|
-
import "./helpers-
|
|
10
|
-
import { a as Gt } from "./ClientAutocomplete-
|
|
11
|
-
import { _ as Nt } from "./Sortable.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { C as Wt, I as Y, _ as Ne, a as J, s as jt } from "./index-
|
|
13
|
-
import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { S as Zt } from "./SmartList-
|
|
15
|
-
import { u as We } from "./index-
|
|
16
|
-
import { r as $e, a as Kt } from "./index-
|
|
17
|
-
import { o as Qt, r as Yt } from "./omit-
|
|
18
|
-
import { s as U } from "./formDrawerState-
|
|
6
|
+
import { l as At, g as Et, a as zt, b as Rt, _ as Ot, D as Ht } from "./DocumentLayout-COIPNz_0.js";
|
|
7
|
+
import { F as qe, d as Ut } from "./tippy.esm-zitfL42N.js";
|
|
8
|
+
import { m as ne, u as Ge, c as Ie, i as qt } from "./mapFormMixin-B-L8nWA6.js";
|
|
9
|
+
import "./helpers-CIS5XXda.js";
|
|
10
|
+
import { a as Gt } from "./ClientAutocomplete-sXK0PDk-.js";
|
|
11
|
+
import { _ as Nt } from "./Sortable.vue_vue_type_script_setup_true_lang-CoCrKHli.js";
|
|
12
|
+
import { C as Wt, I as Y, _ as Ne, a as J, s as jt } from "./index-BLQPIxld.js";
|
|
13
|
+
import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-DRTfuuEt.js";
|
|
14
|
+
import { S as Zt } from "./SmartList-Vd_cYxGv.js";
|
|
15
|
+
import { u as We } from "./index-C5TU_8dE.js";
|
|
16
|
+
import { r as $e, a as Kt } from "./index-CSKtbb-t.js";
|
|
17
|
+
import { o as Qt, r as Yt } from "./omit-D6QUfIgq.js";
|
|
18
|
+
import { s as U } from "./formDrawerState-DJe3YHdV.js";
|
|
19
19
|
import { s as Jt } from "./dom-CkTGWrfu.js";
|
|
20
|
-
import { S as Xt } from "./SendForm-
|
|
21
|
-
import "./template-
|
|
22
|
-
import { u as en } from "./validation-
|
|
23
|
-
import { C as tn } from "./CCallout-
|
|
24
|
-
import { _ as nn } from "./CSkeleton.vue_vue_type_script_setup_true_lang-
|
|
25
|
-
import { B as on } from "./BlockMedia-
|
|
20
|
+
import { S as Xt } from "./SendForm-gg8K9LX-.js";
|
|
21
|
+
import "./template-Dw1pJZG6.js";
|
|
22
|
+
import { u as en } from "./validation-DcxnlaTB.js";
|
|
23
|
+
import { C as tn } from "./CCallout-Crx-Kp-6.js";
|
|
24
|
+
import { _ as nn } from "./CSkeleton.vue_vue_type_script_setup_true_lang-eIedRPK6.js";
|
|
25
|
+
import { B as on } from "./BlockMedia-BPQ2S6bm.js";
|
|
26
26
|
const sn = {
|
|
27
27
|
name: "DocumentPostSendStep",
|
|
28
28
|
mixins: [Z],
|
|
@@ -72,7 +72,7 @@ const sn = {
|
|
|
72
72
|
sendDocument: B.DO_SEND_DOCUMENT2
|
|
73
73
|
}),
|
|
74
74
|
async handleDocumentLinks() {
|
|
75
|
-
const { id: e } = this.document, t = pe(this.document), n = !t.sms && !t.email;
|
|
75
|
+
const { id: e } = this.document || {}, t = pe(this.document), n = !t.sms && !t.email;
|
|
76
76
|
n && (await this.updateDocument({
|
|
77
77
|
id: e,
|
|
78
78
|
body: { status: "sent" },
|
|
@@ -83,7 +83,7 @@ const sn = {
|
|
|
83
83
|
typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
|
|
84
84
|
},
|
|
85
85
|
async senderAnswer() {
|
|
86
|
-
const { id: e
|
|
86
|
+
const { id: e, senderClient: t } = this.document || {};
|
|
87
87
|
if (!t || !t.publicDocumentId) return !1;
|
|
88
88
|
const { accept: n } = t.answerMethod || {};
|
|
89
89
|
if (!n || n === "button") return !1;
|
|
@@ -136,22 +136,22 @@ const sn = {
|
|
|
136
136
|
this.onCloseFunc && this.onCloseFunc();
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
},
|
|
139
|
+
}, ln = { class: "font-inter root" }, an = { class: "container" }, rn = { class: "icon-wrapper" }, dn = ["textContent"];
|
|
140
140
|
function cn(e, t, n, s, i, o) {
|
|
141
141
|
const r = m("CIcon"), g = m("CButton");
|
|
142
|
-
return
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
return a(), p("div", ln, [
|
|
143
|
+
l("div", an, [
|
|
144
|
+
l("div", rn, [
|
|
145
145
|
c(r, {
|
|
146
146
|
size: 20,
|
|
147
147
|
type: "email"
|
|
148
148
|
})
|
|
149
149
|
]),
|
|
150
|
-
|
|
150
|
+
l("div", {
|
|
151
151
|
class: "title",
|
|
152
152
|
textContent: d(e.$t("title"))
|
|
153
153
|
}, null, 8, dn),
|
|
154
|
-
t[0] || (t[0] =
|
|
154
|
+
t[0] || (t[0] = l("div", { class: "divider" }, null, -1)),
|
|
155
155
|
c(g, {
|
|
156
156
|
type: "secondary",
|
|
157
157
|
class: "close-button",
|
|
@@ -165,7 +165,7 @@ function cn(e, t, n, s, i, o) {
|
|
|
165
165
|
])
|
|
166
166
|
]);
|
|
167
167
|
}
|
|
168
|
-
const un = /* @__PURE__ */ F(sn, [["render", cn], ["__scopeId", "data-v-
|
|
168
|
+
const un = /* @__PURE__ */ F(sn, [["render", cn], ["__scopeId", "data-v-574be9ee"]]), mn = {
|
|
169
169
|
name: "Drawer",
|
|
170
170
|
props: {
|
|
171
171
|
modelValue: {
|
|
@@ -210,16 +210,16 @@ const un = /* @__PURE__ */ F(sn, [["render", cn], ["__scopeId", "data-v-063acc4f
|
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
212
|
function pn(e, t, n, s, i, o) {
|
|
213
|
-
return
|
|
213
|
+
return a(), p("div", null, [
|
|
214
214
|
c(te, { name: "fade" }, {
|
|
215
215
|
default: u(() => [
|
|
216
|
-
!n.hideOverlay && n.modelValue ? (
|
|
216
|
+
!n.hideOverlay && n.modelValue ? (a(), p("div", {
|
|
217
217
|
key: 0,
|
|
218
218
|
style: E({
|
|
219
219
|
zIndex: n.zIndex
|
|
220
220
|
}),
|
|
221
221
|
class: "d-overlay"
|
|
222
|
-
}, null, 4)) :
|
|
222
|
+
}, null, 4)) : v("", !0)
|
|
223
223
|
]),
|
|
224
224
|
_: 1
|
|
225
225
|
}),
|
|
@@ -227,7 +227,7 @@ function pn(e, t, n, s, i, o) {
|
|
|
227
227
|
name: `slide-${n.placement}`
|
|
228
228
|
}, {
|
|
229
229
|
default: u(() => [
|
|
230
|
-
n.modelValue ? (
|
|
230
|
+
n.modelValue ? (a(), p("div", {
|
|
231
231
|
key: 0,
|
|
232
232
|
class: L([[n.placement], "d-content"]),
|
|
233
233
|
style: E({
|
|
@@ -235,7 +235,7 @@ function pn(e, t, n, s, i, o) {
|
|
|
235
235
|
}),
|
|
236
236
|
onClick: t[0] || (t[0] = q((...r) => o.onOutsideClick && o.onOutsideClick(...r), ["self"]))
|
|
237
237
|
}, [
|
|
238
|
-
|
|
238
|
+
l("div", {
|
|
239
239
|
style: E({
|
|
240
240
|
borderRadius: 0,
|
|
241
241
|
margin: 0,
|
|
@@ -248,7 +248,7 @@ function pn(e, t, n, s, i, o) {
|
|
|
248
248
|
}, [
|
|
249
249
|
M(e.$slots, "default", {}, void 0, !0)
|
|
250
250
|
], 4)
|
|
251
|
-
], 6)) :
|
|
251
|
+
], 6)) : v("", !0)
|
|
252
252
|
]),
|
|
253
253
|
_: 3
|
|
254
254
|
}, 8, ["name"])
|
|
@@ -282,12 +282,12 @@ const je = /* @__PURE__ */ F(mn, [["render", pn], ["__scopeId", "data-v-05571167
|
|
|
282
282
|
emits: ["update:open"]
|
|
283
283
|
}, fn = { style: { height: "100%", "z-index": "110" } }, gn = { style: { height: "100%", overflow: "auto" } };
|
|
284
284
|
function yn(e, t, n, s, i, o) {
|
|
285
|
-
return
|
|
285
|
+
return a(), C(te, {
|
|
286
286
|
name: n.fixed ? void 0 : "grow-anim",
|
|
287
287
|
mode: "out-in"
|
|
288
288
|
}, {
|
|
289
289
|
default: u(() => [
|
|
290
|
-
n.open ? (
|
|
290
|
+
n.open ? (a(), C(G(n.fixed ? "drawer" : "div"), ye({ key: 0 }, e.$props, {
|
|
291
291
|
ref: "drawer",
|
|
292
292
|
class: [{
|
|
293
293
|
"is-sticky": !n.fixed
|
|
@@ -300,9 +300,9 @@ function yn(e, t, n, s, i, o) {
|
|
|
300
300
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => n.fixed ? e.$emit("update:open", r) : null)
|
|
301
301
|
}), {
|
|
302
302
|
default: u(() => [
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
303
|
+
l("div", fn, [
|
|
304
|
+
l("div", gn, [
|
|
305
|
+
l("div", {
|
|
306
306
|
style: E(
|
|
307
307
|
n.fixed && {
|
|
308
308
|
maxWidth: "100%",
|
|
@@ -318,7 +318,7 @@ function yn(e, t, n, s, i, o) {
|
|
|
318
318
|
])
|
|
319
319
|
]),
|
|
320
320
|
_: 3
|
|
321
|
-
}, 16, ["class", "model-value", "placement"])) :
|
|
321
|
+
}, 16, ["class", "model-value", "placement"])) : v("", !0)
|
|
322
322
|
]),
|
|
323
323
|
_: 3
|
|
324
324
|
}, 8, ["name"]);
|
|
@@ -327,15 +327,15 @@ const vn = /* @__PURE__ */ F(hn, [["render", yn], ["__scopeId", "data-v-cd55344e
|
|
|
327
327
|
name: "DocumentFormNav"
|
|
328
328
|
}, bn = { class: "DocumentFormNav fixed left-0 right-0 top-0 z-[98] bg-gray-200 px-2 py-2 shadow-lg md:px-6" }, kn = { class: "flex" }, wn = { class: "inline-flex flex-grow items-center" }, _n = { class: "inline-flex flex-auto items-center justify-center" }, xn = { class: "inline-flex flex-grow items-center justify-end" };
|
|
329
329
|
function Tn(e, t, n, s, i, o) {
|
|
330
|
-
return
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
return a(), p("div", bn, [
|
|
331
|
+
l("div", kn, [
|
|
332
|
+
l("div", wn, [
|
|
333
333
|
M(e.$slots, "left")
|
|
334
334
|
]),
|
|
335
|
-
|
|
335
|
+
l("div", _n, [
|
|
336
336
|
M(e.$slots, "center")
|
|
337
337
|
]),
|
|
338
|
-
|
|
338
|
+
l("div", xn, [
|
|
339
339
|
M(e.$slots, "right")
|
|
340
340
|
])
|
|
341
341
|
])
|
|
@@ -357,33 +357,33 @@ const Dn = /* @__PURE__ */ F(Cn, [["render", Tn]]), Sn = {
|
|
|
357
357
|
}, In = { class: "inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 text-sm text-white" };
|
|
358
358
|
function $n(e, t, n, s, i, o) {
|
|
359
359
|
const r = m("CIcon");
|
|
360
|
-
return
|
|
361
|
-
|
|
360
|
+
return a(), p("div", In, [
|
|
361
|
+
l("div", {
|
|
362
362
|
class: L([{
|
|
363
363
|
"m-0 bg-white px-3 py-[1em] text-zinc-900 drop-shadow-md": n.modelValue === "edit"
|
|
364
364
|
}, "inline-flex select-none items-center justify-center rounded-md px-1 font-semibold leading-none text-gray-700 transition duration-150 ease-linear"]),
|
|
365
365
|
onClick: t[0] || (t[0] = (g) => n.modelValue === "preview" ? e.$emit("update:modelValue", "edit") : null)
|
|
366
366
|
}, [
|
|
367
|
-
n.small ? (
|
|
367
|
+
n.small ? (a(), C(r, {
|
|
368
368
|
key: 0,
|
|
369
369
|
type: "edit",
|
|
370
370
|
size: "20"
|
|
371
|
-
})) : (
|
|
371
|
+
})) : (a(), p($, { key: 1 }, [
|
|
372
372
|
T(d(e.$t("edit")), 1)
|
|
373
373
|
], 64))
|
|
374
374
|
], 2),
|
|
375
|
-
|
|
375
|
+
l("div", {
|
|
376
376
|
class: L([{
|
|
377
377
|
"m-0 bg-white px-3 py-[1em] text-zinc-900 drop-shadow-md": n.modelValue === "preview"
|
|
378
378
|
}, "inline-flex select-none items-center justify-center rounded-md px-1 font-semibold leading-none text-gray-700 transition duration-150 ease-linear"]),
|
|
379
379
|
"data-onboarding": "preview-button",
|
|
380
380
|
onClick: t[1] || (t[1] = (g) => n.modelValue === "edit" ? e.$emit("update:modelValue", "preview") : null)
|
|
381
381
|
}, [
|
|
382
|
-
n.small ? (
|
|
382
|
+
n.small ? (a(), C(r, {
|
|
383
383
|
key: 0,
|
|
384
384
|
type: "eye",
|
|
385
385
|
size: "20"
|
|
386
|
-
})) : (
|
|
386
|
+
})) : (a(), p($, { key: 1 }, [
|
|
387
387
|
T(d(e.$t("preview")), 1)
|
|
388
388
|
], 64))
|
|
389
389
|
], 2)
|
|
@@ -430,23 +430,23 @@ const Fn = /* @__PURE__ */ F(Sn, [["render", $n]]), Ln = {
|
|
|
430
430
|
}, Pn = { class: "control-direction" };
|
|
431
431
|
function An(e, t, n, s, i, o) {
|
|
432
432
|
const r = m("CIcon");
|
|
433
|
-
return
|
|
434
|
-
o.canToggleVisibility ? (
|
|
433
|
+
return a(), p("div", Vn, [
|
|
434
|
+
o.canToggleVisibility ? (a(), p("div", {
|
|
435
435
|
key: 0,
|
|
436
436
|
class: "control-button",
|
|
437
437
|
onClick: t[0] || (t[0] = (g) => e.$emit("toggle-visible", !n.isVisible))
|
|
438
438
|
}, [
|
|
439
|
-
n.isVisible ?
|
|
439
|
+
n.isVisible ? v("", !0) : (a(), p("span", Bn, d(e.$t("hidden")), 1)),
|
|
440
440
|
c(r, {
|
|
441
441
|
type: n.isVisible ? "eye" : "eye-off",
|
|
442
442
|
size: "14",
|
|
443
443
|
class: L({ "mr-1": !n.isVisible })
|
|
444
444
|
}, null, 8, ["type", "class"])
|
|
445
|
-
])) :
|
|
445
|
+
])) : v("", !0),
|
|
446
446
|
M(e.$slots, "default", {}, void 0, !0),
|
|
447
|
-
!o.isHidden && n.isMovable ? (
|
|
448
|
-
|
|
449
|
-
|
|
447
|
+
!o.isHidden && n.isMovable ? (a(), p("div", Mn, [
|
|
448
|
+
l("div", Pn, [
|
|
449
|
+
l("div", {
|
|
450
450
|
class: "control-button",
|
|
451
451
|
onClick: t[1] || (t[1] = (g) => e.$emit("move", "up"))
|
|
452
452
|
}, [
|
|
@@ -455,7 +455,7 @@ function An(e, t, n, s, i, o) {
|
|
|
455
455
|
size: "16"
|
|
456
456
|
})
|
|
457
457
|
]),
|
|
458
|
-
|
|
458
|
+
l("div", {
|
|
459
459
|
class: "control-button",
|
|
460
460
|
onClick: t[2] || (t[2] = (g) => e.$emit("move", "down"))
|
|
461
461
|
}, [
|
|
@@ -465,7 +465,7 @@ function An(e, t, n, s, i, o) {
|
|
|
465
465
|
})
|
|
466
466
|
])
|
|
467
467
|
]),
|
|
468
|
-
|
|
468
|
+
l("div", {
|
|
469
469
|
class: "control-button remove",
|
|
470
470
|
onClick: t[3] || (t[3] = (g) => e.$emit("remove"))
|
|
471
471
|
}, [
|
|
@@ -474,7 +474,7 @@ function An(e, t, n, s, i, o) {
|
|
|
474
474
|
size: "16"
|
|
475
475
|
})
|
|
476
476
|
])
|
|
477
|
-
])) :
|
|
477
|
+
])) : v("", !0)
|
|
478
478
|
]);
|
|
479
479
|
}
|
|
480
480
|
const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7"]]), zn = ["inert"], Rn = /* @__PURE__ */ ve({
|
|
@@ -495,9 +495,9 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
495
495
|
};
|
|
496
496
|
return _e("sectionTopNode", s), _e("setOpenDrawer", b), (w, k) => {
|
|
497
497
|
const S = m("CButton"), D = m("Animation");
|
|
498
|
-
return
|
|
498
|
+
return a(), C(D, { class: "w-full" }, {
|
|
499
499
|
default: u(() => [
|
|
500
|
-
|
|
500
|
+
l("div", {
|
|
501
501
|
class: L([[
|
|
502
502
|
{
|
|
503
503
|
"is-edit-view": w.isEditView,
|
|
@@ -515,13 +515,13 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
515
515
|
onMouseoverPassive: k[3] || (k[3] = (y) => i.value = !0),
|
|
516
516
|
onMouseleavePassive: k[4] || (k[4] = (y) => i.value = !1)
|
|
517
517
|
}, [
|
|
518
|
-
|
|
518
|
+
l("div", {
|
|
519
519
|
class: L(["block-container", { "spacing-snug": r.value }]),
|
|
520
520
|
inert: r.value
|
|
521
521
|
}, [
|
|
522
522
|
M(w.$slots, "default", {}, void 0, !0)
|
|
523
523
|
], 10, zn),
|
|
524
|
-
g.value ? (
|
|
524
|
+
g.value ? (a(), C(En, {
|
|
525
525
|
key: 0,
|
|
526
526
|
class: "control-root z-10",
|
|
527
527
|
"is-movable": w.canMove,
|
|
@@ -531,7 +531,7 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
531
531
|
onRemove: k[2] || (k[2] = (y) => n("remove"))
|
|
532
532
|
}, {
|
|
533
533
|
default: u(() => [
|
|
534
|
-
w.showEditButton ? (
|
|
534
|
+
w.showEditButton ? (a(), C(S, {
|
|
535
535
|
key: 0,
|
|
536
536
|
round: "",
|
|
537
537
|
size: "small",
|
|
@@ -544,10 +544,10 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
544
544
|
T(d(w.$t("_common:edit").capitalize()), 1)
|
|
545
545
|
]),
|
|
546
546
|
_: 1
|
|
547
|
-
}, 8, ["onClick"])) :
|
|
547
|
+
}, 8, ["onClick"])) : v("", !0)
|
|
548
548
|
]),
|
|
549
549
|
_: 1
|
|
550
|
-
}, 8, ["is-movable", "is-visible"])) :
|
|
550
|
+
}, 8, ["is-movable", "is-visible"])) : v("", !0)
|
|
551
551
|
], 38)
|
|
552
552
|
]),
|
|
553
553
|
_: 3
|
|
@@ -573,24 +573,24 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
|
|
|
573
573
|
}
|
|
574
574
|
}, Un = ["href"], qn = { class: "mr-2 h-5 w-5 overflow-hidden rounded bg-white" }, Gn = ["src", "alt"], Nn = { class: "text-xs font-medium text-white" };
|
|
575
575
|
function Wn(e, t, n, s, i, o) {
|
|
576
|
-
return
|
|
576
|
+
return a(), p("div", {
|
|
577
577
|
class: L([n.position, "pointer-events-none bottom-0 left-0 right-0 z-50 flex justify-end px-[10px] pb-[10px]"])
|
|
578
578
|
}, [
|
|
579
|
-
|
|
579
|
+
l("a", {
|
|
580
580
|
class: "pointer-events-auto inline-flex h-8 items-center rounded-md border border-white/30 bg-black/80 pl-1.5 pr-2",
|
|
581
581
|
href: `https://${e.$t(
|
|
582
582
|
"_common:brand.domain"
|
|
583
583
|
)}?utm_source=document&utm_medium=logo-banner`,
|
|
584
584
|
target: "_blank"
|
|
585
585
|
}, [
|
|
586
|
-
|
|
587
|
-
|
|
586
|
+
l("div", qn, [
|
|
587
|
+
l("img", {
|
|
588
588
|
src: o.logoUrl,
|
|
589
589
|
alt: e.$t("brand.name"),
|
|
590
590
|
class: "h-full w-full"
|
|
591
591
|
}, null, 8, Gn)
|
|
592
592
|
]),
|
|
593
|
-
|
|
593
|
+
l("div", Nn, " Made in " + d(e.$t("brand.name")), 1)
|
|
594
594
|
], 8, Un)
|
|
595
595
|
], 2);
|
|
596
596
|
}
|
|
@@ -608,15 +608,15 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
608
608
|
});
|
|
609
609
|
return (r, g) => {
|
|
610
610
|
const h = m("CButton"), b = m("portal");
|
|
611
|
-
return
|
|
611
|
+
return a(), C(b, { to: "modal" }, {
|
|
612
612
|
default: u(() => [
|
|
613
|
-
|
|
613
|
+
l("div", {
|
|
614
614
|
ref_key: "el",
|
|
615
615
|
ref: s,
|
|
616
616
|
style: E(Pe(o)),
|
|
617
617
|
class: "popup fixed z-[999] min-h-[400px] w-[280px] rounded-lg bg-white p-[1em] pb-[3em] text-sm shadow-xl"
|
|
618
618
|
}, [
|
|
619
|
-
|
|
619
|
+
l("div", Zn, [
|
|
620
620
|
c(h, {
|
|
621
621
|
icon: "x",
|
|
622
622
|
size: "small",
|
|
@@ -636,7 +636,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
636
636
|
circle: "",
|
|
637
637
|
class: "absolute right-9 top-0 cursor-grab"
|
|
638
638
|
}, null, 512),
|
|
639
|
-
|
|
639
|
+
l("div", Kn, d(r.title), 1),
|
|
640
640
|
M(r.$slots, "default")
|
|
641
641
|
])
|
|
642
642
|
], 4)
|
|
@@ -1209,17 +1209,17 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
|
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
1211
|
}, Jn = { style: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, Xn = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, ei = ["onClick"], ti = { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, ni = { style: { padding: "calc(0.75 * var(--rem))" } }, ii = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, oi = ["onClick"], si = { style: { "font-size": "1.075em", "font-weight": "500" } };
|
|
1212
|
-
function
|
|
1212
|
+
function li(e, t, n, s, i, o) {
|
|
1213
1213
|
const r = m("FormInputRow"), g = m("DragWindow");
|
|
1214
|
-
return
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
(
|
|
1214
|
+
return a(), p("div", null, [
|
|
1215
|
+
l("div", Jn, [
|
|
1216
|
+
l("div", Xn, d(e.$t("typography")), 1),
|
|
1217
|
+
(a(!0), p($, null, P(o.typography, (h) => (a(), p("div", {
|
|
1218
1218
|
key: h.label,
|
|
1219
1219
|
class: "list-option",
|
|
1220
1220
|
onClick: (b) => i.activeItem = h
|
|
1221
1221
|
}, [
|
|
1222
|
-
|
|
1222
|
+
l("div", {
|
|
1223
1223
|
style: E({
|
|
1224
1224
|
fontSize: h.fontSize,
|
|
1225
1225
|
fontFamily: h.style.fontFamily,
|
|
@@ -1228,39 +1228,39 @@ function ai(e, t, n, s, i, o) {
|
|
|
1228
1228
|
lineHeight: 1
|
|
1229
1229
|
})
|
|
1230
1230
|
}, d(h.label), 5),
|
|
1231
|
-
|
|
1231
|
+
l("div", ti, d(h.style.fontFamily) + " " + d(h.style.fontSize), 1)
|
|
1232
1232
|
], 8, ei))), 128))
|
|
1233
1233
|
]),
|
|
1234
|
-
t[2] || (t[2] =
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
(
|
|
1234
|
+
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)),
|
|
1235
|
+
l("div", ni, [
|
|
1236
|
+
l("div", ii, d(e.$t("section_plural")), 1),
|
|
1237
|
+
(a(!0), p($, null, P(i.sections, (h) => (a(), p("div", {
|
|
1238
1238
|
key: h.label,
|
|
1239
1239
|
class: "list-option",
|
|
1240
1240
|
onClick: (b) => i.activeItem = h
|
|
1241
1241
|
}, [
|
|
1242
|
-
|
|
1243
|
-
t[1] || (t[1] =
|
|
1242
|
+
l("div", si, d(h.label), 1),
|
|
1243
|
+
t[1] || (t[1] = l("div", { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, " #000000 ", -1))
|
|
1244
1244
|
], 8, oi))), 128))
|
|
1245
1245
|
]),
|
|
1246
|
-
i.activeItem ? (
|
|
1246
|
+
i.activeItem ? (a(), C(g, {
|
|
1247
1247
|
key: 0,
|
|
1248
1248
|
title: i.activeItem.label,
|
|
1249
1249
|
offset: n.offset,
|
|
1250
1250
|
onClose: t[0] || (t[0] = () => i.activeItem = null)
|
|
1251
1251
|
}, {
|
|
1252
1252
|
default: u(() => [
|
|
1253
|
-
(
|
|
1253
|
+
(a(!0), p($, null, P(o.activeItemOptions, (h, b) => (a(), C(r, {
|
|
1254
1254
|
key: b,
|
|
1255
1255
|
label: h.label,
|
|
1256
1256
|
inputs: h.inputs
|
|
1257
1257
|
}, null, 8, ["label", "inputs"]))), 128))
|
|
1258
1258
|
]),
|
|
1259
1259
|
_: 1
|
|
1260
|
-
}, 8, ["title", "offset"])) :
|
|
1260
|
+
}, 8, ["title", "offset"])) : v("", !0)
|
|
1261
1261
|
]);
|
|
1262
1262
|
}
|
|
1263
|
-
const
|
|
1263
|
+
const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-83027693"]]), ri = {
|
|
1264
1264
|
i18nOptions: {
|
|
1265
1265
|
namespaces: "DocSettings",
|
|
1266
1266
|
messages: {
|
|
@@ -1599,22 +1599,22 @@ const li = /* @__PURE__ */ F(Yn, [["render", ai], ["__scopeId", "data-v-83027693
|
|
|
1599
1599
|
};
|
|
1600
1600
|
function ui(e, t, n, s, i, o) {
|
|
1601
1601
|
const r = m("FormInputRow"), g = m("DragWindow");
|
|
1602
|
-
return
|
|
1603
|
-
(
|
|
1602
|
+
return a(), p("div", di, [
|
|
1603
|
+
(a(!0), p($, null, P(o.options, (h, b) => (a(), C(r, {
|
|
1604
1604
|
key: b,
|
|
1605
1605
|
label: h.label,
|
|
1606
1606
|
"info-tooltip": h.infoTooltip,
|
|
1607
1607
|
inputs: h.inputs
|
|
1608
1608
|
}, null, 8, ["label", "info-tooltip", "inputs"]))), 128)),
|
|
1609
|
-
i.showDragWindow ? (
|
|
1609
|
+
i.showDragWindow ? (a(), C(g, {
|
|
1610
1610
|
key: 0,
|
|
1611
1611
|
offset: n.offset,
|
|
1612
1612
|
title: e.$t("pricing.title"),
|
|
1613
1613
|
onClose: t[0] || (t[0] = (h) => i.showDragWindow = !1)
|
|
1614
1614
|
}, {
|
|
1615
1615
|
default: u(() => [
|
|
1616
|
-
(
|
|
1617
|
-
h.type === "divider" ? (
|
|
1616
|
+
(a(!0), p($, null, P(o.priceOptions, (h, b) => (a(), p($, { key: b }, [
|
|
1617
|
+
h.type === "divider" ? (a(), p("div", ci)) : (a(), C(r, {
|
|
1618
1618
|
key: b,
|
|
1619
1619
|
label: h.label,
|
|
1620
1620
|
"info-tooltip": h.infoTooltip,
|
|
@@ -1623,7 +1623,7 @@ function ui(e, t, n, s, i, o) {
|
|
|
1623
1623
|
], 64))), 128))
|
|
1624
1624
|
]),
|
|
1625
1625
|
_: 1
|
|
1626
|
-
}, 8, ["offset", "title"])) :
|
|
1626
|
+
}, 8, ["offset", "title"])) : v("", !0)
|
|
1627
1627
|
]);
|
|
1628
1628
|
}
|
|
1629
1629
|
const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb"]]), pi = {
|
|
@@ -1670,7 +1670,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1670
1670
|
name: "ExtensionTab",
|
|
1671
1671
|
components: {
|
|
1672
1672
|
Sortable: Nt,
|
|
1673
|
-
Spinner:
|
|
1673
|
+
Spinner: lt,
|
|
1674
1674
|
CAutocomplete: Gt,
|
|
1675
1675
|
CDropdown: fe,
|
|
1676
1676
|
CDropdownItem: ge
|
|
@@ -1802,7 +1802,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1802
1802
|
});
|
|
1803
1803
|
if (Array.isArray(s) && s.length) {
|
|
1804
1804
|
const o = (i = this._document) == null ? void 0 : i.defaultAnswerMethod, r = s.map((g) => ({
|
|
1805
|
-
...
|
|
1805
|
+
...at(),
|
|
1806
1806
|
...o && { answerMethod: o },
|
|
1807
1807
|
...g
|
|
1808
1808
|
}));
|
|
@@ -1864,9 +1864,9 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
|
|
|
1864
1864
|
style: { "padding-top": "calc(1 * var(--rem))" }
|
|
1865
1865
|
};
|
|
1866
1866
|
function Gi(e, t, n, s, i, o) {
|
|
1867
|
-
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("Spinner"), w = m("CAutocomplete"), k = m("CIcon"), S = m("Sortable"), D = m("router-link"), y =
|
|
1868
|
-
return
|
|
1869
|
-
e.allAuthenticatedCRMs.length > 1 ? (
|
|
1867
|
+
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("Spinner"), w = m("CAutocomplete"), k = m("CIcon"), S = m("Sortable"), D = m("router-link"), y = le("tooltip");
|
|
1868
|
+
return a(), p("div", hi, [
|
|
1869
|
+
e.allAuthenticatedCRMs.length > 1 ? (a(), C(h, {
|
|
1870
1870
|
key: 0,
|
|
1871
1871
|
position: "is-bottom-left",
|
|
1872
1872
|
style: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }
|
|
@@ -1881,7 +1881,7 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1881
1881
|
})
|
|
1882
1882
|
]),
|
|
1883
1883
|
default: u(() => [
|
|
1884
|
-
(
|
|
1884
|
+
(a(!0), p($, null, P(e.allAuthenticatedCRMs, (f) => (a(), C(g, {
|
|
1885
1885
|
key: f,
|
|
1886
1886
|
type: i.activeCrm === f ? "primary" : "secondary",
|
|
1887
1887
|
size: "small",
|
|
@@ -1894,19 +1894,19 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1894
1894
|
}, 1032, ["type", "onClick"]))), 128))
|
|
1895
1895
|
]),
|
|
1896
1896
|
_: 1
|
|
1897
|
-
})) :
|
|
1898
|
-
i.isLoading && !i.dealDetails ? (
|
|
1897
|
+
})) : v("", !0),
|
|
1898
|
+
i.isLoading && !i.dealDetails ? (a(), p("div", fi, [
|
|
1899
1899
|
c(b, {
|
|
1900
1900
|
size: "24",
|
|
1901
1901
|
color: "grey"
|
|
1902
1902
|
})
|
|
1903
|
-
])) : i.activeCrm ? (
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
i.typeDetails ? (
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1903
|
+
])) : i.activeCrm ? (a(), p($, { key: 2 }, [
|
|
1904
|
+
l("div", gi, [
|
|
1905
|
+
l("div", yi, d(i.activeCrm.capitalize()), 1),
|
|
1906
|
+
i.typeDetails ? (a(), p("div", vi, [
|
|
1907
|
+
l("div", Ci, [
|
|
1908
|
+
l("div", bi, [
|
|
1909
|
+
l("div", {
|
|
1910
1910
|
textContent: d(
|
|
1911
1911
|
e.$t("referenceTo", {
|
|
1912
1912
|
crm: i.activeCrm.capitalize(),
|
|
@@ -1924,20 +1924,20 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1924
1924
|
onClick: t[0] || (t[0] = (f) => o.removeReference(i.typeDetails.type))
|
|
1925
1925
|
})
|
|
1926
1926
|
]),
|
|
1927
|
-
|
|
1927
|
+
l("div", {
|
|
1928
1928
|
class: "x-hint-name",
|
|
1929
1929
|
textContent: d(i.typeDetails.name || "")
|
|
1930
1930
|
}, null, 8, wi)
|
|
1931
1931
|
]),
|
|
1932
|
-
t[7] || (t[7] =
|
|
1933
|
-
])) :
|
|
1934
|
-
|
|
1935
|
-
t[8] || (t[8] =
|
|
1936
|
-
o.currentExternalDeal ? (
|
|
1937
|
-
|
|
1938
|
-
i.dealDetails ? (
|
|
1939
|
-
|
|
1940
|
-
(
|
|
1932
|
+
t[7] || (t[7] = l("div", { class: "divider" }, null, -1))
|
|
1933
|
+
])) : v("", !0),
|
|
1934
|
+
l("div", _i, d(e.$t("headerText", { crm: i.activeCrm.capitalize() })), 1),
|
|
1935
|
+
t[8] || (t[8] = l("div", { style: { height: "2em" } }, null, -1)),
|
|
1936
|
+
o.currentExternalDeal ? (a(), p($, { key: 1 }, [
|
|
1937
|
+
l("div", xi, d(e.$t("connectedTo", { type: o.dealType })), 1),
|
|
1938
|
+
i.dealDetails ? (a(), p("div", Ti, [
|
|
1939
|
+
l("div", null, [
|
|
1940
|
+
(a(), C(G(i.dealDetails.externalUrl ? "a" : "span"), {
|
|
1941
1941
|
href: i.dealDetails.externalUrl || "#",
|
|
1942
1942
|
target: "_blank",
|
|
1943
1943
|
style: { "font-weight": "600" },
|
|
@@ -1945,12 +1945,12 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1945
1945
|
textContent: d(i.dealDetails.name)
|
|
1946
1946
|
}, null, 8, ["href", "textContent"]))
|
|
1947
1947
|
]),
|
|
1948
|
-
i.dealDetails.currency ? (
|
|
1948
|
+
i.dealDetails.currency ? (a(), p("div", Di, d(o.priceFormat(i.dealDetails.value, {
|
|
1949
1949
|
showZero: !1,
|
|
1950
1950
|
currency: i.dealDetails.currency
|
|
1951
|
-
})), 1)) :
|
|
1952
|
-
])) :
|
|
1953
|
-
|
|
1951
|
+
})), 1)) : v("", !0)
|
|
1952
|
+
])) : v("", !0),
|
|
1953
|
+
l("div", null, [
|
|
1954
1954
|
c(r, {
|
|
1955
1955
|
loading: i.isLoading,
|
|
1956
1956
|
size: "small",
|
|
@@ -1977,8 +1977,8 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1977
1977
|
textContent: d(e.$t("suggestClients"))
|
|
1978
1978
|
}, null, 8, ["textContent"])
|
|
1979
1979
|
])
|
|
1980
|
-
], 64)) : (
|
|
1981
|
-
|
|
1980
|
+
], 64)) : (a(), p("div", Si, [
|
|
1981
|
+
l("div", {
|
|
1982
1982
|
style: { padding: "0 4px 0.25em" },
|
|
1983
1983
|
class: "text-gray-600",
|
|
1984
1984
|
textContent: d(e.$t("linkToDoc", { type: o.dealType }))
|
|
@@ -1999,16 +1999,16 @@ function Gi(e, t, n, s, i, o) {
|
|
|
1999
1999
|
onSelect: t[6] || (t[6] = (f) => o.useSearchResult(f))
|
|
2000
2000
|
}, {
|
|
2001
2001
|
default: u(({ option: f }) => [
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2002
|
+
l("div", $i, [
|
|
2003
|
+
l("div", Fi, d(f.name), 1),
|
|
2004
|
+
l("div", Li, [
|
|
2005
2005
|
T(d(f.externalReference.type.capitalize()) + " " + d(f.externalReference.typeId) + " ", 1),
|
|
2006
|
-
f.value && f.currency ? (
|
|
2006
|
+
f.value && f.currency ? (a(), p($, { key: 0 }, [
|
|
2007
2007
|
T(" · " + d(o.priceFormat(f.value, {
|
|
2008
2008
|
showZero: !1,
|
|
2009
2009
|
currency: f.currency
|
|
2010
2010
|
})), 1)
|
|
2011
|
-
], 64)) :
|
|
2011
|
+
], 64)) : v("", !0)
|
|
2012
2012
|
])
|
|
2013
2013
|
])
|
|
2014
2014
|
]),
|
|
@@ -2019,9 +2019,9 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2019
2019
|
}, 8, ["modelValue", "data", "loading", "placeholder"])
|
|
2020
2020
|
]))
|
|
2021
2021
|
]),
|
|
2022
|
-
o.showDealProducts ? (
|
|
2023
|
-
|
|
2024
|
-
|
|
2022
|
+
o.showDealProducts ? (a(), p("div", Vi, [
|
|
2023
|
+
l("div", Bi, [
|
|
2024
|
+
l("div", Mi, [
|
|
2025
2025
|
T(d(e.$t("productsTitle")) + " ", 1),
|
|
2026
2026
|
N(c(k, {
|
|
2027
2027
|
type: "info",
|
|
@@ -2033,7 +2033,7 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2033
2033
|
]
|
|
2034
2034
|
])
|
|
2035
2035
|
]),
|
|
2036
|
-
|
|
2036
|
+
l("div", {
|
|
2037
2037
|
class: "text-gray-600",
|
|
2038
2038
|
textContent: d(
|
|
2039
2039
|
e.$t("productsText", {
|
|
@@ -2043,7 +2043,7 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2043
2043
|
)
|
|
2044
2044
|
}, null, 8, Pi)
|
|
2045
2045
|
]),
|
|
2046
|
-
i.dealDetails.articles && i.dealDetails.articles.length ? (
|
|
2046
|
+
i.dealDetails.articles && i.dealDetails.articles.length ? (a(), C(S, {
|
|
2047
2047
|
key: 0,
|
|
2048
2048
|
"item-key": "_uniqueId",
|
|
2049
2049
|
list: i.dealDetails.articles,
|
|
@@ -2058,46 +2058,46 @@ function Gi(e, t, n, s, i, o) {
|
|
|
2058
2058
|
style: { "min-height": "calc(3 * var(--rem))", padding: "0 calc(0.5 * var(--rem))" }
|
|
2059
2059
|
}, {
|
|
2060
2060
|
item: u(({ item: f }) => [
|
|
2061
|
-
|
|
2061
|
+
l("div", {
|
|
2062
2062
|
style: { padding: "calc(0.5 * var(--rem))", "line-height": "1", "margin-bottom": "calc(0.5 * var(--rem))", "box-shadow": "0 1px 3px rgb(0, 0, 0, 0.3)", background: "white", "border-radius": "3px", cursor: "grab", "user-select": "none" },
|
|
2063
2063
|
onClick: (x) => o.addArticle(f)
|
|
2064
2064
|
}, [
|
|
2065
|
-
|
|
2065
|
+
l("div", {
|
|
2066
2066
|
style: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" },
|
|
2067
2067
|
textContent: d(f.name)
|
|
2068
2068
|
}, null, 8, Ei),
|
|
2069
|
-
|
|
2069
|
+
l("div", zi, [
|
|
2070
2070
|
T(d(o.priceFormat(f.price || 0, {
|
|
2071
2071
|
showZero: !1,
|
|
2072
2072
|
currency: f.currency || "USD"
|
|
2073
2073
|
})) + " · " + d(f.quantity || 0) + "x ", 1),
|
|
2074
|
-
f.vat !== null ? (
|
|
2074
|
+
f.vat !== null ? (a(), p($, { key: 0 }, [
|
|
2075
2075
|
T(" · " + d(e._document.$t("vat").capitalize()) + " " + d(f.vat) + "% ", 1)
|
|
2076
|
-
], 64)) :
|
|
2076
|
+
], 64)) : v("", !0)
|
|
2077
2077
|
])
|
|
2078
2078
|
], 8, Ai)
|
|
2079
2079
|
]),
|
|
2080
2080
|
_: 1
|
|
2081
|
-
}, 8, ["list", "clone"])) : (
|
|
2081
|
+
}, 8, ["list", "clone"])) : (a(), p("div", Ri, [
|
|
2082
2082
|
c(k, {
|
|
2083
2083
|
type: "info",
|
|
2084
2084
|
size: "13",
|
|
2085
2085
|
style: { margin: "1px 4px 0 0", "flex-shrink": "0" }
|
|
2086
2086
|
}),
|
|
2087
|
-
|
|
2087
|
+
l("div", {
|
|
2088
2088
|
textContent: d(e.$t("noProducts", { type: o.dealType }))
|
|
2089
2089
|
}, null, 8, Oi)
|
|
2090
2090
|
]))
|
|
2091
|
-
])) :
|
|
2092
|
-
], 64)) : (
|
|
2091
|
+
])) : v("", !0)
|
|
2092
|
+
], 64)) : (a(), p("div", Hi, [
|
|
2093
2093
|
c(k, {
|
|
2094
2094
|
type: "info",
|
|
2095
2095
|
size: "16",
|
|
2096
2096
|
class: "text-primary-500",
|
|
2097
2097
|
style: { "padding-bottom": "5px" }
|
|
2098
2098
|
}),
|
|
2099
|
-
|
|
2100
|
-
|
|
2099
|
+
l("div", Ui, d(e.$t("noCrm")), 1),
|
|
2100
|
+
l("div", qi, [
|
|
2101
2101
|
c(D, {
|
|
2102
2102
|
to: { name: "settings" },
|
|
2103
2103
|
style: { "font-weight": "500" },
|
|
@@ -2236,12 +2236,12 @@ const Ni = /* @__PURE__ */ F(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
|
|
|
2236
2236
|
}, Zi = { style: { "padding-bottom": "2em" } }, Ki = { style: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, Qi = { style: { "margin-bottom": "0.25em", opacity: "0.65" } };
|
|
2237
2237
|
function Yi(e, t, n, s, i, o) {
|
|
2238
2238
|
const r = m("CInput"), g = m("CField"), h = m("CButton");
|
|
2239
|
-
return
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2239
|
+
return a(), p("div", ji, [
|
|
2240
|
+
l("div", Zi, [
|
|
2241
|
+
l("div", Ki, d(n.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")), 1),
|
|
2242
|
+
l("div", Qi, d(e.$t("description")), 1)
|
|
2243
2243
|
]),
|
|
2244
|
-
|
|
2244
|
+
l("form", {
|
|
2245
2245
|
style: { width: "100%" },
|
|
2246
2246
|
onSubmit: t[2] || (t[2] = q((...b) => o.submit && o.submit(...b), ["prevent"])),
|
|
2247
2247
|
onKeyup: t[3] || (t[3] = dt((...b) => o.submit && o.submit(...b), ["enter"]))
|
|
@@ -2287,7 +2287,7 @@ function Yi(e, t, n, s, i, o) {
|
|
|
2287
2287
|
onClick: o.submit,
|
|
2288
2288
|
textContent: d(e.$t("_common:save"))
|
|
2289
2289
|
}, null, 8, ["onClick", "textContent"]),
|
|
2290
|
-
n.existingFieldId ? (
|
|
2290
|
+
n.existingFieldId ? (a(), C(h, {
|
|
2291
2291
|
key: 0,
|
|
2292
2292
|
style: { "margin-top": "5px" },
|
|
2293
2293
|
type: "none",
|
|
@@ -2295,7 +2295,7 @@ function Yi(e, t, n, s, i, o) {
|
|
|
2295
2295
|
wide: "",
|
|
2296
2296
|
onClick: o.remove,
|
|
2297
2297
|
textContent: d(e.$t("_common:remove"))
|
|
2298
|
-
}, null, 8, ["onClick", "textContent"])) :
|
|
2298
|
+
}, null, 8, ["onClick", "textContent"])) : v("", !0)
|
|
2299
2299
|
], 32)
|
|
2300
2300
|
]);
|
|
2301
2301
|
}
|
|
@@ -2438,7 +2438,7 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
|
|
|
2438
2438
|
}, so = {
|
|
2439
2439
|
class: "field-container",
|
|
2440
2440
|
style: { position: "relative", flex: "1 1 auto" }
|
|
2441
|
-
},
|
|
2441
|
+
}, lo = ["onDragstart", "textContent"], ao = { class: "field-actions" }, ro = {
|
|
2442
2442
|
key: 1,
|
|
2443
2443
|
style: { "text-align": "center" }
|
|
2444
2444
|
}, co = {
|
|
@@ -2453,13 +2453,13 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
|
|
|
2453
2453
|
}, vo = ["onDragstart", "textContent"], Co = { class: "field-actions" };
|
|
2454
2454
|
function bo(e, t, n, s, i, o) {
|
|
2455
2455
|
const r = m("CInput"), g = m("CField"), h = m("CButton"), b = m("SmartList"), w = m("CIcon"), k = m("CAccordion");
|
|
2456
|
-
return
|
|
2457
|
-
|
|
2458
|
-
|
|
2456
|
+
return a(), p("div", eo, [
|
|
2457
|
+
l("div", to, [
|
|
2458
|
+
l("div", {
|
|
2459
2459
|
style: { "font-size": "16px", "font-weight": "600" },
|
|
2460
2460
|
textContent: d(e.$t("title"))
|
|
2461
2461
|
}, null, 8, no),
|
|
2462
|
-
|
|
2462
|
+
l("div", {
|
|
2463
2463
|
style: { color: "hsl(0, 0%, 35%)" },
|
|
2464
2464
|
textContent: d(e.$t("description"))
|
|
2465
2465
|
}, null, 8, io)
|
|
@@ -2471,31 +2471,31 @@ function bo(e, t, n, s, i, o) {
|
|
|
2471
2471
|
filled: "",
|
|
2472
2472
|
size: "small"
|
|
2473
2473
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
2474
|
-
i.query ? (
|
|
2474
|
+
i.query ? (a(), p("div", oo, [
|
|
2475
2475
|
c(b, {
|
|
2476
2476
|
items: o.options,
|
|
2477
2477
|
"filter-method": o.filterMethod,
|
|
2478
2478
|
query: i.query
|
|
2479
2479
|
}, {
|
|
2480
2480
|
default: u(({ items: S }) => [
|
|
2481
|
-
|
|
2482
|
-
S.length ? (
|
|
2481
|
+
l("div", null, [
|
|
2482
|
+
S.length ? (a(!0), p($, { key: 0 }, P(S, (D, y) => (a(), p("div", {
|
|
2483
2483
|
key: y,
|
|
2484
2484
|
class: "field-parent flex w-full items-center"
|
|
2485
2485
|
}, [
|
|
2486
|
-
|
|
2486
|
+
l("div", so, [
|
|
2487
2487
|
c(g, {
|
|
2488
2488
|
label: " ",
|
|
2489
2489
|
"label-position": "inside",
|
|
2490
2490
|
style: { width: "100%" }
|
|
2491
2491
|
}, {
|
|
2492
2492
|
default: u(() => [
|
|
2493
|
-
|
|
2493
|
+
l("span", {
|
|
2494
2494
|
class: "drag-label",
|
|
2495
2495
|
draggable: !0,
|
|
2496
2496
|
onDragstart: (f) => o.onDragStart(f, D),
|
|
2497
2497
|
textContent: d(D.label)
|
|
2498
|
-
}, null, 40,
|
|
2498
|
+
}, null, 40, lo),
|
|
2499
2499
|
c(r, {
|
|
2500
2500
|
"model-value": D.value,
|
|
2501
2501
|
disabled: D.inputDisabled,
|
|
@@ -2510,8 +2510,8 @@ function bo(e, t, n, s, i, o) {
|
|
|
2510
2510
|
]),
|
|
2511
2511
|
_: 2
|
|
2512
2512
|
}, 1024),
|
|
2513
|
-
|
|
2514
|
-
!D.inputDisabled && !D.virtual ? (
|
|
2513
|
+
l("div", ao, [
|
|
2514
|
+
!D.inputDisabled && !D.virtual ? (a(), C(h, {
|
|
2515
2515
|
key: 0,
|
|
2516
2516
|
icon: "edit",
|
|
2517
2517
|
size: "small",
|
|
@@ -2519,7 +2519,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
2519
2519
|
pattern: "tertiary",
|
|
2520
2520
|
style: { width: "30px", height: "30px", "border-radius": "3px" },
|
|
2521
2521
|
onClick: (f) => o.openFieldModal({ existingFieldId: D.id })
|
|
2522
|
-
}, null, 8, ["onClick"])) :
|
|
2522
|
+
}, null, 8, ["onClick"])) : v("", !0),
|
|
2523
2523
|
c(h, {
|
|
2524
2524
|
icon: "copy",
|
|
2525
2525
|
size: "small",
|
|
@@ -2530,13 +2530,13 @@ function bo(e, t, n, s, i, o) {
|
|
|
2530
2530
|
}, null, 8, ["onClick"])
|
|
2531
2531
|
])
|
|
2532
2532
|
])
|
|
2533
|
-
]))), 128)) : (
|
|
2533
|
+
]))), 128)) : (a(), p("div", ro, d(e.$t("_common:noResults")), 1))
|
|
2534
2534
|
])
|
|
2535
2535
|
]),
|
|
2536
2536
|
_: 1
|
|
2537
2537
|
}, 8, ["items", "filter-method", "query"])
|
|
2538
|
-
])) : (
|
|
2539
|
-
|
|
2538
|
+
])) : (a(), p("div", co, [
|
|
2539
|
+
l("div", uo, [
|
|
2540
2540
|
c(h, {
|
|
2541
2541
|
type: "none",
|
|
2542
2542
|
pattern: "secondary",
|
|
@@ -2546,7 +2546,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
2546
2546
|
textContent: d(e.$t("_common:add", { thing: e.$t("_common:field") }))
|
|
2547
2547
|
}, null, 8, ["onClick", "textContent"])
|
|
2548
2548
|
]),
|
|
2549
|
-
(
|
|
2549
|
+
(a(!0), p($, null, P([
|
|
2550
2550
|
{
|
|
2551
2551
|
label: e.$t("usedFields"),
|
|
2552
2552
|
defaultOpen: !0,
|
|
@@ -2564,18 +2564,18 @@ function bo(e, t, n, s, i, o) {
|
|
|
2564
2564
|
defaultOpen: !o.usedFields.length,
|
|
2565
2565
|
items: o.unUsedFields
|
|
2566
2566
|
}
|
|
2567
|
-
], (S, D) => (
|
|
2567
|
+
], (S, D) => (a(), C(k, {
|
|
2568
2568
|
key: D,
|
|
2569
2569
|
"default-open": S.defaultOpen,
|
|
2570
2570
|
style: { "border-top": "1px solid hsl(0, 0%, 88%)" }
|
|
2571
2571
|
}, {
|
|
2572
2572
|
trigger: u(({ expanded: y }) => [
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2573
|
+
l("div", mo, [
|
|
2574
|
+
l("span", null, [
|
|
2575
|
+
l("span", {
|
|
2576
2576
|
textContent: d(S.label)
|
|
2577
2577
|
}, null, 8, po),
|
|
2578
|
-
|
|
2578
|
+
l("span", {
|
|
2579
2579
|
style: { opacity: "0.45", "padding-left": "0.5em" },
|
|
2580
2580
|
textContent: d(S.items.length)
|
|
2581
2581
|
}, null, 8, ho)
|
|
@@ -2588,19 +2588,19 @@ function bo(e, t, n, s, i, o) {
|
|
|
2588
2588
|
])
|
|
2589
2589
|
]),
|
|
2590
2590
|
default: u(() => [
|
|
2591
|
-
|
|
2592
|
-
S.items.length ? (
|
|
2591
|
+
l("div", fo, [
|
|
2592
|
+
S.items.length ? (a(!0), p($, { key: 1 }, P(S.items, (y, f) => (a(), p("div", {
|
|
2593
2593
|
key: f,
|
|
2594
2594
|
class: "field-parent flex w-full items-center"
|
|
2595
2595
|
}, [
|
|
2596
|
-
|
|
2596
|
+
l("div", yo, [
|
|
2597
2597
|
c(g, {
|
|
2598
2598
|
label: " ",
|
|
2599
2599
|
"label-position": "inside",
|
|
2600
2600
|
style: { width: "100%" }
|
|
2601
2601
|
}, {
|
|
2602
2602
|
default: u(() => [
|
|
2603
|
-
|
|
2603
|
+
l("span", {
|
|
2604
2604
|
class: "drag-label",
|
|
2605
2605
|
draggable: !0,
|
|
2606
2606
|
onDragstart: (x) => o.onDragStart(x, y),
|
|
@@ -2620,8 +2620,8 @@ function bo(e, t, n, s, i, o) {
|
|
|
2620
2620
|
]),
|
|
2621
2621
|
_: 2
|
|
2622
2622
|
}, 1024),
|
|
2623
|
-
|
|
2624
|
-
!y.inputDisabled && !y.virtual ? (
|
|
2623
|
+
l("div", Co, [
|
|
2624
|
+
!y.inputDisabled && !y.virtual ? (a(), C(h, {
|
|
2625
2625
|
key: 0,
|
|
2626
2626
|
icon: "edit",
|
|
2627
2627
|
size: "small",
|
|
@@ -2629,7 +2629,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
2629
2629
|
pattern: "tertiary",
|
|
2630
2630
|
style: { width: "30px", height: "30px", "border-radius": "3px" },
|
|
2631
2631
|
onClick: (x) => o.openFieldModal({ existingFieldId: y.id })
|
|
2632
|
-
}, null, 8, ["onClick"])) :
|
|
2632
|
+
}, null, 8, ["onClick"])) : v("", !0),
|
|
2633
2633
|
c(h, {
|
|
2634
2634
|
icon: "copy",
|
|
2635
2635
|
size: "small",
|
|
@@ -2640,7 +2640,7 @@ function bo(e, t, n, s, i, o) {
|
|
|
2640
2640
|
}, null, 8, ["onClick"])
|
|
2641
2641
|
])
|
|
2642
2642
|
])
|
|
2643
|
-
]))), 128)) : (
|
|
2643
|
+
]))), 128)) : (a(), p("div", {
|
|
2644
2644
|
key: 0,
|
|
2645
2645
|
style: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" },
|
|
2646
2646
|
textContent: d(e.$t("noResults"))
|
|
@@ -2691,8 +2691,8 @@ const ko = /* @__PURE__ */ F(Xi, [["render", bo], ["__scopeId", "data-v-454d81b5
|
|
|
2691
2691
|
}, xo = ["innerHTML"];
|
|
2692
2692
|
function To(e, t, n, s, i, o) {
|
|
2693
2693
|
const r = m("CButton");
|
|
2694
|
-
return
|
|
2695
|
-
|
|
2694
|
+
return a(), p("div", null, [
|
|
2695
|
+
l("div", {
|
|
2696
2696
|
class: "fixed inset-0 z-10",
|
|
2697
2697
|
onClick: t[0] || (t[0] = q((g) => e.$emit("close"), ["self"]))
|
|
2698
2698
|
}),
|
|
@@ -2707,8 +2707,8 @@ function To(e, t, n, s, i, o) {
|
|
|
2707
2707
|
"leave-to-class": "opacity-0"
|
|
2708
2708
|
}, {
|
|
2709
2709
|
default: u(() => [
|
|
2710
|
-
|
|
2711
|
-
|
|
2710
|
+
l("div", _o, [
|
|
2711
|
+
l("div", {
|
|
2712
2712
|
class: "pb-4",
|
|
2713
2713
|
innerHTML: e.$t("text")
|
|
2714
2714
|
}, null, 8, xo),
|
|
@@ -3249,23 +3249,23 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
|
|
|
3249
3249
|
}, Bo = ["innerHTML"], Mo = { class: "option-title" }, Po = { class: "relative" }, Ao = ["onClick", "innerHTML"];
|
|
3250
3250
|
function Eo(e, t, n, s, i, o) {
|
|
3251
3251
|
const r = m("MenuBlockConvertPopover"), g = m("ProBadge"), h = m("CIcon"), b = m("CButton"), w = m("DragItem"), k = m("DragList"), S = m("Simplebar"), D = m("IsPremiumPreStep");
|
|
3252
|
-
return
|
|
3252
|
+
return a(), p("div", {
|
|
3253
3253
|
onMouseleavePassive: t[4] || (t[4] = (...y) => o.onMouseleaveDrawer && o.onMouseleaveDrawer(...y))
|
|
3254
3254
|
}, [
|
|
3255
3255
|
c(D, { feature: "documentBlocks" }, {
|
|
3256
3256
|
default: u(({ onClick: y }) => [
|
|
3257
|
-
!n.canUseBlocks && i.showConvertEditableDialog ? (
|
|
3257
|
+
!n.canUseBlocks && i.showConvertEditableDialog ? (a(), C(r, {
|
|
3258
3258
|
key: 0,
|
|
3259
3259
|
target: i.showConvertEditableDialogTarget,
|
|
3260
3260
|
onConvert: o.deSyncTemplate,
|
|
3261
3261
|
onClose: t[0] || (t[0] = (f) => i.showConvertEditableDialog = !1)
|
|
3262
|
-
}, null, 8, ["target", "onConvert"])) :
|
|
3263
|
-
|
|
3264
|
-
(
|
|
3262
|
+
}, null, 8, ["target", "onConvert"])) : v("", !0),
|
|
3263
|
+
l("div", Io, [
|
|
3264
|
+
(a(!0), p($, null, P([
|
|
3265
3265
|
{ data: o.primaryBlocks },
|
|
3266
3266
|
{ data: o.secondaryBlocks }
|
|
3267
|
-
], (f, x) => (
|
|
3268
|
-
x > 0 ? (
|
|
3267
|
+
], (f, x) => (a(), p("div", { key: x }, [
|
|
3268
|
+
x > 0 ? (a(), p("div", $o)) : v("", !0),
|
|
3269
3269
|
c(k, {
|
|
3270
3270
|
group: { name: "blocks", pull: "clone", put: !1 },
|
|
3271
3271
|
"get-child-payload": (_) => s.getBlockPayload(o.getSectionKey({ data: f.data, index: _ })),
|
|
@@ -3280,12 +3280,12 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3280
3280
|
behaviour: "copy"
|
|
3281
3281
|
}, {
|
|
3282
3282
|
default: u(() => [
|
|
3283
|
-
(
|
|
3283
|
+
(a(!0), p($, null, P(f.data, (_) => (a(), C(w, {
|
|
3284
3284
|
key: _.key,
|
|
3285
3285
|
class: L({ "drag-item": o.canDrag })
|
|
3286
3286
|
}, {
|
|
3287
3287
|
default: u(() => [
|
|
3288
|
-
|
|
3288
|
+
l("div", ye(
|
|
3289
3289
|
{ ref_for: !0 },
|
|
3290
3290
|
_.hasTooltip ? { "data-tooltip-key": _.key } : null,
|
|
3291
3291
|
{
|
|
@@ -3309,20 +3309,20 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3309
3309
|
onClick: (A) => o.onUseBlock({ block: _, openUpgradeModal: y })
|
|
3310
3310
|
}, {
|
|
3311
3311
|
default: u(() => [
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3312
|
+
l("div", Lo, [
|
|
3313
|
+
l("div", Vo, [
|
|
3314
|
+
l("div", {
|
|
3315
3315
|
class: "option-image",
|
|
3316
3316
|
innerHTML: _.icon
|
|
3317
3317
|
}, null, 8, Bo),
|
|
3318
|
-
|
|
3318
|
+
l("div", Mo, d(e.$t(`blocks.${_.key}`)), 1)
|
|
3319
3319
|
]),
|
|
3320
|
-
_.locked ? (
|
|
3320
|
+
_.locked ? (a(), C(g, { key: 0 })) : !n.fixed && _.subMenu ? (a(), C(h, {
|
|
3321
3321
|
key: 1,
|
|
3322
3322
|
type: "chevron-right",
|
|
3323
3323
|
size: "14",
|
|
3324
3324
|
style: { color: "hsl(205, 10%, 65%)" }
|
|
3325
|
-
})) :
|
|
3325
|
+
})) : v("", !0)
|
|
3326
3326
|
])
|
|
3327
3327
|
]),
|
|
3328
3328
|
_: 2
|
|
@@ -3339,7 +3339,7 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3339
3339
|
]),
|
|
3340
3340
|
c(te, { name: "slide-right" }, {
|
|
3341
3341
|
default: u(() => [
|
|
3342
|
-
N(
|
|
3342
|
+
N(l("div", {
|
|
3343
3343
|
class: "submenu",
|
|
3344
3344
|
onMouseoverPassive: t[2] || (t[2] = (f) => i.subMenuToShow = i.activeSubMenu),
|
|
3345
3345
|
onMouseleavePassive: t[3] || (t[3] = (f) => i.subMenuToShow = null)
|
|
@@ -3361,21 +3361,21 @@ function Eo(e, t, n, s, i, o) {
|
|
|
3361
3361
|
behaviour: "copy"
|
|
3362
3362
|
}, {
|
|
3363
3363
|
default: u(() => [
|
|
3364
|
-
(
|
|
3364
|
+
(a(!0), p($, null, P(i.activeSubMenu, (f, x) => (a(), C(w, {
|
|
3365
3365
|
key: f.key + x,
|
|
3366
3366
|
class: L(["px-1.5", { "drag-item": !f.locked && n.canUseBlocks }])
|
|
3367
3367
|
}, {
|
|
3368
3368
|
default: u(() => [
|
|
3369
|
-
|
|
3370
|
-
|
|
3369
|
+
l("div", Po, [
|
|
3370
|
+
l("div", {
|
|
3371
3371
|
class: "drag-item-preview",
|
|
3372
3372
|
onClick: (_) => o.onUseBlock({ block: f, openUpgradeModal: y }),
|
|
3373
3373
|
innerHTML: f.previewUrl
|
|
3374
3374
|
}, null, 8, Ao),
|
|
3375
|
-
f.locked ? (
|
|
3375
|
+
f.locked ? (a(), C(g, {
|
|
3376
3376
|
key: 0,
|
|
3377
3377
|
class: "absolute bottom-2 right-4"
|
|
3378
|
-
})) :
|
|
3378
|
+
})) : v("", !0)
|
|
3379
3379
|
])
|
|
3380
3380
|
]),
|
|
3381
3381
|
_: 2
|
|
@@ -3413,12 +3413,12 @@ const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
|
|
|
3413
3413
|
}
|
|
3414
3414
|
},
|
|
3415
3415
|
components: {
|
|
3416
|
-
Design:
|
|
3416
|
+
Design: ai,
|
|
3417
3417
|
Fields: ko,
|
|
3418
3418
|
ExtensionTab: Ni,
|
|
3419
3419
|
DocumentGeneralSettings: mi,
|
|
3420
3420
|
DocumentGuide: ct(
|
|
3421
|
-
() => import("./index-
|
|
3421
|
+
() => import("./index-wqAfBru7.js")
|
|
3422
3422
|
),
|
|
3423
3423
|
MenuBlocks: zo,
|
|
3424
3424
|
Simplebar: Q
|
|
@@ -3494,41 +3494,41 @@ const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
|
|
|
3494
3494
|
};
|
|
3495
3495
|
function jo(e, t, n, s, i, o) {
|
|
3496
3496
|
const r = m("CIcon"), g = m("CButton"), h = m("MenuBlocks"), b = m("Design"), w = m("Fields"), k = m("ExtensionTab"), S = m("DocumentGeneralSettings"), D = m("Simplebar"), y = m("DocumentGuide");
|
|
3497
|
-
return
|
|
3498
|
-
|
|
3497
|
+
return a(), p("div", null, [
|
|
3498
|
+
l("div", {
|
|
3499
3499
|
style: E([{ width: `${n.width}px` }, n.fixed && { zIndex: 999 }]),
|
|
3500
3500
|
class: "root menu-wrapper fixed left-0 top-14 z-[99] bg-white"
|
|
3501
3501
|
}, [
|
|
3502
|
-
n.fixed ? (
|
|
3502
|
+
n.fixed ? (a(), p("div", {
|
|
3503
3503
|
key: 0,
|
|
3504
3504
|
class: "fixed inset-0",
|
|
3505
3505
|
onClick: t[0] || (t[0] = (f) => e.$emit("close"))
|
|
3506
|
-
})) :
|
|
3507
|
-
|
|
3506
|
+
})) : v("", !0),
|
|
3507
|
+
l("div", {
|
|
3508
3508
|
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)" }])
|
|
3509
3509
|
}, [
|
|
3510
|
-
n.isLegacyTemplate ?
|
|
3511
|
-
|
|
3510
|
+
n.isLegacyTemplate ? v("", !0) : (a(), p("div", Oo, [
|
|
3511
|
+
l("div", {
|
|
3512
3512
|
class: L([{ "is-active": i.tab === "blocks" }, "tab-item"]),
|
|
3513
3513
|
onClick: t[1] || (t[1] = (f) => i.tab = "blocks"),
|
|
3514
3514
|
textContent: d(e.$t("tabs.blocks"))
|
|
3515
3515
|
}, null, 10, Ho),
|
|
3516
|
-
|
|
3516
|
+
l("div", {
|
|
3517
3517
|
class: L([{ "is-active": i.tab === "design" }, "tab-item"]),
|
|
3518
3518
|
onClick: t[2] || (t[2] = (f) => i.tab = "design"),
|
|
3519
3519
|
textContent: d(e.$t("tabs.design"))
|
|
3520
3520
|
}, null, 10, Uo),
|
|
3521
|
-
|
|
3521
|
+
l("div", {
|
|
3522
3522
|
class: L([{ "is-active": i.tab === "fields" }, "tab-item"]),
|
|
3523
3523
|
onClick: t[3] || (t[3] = (f) => i.tab = "fields"),
|
|
3524
3524
|
textContent: d(e.$t("tabs.fields"))
|
|
3525
3525
|
}, null, 10, qo),
|
|
3526
|
-
o.extensionTabType ? (
|
|
3526
|
+
o.extensionTabType ? (a(), p("div", {
|
|
3527
3527
|
key: 0,
|
|
3528
3528
|
class: L([{ "is-active": i.tab === "extension" }, "tab-item"]),
|
|
3529
3529
|
onClick: t[4] || (t[4] = (f) => i.tab = "extension")
|
|
3530
3530
|
}, [
|
|
3531
|
-
|
|
3531
|
+
l("div", {
|
|
3532
3532
|
style: E([{ width: "18px", height: "18px", background: "#343434", "border-radius": "4px", display: "flex", "align-items": "center", "justify-content": "center", "margin-top": "2px" }, [
|
|
3533
3533
|
o.extensionTabType === "pipedrive" && {
|
|
3534
3534
|
backgroundColor: "#3A3A3A"
|
|
@@ -3544,8 +3544,8 @@ function jo(e, t, n, s, i, o) {
|
|
|
3544
3544
|
size: "14"
|
|
3545
3545
|
}, null, 8, ["type"])
|
|
3546
3546
|
], 4)
|
|
3547
|
-
], 2)) :
|
|
3548
|
-
|
|
3547
|
+
], 2)) : v("", !0),
|
|
3548
|
+
l("div", {
|
|
3549
3549
|
class: L([{ "is-active": i.tab === "generalSettings" }, "tab-item ml-[2px]"]),
|
|
3550
3550
|
onClick: t[5] || (t[5] = (f) => i.tab = "generalSettings")
|
|
3551
3551
|
}, [
|
|
@@ -3556,7 +3556,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3556
3556
|
})
|
|
3557
3557
|
], 2)
|
|
3558
3558
|
])),
|
|
3559
|
-
i.tab === "blocks" ? (
|
|
3559
|
+
i.tab === "blocks" ? (a(), C(h, {
|
|
3560
3560
|
key: 1,
|
|
3561
3561
|
_document: n.state,
|
|
3562
3562
|
set: n.set,
|
|
@@ -3566,7 +3566,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3566
3566
|
onBlockAdded: t[6] || (t[6] = (f) => n.fixed ? e.$emit("close") : null)
|
|
3567
3567
|
}, {
|
|
3568
3568
|
footer: u(() => [
|
|
3569
|
-
|
|
3569
|
+
l("div", Go, [
|
|
3570
3570
|
c(g, {
|
|
3571
3571
|
"icon-left": "help",
|
|
3572
3572
|
type: "none",
|
|
@@ -3577,17 +3577,17 @@ function jo(e, t, n, s, i, o) {
|
|
|
3577
3577
|
}, {
|
|
3578
3578
|
default: u(() => [
|
|
3579
3579
|
T(d(e.$t("guideButton")) + " ", 1),
|
|
3580
|
-
i.showGuideNotification ? (
|
|
3580
|
+
i.showGuideNotification ? (a(), p("div", No)) : v("", !0)
|
|
3581
3581
|
]),
|
|
3582
3582
|
_: 1
|
|
3583
3583
|
}, 8, ["onClick"])
|
|
3584
3584
|
])
|
|
3585
3585
|
]),
|
|
3586
3586
|
_: 1
|
|
3587
|
-
}, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (
|
|
3587
|
+
}, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (a(), p("div", Wo, [
|
|
3588
3588
|
c(D, { class: "h-full w-full" }, {
|
|
3589
3589
|
default: u(() => [
|
|
3590
|
-
i.tab === "design" ? (
|
|
3590
|
+
i.tab === "design" ? (a(), C(b, {
|
|
3591
3591
|
key: 0,
|
|
3592
3592
|
_document: n.state,
|
|
3593
3593
|
_value: {
|
|
@@ -3595,7 +3595,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3595
3595
|
},
|
|
3596
3596
|
set: n.set,
|
|
3597
3597
|
offset: n.fixed ? 0 : n.width
|
|
3598
|
-
}, null, 8, ["_document", "set", "offset"])) : i.tab === "fields" ? (
|
|
3598
|
+
}, null, 8, ["_document", "set", "offset"])) : i.tab === "fields" ? (a(), C(w, {
|
|
3599
3599
|
key: 1,
|
|
3600
3600
|
_document: n.state,
|
|
3601
3601
|
"crm-service": o.extensionTabType,
|
|
@@ -3603,7 +3603,7 @@ function jo(e, t, n, s, i, o) {
|
|
|
3603
3603
|
css: "data.css"
|
|
3604
3604
|
},
|
|
3605
3605
|
set: n.set
|
|
3606
|
-
}, null, 8, ["_document", "crm-service", "set"])) : i.tab === "extension" ? (
|
|
3606
|
+
}, null, 8, ["_document", "crm-service", "set"])) : i.tab === "extension" ? (a(), C(k, {
|
|
3607
3607
|
key: 2,
|
|
3608
3608
|
_document: n.state,
|
|
3609
3609
|
_value: {
|
|
@@ -3612,8 +3612,8 @@ function jo(e, t, n, s, i, o) {
|
|
|
3612
3612
|
articles: "articles"
|
|
3613
3613
|
},
|
|
3614
3614
|
onInput: t[7] || (t[7] = ({ key: f, value: x }) => n.set({ key: f, value: x }))
|
|
3615
|
-
}, null, 8, ["_document"])) :
|
|
3616
|
-
i.tab === "generalSettings" ? (
|
|
3615
|
+
}, null, 8, ["_document"])) : v("", !0),
|
|
3616
|
+
i.tab === "generalSettings" ? (a(), C(S, {
|
|
3617
3617
|
key: 3,
|
|
3618
3618
|
_document: n.state,
|
|
3619
3619
|
_value: {
|
|
@@ -3630,15 +3630,15 @@ function jo(e, t, n, s, i, o) {
|
|
|
3630
3630
|
offset: n.fixed ? 0 : n.width,
|
|
3631
3631
|
class: L({ "!top-0 rounded-sm": n.isLegacyTemplate }),
|
|
3632
3632
|
onInput: t[8] || (t[8] = ({ key: f, value: x }) => n.set({ key: f, value: x }))
|
|
3633
|
-
}, null, 8, ["_document", "offset", "class"])) :
|
|
3633
|
+
}, null, 8, ["_document", "offset", "class"])) : v("", !0)
|
|
3634
3634
|
]),
|
|
3635
3635
|
_: 1
|
|
3636
3636
|
})
|
|
3637
3637
|
])),
|
|
3638
|
-
i.showGuide ? (
|
|
3638
|
+
i.showGuide ? (a(), C(y, {
|
|
3639
3639
|
key: 3,
|
|
3640
3640
|
onClose: t[9] || (t[9] = (f) => i.showGuide = !1)
|
|
3641
|
-
})) :
|
|
3641
|
+
})) : v("", !0)
|
|
3642
3642
|
], 4)
|
|
3643
3643
|
], 4)
|
|
3644
3644
|
]);
|
|
@@ -3845,7 +3845,7 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3845
3845
|
this.removeFormKeyValue(h);
|
|
3846
3846
|
});
|
|
3847
3847
|
}, "children");
|
|
3848
|
-
|
|
3848
|
+
ae([this.nestedReadLayout[t]]).forEach((s) => {
|
|
3849
3849
|
const i = this.readLayout.findIndex((o) => o.nodeId === s.nodeId);
|
|
3850
3850
|
this.removeFormValue(`template.views.read.nodes[${i}]`);
|
|
3851
3851
|
});
|
|
@@ -3878,7 +3878,7 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3878
3878
|
);
|
|
3879
3879
|
this.setFormValue({
|
|
3880
3880
|
key: "template.views.read.nodes",
|
|
3881
|
-
value:
|
|
3881
|
+
value: ae(i)
|
|
3882
3882
|
});
|
|
3883
3883
|
} else if (!t && n !== null) {
|
|
3884
3884
|
const { sectionKey: i, createNewSection: o, addValidation: r, contentData: g } = s, { readView: h, validation: b, data: w } = o({
|
|
@@ -3894,7 +3894,7 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3894
3894
|
];
|
|
3895
3895
|
this.setFormValue({
|
|
3896
3896
|
key: "template.views.read.nodes",
|
|
3897
|
-
value:
|
|
3897
|
+
value: ae(S)
|
|
3898
3898
|
});
|
|
3899
3899
|
}
|
|
3900
3900
|
},
|
|
@@ -3912,8 +3912,8 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
|
|
|
3912
3912
|
}, ns = ["innerHTML"];
|
|
3913
3913
|
function is(e, t, n, s, i, o) {
|
|
3914
3914
|
const r = m("CButton"), g = m("DocumentFormViewRadio"), h = m("CIcon"), b = m("DocumentFormNav"), w = m("DocumentFormMenu"), k = m("DynamicChapter"), S = m("DynamicBlock"), D = m("LogoBanner"), y = m("IsPremium"), f = m("DocumentStyleContainer"), x = m("WithDimensions"), _ = m("portal-target"), A = m("DocumentDrawer");
|
|
3915
|
-
return
|
|
3916
|
-
|
|
3915
|
+
return a(), p("div", Qo, [
|
|
3916
|
+
l("div", {
|
|
3917
3917
|
class: L([{
|
|
3918
3918
|
"is-edit-view": o.isEditView,
|
|
3919
3919
|
"is-empty-list": !o.nestedReadLayout.length
|
|
@@ -3921,8 +3921,8 @@ function is(e, t, n, s, i, o) {
|
|
|
3921
3921
|
}, [
|
|
3922
3922
|
c(b, { close: n.close }, {
|
|
3923
3923
|
left: u(() => [
|
|
3924
|
-
|
|
3925
|
-
n.close ? (
|
|
3924
|
+
l("div", Yo, [
|
|
3925
|
+
n.close ? (a(), C(r, {
|
|
3926
3926
|
key: 0,
|
|
3927
3927
|
"icon-props": { size: 20 },
|
|
3928
3928
|
size: "normal",
|
|
@@ -3931,8 +3931,8 @@ function is(e, t, n, s, i, o) {
|
|
|
3931
3931
|
type: "none",
|
|
3932
3932
|
pattern: "tertiary",
|
|
3933
3933
|
onClick: n.close
|
|
3934
|
-
}, null, 8, ["onClick"])) :
|
|
3935
|
-
n.goBack && e.mq !== "sm" ? (
|
|
3934
|
+
}, null, 8, ["onClick"])) : v("", !0),
|
|
3935
|
+
n.goBack && e.mq !== "sm" ? (a(), C(r, {
|
|
3936
3936
|
key: 1,
|
|
3937
3937
|
"icon-props": { size: 20 },
|
|
3938
3938
|
type: "none",
|
|
@@ -3940,7 +3940,7 @@ function is(e, t, n, s, i, o) {
|
|
|
3940
3940
|
icon: "arrow-left",
|
|
3941
3941
|
class: "mr-2 h-[2.25em] w-[2.25em] backdrop-blur-[25px]",
|
|
3942
3942
|
onClick: n.goBack
|
|
3943
|
-
}, null, 8, ["onClick"])) :
|
|
3943
|
+
}, null, 8, ["onClick"])) : v("", !0),
|
|
3944
3944
|
c(r, {
|
|
3945
3945
|
size: "normal",
|
|
3946
3946
|
type: "none",
|
|
@@ -3956,7 +3956,7 @@ function is(e, t, n, s, i, o) {
|
|
|
3956
3956
|
])
|
|
3957
3957
|
]),
|
|
3958
3958
|
center: u(() => [
|
|
3959
|
-
|
|
3959
|
+
l("div", Jo, [
|
|
3960
3960
|
N(c(g, {
|
|
3961
3961
|
small: e.mq === "sm",
|
|
3962
3962
|
"model-value": n.view,
|
|
@@ -3964,8 +3964,8 @@ function is(e, t, n, s, i, o) {
|
|
|
3964
3964
|
}, null, 8, ["small", "model-value"]), [
|
|
3965
3965
|
[he, o.nestedReadLayout.length]
|
|
3966
3966
|
]),
|
|
3967
|
-
!o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (
|
|
3968
|
-
(
|
|
3967
|
+
!o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (a(), p("div", Xo, [
|
|
3968
|
+
(a(), p($, null, P(["desktop", "tablet", "mobile"], (z) => l("div", {
|
|
3969
3969
|
key: z,
|
|
3970
3970
|
style: E(
|
|
3971
3971
|
i.previewDevice === z && {
|
|
@@ -3982,7 +3982,7 @@ function is(e, t, n, s, i, o) {
|
|
|
3982
3982
|
size: "20"
|
|
3983
3983
|
}, null, 8, ["type"])
|
|
3984
3984
|
], 12, es)), 64))
|
|
3985
|
-
])) :
|
|
3985
|
+
])) : v("", !0)
|
|
3986
3986
|
])
|
|
3987
3987
|
]),
|
|
3988
3988
|
right: u(() => [
|
|
@@ -4003,7 +4003,7 @@ function is(e, t, n, s, i, o) {
|
|
|
4003
4003
|
}, null, 8, ["state", "set", "remove-value", "template", "fixed", "can-use-blocks", "is-legacy-template", "width"]), [
|
|
4004
4004
|
[he, i.drawerState.showLeft]
|
|
4005
4005
|
]),
|
|
4006
|
-
|
|
4006
|
+
l("div", {
|
|
4007
4007
|
ref: "scroll-body",
|
|
4008
4008
|
class: L([{
|
|
4009
4009
|
"device-offset": o.isEditView
|
|
@@ -4014,7 +4014,7 @@ function is(e, t, n, s, i, o) {
|
|
|
4014
4014
|
}
|
|
4015
4015
|
)
|
|
4016
4016
|
}, [
|
|
4017
|
-
|
|
4017
|
+
l("div", {
|
|
4018
4018
|
class: L([[
|
|
4019
4019
|
{
|
|
4020
4020
|
"is-device-edit": o.isEditView,
|
|
@@ -4024,15 +4024,15 @@ function is(e, t, n, s, i, o) {
|
|
|
4024
4024
|
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%]"
|
|
4025
4025
|
], "list-container"])
|
|
4026
4026
|
}, [
|
|
4027
|
-
!o.nestedReadLayout.length && !o.isFixedSidebar ? (
|
|
4027
|
+
!o.nestedReadLayout.length && !o.isFixedSidebar ? (a(), p("div", ts, [
|
|
4028
4028
|
t[8] || (t[8] = pt('<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)),
|
|
4029
|
-
|
|
4029
|
+
l("div", {
|
|
4030
4030
|
class: "text-center",
|
|
4031
4031
|
style: { "max-width": "22ch" },
|
|
4032
4032
|
innerHTML: e.$t("emptyBlockPlaceholderLarge")
|
|
4033
4033
|
}, null, 8, ns)
|
|
4034
|
-
])) :
|
|
4035
|
-
(
|
|
4034
|
+
])) : v("", !0),
|
|
4035
|
+
(a(), C(G(o.isEditView ? "div" : "simplebar"), { class: "h-full w-full" }, {
|
|
4036
4036
|
default: u(() => [
|
|
4037
4037
|
c(x, { "provide-device": !0 }, {
|
|
4038
4038
|
default: u(() => {
|
|
@@ -4043,7 +4043,7 @@ function is(e, t, n, s, i, o) {
|
|
|
4043
4043
|
"input-style": ((X = (z = n._document) == null ? void 0 : z.data) == null ? void 0 : X.css) || null
|
|
4044
4044
|
}, {
|
|
4045
4045
|
default: u(() => [
|
|
4046
|
-
o.nestedReadLayout ? (
|
|
4046
|
+
o.nestedReadLayout ? (a(), C(G(o.dndEnabled ? "DragList" : "div"), {
|
|
4047
4047
|
key: 0,
|
|
4048
4048
|
handle: ".NO-SELECTOR",
|
|
4049
4049
|
"drop-placeholder": { className: "drag-drop-placeholder" },
|
|
@@ -4060,9 +4060,9 @@ function is(e, t, n, s, i, o) {
|
|
|
4060
4060
|
onDrop: t[5] || (t[5] = (I) => o.onBlockListChange("blocks-list", I))
|
|
4061
4061
|
}, {
|
|
4062
4062
|
default: u(() => [
|
|
4063
|
-
(
|
|
4063
|
+
(a(!0), p($, null, P(n._document.getReadLayout({
|
|
4064
4064
|
showHiddenNodes: o.isEditView
|
|
4065
|
-
}), (I, ie) => (
|
|
4065
|
+
}), (I, ie) => (a(), C(G(o.dndEnabled ? "DragItem" : "div"), {
|
|
4066
4066
|
key: I.nodeId,
|
|
4067
4067
|
class: L([
|
|
4068
4068
|
{
|
|
@@ -4108,16 +4108,16 @@ function is(e, t, n, s, i, o) {
|
|
|
4108
4108
|
}, 1032, ["class"]))), 128))
|
|
4109
4109
|
]),
|
|
4110
4110
|
_: 1
|
|
4111
|
-
}, 40, ["should-animate-drop"])) :
|
|
4112
|
-
n.canShowBanner ? (
|
|
4111
|
+
}, 40, ["should-animate-drop"])) : v("", !0),
|
|
4112
|
+
n.canShowBanner ? (a(), C(y, { key: 1 }, {
|
|
4113
4113
|
default: u(({ isProLike: I }) => [
|
|
4114
|
-
!o.isEditView && !I ? (
|
|
4114
|
+
!o.isEditView && !I ? (a(), C(D, {
|
|
4115
4115
|
key: 0,
|
|
4116
4116
|
position: "sticky"
|
|
4117
|
-
})) :
|
|
4117
|
+
})) : v("", !0)
|
|
4118
4118
|
]),
|
|
4119
4119
|
_: 1
|
|
4120
|
-
})) :
|
|
4120
|
+
})) : v("", !0)
|
|
4121
4121
|
]),
|
|
4122
4122
|
_: 1
|
|
4123
4123
|
}, 8, ["input-style"])
|
|
@@ -4130,7 +4130,7 @@ function is(e, t, n, s, i, o) {
|
|
|
4130
4130
|
}))
|
|
4131
4131
|
], 2)
|
|
4132
4132
|
], 6),
|
|
4133
|
-
(
|
|
4133
|
+
(a(), C(A, {
|
|
4134
4134
|
id: "settingsDrawer",
|
|
4135
4135
|
key: "settingsDrawer",
|
|
4136
4136
|
open: !!i.drawerState.openSection,
|
|
@@ -4165,6 +4165,8 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-91d0aa83
|
|
|
4165
4165
|
signMissingTitle: "Signature-block missing",
|
|
4166
4166
|
signMissingText: "Add a Signature-block if you'd like for your recipient to sign.",
|
|
4167
4167
|
signMissingAdd: "Add Signature-block",
|
|
4168
|
+
tooManyClientsTitle: "Too many recipients",
|
|
4169
|
+
tooManyClientsTitleText: "There are too many recipients in this document, max is 15.",
|
|
4168
4170
|
saveDocAsTemplate: "Save document as a template",
|
|
4169
4171
|
saveDocAsTemplateTooltip: "Save document as a reusable template.",
|
|
4170
4172
|
saveDocAsTemplateTooltipOfferta: "Are you satisfied with the document? Save it as a template for easier reuse!",
|
|
@@ -4174,6 +4176,8 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-91d0aa83
|
|
|
4174
4176
|
signMissingTitle: "Signatur-block saknas",
|
|
4175
4177
|
signMissingText: "Lägg till ett Signatur-block om du vill att din mottagare ska kunna lämna signera.",
|
|
4176
4178
|
signMissingAdd: "Lägg till Signatur-block",
|
|
4179
|
+
tooManyClientsTitle: "För många mottagare",
|
|
4180
|
+
tooManyClientsText: "Det kan max vara 15 mottagare på ett dokument.",
|
|
4177
4181
|
saveDocAsTemplate: "Spara dokumentet även som en mall",
|
|
4178
4182
|
saveDocAsTemplateTooltip: "Spara som en mall som du kan återanvända.",
|
|
4179
4183
|
saveDocAsTemplateTooltipOfferta: "Är du nöjd med dokumentet? Spara som mall så blir det enkelt att återanvända!",
|
|
@@ -4252,6 +4256,9 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-91d0aa83
|
|
|
4252
4256
|
},
|
|
4253
4257
|
hasAnswerBlock() {
|
|
4254
4258
|
return (V(this._document, "template.views.read.nodes") || []).some((t) => t.itemType === "answer");
|
|
4259
|
+
},
|
|
4260
|
+
tooManyClients() {
|
|
4261
|
+
return (V(this._document, "clients") || []).length > 15;
|
|
4255
4262
|
}
|
|
4256
4263
|
},
|
|
4257
4264
|
watch: {
|
|
@@ -4293,23 +4300,26 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-91d0aa83
|
|
|
4293
4300
|
}));
|
|
4294
4301
|
}
|
|
4295
4302
|
}
|
|
4296
|
-
},
|
|
4303
|
+
}, ls = {
|
|
4297
4304
|
key: "1",
|
|
4298
4305
|
class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
|
|
4299
|
-
},
|
|
4306
|
+
}, as = { class: "pl-2" }, rs = ["textContent"], ds = { class: "text-sm text-red-600 text-opacity-80" }, cs = {
|
|
4307
|
+
key: "2",
|
|
4308
|
+
class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
|
|
4309
|
+
}, us = { class: "pl-2" }, ms = ["textContent"], ps = { class: "mb-4 text-sm text-red-600 text-opacity-80" }, hs = {
|
|
4300
4310
|
for: "checkbox-save-as-temp",
|
|
4301
4311
|
class: "inline-flex cursor-pointer select-none items-center py-2 text-[12px] font-[500] text-gray-600"
|
|
4302
|
-
},
|
|
4303
|
-
function
|
|
4304
|
-
const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"), b = m("ProBadge"), w = m("IsPremiumPreStep"), k = m("IsPremium"), S = m("SendForm"), D =
|
|
4305
|
-
return e.mq !== "sm" || i.isOpen ? (
|
|
4312
|
+
}, fs = ["onClick"], gs = { style: { "padding-left": "0.5em" } };
|
|
4313
|
+
function ys(e, t, n, s, i, o) {
|
|
4314
|
+
const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"), b = m("ProBadge"), w = m("IsPremiumPreStep"), k = m("IsPremium"), S = m("SendForm"), D = le("tooltip");
|
|
4315
|
+
return e.mq !== "sm" || i.isOpen ? (a(), C(G(e.mq === "sm" ? "div" : "Drawer"), {
|
|
4306
4316
|
key: 0,
|
|
4307
4317
|
modelValue: i.isOpen,
|
|
4308
4318
|
"onUpdate:modelValue": t[3] || (t[3] = (y) => i.isOpen = y),
|
|
4309
4319
|
placement: "right"
|
|
4310
4320
|
}, {
|
|
4311
4321
|
default: u(() => [
|
|
4312
|
-
|
|
4322
|
+
l("div", {
|
|
4313
4323
|
class: L([{
|
|
4314
4324
|
"is-fullscreen": e.mq === "sm"
|
|
4315
4325
|
}, "send-modal font-inter"])
|
|
@@ -4330,7 +4340,7 @@ function ps(e, t, n, s, i, o) {
|
|
|
4330
4340
|
"use-scroll": ""
|
|
4331
4341
|
}, {
|
|
4332
4342
|
send: u(() => [
|
|
4333
|
-
o.isPublicForm ? (
|
|
4343
|
+
o.isPublicForm ? (a(), C(r, {
|
|
4334
4344
|
key: 0,
|
|
4335
4345
|
type: "secondary",
|
|
4336
4346
|
wide: "",
|
|
@@ -4341,15 +4351,15 @@ function ps(e, t, n, s, i, o) {
|
|
|
4341
4351
|
T(d(e.$t("signupToSend")), 1)
|
|
4342
4352
|
]),
|
|
4343
4353
|
_: 1
|
|
4344
|
-
}, 8, ["onClick"])) :
|
|
4354
|
+
}, 8, ["onClick"])) : v("", !0)
|
|
4345
4355
|
]),
|
|
4346
4356
|
[o.saveTemplateSlot]: u(() => [
|
|
4347
|
-
|
|
4357
|
+
l("label", hs, [
|
|
4348
4358
|
c(k, null, {
|
|
4349
4359
|
default: u(({ canCreateTemplate: y }) => [
|
|
4350
4360
|
c(w, { feature: "saveDocTemplate" }, {
|
|
4351
4361
|
default: u(({ onClick: f }) => [
|
|
4352
|
-
|
|
4362
|
+
l("div", {
|
|
4353
4363
|
class: "flex items-center",
|
|
4354
4364
|
onClick: (x) => o.onClickSaveAsTemplate({
|
|
4355
4365
|
event: x,
|
|
@@ -4364,7 +4374,7 @@ function ps(e, t, n, s, i, o) {
|
|
|
4364
4374
|
size: "small",
|
|
4365
4375
|
type: "secondary"
|
|
4366
4376
|
}, null, 8, ["modelValue"]),
|
|
4367
|
-
|
|
4377
|
+
l("div", gs, [
|
|
4368
4378
|
T(d(e.$t("saveDocAsTemplate")) + " ", 1),
|
|
4369
4379
|
N(c(g, {
|
|
4370
4380
|
type: "info",
|
|
@@ -4373,11 +4383,11 @@ function ps(e, t, n, s, i, o) {
|
|
|
4373
4383
|
[D, o.saveTemplateTooltip]
|
|
4374
4384
|
])
|
|
4375
4385
|
]),
|
|
4376
|
-
y ?
|
|
4386
|
+
y ? v("", !0) : (a(), C(b, {
|
|
4377
4387
|
key: 0,
|
|
4378
4388
|
class: "ml-2 self-center"
|
|
4379
4389
|
}))
|
|
4380
|
-
], 8,
|
|
4390
|
+
], 8, fs)
|
|
4381
4391
|
]),
|
|
4382
4392
|
_: 2
|
|
4383
4393
|
}, 1024)
|
|
@@ -4387,21 +4397,39 @@ function ps(e, t, n, s, i, o) {
|
|
|
4387
4397
|
])
|
|
4388
4398
|
]),
|
|
4389
4399
|
default: u(() => [
|
|
4390
|
-
o.
|
|
4391
|
-
|
|
4400
|
+
o.tooManyClients ? (a(), p("div", ls, [
|
|
4401
|
+
l("div", null, [
|
|
4392
4402
|
c(g, {
|
|
4393
4403
|
type: "error",
|
|
4394
4404
|
size: "18",
|
|
4395
4405
|
class: "-mt-1 text-red-600"
|
|
4396
4406
|
})
|
|
4397
4407
|
]),
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4408
|
+
l("div", null, [
|
|
4409
|
+
l("div", as, [
|
|
4410
|
+
l("div", {
|
|
4401
4411
|
class: "text-sm font-semibold text-red-600",
|
|
4402
|
-
textContent: d(e.$t("
|
|
4412
|
+
textContent: d(e.$t("tooManyClientsTitle"))
|
|
4403
4413
|
}, null, 8, rs),
|
|
4404
|
-
|
|
4414
|
+
l("div", ds, d(e.$t("tooManyClientsText")), 1)
|
|
4415
|
+
])
|
|
4416
|
+
])
|
|
4417
|
+
])) : v("", !0),
|
|
4418
|
+
o.hasAnswerBlock ? v("", !0) : (a(), p("div", cs, [
|
|
4419
|
+
l("div", null, [
|
|
4420
|
+
c(g, {
|
|
4421
|
+
type: "error",
|
|
4422
|
+
size: "18",
|
|
4423
|
+
class: "-mt-1 text-red-600"
|
|
4424
|
+
})
|
|
4425
|
+
]),
|
|
4426
|
+
l("div", null, [
|
|
4427
|
+
l("div", us, [
|
|
4428
|
+
l("div", {
|
|
4429
|
+
class: "text-sm font-semibold text-red-600",
|
|
4430
|
+
textContent: d(e.$t("signMissingTitle"))
|
|
4431
|
+
}, null, 8, ms),
|
|
4432
|
+
l("div", ps, d(e.$t("signMissingText")), 1)
|
|
4405
4433
|
]),
|
|
4406
4434
|
c(r, {
|
|
4407
4435
|
type: "secondary",
|
|
@@ -4422,9 +4450,9 @@ function ps(e, t, n, s, i, o) {
|
|
|
4422
4450
|
], 2)
|
|
4423
4451
|
]),
|
|
4424
4452
|
_: 1
|
|
4425
|
-
}, 8, ["modelValue"])) :
|
|
4453
|
+
}, 8, ["modelValue"])) : v("", !0);
|
|
4426
4454
|
}
|
|
4427
|
-
const
|
|
4455
|
+
const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e"]]), Cs = {
|
|
4428
4456
|
i18nOptions: {
|
|
4429
4457
|
namespaces: "DocumentTemplateFormModal",
|
|
4430
4458
|
messages: {
|
|
@@ -4582,13 +4610,13 @@ const hs = /* @__PURE__ */ F(ss, [["render", ps], ["__scopeId", "data-v-8302ed07
|
|
|
4582
4610
|
this.canUpdateExistingDocTemplate = !1;
|
|
4583
4611
|
}
|
|
4584
4612
|
}
|
|
4585
|
-
},
|
|
4586
|
-
function
|
|
4613
|
+
}, bs = { class: "t-root font-inter" }, ks = { style: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, ws = { key: 1 }, _s = { class: "text-gray-600" }, xs = { key: 2 }, Ts = { class: "text-gray-600" };
|
|
4614
|
+
function Ds(e, t, n, s, i, o) {
|
|
4587
4615
|
const r = m("CCallout"), g = m("CInput"), h = m("CField"), b = m("CCheckbox"), w = m("CButton");
|
|
4588
|
-
return
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
n.template ?
|
|
4616
|
+
return a(), p("div", bs, [
|
|
4617
|
+
l("div", ks, d(n.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })), 1),
|
|
4618
|
+
l("div", null, [
|
|
4619
|
+
n.template ? v("", !0) : (a(), C(r, { key: 0 }, {
|
|
4592
4620
|
default: u(() => [
|
|
4593
4621
|
T(d(e.$t("calloutDescription")), 1)
|
|
4594
4622
|
]),
|
|
@@ -4614,7 +4642,7 @@ function ws(e, t, n, s, i, o) {
|
|
|
4614
4642
|
]),
|
|
4615
4643
|
_: 1
|
|
4616
4644
|
}, 8, ["vuelidate", "vuelidate-messages", "label"]),
|
|
4617
|
-
n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (
|
|
4645
|
+
n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (a(), p("div", ws, [
|
|
4618
4646
|
c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
|
|
4619
4647
|
default: u(() => [
|
|
4620
4648
|
c(b, {
|
|
@@ -4624,15 +4652,15 @@ function ws(e, t, n, s, i, o) {
|
|
|
4624
4652
|
size: "normal"
|
|
4625
4653
|
}, {
|
|
4626
4654
|
default: u(() => [
|
|
4627
|
-
|
|
4655
|
+
l("div", _s, d(e.$t("updateExisting")), 1)
|
|
4628
4656
|
]),
|
|
4629
4657
|
_: 1
|
|
4630
4658
|
}, 8, ["modelValue"])
|
|
4631
4659
|
]),
|
|
4632
4660
|
_: 1
|
|
4633
4661
|
})
|
|
4634
|
-
])) :
|
|
4635
|
-
n.document && n.document.clients.length && n.showKeepClientsOption ? (
|
|
4662
|
+
])) : v("", !0),
|
|
4663
|
+
n.document && n.document.clients.length && n.showKeepClientsOption ? (a(), p("div", xs, [
|
|
4636
4664
|
c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
|
|
4637
4665
|
default: u(() => [
|
|
4638
4666
|
c(b, {
|
|
@@ -4642,14 +4670,14 @@ function ws(e, t, n, s, i, o) {
|
|
|
4642
4670
|
size: "normal"
|
|
4643
4671
|
}, {
|
|
4644
4672
|
default: u(() => [
|
|
4645
|
-
|
|
4673
|
+
l("div", Ts, d(e.$t("keepClients")), 1)
|
|
4646
4674
|
]),
|
|
4647
4675
|
_: 1
|
|
4648
4676
|
}, 8, ["modelValue"])
|
|
4649
4677
|
]),
|
|
4650
4678
|
_: 1
|
|
4651
4679
|
})
|
|
4652
|
-
])) :
|
|
4680
|
+
])) : v("", !0)
|
|
4653
4681
|
]),
|
|
4654
4682
|
c(w, {
|
|
4655
4683
|
loading: e.isPosting,
|
|
@@ -4666,9 +4694,9 @@ function ws(e, t, n, s, i, o) {
|
|
|
4666
4694
|
}, 8, ["loading", "onClick"])
|
|
4667
4695
|
]);
|
|
4668
4696
|
}
|
|
4669
|
-
const Qe = /* @__PURE__ */ F(
|
|
4697
|
+
const Qe = /* @__PURE__ */ F(Cs, [["render", Ds], ["__scopeId", "data-v-54a3575d"]]);
|
|
4670
4698
|
var re, Fe;
|
|
4671
|
-
function
|
|
4699
|
+
function Ss() {
|
|
4672
4700
|
if (Fe) return re;
|
|
4673
4701
|
Fe = 1;
|
|
4674
4702
|
function e(t, n, s) {
|
|
@@ -4677,17 +4705,17 @@ function _s() {
|
|
|
4677
4705
|
return re = e, re;
|
|
4678
4706
|
}
|
|
4679
4707
|
var de, Le;
|
|
4680
|
-
function
|
|
4708
|
+
function Is() {
|
|
4681
4709
|
if (Le) return de;
|
|
4682
4710
|
Le = 1;
|
|
4683
|
-
var e =
|
|
4711
|
+
var e = Ss(), t = yt();
|
|
4684
4712
|
function n(s, i, o) {
|
|
4685
4713
|
return o === void 0 && (o = i, i = void 0), o !== void 0 && (o = t(o), o = o === o ? o : 0), i !== void 0 && (i = t(i), i = i === i ? i : 0), e(t(s), i, o);
|
|
4686
4714
|
}
|
|
4687
4715
|
return de = n, de;
|
|
4688
4716
|
}
|
|
4689
|
-
var
|
|
4690
|
-
const
|
|
4717
|
+
var $s = Is();
|
|
4718
|
+
const Fs = /* @__PURE__ */ Oe($s), Ls = {
|
|
4691
4719
|
name: "RemainingTrialButton",
|
|
4692
4720
|
components: { IsPremium: J },
|
|
4693
4721
|
i18nOptions: {
|
|
@@ -4719,36 +4747,36 @@ const Ds = /* @__PURE__ */ Oe(Ts), Ss = {
|
|
|
4719
4747
|
},
|
|
4720
4748
|
mixins: [Z],
|
|
4721
4749
|
methods: {
|
|
4722
|
-
clamp:
|
|
4750
|
+
clamp: Fs
|
|
4723
4751
|
}
|
|
4724
|
-
},
|
|
4725
|
-
function
|
|
4726
|
-
const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), b =
|
|
4727
|
-
return
|
|
4752
|
+
}, Vs = { 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" }, Bs = { class: "text-gray-600" }, Ms = { class: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, Ps = { class: "w-56 p-4 text-sm" }, As = { class: "font-semibold" }, Es = { class: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, zs = { class: "text-sm text-gray-600" }, Rs = { 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" }, Os = { class: "mt-5" };
|
|
4753
|
+
function Hs(e, t, n, s, i, o) {
|
|
4754
|
+
const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), b = le("close-popper");
|
|
4755
|
+
return a(), C(h, null, {
|
|
4728
4756
|
default: u(({
|
|
4729
4757
|
accountType: w,
|
|
4730
4758
|
trialDaysLeft: k,
|
|
4731
4759
|
openUpgradeModal: S,
|
|
4732
4760
|
initialFreePremiumDays: D
|
|
4733
4761
|
}) => [
|
|
4734
|
-
w === "trial" && e.mq !== "sm" ? (
|
|
4762
|
+
w === "trial" && e.mq !== "sm" ? (a(), C(g, {
|
|
4735
4763
|
key: 0,
|
|
4736
4764
|
"popper-class": "trial-popover"
|
|
4737
4765
|
}, {
|
|
4738
4766
|
popper: u(() => [
|
|
4739
|
-
|
|
4740
|
-
|
|
4767
|
+
l("div", Ps, [
|
|
4768
|
+
l("div", As, [
|
|
4741
4769
|
T(d(e.$t("title.1")) + " ", 1),
|
|
4742
|
-
|
|
4770
|
+
l("span", Es, d(e.$t("title.2")), 1),
|
|
4743
4771
|
T(" " + d(e.$t("title.3", { trialDaysLeft: k })) + ". ", 1)
|
|
4744
4772
|
]),
|
|
4745
|
-
|
|
4773
|
+
l("div", zs, [
|
|
4746
4774
|
T(d(e.$t("title.4")) + " ", 1),
|
|
4747
|
-
|
|
4775
|
+
l("span", Rs, d(e.$t("title.5")), 1),
|
|
4748
4776
|
t[0] || (t[0] = T(". "))
|
|
4749
4777
|
]),
|
|
4750
|
-
|
|
4751
|
-
N((
|
|
4778
|
+
l("div", Os, [
|
|
4779
|
+
N((a(), C(r, {
|
|
4752
4780
|
type: "secondary",
|
|
4753
4781
|
size: "small",
|
|
4754
4782
|
"icon-right": "arrow-right",
|
|
@@ -4765,10 +4793,10 @@ function Es(e, t, n, s, i, o) {
|
|
|
4765
4793
|
])
|
|
4766
4794
|
]),
|
|
4767
4795
|
default: u(() => [
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4796
|
+
l("div", Vs, [
|
|
4797
|
+
l("div", Bs, d(e.$tc("_common:day", { count: k })) + " " + d(e.$t("button")), 1),
|
|
4798
|
+
l("div", Ms, [
|
|
4799
|
+
l("div", {
|
|
4772
4800
|
style: E({
|
|
4773
4801
|
width: o.clamp(k / D * 100, 0, 100) + "%"
|
|
4774
4802
|
}),
|
|
@@ -4778,24 +4806,24 @@ function Es(e, t, n, s, i, o) {
|
|
|
4778
4806
|
])
|
|
4779
4807
|
]),
|
|
4780
4808
|
_: 2
|
|
4781
|
-
}, 1024)) :
|
|
4809
|
+
}, 1024)) : v("", !0)
|
|
4782
4810
|
]),
|
|
4783
4811
|
_: 1
|
|
4784
4812
|
});
|
|
4785
4813
|
}
|
|
4786
|
-
const
|
|
4814
|
+
const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
|
|
4787
4815
|
canEdit: !1,
|
|
4788
4816
|
isForm: !0,
|
|
4789
4817
|
setFormValue: null,
|
|
4790
4818
|
removeFormValue: null
|
|
4791
|
-
}),
|
|
4819
|
+
}), qs = {
|
|
4792
4820
|
name: "DocumentForm",
|
|
4793
4821
|
components: {
|
|
4794
4822
|
DocumentFormContainer: os,
|
|
4795
4823
|
IsPremium: J,
|
|
4796
4824
|
IsPremiumPreStep: Y,
|
|
4797
|
-
DocumentSend:
|
|
4798
|
-
RemainingTrialButton:
|
|
4825
|
+
DocumentSend: vs,
|
|
4826
|
+
RemainingTrialButton: Us,
|
|
4799
4827
|
CDropdown: fe,
|
|
4800
4828
|
CDropdownItem: ge
|
|
4801
4829
|
},
|
|
@@ -4909,13 +4937,13 @@ const zs = /* @__PURE__ */ F(Ss, [["render", Es]]), oe = vt({
|
|
|
4909
4937
|
);
|
|
4910
4938
|
}
|
|
4911
4939
|
}
|
|
4912
|
-
},
|
|
4940
|
+
}, Gs = {
|
|
4913
4941
|
key: 0,
|
|
4914
4942
|
class: "flex w-screen flex-col bg-white"
|
|
4915
|
-
},
|
|
4916
|
-
function
|
|
4943
|
+
}, Ns = { class: "flex self-center" }, Ws = { class: "buttons has-addons whitespace-nowrap" };
|
|
4944
|
+
function js(e, t, n, s, i, o) {
|
|
4917
4945
|
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("IsPremiumPreStep"), w = m("RemainingTrialButton"), k = m("IsPremium"), S = m("DocumentFormContainer"), D = m("DocumentSend");
|
|
4918
|
-
return n.document ? (
|
|
4946
|
+
return n.document ? (a(), p("div", Gs, [
|
|
4919
4947
|
c(S, {
|
|
4920
4948
|
view: i.view,
|
|
4921
4949
|
"onUpdate:view": t[0] || (t[0] = (y) => i.view = y),
|
|
@@ -4932,13 +4960,13 @@ function qs(e, t, n, s, i, o) {
|
|
|
4932
4960
|
default: u(({ canCreateDocument: y, canCreateTemplate: f }) => [
|
|
4933
4961
|
c(b, { feature: "documents" }, {
|
|
4934
4962
|
default: u(({ onClick: x }) => [
|
|
4935
|
-
(
|
|
4963
|
+
(a(), p("div", {
|
|
4936
4964
|
key: o.canDoActions,
|
|
4937
4965
|
class: "inline-flex flex-1 justify-end space-x-5"
|
|
4938
4966
|
}, [
|
|
4939
4967
|
c(b, { feature: "saveDocTemplate" }, {
|
|
4940
4968
|
default: u(({ onClick: _ }) => [
|
|
4941
|
-
|
|
4969
|
+
l("div", Ns, [
|
|
4942
4970
|
c(h, {
|
|
4943
4971
|
disabled: !o.canDoActions
|
|
4944
4972
|
}, {
|
|
@@ -4993,7 +5021,7 @@ function qs(e, t, n, s, i, o) {
|
|
|
4993
5021
|
}, 1024),
|
|
4994
5022
|
M(e.$slots, "nav-right-action", {}, () => [
|
|
4995
5023
|
c(w),
|
|
4996
|
-
|
|
5024
|
+
l("div", Ws, [
|
|
4997
5025
|
c(r, {
|
|
4998
5026
|
ref: "sendButton",
|
|
4999
5027
|
disabled: !o.canDoActions,
|
|
@@ -5033,9 +5061,9 @@ function qs(e, t, n, s, i, o) {
|
|
|
5033
5061
|
"remove-form-value": n.removeDocValue,
|
|
5034
5062
|
"on-save-document": n.onSaveDocument
|
|
5035
5063
|
}, null, 8, ["_document", "set-form-value", "remove-form-value", "on-save-document"])
|
|
5036
|
-
])) :
|
|
5064
|
+
])) : v("", !0);
|
|
5037
5065
|
}
|
|
5038
|
-
const
|
|
5066
|
+
const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
|
|
5039
5067
|
name: "DocumentFormRecent",
|
|
5040
5068
|
i18nOptions: {
|
|
5041
5069
|
namespaces: "DocumentFormRecent",
|
|
@@ -5124,27 +5152,27 @@ const Gs = /* @__PURE__ */ F(Rs, [["render", qs]]), Ns = {
|
|
|
5124
5152
|
return this.$emit("use-doc-template", { documentId: e });
|
|
5125
5153
|
}
|
|
5126
5154
|
}
|
|
5127
|
-
},
|
|
5155
|
+
}, Qs = {
|
|
5128
5156
|
class: "flex w-full",
|
|
5129
5157
|
style: { "padding-bottom": "1em" }
|
|
5130
|
-
},
|
|
5158
|
+
}, Ys = { class: "recent-list" }, Js = {
|
|
5131
5159
|
key: 1,
|
|
5132
5160
|
class: "rounded-md border border-gray-200 bg-gray-100 p-4 text-center text-gray-400",
|
|
5133
5161
|
style: { "font-size": "15px" }
|
|
5134
|
-
},
|
|
5162
|
+
}, Xs = {
|
|
5135
5163
|
key: 2,
|
|
5136
5164
|
class: "text-center text-gray-400",
|
|
5137
5165
|
style: { padding: "1em" }
|
|
5138
|
-
},
|
|
5166
|
+
}, el = ["onClick", "onMouseoverPassive"], tl = {
|
|
5139
5167
|
key: 0,
|
|
5140
5168
|
style: { display: "inline-flex", "align-items": "center", position: "absolute", right: "1em", top: "50%", transform: "translateY(-50%)" }
|
|
5141
5169
|
};
|
|
5142
|
-
function
|
|
5170
|
+
function nl(e, t, n, s, i, o) {
|
|
5143
5171
|
const r = m("CInput"), g = m("CSkeleton"), h = m("CButton"), b = m("IsPremiumPreStep"), w = m("IsPremium");
|
|
5144
|
-
return
|
|
5145
|
-
|
|
5172
|
+
return a(), p("div", null, [
|
|
5173
|
+
l("div", Qs, [
|
|
5146
5174
|
M(e.$slots, "default", {}, void 0, !0),
|
|
5147
|
-
i.hasItems ? (
|
|
5175
|
+
i.hasItems ? (a(), C(r, {
|
|
5148
5176
|
key: 0,
|
|
5149
5177
|
modelValue: i.query,
|
|
5150
5178
|
"onUpdate:modelValue": [
|
|
@@ -5157,10 +5185,10 @@ function Js(e, t, n, s, i, o) {
|
|
|
5157
5185
|
size: "normal",
|
|
5158
5186
|
filled: "",
|
|
5159
5187
|
class: "hidden md:flex"
|
|
5160
|
-
}, null, 8, ["modelValue", "loading", "placeholder", "onUpdate:modelValue"])) :
|
|
5188
|
+
}, null, 8, ["modelValue", "loading", "placeholder", "onUpdate:modelValue"])) : v("", !0)
|
|
5161
5189
|
]),
|
|
5162
|
-
|
|
5163
|
-
i.isLoading && !i.list.length ? (
|
|
5190
|
+
l("div", Ys, [
|
|
5191
|
+
i.isLoading && !i.list.length ? (a(), p($, { key: 0 }, P(3, (k) => l("div", {
|
|
5164
5192
|
key: k,
|
|
5165
5193
|
class: "recent-item placeholder"
|
|
5166
5194
|
}, [
|
|
@@ -5169,12 +5197,12 @@ function Js(e, t, n, s, i, o) {
|
|
|
5169
5197
|
class: "recent-item-name"
|
|
5170
5198
|
}),
|
|
5171
5199
|
c(g, { width: "35%" })
|
|
5172
|
-
])), 64)) : !i.isLoading && !i.query && !i.list.length ? (
|
|
5200
|
+
])), 64)) : !i.isLoading && !i.query && !i.list.length ? (a(), p("div", Js, d(e.$t("emptyPlaceholder")), 1)) : i.query && !i.isLoading && !i.list.length ? (a(), p("div", Xs, d(e.$t("noResults")), 1)) : (a(), C(w, { key: 3 }, {
|
|
5173
5201
|
default: u(({ canCreateTemplate: k, canUseTemplate: S }) => [
|
|
5174
5202
|
c(b, { feature: "useDocTemplate" }, {
|
|
5175
5203
|
default: u(({ onClick: D }) => [
|
|
5176
|
-
|
|
5177
|
-
(
|
|
5204
|
+
l("div", null, [
|
|
5205
|
+
(a(!0), p($, null, P(i.list, (y, f) => (a(), p("div", {
|
|
5178
5206
|
key: y._id,
|
|
5179
5207
|
class: "recent-item",
|
|
5180
5208
|
onClick: (x) => S ? o.onUseDocTemplate(y._id) : D({
|
|
@@ -5183,11 +5211,11 @@ function Js(e, t, n, s, i, o) {
|
|
|
5183
5211
|
onMouseoverPassive: (x) => i.hoverIndex = f,
|
|
5184
5212
|
onMouseleavePassive: t[1] || (t[1] = (x) => i.hoverIndex = null)
|
|
5185
5213
|
}, [
|
|
5186
|
-
|
|
5214
|
+
l("div", {
|
|
5187
5215
|
class: L([{ "text-gray-400": !y.data.name }, "recent-item-name"])
|
|
5188
5216
|
}, d(y.data.name || e.$t("_common:untitled")), 3),
|
|
5189
|
-
|
|
5190
|
-
i.hoverIndex === f ? (
|
|
5217
|
+
l("div", null, d(e.$formatDistanceToNow(y.createdAt)), 1),
|
|
5218
|
+
i.hoverIndex === f ? (a(), p("div", tl, [
|
|
5191
5219
|
c(b, { feature: "saveDocTemplate" }, {
|
|
5192
5220
|
default: u(({ onClick: x }) => [
|
|
5193
5221
|
c(h, {
|
|
@@ -5215,8 +5243,8 @@ function Js(e, t, n, s, i, o) {
|
|
|
5215
5243
|
]),
|
|
5216
5244
|
_: 1
|
|
5217
5245
|
})
|
|
5218
|
-
])) :
|
|
5219
|
-
], 40,
|
|
5246
|
+
])) : v("", !0)
|
|
5247
|
+
], 40, el))), 128))
|
|
5220
5248
|
])
|
|
5221
5249
|
]),
|
|
5222
5250
|
_: 2
|
|
@@ -5227,13 +5255,13 @@ function Js(e, t, n, s, i, o) {
|
|
|
5227
5255
|
])
|
|
5228
5256
|
]);
|
|
5229
5257
|
}
|
|
5230
|
-
const
|
|
5258
|
+
const il = /* @__PURE__ */ F(Ks, [["render", nl], ["__scopeId", "data-v-afd30dd3"]]), ol = { class: "item-paper" }, sl = {
|
|
5231
5259
|
key: 2,
|
|
5232
5260
|
class: "absolute bottom-2 right-2"
|
|
5233
|
-
},
|
|
5261
|
+
}, ll = {
|
|
5234
5262
|
key: 3,
|
|
5235
5263
|
class: "add-button"
|
|
5236
|
-
},
|
|
5264
|
+
}, al = { class: "item-footer" }, rl = ["textContent"], dl = ["textContent"], cl = /* @__PURE__ */ ve({
|
|
5237
5265
|
__name: "DocumentIcon",
|
|
5238
5266
|
props: {
|
|
5239
5267
|
isPlaceholder: { type: Boolean, default: !1 },
|
|
@@ -5250,7 +5278,7 @@ const Xs = /* @__PURE__ */ F(Ns, [["render", Js], ["__scopeId", "data-v-afd30dd3
|
|
|
5250
5278
|
), D = H(() => _t(n.name, 60));
|
|
5251
5279
|
return (y, f) => {
|
|
5252
5280
|
const x = m("CIcon");
|
|
5253
|
-
return
|
|
5281
|
+
return a(), p("div", ye(k.value, {
|
|
5254
5282
|
key: w.value,
|
|
5255
5283
|
class: [[
|
|
5256
5284
|
h.value,
|
|
@@ -5264,47 +5292,47 @@ const Xs = /* @__PURE__ */ F(Ns, [["render", Js], ["__scopeId", "data-v-afd30dd3
|
|
|
5264
5292
|
style: g.value,
|
|
5265
5293
|
onClick: i
|
|
5266
5294
|
}), [
|
|
5267
|
-
|
|
5268
|
-
y.thumbnail ? (
|
|
5295
|
+
l("div", ol, [
|
|
5296
|
+
y.thumbnail ? (a(), p("div", {
|
|
5269
5297
|
key: 0,
|
|
5270
5298
|
style: E([{
|
|
5271
5299
|
backgroundImage: `url(${y.thumbnail})`
|
|
5272
5300
|
}, { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }])
|
|
5273
|
-
}, null, 4)) : y.isPlaceholder || y.isAdd ?
|
|
5301
|
+
}, null, 4)) : y.isPlaceholder || y.isAdd ? v("", !0) : (a(), C(on, {
|
|
5274
5302
|
key: 1,
|
|
5275
5303
|
media: y.media,
|
|
5276
5304
|
preview: "",
|
|
5277
5305
|
class: "item-media"
|
|
5278
5306
|
}, null, 8, ["media"])),
|
|
5279
|
-
Pe(o).badge ? (
|
|
5307
|
+
Pe(o).badge ? (a(), p("div", sl, [
|
|
5280
5308
|
M(y.$slots, "badge", {}, void 0, !0)
|
|
5281
|
-
])) :
|
|
5282
|
-
y.isAdd ? (
|
|
5309
|
+
])) : v("", !0),
|
|
5310
|
+
y.isAdd ? (a(), p("div", ll, [
|
|
5283
5311
|
c(x, {
|
|
5284
5312
|
size: 18,
|
|
5285
5313
|
"stroke-width": 3,
|
|
5286
5314
|
type: "plus"
|
|
5287
5315
|
})
|
|
5288
|
-
])) :
|
|
5316
|
+
])) : v("", !0)
|
|
5289
5317
|
]),
|
|
5290
|
-
|
|
5291
|
-
y.isAdd ? (
|
|
5318
|
+
l("div", al, [
|
|
5319
|
+
y.isAdd ? (a(), p("div", {
|
|
5292
5320
|
key: 0,
|
|
5293
5321
|
class: "item-text",
|
|
5294
5322
|
style: { color: "hsl(0, 0%, 55%)" },
|
|
5295
5323
|
textContent: d(S.value)
|
|
5296
|
-
}, null, 8,
|
|
5297
|
-
|
|
5324
|
+
}, null, 8, rl)) : y.name ? (a(), p($, { key: 1 }, [
|
|
5325
|
+
l("div", {
|
|
5298
5326
|
class: "item-text",
|
|
5299
5327
|
textContent: d(D.value)
|
|
5300
|
-
}, null, 8,
|
|
5328
|
+
}, null, 8, dl),
|
|
5301
5329
|
M(y.$slots, "default", {}, void 0, !0)
|
|
5302
|
-
], 64)) :
|
|
5330
|
+
], 64)) : v("", !0)
|
|
5303
5331
|
])
|
|
5304
5332
|
], 16);
|
|
5305
5333
|
};
|
|
5306
5334
|
}
|
|
5307
|
-
}),
|
|
5335
|
+
}), ul = /* @__PURE__ */ F(cl, [["__scopeId", "data-v-f3357197"]]), ml = {
|
|
5308
5336
|
name: "HorizontalScroll",
|
|
5309
5337
|
components: {
|
|
5310
5338
|
Simplebar: Q
|
|
@@ -5356,15 +5384,15 @@ const Xs = /* @__PURE__ */ F(Ns, [["render", Js], ["__scopeId", "data-v-afd30dd3
|
|
|
5356
5384
|
}, 50);
|
|
5357
5385
|
}
|
|
5358
5386
|
}
|
|
5359
|
-
},
|
|
5387
|
+
}, pl = {
|
|
5360
5388
|
ref: "container",
|
|
5361
5389
|
class: "horizontal-scroll"
|
|
5362
|
-
},
|
|
5363
|
-
function
|
|
5390
|
+
}, hl = { class: "hl-navigation" }, fl = { class: "hl-container" }, gl = { class: "flex w-full" };
|
|
5391
|
+
function yl(e, t, n, s, i, o) {
|
|
5364
5392
|
const r = m("CButton"), g = m("Simplebar");
|
|
5365
|
-
return
|
|
5366
|
-
|
|
5367
|
-
i.hasPrev ? (
|
|
5393
|
+
return a(), p("div", pl, [
|
|
5394
|
+
l("div", hl, [
|
|
5395
|
+
i.hasPrev ? (a(), p("div", {
|
|
5368
5396
|
key: 0,
|
|
5369
5397
|
class: "hl-btn-left max-sm:hidden",
|
|
5370
5398
|
onClick: t[0] || (t[0] = (h) => o.go(-1))
|
|
@@ -5378,8 +5406,8 @@ function pa(e, t, n, s, i, o) {
|
|
|
5378
5406
|
size: "medium"
|
|
5379
5407
|
})
|
|
5380
5408
|
], !0)
|
|
5381
|
-
])) :
|
|
5382
|
-
i.hasNext ? (
|
|
5409
|
+
])) : v("", !0),
|
|
5410
|
+
i.hasNext ? (a(), p("div", {
|
|
5383
5411
|
key: 1,
|
|
5384
5412
|
class: "hl-btn-right max-sm:hidden",
|
|
5385
5413
|
onClick: t[2] || (t[2] = (h) => o.go(1))
|
|
@@ -5394,16 +5422,16 @@ function pa(e, t, n, s, i, o) {
|
|
|
5394
5422
|
onClick: t[1] || (t[1] = (h) => e.$emit("expand"))
|
|
5395
5423
|
})
|
|
5396
5424
|
], !0)
|
|
5397
|
-
])) :
|
|
5425
|
+
])) : v("", !0)
|
|
5398
5426
|
]),
|
|
5399
|
-
|
|
5427
|
+
l("div", fl, [
|
|
5400
5428
|
c(g, {
|
|
5401
5429
|
ref: "list",
|
|
5402
5430
|
class: "hl-list",
|
|
5403
5431
|
onScroll: o.scrollHandler
|
|
5404
5432
|
}, {
|
|
5405
5433
|
default: u(() => [
|
|
5406
|
-
|
|
5434
|
+
l("div", gl, [
|
|
5407
5435
|
M(e.$slots, "default", {}, void 0, !0)
|
|
5408
5436
|
])
|
|
5409
5437
|
]),
|
|
@@ -5412,8 +5440,8 @@ function pa(e, t, n, s, i, o) {
|
|
|
5412
5440
|
])
|
|
5413
5441
|
], 512);
|
|
5414
5442
|
}
|
|
5415
|
-
const
|
|
5416
|
-
function
|
|
5443
|
+
const vl = /* @__PURE__ */ F(ml, [["render", yl], ["__scopeId", "data-v-f0c49197"]]);
|
|
5444
|
+
function Cl(e, { availableProducts: t }) {
|
|
5417
5445
|
if (!e) throw new Error("Missing parameter templateId");
|
|
5418
5446
|
const n = t, s = Object.keys(n).find((i) => {
|
|
5419
5447
|
var r;
|
|
@@ -5425,7 +5453,7 @@ function fa(e, { availableProducts: t }) {
|
|
|
5425
5453
|
});
|
|
5426
5454
|
return s ? n[s] : null;
|
|
5427
5455
|
}
|
|
5428
|
-
async function
|
|
5456
|
+
async function bl(e) {
|
|
5429
5457
|
if (!e) throw new Error("Missing argument stripeProduct");
|
|
5430
5458
|
const t = e == null ? void 0 : e.prices[0], { data: n } = await xt.createCheckoutSession({
|
|
5431
5459
|
items: [
|
|
@@ -5442,7 +5470,7 @@ async function ga(e) {
|
|
|
5442
5470
|
function Ye(e, { availableProducts: t }) {
|
|
5443
5471
|
var i, o, r;
|
|
5444
5472
|
let n = null;
|
|
5445
|
-
const s =
|
|
5473
|
+
const s = Cl(e.templateId, {
|
|
5446
5474
|
availableProducts: t
|
|
5447
5475
|
});
|
|
5448
5476
|
return s && (n = {
|
|
@@ -5450,10 +5478,10 @@ function Ye(e, { availableProducts: t }) {
|
|
|
5450
5478
|
currency: (o = s == null ? void 0 : s.prices) == null ? void 0 : o[0].currency
|
|
5451
5479
|
}),
|
|
5452
5480
|
isPurchased: ((r = e.purchaseInfo) == null ? void 0 : r.isPurchased) || !1,
|
|
5453
|
-
onBuy: async () =>
|
|
5481
|
+
onBuy: async () => bl(s)
|
|
5454
5482
|
}), n;
|
|
5455
5483
|
}
|
|
5456
|
-
const
|
|
5484
|
+
const kl = {
|
|
5457
5485
|
name: "GalleryTemplateModal",
|
|
5458
5486
|
components: {
|
|
5459
5487
|
Simplebar: Q,
|
|
@@ -5592,84 +5620,84 @@ const ya = {
|
|
|
5592
5620
|
await Ue(t) && be("info", this.$t("copyMessage"));
|
|
5593
5621
|
}
|
|
5594
5622
|
}
|
|
5595
|
-
},
|
|
5623
|
+
}, wl = { class: "template-modal font-inter bg-gray-200" }, _l = { style: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": `rgb(244, 244, 244) 0px 2px 14px 0px inset,
|
|
5596
5624
|
rgba(0, 0, 0, 0.09) 0px 8px 35px 0px,
|
|
5597
|
-
rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset`, flex: "1 1 auto", "min-height": "0" } },
|
|
5625
|
+
rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset`, flex: "1 1 auto", "min-height": "0" } }, xl = { style: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, Tl = { style: { "padding-bottom": "2em" } }, Dl = { style: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, Sl = { style: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, Il = { style: { hyphens: "auto" } }, $l = {
|
|
5598
5626
|
key: 0,
|
|
5599
5627
|
style: { "padding-top": "1.5em" },
|
|
5600
5628
|
class: "flex items-center"
|
|
5601
|
-
},
|
|
5629
|
+
}, Fl = { style: { "margin-left": "0.5em" } }, Ll = { style: { "font-weight": "500" } }, Vl = { style: { "font-weight": "400", "font-size": "14px" } }, Bl = { style: { "padding-bottom": "2em" } }, Ml = {
|
|
5602
5630
|
key: 0,
|
|
5603
5631
|
class: "mb-5 flex items-center gap-2 rounded-full border border-gray-300 bg-gray-300/60 p-1 text-sm"
|
|
5604
|
-
},
|
|
5605
|
-
function
|
|
5632
|
+
}, Pl = { class: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, Al = ["textContent"], El = ["textContent"];
|
|
5633
|
+
function zl(e, t, n, s, i, o) {
|
|
5606
5634
|
var S;
|
|
5607
5635
|
const r = m("DocumentLayout"), g = m("Simplebar"), h = m("CIcon"), b = m("CButton"), w = m("IsPremiumPreStep"), k = m("IsPremium");
|
|
5608
|
-
return
|
|
5609
|
-
|
|
5636
|
+
return a(), p("div", wl, [
|
|
5637
|
+
l("div", _l, [
|
|
5610
5638
|
c(g, {
|
|
5611
5639
|
class: "h-full w-full",
|
|
5612
5640
|
"data-simplebar-auto-hide": "false"
|
|
5613
5641
|
}, {
|
|
5614
5642
|
default: u(() => [
|
|
5615
|
-
o.previewDocument ? (
|
|
5643
|
+
o.previewDocument ? (a(), C(r, {
|
|
5616
5644
|
key: 0,
|
|
5617
5645
|
document: o.previewDocument
|
|
5618
|
-
}, null, 8, ["document"])) :
|
|
5619
|
-
n.product && !i.privateProduct.isPurchased ? (
|
|
5646
|
+
}, null, 8, ["document"])) : v("", !0),
|
|
5647
|
+
n.product && !i.privateProduct.isPurchased ? (a(), C(G("style"), { key: 1 }, {
|
|
5620
5648
|
default: u(() => t[1] || (t[1] = [
|
|
5621
5649
|
T(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")
|
|
5622
5650
|
])),
|
|
5623
5651
|
_: 1
|
|
5624
|
-
})) :
|
|
5652
|
+
})) : v("", !0)
|
|
5625
5653
|
]),
|
|
5626
5654
|
_: 1
|
|
5627
5655
|
})
|
|
5628
5656
|
]),
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
(S = i.templateStat) != null && S.usedTimes ? (
|
|
5657
|
+
l("div", xl, [
|
|
5658
|
+
l("div", Tl, [
|
|
5659
|
+
l("div", Dl, d(n.meta.name), 1),
|
|
5660
|
+
l("div", Sl, [
|
|
5661
|
+
(S = i.templateStat) != null && S.usedTimes ? (a(), p($, { key: 0 }, [
|
|
5634
5662
|
T(d(e.$t("_common:used").capitalize()) + " " + d(i.templateStat.usedTimes) + " " + d(e.$t("_common:times", { count: i.templateStat.usedTimes })), 1)
|
|
5635
|
-
], 64)) :
|
|
5663
|
+
], 64)) : v("", !0)
|
|
5636
5664
|
]),
|
|
5637
|
-
|
|
5638
|
-
n.meta.author ? (
|
|
5639
|
-
|
|
5665
|
+
l("div", Il, d(n.meta.text), 1),
|
|
5666
|
+
n.meta.author ? (a(), p("div", $l, [
|
|
5667
|
+
l("div", {
|
|
5640
5668
|
style: E([{ "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, {
|
|
5641
5669
|
backgroundImage: `url(${n.meta.author.avatar})`
|
|
5642
5670
|
}])
|
|
5643
5671
|
}, null, 4),
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
n.meta.author.templatesCount ? (
|
|
5672
|
+
l("div", Fl, [
|
|
5673
|
+
l("div", Ll, d(n.meta.author.name), 1),
|
|
5674
|
+
l("div", Vl, [
|
|
5675
|
+
n.meta.author.templatesCount ? (a(), p($, { key: 0 }, [
|
|
5648
5676
|
T(d(n.meta.author.templatesCount) + " " + d(e.$t("_common:template", { count: n.meta.author.templatesCount })), 1)
|
|
5649
|
-
], 64)) : (
|
|
5677
|
+
], 64)) : (a(), p($, { key: 1 }, [
|
|
5650
5678
|
T(d(e.$t("_common:template").capitalize()), 1)
|
|
5651
5679
|
], 64))
|
|
5652
5680
|
])
|
|
5653
5681
|
])
|
|
5654
|
-
])) :
|
|
5682
|
+
])) : v("", !0)
|
|
5655
5683
|
]),
|
|
5656
|
-
|
|
5657
|
-
n.product ? (
|
|
5658
|
-
i.privateProduct.isPurchased ? (
|
|
5659
|
-
|
|
5684
|
+
l("div", Bl, [
|
|
5685
|
+
n.product ? (a(), p($, { key: 0 }, [
|
|
5686
|
+
i.privateProduct.isPurchased ? (a(), p("div", Ml, [
|
|
5687
|
+
l("div", Pl, [
|
|
5660
5688
|
c(h, {
|
|
5661
5689
|
type: "check",
|
|
5662
5690
|
size: "12",
|
|
5663
5691
|
class: "text-white"
|
|
5664
5692
|
})
|
|
5665
5693
|
]),
|
|
5666
|
-
|
|
5694
|
+
l("div", {
|
|
5667
5695
|
class: "text-xs font-medium text-gray-700",
|
|
5668
5696
|
textContent: d(
|
|
5669
5697
|
e.$t("_common:purchased", { thing: e.$t("_common:template") })
|
|
5670
5698
|
)
|
|
5671
|
-
}, null, 8,
|
|
5672
|
-
])) : (
|
|
5699
|
+
}, null, 8, Al)
|
|
5700
|
+
])) : (a(), C(b, {
|
|
5673
5701
|
key: 1,
|
|
5674
5702
|
type: "secondary",
|
|
5675
5703
|
wide: "",
|
|
@@ -5678,20 +5706,20 @@ function Ma(e, t, n, s, i, o) {
|
|
|
5678
5706
|
onClick: o.buyTemplate
|
|
5679
5707
|
}, {
|
|
5680
5708
|
default: u(() => [
|
|
5681
|
-
|
|
5682
|
-
|
|
5709
|
+
l("div", null, d(e.$t("_common:buy", { thing: e.$t("_common:template") })), 1),
|
|
5710
|
+
l("div", {
|
|
5683
5711
|
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",
|
|
5684
5712
|
textContent: d(i.privateProduct.price)
|
|
5685
|
-
}, null, 8,
|
|
5713
|
+
}, null, 8, El)
|
|
5686
5714
|
]),
|
|
5687
5715
|
_: 1
|
|
5688
5716
|
}, 8, ["onClick"]))
|
|
5689
|
-
], 64)) :
|
|
5717
|
+
], 64)) : v("", !0),
|
|
5690
5718
|
c(k, null, {
|
|
5691
5719
|
default: u(({ canUseTemplate: D }) => [
|
|
5692
5720
|
c(w, { feature: "useDocTemplate" }, {
|
|
5693
5721
|
default: u(({ onClick: y }) => [
|
|
5694
|
-
!n.product || i.privateProduct.isPurchased ? (
|
|
5722
|
+
!n.product || i.privateProduct.isPurchased ? (a(), C(b, {
|
|
5695
5723
|
key: 0,
|
|
5696
5724
|
disabled: n.product ? !i.privateProduct.isPurchased : !1,
|
|
5697
5725
|
type: "secondary",
|
|
@@ -5703,7 +5731,7 @@ function Ma(e, t, n, s, i, o) {
|
|
|
5703
5731
|
T(d(e.$t("_common:use", { thing: e.$t("_common:template") })), 1)
|
|
5704
5732
|
]),
|
|
5705
5733
|
_: 2
|
|
5706
|
-
}, 1032, ["disabled", "onClick"])) :
|
|
5734
|
+
}, 1032, ["disabled", "onClick"])) : v("", !0)
|
|
5707
5735
|
]),
|
|
5708
5736
|
_: 2
|
|
5709
5737
|
}, 1024)
|
|
@@ -5716,7 +5744,7 @@ function Ma(e, t, n, s, i, o) {
|
|
|
5716
5744
|
default: u(({ onClick: y }) => {
|
|
5717
5745
|
var f;
|
|
5718
5746
|
return [
|
|
5719
|
-
(n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (
|
|
5747
|
+
(n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (a(), C(b, {
|
|
5720
5748
|
key: 0,
|
|
5721
5749
|
loading: e.isLoading,
|
|
5722
5750
|
type: i.didSave ? "success" : "none",
|
|
@@ -5729,7 +5757,7 @@ function Ma(e, t, n, s, i, o) {
|
|
|
5729
5757
|
T(d(i.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })), 1)
|
|
5730
5758
|
]),
|
|
5731
5759
|
_: 2
|
|
5732
|
-
}, 1032, ["loading", "type", "icon-left", "onClick"])) :
|
|
5760
|
+
}, 1032, ["loading", "type", "icon-left", "onClick"])) : v("", !0)
|
|
5733
5761
|
];
|
|
5734
5762
|
}),
|
|
5735
5763
|
_: 2
|
|
@@ -5737,7 +5765,7 @@ function Ma(e, t, n, s, i, o) {
|
|
|
5737
5765
|
]),
|
|
5738
5766
|
_: 1
|
|
5739
5767
|
}),
|
|
5740
|
-
o.allowCopyTemplateLink ? (
|
|
5768
|
+
o.allowCopyTemplateLink ? (a(), C(b, {
|
|
5741
5769
|
key: 1,
|
|
5742
5770
|
type: "none",
|
|
5743
5771
|
"icon-left": "link",
|
|
@@ -5748,12 +5776,12 @@ function Ma(e, t, n, s, i, o) {
|
|
|
5748
5776
|
T(d(e.$t("_common:share", { thing: e.$t("_common:link") })), 1)
|
|
5749
5777
|
]),
|
|
5750
5778
|
_: 1
|
|
5751
|
-
})) :
|
|
5779
|
+
})) : v("", !0)
|
|
5752
5780
|
])
|
|
5753
5781
|
])
|
|
5754
5782
|
]);
|
|
5755
5783
|
}
|
|
5756
|
-
const
|
|
5784
|
+
const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215"]]), Ol = {
|
|
5757
5785
|
name: "GalleryLogic",
|
|
5758
5786
|
i18nOptions: {
|
|
5759
5787
|
namespaces: "GalleryLogic",
|
|
@@ -5959,7 +5987,7 @@ const Pa = /* @__PURE__ */ F(ya, [["render", Ma], ["__scopeId", "data-v-d37ef215
|
|
|
5959
5987
|
fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
|
|
5960
5988
|
};
|
|
5961
5989
|
this.$modal.show(
|
|
5962
|
-
|
|
5990
|
+
Rl,
|
|
5963
5991
|
{
|
|
5964
5992
|
template: e,
|
|
5965
5993
|
fetchGallery: this.fetchGallery,
|
|
@@ -6004,7 +6032,7 @@ const Pa = /* @__PURE__ */ F(ya, [["render", Ma], ["__scopeId", "data-v-d37ef215
|
|
|
6004
6032
|
}
|
|
6005
6033
|
}
|
|
6006
6034
|
};
|
|
6007
|
-
function
|
|
6035
|
+
function Hl(e, t, n, s, i, o) {
|
|
6008
6036
|
return M(e.$slots, "default", {
|
|
6009
6037
|
galleryItems: o.galleryItems,
|
|
6010
6038
|
categories: o.categories,
|
|
@@ -6013,7 +6041,7 @@ function Ea(e, t, n, s, i, o) {
|
|
|
6013
6041
|
selectGalleryItem: o.selectGalleryItem
|
|
6014
6042
|
});
|
|
6015
6043
|
}
|
|
6016
|
-
const
|
|
6044
|
+
const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
|
|
6017
6045
|
i18nOptions: {
|
|
6018
6046
|
namespaces: "TemplateSelector",
|
|
6019
6047
|
messages: {
|
|
@@ -6057,10 +6085,10 @@ const za = /* @__PURE__ */ F(Aa, [["render", Ea]]), Ra = {
|
|
|
6057
6085
|
},
|
|
6058
6086
|
name: "TemplateSelector",
|
|
6059
6087
|
components: {
|
|
6060
|
-
HorizontalScroll:
|
|
6061
|
-
DocumentIcon:
|
|
6062
|
-
DocumentRecent:
|
|
6063
|
-
GalleryLogic:
|
|
6088
|
+
HorizontalScroll: vl,
|
|
6089
|
+
DocumentIcon: ul,
|
|
6090
|
+
DocumentRecent: il,
|
|
6091
|
+
GalleryLogic: Ul,
|
|
6064
6092
|
IsPremiumPreStep: Y,
|
|
6065
6093
|
CDropdown: fe,
|
|
6066
6094
|
CDropdownItem: ge
|
|
@@ -6230,39 +6258,39 @@ const za = /* @__PURE__ */ F(Aa, [["render", Ea]]), Ra = {
|
|
|
6230
6258
|
await Ue(t) && be("info", this.$t("copyMessage"));
|
|
6231
6259
|
}
|
|
6232
6260
|
}
|
|
6233
|
-
},
|
|
6261
|
+
}, Gl = { class: "h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16" }, Nl = { style: { width: "100%", "padding-bottom": "5em" } }, Wl = { class: "section-title" }, jl = { class: "section-subtitle" }, Zl = {
|
|
6234
6262
|
key: 0,
|
|
6235
6263
|
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"
|
|
6236
|
-
},
|
|
6264
|
+
}, Kl = {
|
|
6237
6265
|
key: 1,
|
|
6238
6266
|
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"
|
|
6239
|
-
},
|
|
6267
|
+
}, Ql = { style: { width: "100%", "padding-bottom": "5em" } }, Yl = { class: "section-title w-full" }, Jl = { class: "flex items-center justify-between" }, Xl = ["innerHTML"], ea = {
|
|
6240
6268
|
key: 0,
|
|
6241
6269
|
class: "bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg"
|
|
6242
|
-
},
|
|
6270
|
+
}, ta = ["textContent"], na = {
|
|
6243
6271
|
class: "section-title",
|
|
6244
6272
|
style: { flex: "1 1 auto", "padding-bottom": "0.5em" }
|
|
6245
|
-
},
|
|
6246
|
-
function
|
|
6247
|
-
const r = m("CIcon"), g = m("CButton"), h = m("CDropdownItem"), b = m("CDropdown"), w = m("DocumentIcon"), k = m("IsPremiumPreStep"), S = m("HorizontalScroll"), D = m("GalleryLogic"), y = m("DocumentRecent"), f =
|
|
6248
|
-
return
|
|
6249
|
-
|
|
6273
|
+
}, ia = { class: "section-subtitle" };
|
|
6274
|
+
function oa(e, t, n, s, i, o) {
|
|
6275
|
+
const r = m("CIcon"), g = m("CButton"), h = m("CDropdownItem"), b = m("CDropdown"), w = m("DocumentIcon"), k = m("IsPremiumPreStep"), S = m("HorizontalScroll"), D = m("GalleryLogic"), y = m("DocumentRecent"), f = le("tooltip");
|
|
6276
|
+
return a(), p("div", Gl, [
|
|
6277
|
+
l("div", {
|
|
6250
6278
|
class: L([{ small: e.mq === "sm" }, "font-inter form-start main mx-auto max-w-5xl"])
|
|
6251
6279
|
}, [
|
|
6252
6280
|
M(e.$slots, "header", {}, void 0, !0),
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6281
|
+
l("div", Nl, [
|
|
6282
|
+
l("div", Wl, [
|
|
6283
|
+
l("div", null, d(e.$t("myTemplates")), 1),
|
|
6284
|
+
l("div", jl, d(e.$t("myTemplatesSubTitle")), 1)
|
|
6257
6285
|
]),
|
|
6258
6286
|
c(k, { feature: "useDocTemplate" }, {
|
|
6259
6287
|
default: u(({ onClick: x }) => [
|
|
6260
|
-
(
|
|
6288
|
+
(a(), C(G(i.isExpanded ? "div" : "HorizontalScroll"), {
|
|
6261
6289
|
class: L([{ "is-expanded": i.isExpanded }, "template-list"]),
|
|
6262
6290
|
onExpand: t[2] || (t[2] = (_) => i.isExpanded = !0)
|
|
6263
6291
|
}, {
|
|
6264
6292
|
default: u(() => [
|
|
6265
|
-
(
|
|
6293
|
+
(a(!0), p($, null, P(o.myTemplates, (_) => (a(), C(w, {
|
|
6266
6294
|
key: _.id,
|
|
6267
6295
|
"is-add": _.id === "empty",
|
|
6268
6296
|
"is-placeholder": _.placeholder,
|
|
@@ -6273,17 +6301,17 @@ function el(e, t, n, s, i, o) {
|
|
|
6273
6301
|
onTriggerOpenTemplate: (A) => _.placeholder ? null : o.canUseTemplate(_) ? o.select({ templateId: _.id }) : x()
|
|
6274
6302
|
}, {
|
|
6275
6303
|
badge: u(() => [
|
|
6276
|
-
o.canUseTemplate(_) ? !_.doConsumeDocumentQuota && !_.placeholder ? (
|
|
6304
|
+
o.canUseTemplate(_) ? !_.doConsumeDocumentQuota && !_.placeholder ? (a(), p("div", Kl, d(e.$t("_common:free")), 1)) : v("", !0) : (a(), p("div", Zl, [
|
|
6277
6305
|
c(r, {
|
|
6278
6306
|
type: "lock",
|
|
6279
6307
|
size: "12",
|
|
6280
6308
|
"stroke-width": "2.5"
|
|
6281
6309
|
}),
|
|
6282
|
-
t[4] || (t[4] =
|
|
6310
|
+
t[4] || (t[4] = l("div", { class: "text-[11px] font-semibold" }, "Pro", -1))
|
|
6283
6311
|
]))
|
|
6284
6312
|
]),
|
|
6285
6313
|
default: u(() => [
|
|
6286
|
-
_.onModify === "create" && !_.doConsumeDocumentQuota ? N((
|
|
6314
|
+
_.onModify === "create" && !_.doConsumeDocumentQuota ? N((a(), C(g, {
|
|
6287
6315
|
key: 0,
|
|
6288
6316
|
icon: "info",
|
|
6289
6317
|
type: "none",
|
|
@@ -6297,7 +6325,7 @@ function el(e, t, n, s, i, o) {
|
|
|
6297
6325
|
content: e.$t("icon.freeTooltip"),
|
|
6298
6326
|
placement: "bottom"
|
|
6299
6327
|
}]
|
|
6300
|
-
]) : (
|
|
6328
|
+
]) : (a(), C(b, {
|
|
6301
6329
|
key: 1,
|
|
6302
6330
|
"append-to-body": "",
|
|
6303
6331
|
style: { top: "-8px", right: "-4px" },
|
|
@@ -6315,7 +6343,7 @@ function el(e, t, n, s, i, o) {
|
|
|
6315
6343
|
])
|
|
6316
6344
|
]),
|
|
6317
6345
|
default: u(() => [
|
|
6318
|
-
n.onEditTemplate ? (
|
|
6346
|
+
n.onEditTemplate ? (a(), C(h, {
|
|
6319
6347
|
key: 0,
|
|
6320
6348
|
"icon-left": "template-color",
|
|
6321
6349
|
onClick: (A) => n.onEditTemplate(_.id)
|
|
@@ -6324,7 +6352,7 @@ function el(e, t, n, s, i, o) {
|
|
|
6324
6352
|
T(d(e.$t("_common:edit", { thing: e.$t("_common:template") })), 1)
|
|
6325
6353
|
]),
|
|
6326
6354
|
_: 2
|
|
6327
|
-
}, 1032, ["onClick"])) :
|
|
6355
|
+
}, 1032, ["onClick"])) : v("", !0),
|
|
6328
6356
|
c(h, {
|
|
6329
6357
|
"icon-props": { size: 16 },
|
|
6330
6358
|
"icon-left": "edit",
|
|
@@ -6370,7 +6398,7 @@ function el(e, t, n, s, i, o) {
|
|
|
6370
6398
|
_: 1
|
|
6371
6399
|
})
|
|
6372
6400
|
]),
|
|
6373
|
-
n.showGallery ? (
|
|
6401
|
+
n.showGallery ? (a(), C(D, {
|
|
6374
6402
|
key: 0,
|
|
6375
6403
|
"fetch-gallery": o.fetchGallery,
|
|
6376
6404
|
"use-template": o.select,
|
|
@@ -6385,10 +6413,10 @@ function el(e, t, n, s, i, o) {
|
|
|
6385
6413
|
selectCategory: z,
|
|
6386
6414
|
selectGalleryItem: X
|
|
6387
6415
|
}) => [
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6416
|
+
l("div", Ql, [
|
|
6417
|
+
l("div", Yl, [
|
|
6418
|
+
l("div", Jl, [
|
|
6419
|
+
l("div", null, d(e.$t("gallery")), 1),
|
|
6392
6420
|
c(b, {
|
|
6393
6421
|
style: { "margin-left": "calc(0.5 * var(--rem))" },
|
|
6394
6422
|
onClick: t[3] || (t[3] = q(() => {
|
|
@@ -6408,7 +6436,7 @@ function el(e, t, n, s, i, o) {
|
|
|
6408
6436
|
}, 1024)
|
|
6409
6437
|
]),
|
|
6410
6438
|
default: u(() => [
|
|
6411
|
-
(
|
|
6439
|
+
(a(!0), p($, null, P(_, (I) => (a(), C(h, {
|
|
6412
6440
|
key: I.key,
|
|
6413
6441
|
"icon-right": A && A.key === I.key ? "check" : "",
|
|
6414
6442
|
onClick: (ie) => z(I)
|
|
@@ -6422,14 +6450,14 @@ function el(e, t, n, s, i, o) {
|
|
|
6422
6450
|
_: 2
|
|
6423
6451
|
}, 1024)
|
|
6424
6452
|
]),
|
|
6425
|
-
|
|
6453
|
+
l("div", {
|
|
6426
6454
|
class: "section-subtitle",
|
|
6427
6455
|
innerHTML: e.$t("gallerySubTitle")
|
|
6428
|
-
}, null, 8,
|
|
6456
|
+
}, null, 8, Xl)
|
|
6429
6457
|
]),
|
|
6430
6458
|
c(S, { class: "template-list" }, {
|
|
6431
6459
|
default: u(() => [
|
|
6432
|
-
(
|
|
6460
|
+
(a(!0), p($, null, P(x, (I) => (a(), C(w, {
|
|
6433
6461
|
key: I.id,
|
|
6434
6462
|
"is-placeholder": I.placeholder,
|
|
6435
6463
|
media: { type: "image", resourceUrl: I.backgroundUrl },
|
|
@@ -6438,17 +6466,17 @@ function el(e, t, n, s, i, o) {
|
|
|
6438
6466
|
onTriggerOpenTemplate: (ie) => I.placeholder ? null : X(I)
|
|
6439
6467
|
}, {
|
|
6440
6468
|
badge: u(() => [
|
|
6441
|
-
I.product ? (
|
|
6442
|
-
I.product.isPurchased ? (
|
|
6469
|
+
I.product ? (a(), p("div", ea, [
|
|
6470
|
+
I.product.isPurchased ? (a(), C(r, {
|
|
6443
6471
|
key: 0,
|
|
6444
6472
|
type: "check",
|
|
6445
6473
|
size: "14",
|
|
6446
6474
|
"stroke-width": "3"
|
|
6447
|
-
})) : (
|
|
6475
|
+
})) : (a(), p("div", {
|
|
6448
6476
|
key: 1,
|
|
6449
6477
|
textContent: d(I.product.price)
|
|
6450
|
-
}, null, 8,
|
|
6451
|
-
])) :
|
|
6478
|
+
}, null, 8, ta))
|
|
6479
|
+
])) : v("", !0)
|
|
6452
6480
|
]),
|
|
6453
6481
|
_: 2
|
|
6454
6482
|
}, 1032, ["is-placeholder", "media", "name", "onTriggerOpenTemplate"]))), 128))
|
|
@@ -6458,16 +6486,16 @@ function el(e, t, n, s, i, o) {
|
|
|
6458
6486
|
])
|
|
6459
6487
|
]),
|
|
6460
6488
|
_: 1
|
|
6461
|
-
}, 8, ["fetch-gallery", "use-template", "show-template-author", "modal-props", "gallery-category"])) :
|
|
6489
|
+
}, 8, ["fetch-gallery", "use-template", "show-template-author", "modal-props", "gallery-category"])) : v("", !0),
|
|
6462
6490
|
c(y, {
|
|
6463
6491
|
style: { width: "100%", "padding-bottom": "5em" },
|
|
6464
6492
|
onUseDocTemplate: o.select,
|
|
6465
6493
|
onSaveTemplate: o.openTemplateFormModal
|
|
6466
6494
|
}, {
|
|
6467
6495
|
default: u(() => [
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6496
|
+
l("div", na, [
|
|
6497
|
+
l("div", null, d(e.$t("recent")), 1),
|
|
6498
|
+
l("div", ia, d(e.$t("recentSubTitle")), 1)
|
|
6471
6499
|
])
|
|
6472
6500
|
]),
|
|
6473
6501
|
_: 1
|
|
@@ -6475,9 +6503,9 @@ function el(e, t, n, s, i, o) {
|
|
|
6475
6503
|
], 2)
|
|
6476
6504
|
]);
|
|
6477
6505
|
}
|
|
6478
|
-
const
|
|
6506
|
+
const sa = /* @__PURE__ */ F(ql, [["render", oa], ["__scopeId", "data-v-2fb04074"]]);
|
|
6479
6507
|
var ce, Ve;
|
|
6480
|
-
function
|
|
6508
|
+
function la() {
|
|
6481
6509
|
if (Ve) return ce;
|
|
6482
6510
|
Ve = 1;
|
|
6483
6511
|
var e = Lt(), t = Vt(), n = Bt();
|
|
@@ -6491,10 +6519,10 @@ function nl() {
|
|
|
6491
6519
|
return ce = s, ce;
|
|
6492
6520
|
}
|
|
6493
6521
|
var ue, Be;
|
|
6494
|
-
function
|
|
6522
|
+
function aa() {
|
|
6495
6523
|
if (Be) return ue;
|
|
6496
6524
|
Be = 1;
|
|
6497
|
-
var e =
|
|
6525
|
+
var e = la(), t = Mt();
|
|
6498
6526
|
function n(s, i) {
|
|
6499
6527
|
return e(s, i, function(o, r) {
|
|
6500
6528
|
return t(s, r);
|
|
@@ -6503,16 +6531,16 @@ function il() {
|
|
|
6503
6531
|
return ue = n, ue;
|
|
6504
6532
|
}
|
|
6505
6533
|
var me, Me;
|
|
6506
|
-
function
|
|
6534
|
+
function ra() {
|
|
6507
6535
|
if (Me) return me;
|
|
6508
6536
|
Me = 1;
|
|
6509
|
-
var e =
|
|
6537
|
+
var e = aa(), t = Yt(), n = t(function(s, i) {
|
|
6510
6538
|
return s == null ? {} : e(s, i);
|
|
6511
6539
|
});
|
|
6512
6540
|
return me = n, me;
|
|
6513
6541
|
}
|
|
6514
|
-
var
|
|
6515
|
-
const
|
|
6542
|
+
var da = ra();
|
|
6543
|
+
const ca = /* @__PURE__ */ Oe(da), ua = {
|
|
6516
6544
|
name: "DocForm",
|
|
6517
6545
|
i18nOptions: {
|
|
6518
6546
|
namespaces: "widgetDocForm",
|
|
@@ -6526,8 +6554,8 @@ const al = /* @__PURE__ */ Oe(sl), ll = {
|
|
|
6526
6554
|
}
|
|
6527
6555
|
},
|
|
6528
6556
|
components: {
|
|
6529
|
-
TemplateSelector:
|
|
6530
|
-
DocumentForm:
|
|
6557
|
+
TemplateSelector: sa,
|
|
6558
|
+
DocumentForm: Zs,
|
|
6531
6559
|
PostSend: un
|
|
6532
6560
|
},
|
|
6533
6561
|
provide() {
|
|
@@ -6647,7 +6675,7 @@ const al = /* @__PURE__ */ Oe(sl), ll = {
|
|
|
6647
6675
|
},
|
|
6648
6676
|
async onTemplateSelect({ templateId: e, documentId: t, formData: n }) {
|
|
6649
6677
|
var i;
|
|
6650
|
-
const s =
|
|
6678
|
+
const s = ca({ ...this.rawDoc }, [
|
|
6651
6679
|
"__tempId",
|
|
6652
6680
|
"externalReferences",
|
|
6653
6681
|
"subscriberCompanyUserIds",
|
|
@@ -6696,23 +6724,23 @@ const al = /* @__PURE__ */ Oe(sl), ll = {
|
|
|
6696
6724
|
return !t.sms && !t.email;
|
|
6697
6725
|
}
|
|
6698
6726
|
}
|
|
6699
|
-
},
|
|
6727
|
+
}, ma = { class: "flex h-full w-full flex-col" }, pa = {
|
|
6700
6728
|
key: 0,
|
|
6701
6729
|
class: "flex h-full w-full flex-col"
|
|
6702
|
-
},
|
|
6703
|
-
function
|
|
6730
|
+
}, ha = { class: "relative flex h-16 items-center justify-center border-b border-gray-200" };
|
|
6731
|
+
function fa(e, t, n, s, i, o) {
|
|
6704
6732
|
const r = m("CButton"), g = m("TemplateSelector"), h = m("DocumentForm"), b = m("PostSend");
|
|
6705
|
-
return
|
|
6706
|
-
i.view === "templateSelect" ? (
|
|
6707
|
-
|
|
6708
|
-
n.closeFunc ? (
|
|
6733
|
+
return a(), p("div", ma, [
|
|
6734
|
+
i.view === "templateSelect" ? (a(), p("div", pa, [
|
|
6735
|
+
l("div", ha, [
|
|
6736
|
+
n.closeFunc ? (a(), C(r, {
|
|
6709
6737
|
key: 0,
|
|
6710
6738
|
icon: "x",
|
|
6711
6739
|
circle: "",
|
|
6712
6740
|
class: "absolute left-4 top-1/2 -translate-y-1/2",
|
|
6713
6741
|
onClick: n.closeFunc
|
|
6714
|
-
}, null, 8, ["onClick"])) :
|
|
6715
|
-
|
|
6742
|
+
}, null, 8, ["onClick"])) : v("", !0),
|
|
6743
|
+
l("div", null, d(e.$t("selectNavTitle")), 1)
|
|
6716
6744
|
]),
|
|
6717
6745
|
c(g, {
|
|
6718
6746
|
"on-use-template": o.onTemplateSelect,
|
|
@@ -6724,7 +6752,7 @@ function ul(e, t, n, s, i, o) {
|
|
|
6724
6752
|
"include-partner-templates": "",
|
|
6725
6753
|
class: "body-scroll min-h-0"
|
|
6726
6754
|
}, null, 8, ["on-use-template", "show-gallery", "gallery-category", "on-save-template", "show-keep-clients-option"])
|
|
6727
|
-
])) : i.view === "editor" ? (
|
|
6755
|
+
])) : i.view === "editor" ? (a(), C(h, {
|
|
6728
6756
|
key: 1,
|
|
6729
6757
|
document: i.document,
|
|
6730
6758
|
"set-doc-value": o.setDocValue,
|
|
@@ -6740,7 +6768,7 @@ function ul(e, t, n, s, i, o) {
|
|
|
6740
6768
|
"show-keep-clients-option": n.showKeepClientsOption
|
|
6741
6769
|
}, {
|
|
6742
6770
|
"nav-right-action": u(() => [
|
|
6743
|
-
n.isEditingTemplate ? (
|
|
6771
|
+
n.isEditingTemplate ? (a(), C(r, {
|
|
6744
6772
|
key: 0,
|
|
6745
6773
|
loading: i.isSavingTemplate,
|
|
6746
6774
|
disabled: !o.canDoActions,
|
|
@@ -6755,18 +6783,18 @@ function ul(e, t, n, s, i, o) {
|
|
|
6755
6783
|
T(d(e.$t("_common:save", { thing: e.$t("_common:template") })), 1)
|
|
6756
6784
|
]),
|
|
6757
6785
|
_: 1
|
|
6758
|
-
}, 8, ["loading", "disabled", "onClick"])) :
|
|
6786
|
+
}, 8, ["loading", "disabled", "onClick"])) : v("", !0)
|
|
6759
6787
|
]),
|
|
6760
6788
|
_: 1
|
|
6761
|
-
}, 8, ["document", "set-doc-value", "set-form-value", "remove-doc-value", "remove-doc-key-value", "on-save-template", "on-save-document", "is-loading", "close", "go-back", "show-keep-clients-option"])) : i.view === "postSend" ? (
|
|
6789
|
+
}, 8, ["document", "set-doc-value", "set-form-value", "remove-doc-value", "remove-doc-key-value", "on-save-template", "on-save-document", "is-loading", "close", "go-back", "show-keep-clients-option"])) : i.view === "postSend" ? (a(), C(b, {
|
|
6762
6790
|
key: 2,
|
|
6763
6791
|
document: i.document,
|
|
6764
6792
|
"on-send-func": n.closeFunc,
|
|
6765
6793
|
"on-close-func": n.closeFunc
|
|
6766
|
-
}, null, 8, ["document", "on-send-func", "on-close-func"])) :
|
|
6794
|
+
}, null, 8, ["document", "on-send-func", "on-close-func"])) : v("", !0)
|
|
6767
6795
|
]);
|
|
6768
6796
|
}
|
|
6769
|
-
const
|
|
6797
|
+
const Ha = /* @__PURE__ */ F(ua, [["render", fa], ["__scopeId", "data-v-4c6b6a6b"]]);
|
|
6770
6798
|
export {
|
|
6771
|
-
|
|
6799
|
+
Ha as default
|
|
6772
6800
|
};
|