@cling-se/widget 0.22.0 → 0.22.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 +12 -0
- package/dist/{AddClientCallout-CxbvK6ZG.js → AddClientCallout-CtfDZ5iE.js} +4 -4
- package/dist/{AnswerModal-vTetGwVn.js → AnswerModal-DER90JgH.js} +4 -4
- package/dist/{AttachmentItem-DSHNRIq_.js → AttachmentItem-CFxoxFwU.js} +11 -11
- package/dist/{BaseUpload-CWaM_bb7.js → BaseUpload-D3vsnEbC.js} +2 -2
- package/dist/{BlockMedia-B1T85G4R.js → BlockMedia-CrmRCTpi.js} +9 -9
- package/dist/{CCallout-BieMmWa4.js → CCallout-B86E6HJd.js} +1 -1
- package/dist/{CCurrencyDropdown-DKWtCUE_.js → CCurrencyDropdown-B2L-Pv3G.js} +3 -3
- package/dist/{CDropdownItem-pNNH9fV3.js → CDropdownItem-BU65rYaX.js} +7 -7
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-B57OaS--.js → CFormField.vue_vue_type_script_setup_true_lang-d4-FghaL.js} +4 -4
- package/dist/{CPhoneFormat-CyrQRGmd.js → CPhoneFormat-CSys3pPM.js} +1 -1
- package/dist/{CPhoneInput-BQHgpUCY.js → CPhoneInput-hF_VGitf.js} +5 -5
- package/dist/{CPriceInput-DnFN-I6p.js → CPriceInput-CLM3EzaL.js} +2 -2
- package/dist/{CSelect-DB4-JxH8.js → CSelect-DsoRaNYd.js} +1 -1
- package/dist/{CSkeleton-DpRDxR6D.js → CSkeleton-B0wL3--W.js} +1 -1
- package/dist/{ClientAutocomplete-BjwvkuJ-.js → ClientAutocomplete-qkpa-KG_.js} +7 -7
- package/dist/{ClientModal-oBN2VSio.js → ClientModal-BHUD-VYM.js} +16 -16
- package/dist/{ColorPicker-B5rSvXLV.js → ColorPicker-uVefUdOd.js} +1 -1
- package/dist/{CompanyModal-QrsUL6Et.js → CompanyModal-C38jvSZX.js} +68 -69
- package/dist/{ContentWrapper-Yx-KMsfH.js → ContentWrapper-Du0rszAK.js} +15 -15
- package/dist/{CoverBlockSettings-C8giTiEZ.js → CoverBlockSettings-DqKNt5cM.js} +7 -7
- package/dist/{DocAnswer-Djyhwfrp.js → DocAnswer-Bm6FQnu7.js} +2 -2
- package/dist/{DocDetails-Dv6noPvB.js → DocDetails-Cg1EQ2xc.js} +4 -4
- package/dist/{DocForm-BFHchJ6w.js → DocForm-DUjeY7qQ.js} +440 -438
- package/dist/{DocFormSend-K2rbjklj.js → DocFormSend-B8x93Oo_.js} +2 -2
- package/dist/{DocLinks-DpUl89XR.js → DocLinks-bnZCCfQJ.js} +2 -2
- package/dist/{DocModalBase-BlTZ8CY3.js → DocModalBase-CwuAA5_c.js} +1 -1
- package/dist/{DocPrint-Bmfl4Abk.js → DocPrint-DkmwNCYi.js} +1 -1
- package/dist/{DocReceipt-3wi5YXqR.js → DocReceipt-BzrwYz7z.js} +2 -2
- package/dist/{DocSendReminder-CHqgC_wM.js → DocSendReminder--ZuTWwRa.js} +1 -1
- package/dist/{DocTextEditor-BGzwRwjt.js → DocTextEditor-CblX6a9b.js} +8 -8
- package/dist/{DocTimeline-BG7ldFgR.js → DocTimeline-C3cx2eIz.js} +8 -8
- package/dist/{DocumentClient-CLCAh4lI.js → DocumentClient-B9yEPQ1U.js} +5 -5
- package/dist/{DocumentLayout-DHSEYClM.js → DocumentLayout-BMgU3m7Q.js} +5 -5
- package/dist/{DocumentLogotype-0jH2-sr7.js → DocumentLogotype-BBA1HLK3.js} +28 -31
- package/dist/{DocumentVoided-BAS8mATO.js → DocumentVoided-AL_vXoWD.js} +1 -1
- package/dist/{EmbedInput-DnSz1tbL.js → EmbedInput-BHy9NMjl.js} +3 -3
- package/dist/{EmbedSettings-BQ1kKupC.js → EmbedSettings-DwcY0r8D.js} +3 -3
- package/dist/{ErrorCallout-XMtdcNvE.js → ErrorCallout-DKV9zW1H.js} +1 -1
- package/dist/{FilePreviewModal-Bv28RVrN.js → FilePreviewModal-DEoFvxri.js} +20 -20
- package/dist/{Flag-CcF7qtHi.js → Flag-BZ7C12iN.js} +1 -1
- package/dist/{HeaderSettings-SKEJyM9y.js → HeaderSettings-Bsj1JZNt.js} +9 -9
- package/dist/{ImageSelectModal-BNXs_Rfh.js → ImageSelectModal-Dd9le6p5.js} +3 -3
- package/dist/{ImageUploadWrapper-BmlB0qHZ.js → ImageUploadWrapper-DY9TKhpB.js} +2 -2
- package/dist/{Index-Dz3beMLO.js → Index-4ZB096MF.js} +8 -8
- package/dist/{Index-DRadSzmh.js → Index-B1HU3FW8.js} +3 -3
- package/dist/{Index-Ca6-XJ1q.js → Index-B3S-W2Du.js} +14 -14
- package/dist/{Index-BNetDL7G.js → Index-B8v_k79U.js} +4 -4
- package/dist/{Index-CfpNMWEI.js → Index-BPua2gSJ.js} +4 -4
- package/dist/{Index-GmMgg4ZI.js → Index-BSDQejtT.js} +7 -7
- package/dist/{Index-B1mvOHsr.js → Index-BW4sv9So.js} +5 -5
- package/dist/{Index-BDW4tvrc.js → Index-BWog4DkS.js} +2 -2
- package/dist/{Index-B4EqZ9op.js → Index-BZ5ZfAMl.js} +5 -5
- package/dist/Index-BfMZgBeX.js +4 -0
- package/dist/{Index-CVoJGfTj.js → Index-Bx8Dt9rr.js} +2 -2
- package/dist/{Index-Coef67Wb.js → Index-C9W7656O.js} +5 -5
- package/dist/{Index-ec9osPpw.js → Index-CB7F-c3z.js} +4 -4
- package/dist/{Index-B8soD6pI.js → Index-CEg8sUf6.js} +2 -2
- package/dist/{Index-BLC_eYvf.js → Index-CEm7_7xb.js} +2 -2
- package/dist/{Index-Bxi4pinD.js → Index-CGDHE6Q9.js} +3 -3
- package/dist/{Index-BS1J5b8c.js → Index-CadObAqC.js} +3 -3
- package/dist/{Index-mcDMCki9.js → Index-Cazuortx.js} +15 -15
- package/dist/{Index-LNHTL5EH.js → Index-Cfh_uoVu.js} +1 -1
- package/dist/{Index-CDdxLKdQ.js → Index-D9S6btwh.js} +4 -4
- package/dist/{Index-C9k2n-HK.js → Index-DCeSSD89.js} +4 -4
- package/dist/{Index-BRIv1n05.js → Index-DLzhjgNh.js} +4 -4
- package/dist/{Index-B_R1p7cp.js → Index-Da3NMw99.js} +1 -1
- package/dist/{Index-DquGwrE6.js → Index-DiQG7Yys.js} +8 -8
- package/dist/{Index-DU19comM.js → Index-DkuudM32.js} +6 -6
- package/dist/{Index-C6r2p8Qd.js → Index-DpNsBSK5.js} +3 -3
- package/dist/{Index-Bd3gjqXz.js → Index-DsAM46X9.js} +4 -4
- package/dist/{Index-C2Jql1QC.js → Index-IOHmUaDV.js} +8 -8
- package/dist/{Index-Bz6vrP4D.js → Index-N95Kg_Bu.js} +4 -4
- package/dist/{Index-Ra_-tX11.js → Index-T8YnqXUP.js} +7 -7
- package/dist/{Index-BbEj20KG.js → Index-bSfn5DlT.js} +8 -8
- package/dist/{Index-CYjEFdMF.js → Index-hOzI3WwH.js} +2 -2
- package/dist/{Index-BS-ERsZ7.js → Index-lxyzCTwv.js} +9 -9
- package/dist/{Index-CQSkYi57.js → Index-usMDK34R.js} +6 -6
- package/dist/{Index.vue_vue_type_script_lang-DOtAXSQl.js → Index.vue_vue_type_script_lang-CyrjCnmM.js} +2 -2
- package/dist/{InputToggleRow-DH7USYPf.js → InputToggleRow-DX08yhB8.js} +1 -1
- package/dist/{ManualPopover-JDRhdC8G.js → ManualPopover-DjkDQLEk.js} +1 -1
- package/dist/{MediaWrapper-DdbmCwGw.js → MediaWrapper-BRDS1uEY.js} +3 -3
- package/dist/{NotBindingText-CwV-MkgL.js → NotBindingText-gttVLkSY.js} +2 -2
- package/dist/{PackageGroup-CH-8hyAF.js → PackageGroup-DqCNizOl.js} +5 -5
- package/dist/{PdfTerms-BBeN_k6I.js → PdfTerms-9EF-oTZV.js} +2 -2
- package/dist/{PdfViewer-Du_M79jv.js → PdfViewer-fgokwyxy.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BKJdTPrg.js → PlainHtml.vue_vue_type_script_setup_true_lang-wz4hWvo8.js} +1 -1
- package/dist/{PriceHeader-Be2QwWzs.js → PriceHeader-DBiTZGL4.js} +7 -7
- package/dist/{SearchApi-dNunyqch.js → SearchApi-DP2NKS7Z.js} +1 -1
- package/dist/{SendForm-BIIwVZwY.js → SendForm-Dx-meiU3.js} +535 -514
- package/dist/{Setup-DBbHXz4_.js → Setup-KZckFxmn.js} +1 -1
- package/dist/{SmartList-C2JUKK2W.js → SmartList-C7tf3UFs.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-CzrvSsIg.js → Sortable.vue_vue_type_script_setup_true_lang-CKwuc60B.js} +1 -1
- package/dist/{TermsSettings-BZBWd3c9.js → TermsSettings-O43bydwI.js} +5 -5
- package/dist/{ThemeColorRow-7KF7icN8.js → ThemeColorRow-BiIviRnJ.js} +3 -3
- package/dist/{ToggleBinding-w8lNunzO.js → ToggleBinding-DNh6J5WO.js} +4 -4
- package/dist/{UploadModal-BRdimOyC.js → UploadModal-BLnwHEtM.js} +2 -2
- package/dist/{VideoPlayerInput-BHmr7HvX.js → VideoPlayerInput-CDSsWKbt.js} +4 -4
- package/dist/{VideoPlayerSettings-fI8gpjks.js → VideoPlayerSettings-9e0rWXBn.js} +2 -2
- package/dist/{VideoSelectModal-Beq5yE0M.js → VideoSelectModal-DdmGQUJs.js} +3 -3
- package/dist/{focusDrawerMixin-vhY6JO7g.js → focusDrawerMixin-Cz1mPbI5.js} +1 -1
- package/dist/{formDrawerState-ChHVYfc3.js → formDrawerState-VO67JhNj.js} +1 -1
- package/dist/{fortnoxTheme-BGyYnb8i.js → fortnoxTheme-C6LfSfkU.js} +1 -1
- package/dist/{helpers-Dw4CluFv.js → helpers-DdvMGJyI.js} +1 -1
- package/dist/{index-DihGX5od.js → index--tMYYuEo.js} +8 -8
- package/dist/{index-C-tsPusW.js → index-BtdoM5zU.js} +1 -1
- package/dist/{index-syUJ22zc.js → index-C6t6B42B.js} +8 -7
- package/dist/{index-BcnDsk0Z.js → index-CYrm4Bbf.js} +1 -1
- package/dist/{index-BUPqyA87.js → index-Cn5TO9wL.js} +1 -1
- package/dist/{index-DJYVhEQt.js → index-DrxPFi0q.js} +3 -3
- package/dist/{index-CPfrJsi9.js → index-SreRcZHY.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +149 -149
- package/dist/{main-BBhJGb7I.js → main-BI2UvBxx.js} +4953 -4997
- package/dist/{mapFormMixin-CCKubywa.js → mapFormMixin-DmIyfVCN.js} +2 -2
- package/dist/{omit-Cdd54eFA.js → omit-FBv_EXqi.js} +1 -1
- package/dist/{splitpanes-nCfEUpmu.js → splitpanes-CpTZw8TJ.js} +1 -1
- package/dist/{template-B-Ds8x_U.js → template-B4OhhS85.js} +1 -1
- package/dist/{tippy.esm-DdYqbHFh.js → tippy.esm-D5nfFX7g.js} +5 -5
- package/dist/{useTermsModal-Z_pZQ4H2.js → useTermsModal-CvdV0cT0.js} +4 -4
- package/dist/{utils-C3tvmZHk.js → utils-Blt-S487.js} +1 -1
- package/dist/{validation-CWxbj-wT.js → validation-ZZ0eQUj2.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-aOBMRrRj.js +0 -4
- package/dist/publicSenderState-LkIY-kEl.js +0 -21
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import et from "./AnswerModal-
|
|
2
|
-
import { o as tt } from "./index-
|
|
3
|
-
import { w as Q, C as q, a as re } from "./CDropdownItem-
|
|
4
|
-
import { _ as F, m as Z, cQ as ye, g as P, b as m, d as p, o as
|
|
1
|
+
import et from "./AnswerModal-DER90JgH.js";
|
|
2
|
+
import { o as tt } from "./index-Cn5TO9wL.js";
|
|
3
|
+
import { w as Q, C as q, a as re } from "./CDropdownItem-BU65rYaX.js";
|
|
4
|
+
import { _ as F, m as Z, cQ as ye, g as P, b as m, d as p, o as a, j as l, f as c, t as d, w as u, s as _, e as C, X as z, al as ne, an as j, y as B, U as A, aV as J, c as b, ap as W, T as be, F as I, a7 as de, A as nt, B as xe, I as U, p as Te, i as K, a3 as De, cR as it, J as O, af as M, q as E, a as R, cS as ot, z as st, Y as ke, u as Ae, S as lt, aG as Se, Z as te, cO as at, a5 as ie, v as G, ai as rt, aF as dt, aC as we, l as ae, cg as Ee, ch as ze, x as ve, n as ct, ax as Ie, ci as ut, cT as ue, cU as mt, bn as pt, a1 as Re, cj as ht, aa as Oe, cV as ft, cW as gt, aL as Ue, r as yt, aE as Ce, aB as He, cX as vt, cY as Ct, cZ as bt, aA as kt, a9 as wt, c_ as _t, c$ as xt, d0 as Tt, C as qe, d1 as Dt, d2 as St, d3 as It, cl as $t, d4 as Ft, d5 as Lt, b0 as Bt, d6 as Vt, d7 as Mt } from "./main-BI2UvBxx.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { g as Pt, l as At, _ as Et, a as zt, D as Rt } from "./DocumentLayout-
|
|
7
|
-
import { F as Ge, d as Ot } from "./tippy.esm-
|
|
8
|
-
import { m as oe, c as $e, u as Ne, i as Ut } from "./mapFormMixin-
|
|
9
|
-
import "./helpers-
|
|
10
|
-
import { a as Ht } from "./ClientAutocomplete-
|
|
11
|
-
import { _ as qt } from "./Sortable.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { C as Gt, _ as We, a as X, I as ee, s as Nt } from "./index-
|
|
13
|
-
import { _ as _e } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { S as Wt } from "./SmartList-
|
|
15
|
-
import { u as je } from "./index-
|
|
16
|
-
import { r as Fe, a as jt } from "./index-
|
|
17
|
-
import { o as Zt, r as Kt } from "./omit-
|
|
18
|
-
import { s as N } from "./formDrawerState-
|
|
6
|
+
import { g as Pt, l as At, _ as Et, a as zt, D as Rt } from "./DocumentLayout-BMgU3m7Q.js";
|
|
7
|
+
import { F as Ge, d as Ot } from "./tippy.esm-D5nfFX7g.js";
|
|
8
|
+
import { m as oe, c as $e, u as Ne, i as Ut } from "./mapFormMixin-DmIyfVCN.js";
|
|
9
|
+
import "./helpers-DdvMGJyI.js";
|
|
10
|
+
import { a as Ht } from "./ClientAutocomplete-qkpa-KG_.js";
|
|
11
|
+
import { _ as qt } from "./Sortable.vue_vue_type_script_setup_true_lang-CKwuc60B.js";
|
|
12
|
+
import { C as Gt, _ as We, a as X, I as ee, s as Nt } from "./index-C6t6B42B.js";
|
|
13
|
+
import { _ as _e } from "./CFormField.vue_vue_type_script_setup_true_lang-d4-FghaL.js";
|
|
14
|
+
import { S as Wt } from "./SmartList-C7tf3UFs.js";
|
|
15
|
+
import { u as je } from "./index-SreRcZHY.js";
|
|
16
|
+
import { r as Fe, a as jt } from "./index-BtdoM5zU.js";
|
|
17
|
+
import { o as Zt, r as Kt } from "./omit-FBv_EXqi.js";
|
|
18
|
+
import { s as N } from "./formDrawerState-VO67JhNj.js";
|
|
19
19
|
import { s as Qt } from "./dom-DOcGU3-g.js";
|
|
20
|
-
import { S as Yt } from "./SendForm-
|
|
21
|
-
import "./template-
|
|
22
|
-
import { u as Jt } from "./validation-
|
|
23
|
-
import { C as Xt } from "./CCallout-
|
|
24
|
-
import { C as en } from "./CSkeleton-
|
|
25
|
-
import { B as tn } from "./BlockMedia-
|
|
20
|
+
import { S as Yt } from "./SendForm-Dx-meiU3.js";
|
|
21
|
+
import "./template-B4OhhS85.js";
|
|
22
|
+
import { u as Jt } from "./validation-ZZ0eQUj2.js";
|
|
23
|
+
import { C as Xt } from "./CCallout-B86E6HJd.js";
|
|
24
|
+
import { C as en } from "./CSkeleton-B0wL3--W.js";
|
|
25
|
+
import { B as tn } from "./BlockMedia-CrmRCTpi.js";
|
|
26
26
|
const nn = {
|
|
27
27
|
name: "DocumentPostSendStep",
|
|
28
28
|
mixins: [Q],
|
|
@@ -136,22 +136,22 @@ const nn = {
|
|
|
136
136
|
this.onCloseFunc && this.onCloseFunc();
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
}, on = { class: "font-inter root" }, sn = { class: "container" },
|
|
139
|
+
}, on = { class: "font-inter root" }, sn = { class: "container" }, ln = { class: "icon-wrapper" }, an = ["textContent"];
|
|
140
140
|
function rn(e, t, n, s, i, o) {
|
|
141
141
|
const r = m("CIcon"), g = m("CButton");
|
|
142
|
-
return
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
return a(), p("div", on, [
|
|
143
|
+
l("div", sn, [
|
|
144
|
+
l("div", ln, [
|
|
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
|
-
}, null, 8,
|
|
154
|
-
t[0] || (t[0] =
|
|
153
|
+
}, null, 8, an),
|
|
154
|
+
t[0] || (t[0] = l("div", { class: "divider" }, null, -1)),
|
|
155
155
|
c(g, {
|
|
156
156
|
type: "secondary",
|
|
157
157
|
class: "close-button",
|
|
@@ -210,10 +210,10 @@ const dn = /* @__PURE__ */ F(nn, [["render", rn], ["__scopeId", "data-v-baaee379
|
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
212
|
function un(e, t, n, s, i, o) {
|
|
213
|
-
return
|
|
213
|
+
return a(), p("div", null, [
|
|
214
214
|
c(ne, { 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: z({
|
|
219
219
|
zIndex: n.zIndex
|
|
@@ -227,7 +227,7 @@ function un(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: B([[n.placement], "d-content"]),
|
|
233
233
|
style: z({
|
|
@@ -235,7 +235,7 @@ function un(e, t, n, s, i, o) {
|
|
|
235
235
|
}),
|
|
236
236
|
onClick: t[0] || (t[0] = j((...r) => o.onOutsideClick && o.onOutsideClick(...r), ["self"]))
|
|
237
237
|
}, [
|
|
238
|
-
|
|
238
|
+
l("div", {
|
|
239
239
|
style: z({
|
|
240
240
|
borderRadius: 0,
|
|
241
241
|
margin: 0,
|
|
@@ -282,12 +282,12 @@ const Ze = /* @__PURE__ */ F(cn, [["render", un], ["__scopeId", "data-v-f20cb0cf
|
|
|
282
282
|
emits: ["update:open"]
|
|
283
283
|
}, pn = { style: { height: "100%", "z-index": "110" } }, hn = { style: { height: "100%", overflow: "auto" } };
|
|
284
284
|
function fn(e, t, n, s, i, o) {
|
|
285
|
-
return
|
|
285
|
+
return a(), b(ne, {
|
|
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(), b(W(n.fixed ? "drawer" : "div"), be({ key: 0 }, e.$props, {
|
|
291
291
|
ref: "drawer",
|
|
292
292
|
class: [{
|
|
293
293
|
"is-sticky": !n.fixed
|
|
@@ -300,9 +300,9 @@ function fn(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", pn, [
|
|
304
|
+
l("div", hn, [
|
|
305
|
+
l("div", {
|
|
306
306
|
style: z(
|
|
307
307
|
n.fixed && {
|
|
308
308
|
maxWidth: "100%",
|
|
@@ -327,15 +327,15 @@ const gn = /* @__PURE__ */ F(mn, [["render", fn], ["__scopeId", "data-v-2bc51f6f
|
|
|
327
327
|
name: "DocumentFormNav"
|
|
328
328
|
}, vn = { class: "DocumentFormNav fixed left-0 right-0 top-0 z-[98] bg-gray-200 px-2 py-2 shadow-lg md:px-6" }, Cn = { class: "flex" }, bn = { class: "inline-flex flex-grow items-center" }, kn = { class: "inline-flex flex-auto items-center justify-center" }, wn = { class: "inline-flex flex-grow items-center justify-end" };
|
|
329
329
|
function _n(e, t, n, s, i, o) {
|
|
330
|
-
return
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
return a(), p("div", vn, [
|
|
331
|
+
l("div", Cn, [
|
|
332
|
+
l("div", bn, [
|
|
333
333
|
A(e.$slots, "left")
|
|
334
334
|
]),
|
|
335
|
-
|
|
335
|
+
l("div", kn, [
|
|
336
336
|
A(e.$slots, "center")
|
|
337
337
|
]),
|
|
338
|
-
|
|
338
|
+
l("div", wn, [
|
|
339
339
|
A(e.$slots, "right")
|
|
340
340
|
])
|
|
341
341
|
])
|
|
@@ -357,33 +357,33 @@ const xn = /* @__PURE__ */ F(yn, [["render", _n]]), Tn = {
|
|
|
357
357
|
}, Dn = { class: "inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 text-sm text-white" };
|
|
358
358
|
function Sn(e, t, n, s, i, o) {
|
|
359
359
|
const r = m("CIcon");
|
|
360
|
-
return
|
|
361
|
-
|
|
360
|
+
return a(), p("div", Dn, [
|
|
361
|
+
l("div", {
|
|
362
362
|
class: B([{
|
|
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(), b(r, {
|
|
368
368
|
key: 0,
|
|
369
369
|
type: "edit",
|
|
370
370
|
size: "20"
|
|
371
|
-
})) : (
|
|
371
|
+
})) : (a(), p(I, { key: 1 }, [
|
|
372
372
|
_(d(e.$t("edit")), 1)
|
|
373
373
|
], 64))
|
|
374
374
|
], 2),
|
|
375
|
-
|
|
375
|
+
l("div", {
|
|
376
376
|
class: B([{
|
|
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(), b(r, {
|
|
383
383
|
key: 0,
|
|
384
384
|
type: "eye",
|
|
385
385
|
size: "20"
|
|
386
|
-
})) : (
|
|
386
|
+
})) : (a(), p(I, { key: 1 }, [
|
|
387
387
|
_(d(e.$t("preview")), 1)
|
|
388
388
|
], 64))
|
|
389
389
|
], 2)
|
|
@@ -430,13 +430,13 @@ const In = /* @__PURE__ */ F(Tn, [["render", Sn]]), $n = {
|
|
|
430
430
|
}, Vn = { class: "control-direction" };
|
|
431
431
|
function Mn(e, t, n, s, i, o) {
|
|
432
432
|
const r = m("CIcon");
|
|
433
|
-
return
|
|
434
|
-
o.canToggleVisibility ? (
|
|
433
|
+
return a(), p("div", Fn, [
|
|
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 ? C("", !0) : (
|
|
439
|
+
n.isVisible ? C("", !0) : (a(), p("span", Ln, d(e.$t("hidden")), 1)),
|
|
440
440
|
c(r, {
|
|
441
441
|
type: n.isVisible ? "eye" : "eye-off",
|
|
442
442
|
size: "14",
|
|
@@ -444,9 +444,9 @@ function Mn(e, t, n, s, i, o) {
|
|
|
444
444
|
}, null, 8, ["type", "class"])
|
|
445
445
|
])) : C("", !0),
|
|
446
446
|
A(e.$slots, "default", {}, void 0, !0),
|
|
447
|
-
!o.isHidden && n.isMovable ? (
|
|
448
|
-
|
|
449
|
-
|
|
447
|
+
!o.isHidden && n.isMovable ? (a(), p("div", Bn, [
|
|
448
|
+
l("div", Vn, [
|
|
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 Mn(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 Mn(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
|
}, [
|
|
@@ -495,9 +495,9 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-5ae455ee
|
|
|
495
495
|
};
|
|
496
496
|
return Te("sectionTopNode", s), Te("setOpenDrawer", y), (w, k) => {
|
|
497
497
|
const D = m("CButton"), T = m("Animation");
|
|
498
|
-
return
|
|
498
|
+
return a(), b(T, { class: "w-full" }, {
|
|
499
499
|
default: u(() => [
|
|
500
|
-
|
|
500
|
+
l("div", {
|
|
501
501
|
class: B([[
|
|
502
502
|
{
|
|
503
503
|
"is-edit-view": w.isEditView,
|
|
@@ -515,13 +515,13 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-5ae455ee
|
|
|
515
515
|
onMouseoverPassive: k[3] || (k[3] = (v) => i.value = !0),
|
|
516
516
|
onMouseleavePassive: k[4] || (k[4] = (v) => i.value = !1)
|
|
517
517
|
}, [
|
|
518
|
-
|
|
518
|
+
l("div", {
|
|
519
519
|
class: B(["block-container", { "spacing-snug": r.value }]),
|
|
520
520
|
inert: r.value
|
|
521
521
|
}, [
|
|
522
522
|
A(w.$slots, "default", {}, void 0, !0)
|
|
523
523
|
], 10, An),
|
|
524
|
-
g.value ? (
|
|
524
|
+
g.value ? (a(), b(Pn, {
|
|
525
525
|
key: 0,
|
|
526
526
|
class: "control-root z-10",
|
|
527
527
|
"is-movable": w.canMove,
|
|
@@ -531,7 +531,7 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-5ae455ee
|
|
|
531
531
|
onRemove: k[2] || (k[2] = (v) => n("remove"))
|
|
532
532
|
}, {
|
|
533
533
|
default: u(() => [
|
|
534
|
-
w.showEditButton ? (
|
|
534
|
+
w.showEditButton ? (a(), b(D, {
|
|
535
535
|
key: 0,
|
|
536
536
|
round: "",
|
|
537
537
|
size: "small",
|
|
@@ -573,24 +573,24 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-5ae455ee
|
|
|
573
573
|
}
|
|
574
574
|
}, On = ["href"], Un = { class: "mr-2 h-5 w-5 overflow-hidden rounded bg-white" }, Hn = ["src", "alt"], qn = { class: "text-xs font-medium text-white" };
|
|
575
575
|
function Gn(e, t, n, s, i, o) {
|
|
576
|
-
return
|
|
576
|
+
return a(), p("div", {
|
|
577
577
|
class: B([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", Un, [
|
|
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, Hn)
|
|
592
592
|
]),
|
|
593
|
-
|
|
593
|
+
l("div", qn, " Made in " + d(e.$t("brand.name")), 1)
|
|
594
594
|
], 8, On)
|
|
595
595
|
], 2);
|
|
596
596
|
}
|
|
@@ -608,15 +608,15 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-fu
|
|
|
608
608
|
});
|
|
609
609
|
return (r, g) => {
|
|
610
610
|
const h = m("CButton"), y = m("portal");
|
|
611
|
-
return
|
|
611
|
+
return a(), b(y, { to: "modal" }, {
|
|
612
612
|
default: u(() => [
|
|
613
|
-
|
|
613
|
+
l("div", {
|
|
614
614
|
ref_key: "el",
|
|
615
615
|
ref: s,
|
|
616
616
|
style: z(O(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", Wn, [
|
|
620
620
|
c(h, {
|
|
621
621
|
icon: "x",
|
|
622
622
|
size: "small",
|
|
@@ -636,7 +636,7 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { 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", jn, d(r.title), 1),
|
|
640
640
|
A(r.$slots, "default")
|
|
641
641
|
])
|
|
642
642
|
], 4)
|
|
@@ -1211,15 +1211,15 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-fu
|
|
|
1211
1211
|
}, Qn = { style: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, Yn = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, Jn = ["onClick"], Xn = { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, ei = { style: { padding: "calc(0.75 * var(--rem))" } }, ti = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, ni = ["onClick"], ii = { style: { "font-size": "1.075em", "font-weight": "500" } };
|
|
1212
1212
|
function oi(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", Qn, [
|
|
1216
|
+
l("div", Yn, d(e.$t("typography")), 1),
|
|
1217
|
+
(a(!0), p(I, null, E(o.typography, (h) => (a(), p("div", {
|
|
1218
1218
|
key: h.label,
|
|
1219
1219
|
class: "list-option",
|
|
1220
1220
|
onClick: (y) => i.activeItem = h
|
|
1221
1221
|
}, [
|
|
1222
|
-
|
|
1222
|
+
l("div", {
|
|
1223
1223
|
style: z({
|
|
1224
1224
|
fontSize: h.fontSize,
|
|
1225
1225
|
fontFamily: h.style.fontFamily,
|
|
@@ -1228,29 +1228,29 @@ function oi(e, t, n, s, i, o) {
|
|
|
1228
1228
|
lineHeight: 1
|
|
1229
1229
|
})
|
|
1230
1230
|
}, d(h.label), 5),
|
|
1231
|
-
|
|
1231
|
+
l("div", Xn, d(h.style.fontFamily) + " " + d(h.style.fontSize), 1)
|
|
1232
1232
|
], 8, Jn))), 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", ei, [
|
|
1236
|
+
l("div", ti, d(e.$t("section_other")), 1),
|
|
1237
|
+
(a(!0), p(I, null, E(i.sections, (h) => (a(), p("div", {
|
|
1238
1238
|
key: h.label,
|
|
1239
1239
|
class: "list-option",
|
|
1240
1240
|
onClick: (y) => i.activeItem = h
|
|
1241
1241
|
}, [
|
|
1242
|
-
|
|
1243
|
-
t[1] || (t[1] =
|
|
1242
|
+
l("div", ii, 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, ni))), 128))
|
|
1245
1245
|
]),
|
|
1246
|
-
i.activeItem ? (
|
|
1246
|
+
i.activeItem ? (a(), b(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(I, null, E(o.activeItemOptions, (h, y) => (a(), b(r, {
|
|
1254
1254
|
key: y,
|
|
1255
1255
|
label: h.label,
|
|
1256
1256
|
inputs: h.inputs
|
|
@@ -1260,7 +1260,7 @@ function oi(e, t, n, s, i, o) {
|
|
|
1260
1260
|
}, 8, ["title", "offset"])) : C("", !0)
|
|
1261
1261
|
]);
|
|
1262
1262
|
}
|
|
1263
|
-
const si = /* @__PURE__ */ F(Kn, [["render", oi], ["__scopeId", "data-v-647176fc"]]),
|
|
1263
|
+
const si = /* @__PURE__ */ F(Kn, [["render", oi], ["__scopeId", "data-v-647176fc"]]), li = {
|
|
1264
1264
|
i18nOptions: {
|
|
1265
1265
|
namespaces: "DocSettings",
|
|
1266
1266
|
messages: {
|
|
@@ -1595,28 +1595,28 @@ const si = /* @__PURE__ */ F(Kn, [["render", oi], ["__scopeId", "data-v-647176fc
|
|
|
1595
1595
|
n.push({ name: e, type: "category" }), this.tags = n, this.series = e;
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
|
-
},
|
|
1598
|
+
}, ai = { style: { height: "100%", padding: "1em" } }, ri = {
|
|
1599
1599
|
key: 0,
|
|
1600
1600
|
class: "divider"
|
|
1601
1601
|
};
|
|
1602
1602
|
function di(e, t, n, s, i, o) {
|
|
1603
1603
|
const r = m("FormInputRow"), g = m("DragWindow");
|
|
1604
|
-
return
|
|
1605
|
-
(
|
|
1604
|
+
return a(), p("div", ai, [
|
|
1605
|
+
(a(!0), p(I, null, E(o.options, (h, y) => (a(), b(r, {
|
|
1606
1606
|
key: y,
|
|
1607
1607
|
label: h.label,
|
|
1608
1608
|
"info-tooltip": h.infoTooltip,
|
|
1609
1609
|
inputs: h.inputs
|
|
1610
1610
|
}, null, 8, ["label", "info-tooltip", "inputs"]))), 128)),
|
|
1611
|
-
i.showDragWindow ? (
|
|
1611
|
+
i.showDragWindow ? (a(), b(g, {
|
|
1612
1612
|
key: 0,
|
|
1613
1613
|
offset: n.offset,
|
|
1614
1614
|
title: e.$t("pricing.title"),
|
|
1615
1615
|
onClose: t[0] || (t[0] = (h) => i.showDragWindow = !1)
|
|
1616
1616
|
}, {
|
|
1617
1617
|
default: u(() => [
|
|
1618
|
-
(
|
|
1619
|
-
h.type === "divider" ? (
|
|
1618
|
+
(a(!0), p(I, null, E(o.priceOptions, (h, y) => (a(), p(I, { key: y }, [
|
|
1619
|
+
h.type === "divider" ? (a(), p("div", ri)) : (a(), b(r, {
|
|
1620
1620
|
key: y,
|
|
1621
1621
|
label: h.label,
|
|
1622
1622
|
"info-tooltip": h.infoTooltip,
|
|
@@ -1628,7 +1628,7 @@ function di(e, t, n, s, i, o) {
|
|
|
1628
1628
|
}, 8, ["offset", "title"])) : C("", !0)
|
|
1629
1629
|
]);
|
|
1630
1630
|
}
|
|
1631
|
-
const ci = /* @__PURE__ */ F(
|
|
1631
|
+
const ci = /* @__PURE__ */ F(li, [["render", di], ["__scopeId", "data-v-677795e4"]]), ui = {
|
|
1632
1632
|
i18nOptions: {
|
|
1633
1633
|
messages: {
|
|
1634
1634
|
en: {
|
|
@@ -1672,7 +1672,7 @@ const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-677795e4
|
|
|
1672
1672
|
name: "ExtensionTab",
|
|
1673
1673
|
components: {
|
|
1674
1674
|
Sortable: qt,
|
|
1675
|
-
Spinner:
|
|
1675
|
+
Spinner: lt,
|
|
1676
1676
|
CAutocomplete: Ht,
|
|
1677
1677
|
CDropdown: re,
|
|
1678
1678
|
CDropdownItem: q
|
|
@@ -1804,7 +1804,7 @@ const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-677795e4
|
|
|
1804
1804
|
});
|
|
1805
1805
|
if (Array.isArray(s) && s.length) {
|
|
1806
1806
|
const o = (i = this._document) == null ? void 0 : i.defaultAnswerMethod, r = s.map((g) => ({
|
|
1807
|
-
...
|
|
1807
|
+
...at(),
|
|
1808
1808
|
...o && { answerMethod: o },
|
|
1809
1809
|
...g
|
|
1810
1810
|
}));
|
|
@@ -1867,8 +1867,8 @@ const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-677795e4
|
|
|
1867
1867
|
};
|
|
1868
1868
|
function Hi(e, t, n, s, i, o) {
|
|
1869
1869
|
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), y = m("Spinner"), w = m("CAutocomplete"), k = m("CIcon"), D = m("Sortable"), T = m("router-link"), v = ie("tooltip");
|
|
1870
|
-
return
|
|
1871
|
-
e.allAuthenticatedCRMs.length > 1 ? (
|
|
1870
|
+
return a(), p("div", mi, [
|
|
1871
|
+
e.allAuthenticatedCRMs.length > 1 ? (a(), b(h, {
|
|
1872
1872
|
key: 0,
|
|
1873
1873
|
position: "is-bottom-left",
|
|
1874
1874
|
style: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }
|
|
@@ -1883,7 +1883,7 @@ function Hi(e, t, n, s, i, o) {
|
|
|
1883
1883
|
})
|
|
1884
1884
|
]),
|
|
1885
1885
|
default: u(() => [
|
|
1886
|
-
(
|
|
1886
|
+
(a(!0), p(I, null, E(e.allAuthenticatedCRMs, (f) => (a(), b(g, {
|
|
1887
1887
|
key: f,
|
|
1888
1888
|
type: i.activeCrm === f ? "primary" : "secondary",
|
|
1889
1889
|
size: "small",
|
|
@@ -1897,18 +1897,18 @@ function Hi(e, t, n, s, i, o) {
|
|
|
1897
1897
|
]),
|
|
1898
1898
|
_: 1
|
|
1899
1899
|
})) : C("", !0),
|
|
1900
|
-
i.isLoading && !i.dealDetails ? (
|
|
1900
|
+
i.isLoading && !i.dealDetails ? (a(), p("div", pi, [
|
|
1901
1901
|
c(y, {
|
|
1902
1902
|
size: "24",
|
|
1903
1903
|
color: "grey"
|
|
1904
1904
|
})
|
|
1905
|
-
])) : i.activeCrm ? (
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
i.typeDetails ? (
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1905
|
+
])) : i.activeCrm ? (a(), p(I, { key: 2 }, [
|
|
1906
|
+
l("div", hi, [
|
|
1907
|
+
l("div", fi, d(i.activeCrm.capitalize()), 1),
|
|
1908
|
+
i.typeDetails ? (a(), p("div", gi, [
|
|
1909
|
+
l("div", yi, [
|
|
1910
|
+
l("div", vi, [
|
|
1911
|
+
l("div", {
|
|
1912
1912
|
textContent: d(
|
|
1913
1913
|
e.$t("referenceTo", {
|
|
1914
1914
|
crm: i.activeCrm.capitalize(),
|
|
@@ -1926,20 +1926,20 @@ function Hi(e, t, n, s, i, o) {
|
|
|
1926
1926
|
onClick: t[0] || (t[0] = (f) => o.removeReference(i.typeDetails.type))
|
|
1927
1927
|
})
|
|
1928
1928
|
]),
|
|
1929
|
-
|
|
1929
|
+
l("div", {
|
|
1930
1930
|
class: "x-hint-name",
|
|
1931
1931
|
textContent: d(i.typeDetails.name || "")
|
|
1932
1932
|
}, null, 8, bi)
|
|
1933
1933
|
]),
|
|
1934
|
-
t[7] || (t[7] =
|
|
1934
|
+
t[7] || (t[7] = l("div", { class: "divider" }, null, -1))
|
|
1935
1935
|
])) : C("", !0),
|
|
1936
|
-
|
|
1937
|
-
t[8] || (t[8] =
|
|
1938
|
-
o.currentExternalDeal ? (
|
|
1939
|
-
|
|
1940
|
-
i.dealDetails ? (
|
|
1941
|
-
|
|
1942
|
-
(
|
|
1936
|
+
l("div", ki, d(e.$t("headerText", { crm: i.activeCrm.capitalize() })), 1),
|
|
1937
|
+
t[8] || (t[8] = l("div", { style: { height: "2em" } }, null, -1)),
|
|
1938
|
+
o.currentExternalDeal ? (a(), p(I, { key: 1 }, [
|
|
1939
|
+
l("div", wi, d(e.$t("connectedTo", { type: o.dealType })), 1),
|
|
1940
|
+
i.dealDetails ? (a(), p("div", _i, [
|
|
1941
|
+
l("div", null, [
|
|
1942
|
+
(a(), b(W(i.dealDetails.externalUrl ? "a" : "span"), {
|
|
1943
1943
|
href: i.dealDetails.externalUrl || "#",
|
|
1944
1944
|
target: "_blank",
|
|
1945
1945
|
style: { "font-weight": "600" },
|
|
@@ -1947,12 +1947,12 @@ function Hi(e, t, n, s, i, o) {
|
|
|
1947
1947
|
textContent: d(i.dealDetails.name)
|
|
1948
1948
|
}, null, 8, ["href", "textContent"]))
|
|
1949
1949
|
]),
|
|
1950
|
-
i.dealDetails.currency ? (
|
|
1950
|
+
i.dealDetails.currency ? (a(), p("div", xi, d(o.priceFormat(i.dealDetails.value, {
|
|
1951
1951
|
showZero: !1,
|
|
1952
1952
|
currency: i.dealDetails.currency
|
|
1953
1953
|
})), 1)) : C("", !0)
|
|
1954
1954
|
])) : C("", !0),
|
|
1955
|
-
|
|
1955
|
+
l("div", null, [
|
|
1956
1956
|
c(r, {
|
|
1957
1957
|
loading: i.isLoading,
|
|
1958
1958
|
size: "small",
|
|
@@ -1979,8 +1979,8 @@ function Hi(e, t, n, s, i, o) {
|
|
|
1979
1979
|
textContent: d(e.$t("suggestClients"))
|
|
1980
1980
|
}, null, 8, ["textContent"])
|
|
1981
1981
|
])
|
|
1982
|
-
], 64)) : (
|
|
1983
|
-
|
|
1982
|
+
], 64)) : (a(), p("div", Ti, [
|
|
1983
|
+
l("div", {
|
|
1984
1984
|
style: { padding: "0 4px 0.25em" },
|
|
1985
1985
|
class: "text-gray-600",
|
|
1986
1986
|
textContent: d(e.$t("linkToDoc", { type: o.dealType }))
|
|
@@ -2001,11 +2001,11 @@ function Hi(e, t, n, s, i, o) {
|
|
|
2001
2001
|
onSelect: t[6] || (t[6] = (f) => o.useSearchResult(f))
|
|
2002
2002
|
}, {
|
|
2003
2003
|
default: u(({ option: f }) => [
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2004
|
+
l("div", Si, [
|
|
2005
|
+
l("div", Ii, d(f.name), 1),
|
|
2006
|
+
l("div", $i, [
|
|
2007
2007
|
_(d(f.externalReference.type.capitalize()) + " " + d(f.externalReference.typeId) + " ", 1),
|
|
2008
|
-
f.value && f.currency ? (
|
|
2008
|
+
f.value && f.currency ? (a(), p(I, { key: 0 }, [
|
|
2009
2009
|
_(" · " + d(o.priceFormat(f.value, {
|
|
2010
2010
|
showZero: !1,
|
|
2011
2011
|
currency: f.currency
|
|
@@ -2021,9 +2021,9 @@ function Hi(e, t, n, s, i, o) {
|
|
|
2021
2021
|
}, 8, ["modelValue", "data", "loading", "placeholder"])
|
|
2022
2022
|
]))
|
|
2023
2023
|
]),
|
|
2024
|
-
o.showDealProducts ? (
|
|
2025
|
-
|
|
2026
|
-
|
|
2024
|
+
o.showDealProducts ? (a(), p("div", Fi, [
|
|
2025
|
+
l("div", Li, [
|
|
2026
|
+
l("div", Bi, [
|
|
2027
2027
|
_(d(e.$t("productsTitle")) + " ", 1),
|
|
2028
2028
|
G(c(k, {
|
|
2029
2029
|
type: "info",
|
|
@@ -2035,7 +2035,7 @@ function Hi(e, t, n, s, i, o) {
|
|
|
2035
2035
|
]
|
|
2036
2036
|
])
|
|
2037
2037
|
]),
|
|
2038
|
-
|
|
2038
|
+
l("div", {
|
|
2039
2039
|
class: "text-gray-600",
|
|
2040
2040
|
textContent: d(
|
|
2041
2041
|
e.$t("productsText", {
|
|
@@ -2045,7 +2045,7 @@ function Hi(e, t, n, s, i, o) {
|
|
|
2045
2045
|
)
|
|
2046
2046
|
}, null, 8, Vi)
|
|
2047
2047
|
]),
|
|
2048
|
-
i.dealDetails.articles && i.dealDetails.articles.length ? (
|
|
2048
|
+
i.dealDetails.articles && i.dealDetails.articles.length ? (a(), b(D, {
|
|
2049
2049
|
key: 0,
|
|
2050
2050
|
"item-key": "_uniqueId",
|
|
2051
2051
|
list: i.dealDetails.articles,
|
|
@@ -2060,46 +2060,46 @@ function Hi(e, t, n, s, i, o) {
|
|
|
2060
2060
|
style: { "min-height": "calc(3 * var(--rem))", padding: "0 calc(0.5 * var(--rem))" }
|
|
2061
2061
|
}, {
|
|
2062
2062
|
item: u(({ item: f }) => [
|
|
2063
|
-
|
|
2063
|
+
l("div", {
|
|
2064
2064
|
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" },
|
|
2065
2065
|
onClick: (x) => o.addArticle(f)
|
|
2066
2066
|
}, [
|
|
2067
|
-
|
|
2067
|
+
l("div", {
|
|
2068
2068
|
style: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" },
|
|
2069
2069
|
textContent: d(f.name)
|
|
2070
2070
|
}, null, 8, Pi),
|
|
2071
|
-
|
|
2071
|
+
l("div", Ai, [
|
|
2072
2072
|
_(d(o.priceFormat(f.price || 0, {
|
|
2073
2073
|
showZero: !1,
|
|
2074
2074
|
currency: f.currency || "USD"
|
|
2075
2075
|
})) + " · " + d(f.quantity || 0) + "x ", 1),
|
|
2076
|
-
f.vat !== null ? (
|
|
2076
|
+
f.vat !== null ? (a(), p(I, { key: 0 }, [
|
|
2077
2077
|
_(" · " + d(e._document.$t("vat").capitalize()) + " " + d(f.vat) + "% ", 1)
|
|
2078
2078
|
], 64)) : C("", !0)
|
|
2079
2079
|
])
|
|
2080
2080
|
], 8, Mi)
|
|
2081
2081
|
]),
|
|
2082
2082
|
_: 1
|
|
2083
|
-
}, 8, ["list", "clone"])) : (
|
|
2083
|
+
}, 8, ["list", "clone"])) : (a(), p("div", Ei, [
|
|
2084
2084
|
c(k, {
|
|
2085
2085
|
type: "info",
|
|
2086
2086
|
size: "13",
|
|
2087
2087
|
style: { margin: "1px 4px 0 0", "flex-shrink": "0" }
|
|
2088
2088
|
}),
|
|
2089
|
-
|
|
2089
|
+
l("div", {
|
|
2090
2090
|
textContent: d(e.$t("noProducts", { type: o.dealType }))
|
|
2091
2091
|
}, null, 8, zi)
|
|
2092
2092
|
]))
|
|
2093
2093
|
])) : C("", !0)
|
|
2094
|
-
], 64)) : (
|
|
2094
|
+
], 64)) : (a(), p("div", Ri, [
|
|
2095
2095
|
c(k, {
|
|
2096
2096
|
type: "info",
|
|
2097
2097
|
size: "16",
|
|
2098
2098
|
class: "text-primary-500",
|
|
2099
2099
|
style: { "padding-bottom": "5px" }
|
|
2100
2100
|
}),
|
|
2101
|
-
|
|
2102
|
-
|
|
2101
|
+
l("div", Oi, d(e.$t("noCrm")), 1),
|
|
2102
|
+
l("div", Ui, [
|
|
2103
2103
|
c(T, {
|
|
2104
2104
|
to: { name: "settings" },
|
|
2105
2105
|
style: { "font-weight": "500" },
|
|
@@ -2238,12 +2238,12 @@ const qi = /* @__PURE__ */ F(ui, [["render", Hi], ["__scopeId", "data-v-ac46aaa2
|
|
|
2238
2238
|
}, Wi = { style: { "padding-bottom": "2em" } }, ji = { style: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, Zi = { style: { "margin-bottom": "0.25em", opacity: "0.65" } };
|
|
2239
2239
|
function Ki(e, t, n, s, i, o) {
|
|
2240
2240
|
const r = m("CInput"), g = m("CField"), h = m("CButton");
|
|
2241
|
-
return
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2241
|
+
return a(), p("div", Ni, [
|
|
2242
|
+
l("div", Wi, [
|
|
2243
|
+
l("div", ji, d(n.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")), 1),
|
|
2244
|
+
l("div", Zi, d(e.$t("description")), 1)
|
|
2245
2245
|
]),
|
|
2246
|
-
|
|
2246
|
+
l("form", {
|
|
2247
2247
|
style: { width: "100%" },
|
|
2248
2248
|
onSubmit: t[2] || (t[2] = j((...y) => o.submit && o.submit(...y), ["prevent"])),
|
|
2249
2249
|
onKeyup: t[3] || (t[3] = rt((...y) => o.submit && o.submit(...y), ["enter"]))
|
|
@@ -2289,7 +2289,7 @@ function Ki(e, t, n, s, i, o) {
|
|
|
2289
2289
|
onClick: o.submit,
|
|
2290
2290
|
textContent: d(e.$t("_common:save"))
|
|
2291
2291
|
}, null, 8, ["onClick", "textContent"]),
|
|
2292
|
-
n.existingFieldId ? (
|
|
2292
|
+
n.existingFieldId ? (a(), b(h, {
|
|
2293
2293
|
key: 0,
|
|
2294
2294
|
style: { "margin-top": "5px" },
|
|
2295
2295
|
type: "none",
|
|
@@ -2422,7 +2422,7 @@ const Qi = /* @__PURE__ */ F(Gi, [["render", Ki]]), Yi = {
|
|
|
2422
2422
|
);
|
|
2423
2423
|
},
|
|
2424
2424
|
onCopyField(e) {
|
|
2425
|
-
navigator && navigator.clipboard && e && navigator.clipboard.writeText(e).then(() => we("info", this.$t("_common:copyMessage"))).catch((t) =>
|
|
2425
|
+
navigator && navigator.clipboard && e && navigator.clipboard.writeText(e).then(() => we("info", this.$t("_common:copyMessage"))).catch((t) => ae(t));
|
|
2426
2426
|
},
|
|
2427
2427
|
filterMethod(e, t) {
|
|
2428
2428
|
return t.filter(
|
|
@@ -2440,10 +2440,10 @@ const Qi = /* @__PURE__ */ F(Gi, [["render", Ki]]), Yi = {
|
|
|
2440
2440
|
}, io = {
|
|
2441
2441
|
class: "field-container",
|
|
2442
2442
|
style: { position: "relative", flex: "1 1 auto" }
|
|
2443
|
-
}, oo = ["onDragstart", "textContent"], so = { class: "field-actions" },
|
|
2443
|
+
}, oo = ["onDragstart", "textContent"], so = { class: "field-actions" }, lo = {
|
|
2444
2444
|
key: 1,
|
|
2445
2445
|
style: { "text-align": "center" }
|
|
2446
|
-
},
|
|
2446
|
+
}, ao = {
|
|
2447
2447
|
key: 1,
|
|
2448
2448
|
style: { "padding-top": "20px" }
|
|
2449
2449
|
}, ro = {
|
|
@@ -2455,13 +2455,13 @@ const Qi = /* @__PURE__ */ F(Gi, [["render", Ki]]), Yi = {
|
|
|
2455
2455
|
}, go = ["onDragstart", "textContent"], yo = { class: "field-actions" };
|
|
2456
2456
|
function vo(e, t, n, s, i, o) {
|
|
2457
2457
|
const r = m("CInput"), g = m("CField"), h = m("CButton"), y = m("SmartList"), w = m("CIcon"), k = m("CAccordion");
|
|
2458
|
-
return
|
|
2459
|
-
|
|
2460
|
-
|
|
2458
|
+
return a(), p("div", Ji, [
|
|
2459
|
+
l("div", Xi, [
|
|
2460
|
+
l("div", {
|
|
2461
2461
|
style: { "font-size": "16px", "font-weight": "600" },
|
|
2462
2462
|
textContent: d(e.$t("title"))
|
|
2463
2463
|
}, null, 8, eo),
|
|
2464
|
-
|
|
2464
|
+
l("div", {
|
|
2465
2465
|
style: { color: "hsl(0, 0%, 35%)" },
|
|
2466
2466
|
textContent: d(e.$t("description"))
|
|
2467
2467
|
}, null, 8, to)
|
|
@@ -2473,26 +2473,26 @@ function vo(e, t, n, s, i, o) {
|
|
|
2473
2473
|
filled: "",
|
|
2474
2474
|
size: "small"
|
|
2475
2475
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
2476
|
-
i.query ? (
|
|
2476
|
+
i.query ? (a(), p("div", no, [
|
|
2477
2477
|
c(y, {
|
|
2478
2478
|
items: o.options,
|
|
2479
2479
|
"filter-method": o.filterMethod,
|
|
2480
2480
|
query: i.query
|
|
2481
2481
|
}, {
|
|
2482
2482
|
default: u(({ items: D }) => [
|
|
2483
|
-
|
|
2484
|
-
D.length ? (
|
|
2483
|
+
l("div", null, [
|
|
2484
|
+
D.length ? (a(!0), p(I, { key: 0 }, E(D, (T, v) => (a(), p("div", {
|
|
2485
2485
|
key: v,
|
|
2486
2486
|
class: "field-parent flex w-full items-center"
|
|
2487
2487
|
}, [
|
|
2488
|
-
|
|
2488
|
+
l("div", io, [
|
|
2489
2489
|
c(g, {
|
|
2490
2490
|
label: " ",
|
|
2491
2491
|
"label-position": "inside",
|
|
2492
2492
|
style: { width: "100%" }
|
|
2493
2493
|
}, {
|
|
2494
2494
|
default: u(() => [
|
|
2495
|
-
|
|
2495
|
+
l("span", {
|
|
2496
2496
|
class: "drag-label",
|
|
2497
2497
|
draggable: !0,
|
|
2498
2498
|
onDragstart: (f) => o.onDragStart(f, T),
|
|
@@ -2512,8 +2512,8 @@ function vo(e, t, n, s, i, o) {
|
|
|
2512
2512
|
]),
|
|
2513
2513
|
_: 2
|
|
2514
2514
|
}, 1024),
|
|
2515
|
-
|
|
2516
|
-
!T.inputDisabled && !T.virtual ? (
|
|
2515
|
+
l("div", so, [
|
|
2516
|
+
!T.inputDisabled && !T.virtual ? (a(), b(h, {
|
|
2517
2517
|
key: 0,
|
|
2518
2518
|
icon: "edit",
|
|
2519
2519
|
size: "small",
|
|
@@ -2532,13 +2532,13 @@ function vo(e, t, n, s, i, o) {
|
|
|
2532
2532
|
}, null, 8, ["onClick"])
|
|
2533
2533
|
])
|
|
2534
2534
|
])
|
|
2535
|
-
]))), 128)) : (
|
|
2535
|
+
]))), 128)) : (a(), p("div", lo, d(e.$t("_common:noResults")), 1))
|
|
2536
2536
|
])
|
|
2537
2537
|
]),
|
|
2538
2538
|
_: 1
|
|
2539
2539
|
}, 8, ["items", "filter-method", "query"])
|
|
2540
|
-
])) : (
|
|
2541
|
-
|
|
2540
|
+
])) : (a(), p("div", ao, [
|
|
2541
|
+
l("div", ro, [
|
|
2542
2542
|
c(h, {
|
|
2543
2543
|
type: "none",
|
|
2544
2544
|
pattern: "secondary",
|
|
@@ -2548,7 +2548,7 @@ function vo(e, t, n, s, i, o) {
|
|
|
2548
2548
|
textContent: d(e.$t("_common:add", { thing: e.$t("_common:field") }))
|
|
2549
2549
|
}, null, 8, ["onClick", "textContent"])
|
|
2550
2550
|
]),
|
|
2551
|
-
(
|
|
2551
|
+
(a(!0), p(I, null, E([
|
|
2552
2552
|
{
|
|
2553
2553
|
label: e.$t("usedFields"),
|
|
2554
2554
|
defaultOpen: !0,
|
|
@@ -2566,18 +2566,18 @@ function vo(e, t, n, s, i, o) {
|
|
|
2566
2566
|
defaultOpen: !o.usedFields.length,
|
|
2567
2567
|
items: o.unUsedFields
|
|
2568
2568
|
}
|
|
2569
|
-
], (D, T) => (
|
|
2569
|
+
], (D, T) => (a(), b(k, {
|
|
2570
2570
|
key: T,
|
|
2571
2571
|
"default-open": D.defaultOpen,
|
|
2572
2572
|
style: { "border-top": "1px solid hsl(0, 0%, 88%)" }
|
|
2573
2573
|
}, {
|
|
2574
2574
|
trigger: u(({ expanded: v }) => [
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2575
|
+
l("div", co, [
|
|
2576
|
+
l("span", null, [
|
|
2577
|
+
l("span", {
|
|
2578
2578
|
textContent: d(D.label)
|
|
2579
2579
|
}, null, 8, uo),
|
|
2580
|
-
|
|
2580
|
+
l("span", {
|
|
2581
2581
|
style: { opacity: "0.45", "padding-left": "0.5em" },
|
|
2582
2582
|
textContent: d(D.items.length)
|
|
2583
2583
|
}, null, 8, mo)
|
|
@@ -2590,19 +2590,19 @@ function vo(e, t, n, s, i, o) {
|
|
|
2590
2590
|
])
|
|
2591
2591
|
]),
|
|
2592
2592
|
default: u(() => [
|
|
2593
|
-
|
|
2594
|
-
D.items.length ? (
|
|
2593
|
+
l("div", po, [
|
|
2594
|
+
D.items.length ? (a(!0), p(I, { key: 1 }, E(D.items, (v, f) => (a(), p("div", {
|
|
2595
2595
|
key: f,
|
|
2596
2596
|
class: "field-parent flex w-full items-center"
|
|
2597
2597
|
}, [
|
|
2598
|
-
|
|
2598
|
+
l("div", fo, [
|
|
2599
2599
|
c(g, {
|
|
2600
2600
|
label: " ",
|
|
2601
2601
|
"label-position": "inside",
|
|
2602
2602
|
style: { width: "100%" }
|
|
2603
2603
|
}, {
|
|
2604
2604
|
default: u(() => [
|
|
2605
|
-
|
|
2605
|
+
l("span", {
|
|
2606
2606
|
class: "drag-label",
|
|
2607
2607
|
draggable: !0,
|
|
2608
2608
|
onDragstart: (x) => o.onDragStart(x, v),
|
|
@@ -2622,8 +2622,8 @@ function vo(e, t, n, s, i, o) {
|
|
|
2622
2622
|
]),
|
|
2623
2623
|
_: 2
|
|
2624
2624
|
}, 1024),
|
|
2625
|
-
|
|
2626
|
-
!v.inputDisabled && !v.virtual ? (
|
|
2625
|
+
l("div", yo, [
|
|
2626
|
+
!v.inputDisabled && !v.virtual ? (a(), b(h, {
|
|
2627
2627
|
key: 0,
|
|
2628
2628
|
icon: "edit",
|
|
2629
2629
|
size: "small",
|
|
@@ -2642,7 +2642,7 @@ function vo(e, t, n, s, i, o) {
|
|
|
2642
2642
|
}, null, 8, ["onClick"])
|
|
2643
2643
|
])
|
|
2644
2644
|
])
|
|
2645
|
-
]))), 128)) : (
|
|
2645
|
+
]))), 128)) : (a(), p("div", {
|
|
2646
2646
|
key: 0,
|
|
2647
2647
|
style: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" },
|
|
2648
2648
|
textContent: d(e.$t("noResults"))
|
|
@@ -2693,8 +2693,8 @@ const Co = /* @__PURE__ */ F(Yi, [["render", vo], ["__scopeId", "data-v-366abad0
|
|
|
2693
2693
|
}, wo = ["innerHTML"];
|
|
2694
2694
|
function _o(e, t, n, s, i, o) {
|
|
2695
2695
|
const r = m("CButton");
|
|
2696
|
-
return
|
|
2697
|
-
|
|
2696
|
+
return a(), p("div", null, [
|
|
2697
|
+
l("div", {
|
|
2698
2698
|
class: "fixed inset-0 z-10",
|
|
2699
2699
|
onClick: t[0] || (t[0] = j((g) => e.$emit("close"), ["self"]))
|
|
2700
2700
|
}),
|
|
@@ -2709,8 +2709,8 @@ function _o(e, t, n, s, i, o) {
|
|
|
2709
2709
|
"leave-to-class": "opacity-0"
|
|
2710
2710
|
}, {
|
|
2711
2711
|
default: u(() => [
|
|
2712
|
-
|
|
2713
|
-
|
|
2712
|
+
l("div", ko, [
|
|
2713
|
+
l("div", {
|
|
2714
2714
|
class: "pb-4",
|
|
2715
2715
|
innerHTML: e.$t("text")
|
|
2716
2716
|
}, null, 8, wo),
|
|
@@ -3255,23 +3255,23 @@ const xo = /* @__PURE__ */ F(bo, [["render", _o]]), To = {
|
|
|
3255
3255
|
}, Lo = ["innerHTML"], Bo = { class: "option-title" }, Vo = { class: "relative" }, Mo = ["onClick", "innerHTML"];
|
|
3256
3256
|
function Po(e, t, n, s, i, o) {
|
|
3257
3257
|
const r = m("MenuBlockConvertPopover"), g = m("ProBadge"), h = m("CIcon"), y = m("CButton"), w = m("DragItem"), k = m("DragList"), D = m("Simplebar"), T = m("IsPremiumPreStep");
|
|
3258
|
-
return
|
|
3258
|
+
return a(), p("div", {
|
|
3259
3259
|
onMouseleavePassive: t[4] || (t[4] = (...v) => o.onMouseleaveDrawer && o.onMouseleaveDrawer(...v))
|
|
3260
3260
|
}, [
|
|
3261
3261
|
c(T, { feature: "documentBlocks" }, {
|
|
3262
3262
|
default: u(({ onClick: v }) => [
|
|
3263
|
-
!n.canUseBlocks && i.showConvertEditableDialog ? (
|
|
3263
|
+
!n.canUseBlocks && i.showConvertEditableDialog ? (a(), b(r, {
|
|
3264
3264
|
key: 0,
|
|
3265
3265
|
target: i.showConvertEditableDialogTarget,
|
|
3266
3266
|
onConvert: o.deSyncTemplate,
|
|
3267
3267
|
onClose: t[0] || (t[0] = (f) => i.showConvertEditableDialog = !1)
|
|
3268
3268
|
}, null, 8, ["target", "onConvert"])) : C("", !0),
|
|
3269
|
-
|
|
3270
|
-
(
|
|
3269
|
+
l("div", Do, [
|
|
3270
|
+
(a(!0), p(I, null, E([
|
|
3271
3271
|
{ data: o.primaryBlocks },
|
|
3272
3272
|
{ data: o.secondaryBlocks }
|
|
3273
|
-
], (f, x) => (
|
|
3274
|
-
x > 0 ? (
|
|
3273
|
+
], (f, x) => (a(), p("div", { key: x }, [
|
|
3274
|
+
x > 0 ? (a(), p("div", So)) : C("", !0),
|
|
3275
3275
|
c(k, {
|
|
3276
3276
|
group: { name: "blocks", pull: "clone", put: !1 },
|
|
3277
3277
|
"get-child-payload": ($) => s.getBlockPayload(o.getSectionKey({ data: f.data, index: $ })),
|
|
@@ -3286,12 +3286,12 @@ function Po(e, t, n, s, i, o) {
|
|
|
3286
3286
|
behaviour: "copy"
|
|
3287
3287
|
}, {
|
|
3288
3288
|
default: u(() => [
|
|
3289
|
-
(
|
|
3289
|
+
(a(!0), p(I, null, E(f.data, ($) => (a(), b(w, {
|
|
3290
3290
|
key: $.key,
|
|
3291
3291
|
class: B({ "drag-item": o.canDrag })
|
|
3292
3292
|
}, {
|
|
3293
3293
|
default: u(() => [
|
|
3294
|
-
|
|
3294
|
+
l("div", be(
|
|
3295
3295
|
{ ref_for: !0 },
|
|
3296
3296
|
$.hasTooltip ? { "data-tooltip-key": $.key } : null,
|
|
3297
3297
|
{
|
|
@@ -3315,15 +3315,15 @@ function Po(e, t, n, s, i, o) {
|
|
|
3315
3315
|
onClick: (S) => o.onUseBlock({ block: $, openUpgradeModal: v })
|
|
3316
3316
|
}, {
|
|
3317
3317
|
default: u(() => [
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3318
|
+
l("div", $o, [
|
|
3319
|
+
l("div", Fo, [
|
|
3320
|
+
l("div", {
|
|
3321
3321
|
class: "option-image",
|
|
3322
3322
|
innerHTML: $.icon
|
|
3323
3323
|
}, null, 8, Lo),
|
|
3324
|
-
|
|
3324
|
+
l("div", Bo, d(e.$t(`blocks.${$.key}`)), 1)
|
|
3325
3325
|
]),
|
|
3326
|
-
$.locked ? (
|
|
3326
|
+
$.locked ? (a(), b(g, { key: 0 })) : !n.fixed && $.subMenu ? (a(), b(h, {
|
|
3327
3327
|
key: 1,
|
|
3328
3328
|
type: "chevron-right",
|
|
3329
3329
|
size: "14",
|
|
@@ -3345,7 +3345,7 @@ function Po(e, t, n, s, i, o) {
|
|
|
3345
3345
|
]),
|
|
3346
3346
|
c(ne, { name: "slide-right" }, {
|
|
3347
3347
|
default: u(() => [
|
|
3348
|
-
G(
|
|
3348
|
+
G(l("div", {
|
|
3349
3349
|
class: "submenu",
|
|
3350
3350
|
onMouseoverPassive: t[2] || (t[2] = (f) => i.subMenuToShow = i.activeSubMenu),
|
|
3351
3351
|
onMouseleavePassive: t[3] || (t[3] = (f) => i.subMenuToShow = null)
|
|
@@ -3367,18 +3367,18 @@ function Po(e, t, n, s, i, o) {
|
|
|
3367
3367
|
behaviour: "copy"
|
|
3368
3368
|
}, {
|
|
3369
3369
|
default: u(() => [
|
|
3370
|
-
(
|
|
3370
|
+
(a(!0), p(I, null, E(i.activeSubMenu, (f, x) => (a(), b(w, {
|
|
3371
3371
|
key: f.key + x,
|
|
3372
3372
|
class: B(["px-1.5", { "drag-item": !f.locked && n.canUseBlocks }])
|
|
3373
3373
|
}, {
|
|
3374
3374
|
default: u(() => [
|
|
3375
|
-
|
|
3376
|
-
|
|
3375
|
+
l("div", Vo, [
|
|
3376
|
+
l("div", {
|
|
3377
3377
|
class: "drag-item-preview",
|
|
3378
3378
|
onClick: ($) => o.onUseBlock({ block: f, openUpgradeModal: v }),
|
|
3379
3379
|
innerHTML: f.previewUrl
|
|
3380
3380
|
}, null, 8, Mo),
|
|
3381
|
-
f.locked ? (
|
|
3381
|
+
f.locked ? (a(), b(g, {
|
|
3382
3382
|
key: 0,
|
|
3383
3383
|
class: "absolute bottom-2 right-4"
|
|
3384
3384
|
})) : C("", !0)
|
|
@@ -3424,7 +3424,7 @@ const Ao = /* @__PURE__ */ F(To, [["render", Po], ["__scopeId", "data-v-e1fabeca
|
|
|
3424
3424
|
ExtensionTab: qi,
|
|
3425
3425
|
DocumentGeneralSettings: ci,
|
|
3426
3426
|
DocumentGuide: ct(
|
|
3427
|
-
() => import("./index-
|
|
3427
|
+
() => import("./index-CYrm4Bbf.js")
|
|
3428
3428
|
),
|
|
3429
3429
|
MenuBlocks: Ao,
|
|
3430
3430
|
Simplebar: J
|
|
@@ -3500,41 +3500,41 @@ const Ao = /* @__PURE__ */ F(To, [["render", Po], ["__scopeId", "data-v-e1fabeca
|
|
|
3500
3500
|
};
|
|
3501
3501
|
function No(e, t, n, s, i, o) {
|
|
3502
3502
|
const r = m("CIcon"), g = m("CButton"), h = m("MenuBlocks"), y = m("Design"), w = m("Fields"), k = m("ExtensionTab"), D = m("DocumentGeneralSettings"), T = m("Simplebar"), v = m("DocumentGuide");
|
|
3503
|
-
return
|
|
3504
|
-
|
|
3503
|
+
return a(), p("div", null, [
|
|
3504
|
+
l("div", {
|
|
3505
3505
|
style: z([{ width: `${n.width}px` }, n.fixed && { zIndex: 999 }]),
|
|
3506
3506
|
class: "root menu-wrapper fixed left-0 top-14 z-[99] bg-white"
|
|
3507
3507
|
}, [
|
|
3508
|
-
n.fixed ? (
|
|
3508
|
+
n.fixed ? (a(), p("div", {
|
|
3509
3509
|
key: 0,
|
|
3510
3510
|
class: "fixed inset-0",
|
|
3511
3511
|
onClick: t[0] || (t[0] = (f) => e.$emit("close"))
|
|
3512
3512
|
})) : C("", !0),
|
|
3513
|
-
|
|
3513
|
+
l("div", {
|
|
3514
3514
|
style: z([{ 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)" }])
|
|
3515
3515
|
}, [
|
|
3516
|
-
n.isLegacyTemplate ? C("", !0) : (
|
|
3517
|
-
|
|
3516
|
+
n.isLegacyTemplate ? C("", !0) : (a(), p("div", zo, [
|
|
3517
|
+
l("div", {
|
|
3518
3518
|
class: B([{ "is-active": i.tab === "blocks" }, "tab-item"]),
|
|
3519
3519
|
onClick: t[1] || (t[1] = (f) => i.tab = "blocks"),
|
|
3520
3520
|
textContent: d(e.$t("tabs.blocks"))
|
|
3521
3521
|
}, null, 10, Ro),
|
|
3522
|
-
|
|
3522
|
+
l("div", {
|
|
3523
3523
|
class: B([{ "is-active": i.tab === "design" }, "tab-item"]),
|
|
3524
3524
|
onClick: t[2] || (t[2] = (f) => i.tab = "design"),
|
|
3525
3525
|
textContent: d(e.$t("tabs.design"))
|
|
3526
3526
|
}, null, 10, Oo),
|
|
3527
|
-
|
|
3527
|
+
l("div", {
|
|
3528
3528
|
class: B([{ "is-active": i.tab === "fields" }, "tab-item"]),
|
|
3529
3529
|
onClick: t[3] || (t[3] = (f) => i.tab = "fields"),
|
|
3530
3530
|
textContent: d(e.$t("tabs.fields"))
|
|
3531
3531
|
}, null, 10, Uo),
|
|
3532
|
-
o.extensionTabType ? (
|
|
3532
|
+
o.extensionTabType ? (a(), p("div", {
|
|
3533
3533
|
key: 0,
|
|
3534
3534
|
class: B([{ "is-active": i.tab === "extension" }, "tab-item"]),
|
|
3535
3535
|
onClick: t[4] || (t[4] = (f) => i.tab = "extension")
|
|
3536
3536
|
}, [
|
|
3537
|
-
|
|
3537
|
+
l("div", {
|
|
3538
3538
|
style: z([{ width: "18px", height: "18px", background: "#343434", "border-radius": "4px", display: "flex", "align-items": "center", "justify-content": "center", "margin-top": "2px" }, [
|
|
3539
3539
|
o.extensionTabType === "pipedrive" && {
|
|
3540
3540
|
backgroundColor: "#3A3A3A"
|
|
@@ -3551,7 +3551,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3551
3551
|
}, null, 8, ["type"])
|
|
3552
3552
|
], 4)
|
|
3553
3553
|
], 2)) : C("", !0),
|
|
3554
|
-
|
|
3554
|
+
l("div", {
|
|
3555
3555
|
class: B([{ "is-active": i.tab === "generalSettings" }, "tab-item ml-[2px]"]),
|
|
3556
3556
|
onClick: t[5] || (t[5] = (f) => i.tab = "generalSettings")
|
|
3557
3557
|
}, [
|
|
@@ -3562,7 +3562,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3562
3562
|
})
|
|
3563
3563
|
], 2)
|
|
3564
3564
|
])),
|
|
3565
|
-
i.tab === "blocks" ? (
|
|
3565
|
+
i.tab === "blocks" ? (a(), b(h, {
|
|
3566
3566
|
key: 1,
|
|
3567
3567
|
_document: n.state,
|
|
3568
3568
|
set: n.set,
|
|
@@ -3572,7 +3572,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3572
3572
|
onBlockAdded: t[6] || (t[6] = (f) => n.fixed ? e.$emit("close") : null)
|
|
3573
3573
|
}, {
|
|
3574
3574
|
footer: u(() => [
|
|
3575
|
-
|
|
3575
|
+
l("div", Ho, [
|
|
3576
3576
|
c(g, {
|
|
3577
3577
|
"icon-left": "help",
|
|
3578
3578
|
type: "none",
|
|
@@ -3583,17 +3583,17 @@ function No(e, t, n, s, i, o) {
|
|
|
3583
3583
|
}, {
|
|
3584
3584
|
default: u(() => [
|
|
3585
3585
|
_(d(e.$t("guideButton")) + " ", 1),
|
|
3586
|
-
i.showGuideNotification ? (
|
|
3586
|
+
i.showGuideNotification ? (a(), p("div", qo)) : C("", !0)
|
|
3587
3587
|
]),
|
|
3588
3588
|
_: 1
|
|
3589
3589
|
}, 8, ["onClick"])
|
|
3590
3590
|
])
|
|
3591
3591
|
]),
|
|
3592
3592
|
_: 1
|
|
3593
|
-
}, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (
|
|
3593
|
+
}, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (a(), p("div", Go, [
|
|
3594
3594
|
c(T, { class: "h-full w-full" }, {
|
|
3595
3595
|
default: u(() => [
|
|
3596
|
-
i.tab === "design" ? (
|
|
3596
|
+
i.tab === "design" ? (a(), b(y, {
|
|
3597
3597
|
key: 0,
|
|
3598
3598
|
_document: n.state,
|
|
3599
3599
|
_value: {
|
|
@@ -3601,7 +3601,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3601
3601
|
},
|
|
3602
3602
|
set: n.set,
|
|
3603
3603
|
offset: n.fixed ? 0 : n.width
|
|
3604
|
-
}, null, 8, ["_document", "set", "offset"])) : i.tab === "fields" ? (
|
|
3604
|
+
}, null, 8, ["_document", "set", "offset"])) : i.tab === "fields" ? (a(), b(w, {
|
|
3605
3605
|
key: 1,
|
|
3606
3606
|
_document: n.state,
|
|
3607
3607
|
"crm-service": o.extensionTabType,
|
|
@@ -3609,7 +3609,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3609
3609
|
css: "data.css"
|
|
3610
3610
|
},
|
|
3611
3611
|
set: n.set
|
|
3612
|
-
}, null, 8, ["_document", "crm-service", "set"])) : i.tab === "extension" ? (
|
|
3612
|
+
}, null, 8, ["_document", "crm-service", "set"])) : i.tab === "extension" ? (a(), b(k, {
|
|
3613
3613
|
key: 2,
|
|
3614
3614
|
_document: n.state,
|
|
3615
3615
|
_value: {
|
|
@@ -3619,7 +3619,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3619
3619
|
},
|
|
3620
3620
|
onInput: t[7] || (t[7] = ({ key: f, value: x }) => n.set({ key: f, value: x }))
|
|
3621
3621
|
}, null, 8, ["_document"])) : C("", !0),
|
|
3622
|
-
i.tab === "generalSettings" ? (
|
|
3622
|
+
i.tab === "generalSettings" ? (a(), b(D, {
|
|
3623
3623
|
key: 3,
|
|
3624
3624
|
_document: n.state,
|
|
3625
3625
|
_value: {
|
|
@@ -3641,7 +3641,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3641
3641
|
_: 1
|
|
3642
3642
|
})
|
|
3643
3643
|
])),
|
|
3644
|
-
i.showGuide ? (
|
|
3644
|
+
i.showGuide ? (a(), b(v, {
|
|
3645
3645
|
key: 3,
|
|
3646
3646
|
onClose: t[9] || (t[9] = (f) => i.showGuide = !1)
|
|
3647
3647
|
})) : C("", !0)
|
|
@@ -3916,8 +3916,8 @@ const Wo = /* @__PURE__ */ F(Eo, [["render", No], ["__scopeId", "data-v-98f898b4
|
|
|
3916
3916
|
}, es = ["innerHTML"];
|
|
3917
3917
|
function ts(e, t, n, s, i, o) {
|
|
3918
3918
|
const r = m("CButton"), g = m("DocumentFormViewRadio"), h = m("CIcon"), y = m("DocumentFormNav"), w = m("DocumentFormMenu"), k = m("DynamicChapter"), D = m("DynamicBlock"), T = m("LogoBanner"), v = m("IsPremium"), f = m("DocumentStyleContainer"), x = m("portal-target"), $ = m("DocumentDrawer");
|
|
3919
|
-
return
|
|
3920
|
-
|
|
3919
|
+
return a(), p("div", Zo, [
|
|
3920
|
+
l("div", {
|
|
3921
3921
|
class: B([{
|
|
3922
3922
|
"is-edit-view": o.isEditView,
|
|
3923
3923
|
"is-empty-list": !o.nestedReadLayout.length
|
|
@@ -3925,8 +3925,8 @@ function ts(e, t, n, s, i, o) {
|
|
|
3925
3925
|
}, [
|
|
3926
3926
|
c(y, { close: n.close }, {
|
|
3927
3927
|
left: u(() => [
|
|
3928
|
-
|
|
3929
|
-
n.close ? (
|
|
3928
|
+
l("div", Ko, [
|
|
3929
|
+
n.close ? (a(), b(r, {
|
|
3930
3930
|
key: 0,
|
|
3931
3931
|
"icon-props": { size: 20 },
|
|
3932
3932
|
size: "normal",
|
|
@@ -3936,7 +3936,7 @@ function ts(e, t, n, s, i, o) {
|
|
|
3936
3936
|
pattern: "tertiary",
|
|
3937
3937
|
onClick: n.close
|
|
3938
3938
|
}, null, 8, ["onClick"])) : C("", !0),
|
|
3939
|
-
n.goBack && e.mq !== "sm" ? (
|
|
3939
|
+
n.goBack && e.mq !== "sm" ? (a(), b(r, {
|
|
3940
3940
|
key: 1,
|
|
3941
3941
|
"icon-props": { size: 20 },
|
|
3942
3942
|
type: "none",
|
|
@@ -3960,7 +3960,7 @@ function ts(e, t, n, s, i, o) {
|
|
|
3960
3960
|
])
|
|
3961
3961
|
]),
|
|
3962
3962
|
center: u(() => [
|
|
3963
|
-
|
|
3963
|
+
l("div", Qo, [
|
|
3964
3964
|
G(c(g, {
|
|
3965
3965
|
small: e.mq === "sm",
|
|
3966
3966
|
"model-value": n.view,
|
|
@@ -3968,8 +3968,8 @@ function ts(e, t, n, s, i, o) {
|
|
|
3968
3968
|
}, null, 8, ["small", "model-value"]), [
|
|
3969
3969
|
[ve, o.nestedReadLayout.length]
|
|
3970
3970
|
]),
|
|
3971
|
-
!o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (
|
|
3972
|
-
(
|
|
3971
|
+
!o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (a(), p("div", Yo, [
|
|
3972
|
+
(a(), p(I, null, E(["desktop", "tablet", "mobile"], (S) => l("div", {
|
|
3973
3973
|
key: S,
|
|
3974
3974
|
style: z(
|
|
3975
3975
|
i.previewDevice === S && {
|
|
@@ -4007,7 +4007,7 @@ function ts(e, t, n, s, i, o) {
|
|
|
4007
4007
|
}, null, 8, ["state", "set", "remove-value", "template", "fixed", "can-use-blocks", "is-legacy-template", "width"]), [
|
|
4008
4008
|
[ve, i.drawerState.showLeft]
|
|
4009
4009
|
]),
|
|
4010
|
-
|
|
4010
|
+
l("div", {
|
|
4011
4011
|
ref: "scroll-body",
|
|
4012
4012
|
class: B([{
|
|
4013
4013
|
"device-offset": o.isEditView
|
|
@@ -4018,7 +4018,7 @@ function ts(e, t, n, s, i, o) {
|
|
|
4018
4018
|
}
|
|
4019
4019
|
)
|
|
4020
4020
|
}, [
|
|
4021
|
-
|
|
4021
|
+
l("div", {
|
|
4022
4022
|
class: B([[
|
|
4023
4023
|
{
|
|
4024
4024
|
"is-device-edit": o.isEditView,
|
|
@@ -4028,15 +4028,15 @@ function ts(e, t, n, s, i, o) {
|
|
|
4028
4028
|
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%]"
|
|
4029
4029
|
], "list-container"])
|
|
4030
4030
|
}, [
|
|
4031
|
-
!o.nestedReadLayout.length && !o.isFixedSidebar ? (
|
|
4031
|
+
!o.nestedReadLayout.length && !o.isFixedSidebar ? (a(), p("div", Xo, [
|
|
4032
4032
|
t[8] || (t[8] = pt('<div style="position:relative;" data-v-7f3fffc7><div class="drag-drop-illustration-block" data-v-7f3fffc7><div data-v-7f3fffc7></div><div data-v-7f3fffc7></div></div><svg class="drag-drop-illustration" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" data-v-7f3fffc7><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-7f3fffc7></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-7f3fffc7></path></svg></div>', 1)),
|
|
4033
|
-
|
|
4033
|
+
l("div", {
|
|
4034
4034
|
class: "text-center",
|
|
4035
4035
|
style: { "max-width": "22ch" },
|
|
4036
4036
|
innerHTML: e.$t("emptyBlockPlaceholderLarge")
|
|
4037
4037
|
}, null, 8, es)
|
|
4038
4038
|
])) : C("", !0),
|
|
4039
|
-
(
|
|
4039
|
+
(a(), b(W(o.isEditView ? "div" : "simplebar"), { class: "h-full w-full" }, {
|
|
4040
4040
|
default: u(() => {
|
|
4041
4041
|
var S, H;
|
|
4042
4042
|
return [
|
|
@@ -4045,7 +4045,7 @@ function ts(e, t, n, s, i, o) {
|
|
|
4045
4045
|
"input-style": ((H = (S = n._document) == null ? void 0 : S.data) == null ? void 0 : H.css) || null
|
|
4046
4046
|
}, {
|
|
4047
4047
|
default: u(() => [
|
|
4048
|
-
o.nestedReadLayout ? (
|
|
4048
|
+
o.nestedReadLayout ? (a(), b(W(o.dndEnabled ? "DragList" : "div"), {
|
|
4049
4049
|
key: 0,
|
|
4050
4050
|
handle: ".NO-SELECTOR",
|
|
4051
4051
|
"drop-placeholder": { className: "drag-drop-placeholder" },
|
|
@@ -4062,9 +4062,9 @@ function ts(e, t, n, s, i, o) {
|
|
|
4062
4062
|
onDrop: t[5] || (t[5] = (V) => o.onBlockListChange("blocks-list", V))
|
|
4063
4063
|
}, {
|
|
4064
4064
|
default: u(() => [
|
|
4065
|
-
(
|
|
4065
|
+
(a(!0), p(I, null, E(n._document.getReadLayout({
|
|
4066
4066
|
showHiddenNodes: o.isEditView
|
|
4067
|
-
}), (V, se) => (
|
|
4067
|
+
}), (V, se) => (a(), b(W(o.dndEnabled ? "DragItem" : "div"), {
|
|
4068
4068
|
key: V.nodeId,
|
|
4069
4069
|
class: B([
|
|
4070
4070
|
{
|
|
@@ -4111,9 +4111,9 @@ function ts(e, t, n, s, i, o) {
|
|
|
4111
4111
|
]),
|
|
4112
4112
|
_: 1
|
|
4113
4113
|
}, 40, ["should-animate-drop"])) : C("", !0),
|
|
4114
|
-
n.canShowBanner ? (
|
|
4114
|
+
n.canShowBanner ? (a(), b(v, { key: 1 }, {
|
|
4115
4115
|
default: u(({ isProLike: V }) => [
|
|
4116
|
-
!o.isEditView && !V ? (
|
|
4116
|
+
!o.isEditView && !V ? (a(), b(T, {
|
|
4117
4117
|
key: 0,
|
|
4118
4118
|
position: "sticky"
|
|
4119
4119
|
})) : C("", !0)
|
|
@@ -4129,7 +4129,7 @@ function ts(e, t, n, s, i, o) {
|
|
|
4129
4129
|
}))
|
|
4130
4130
|
], 2)
|
|
4131
4131
|
], 6),
|
|
4132
|
-
(
|
|
4132
|
+
(a(), b($, {
|
|
4133
4133
|
id: "settingsDrawer",
|
|
4134
4134
|
key: "settingsDrawer",
|
|
4135
4135
|
open: !!i.drawerState.openSection,
|
|
@@ -4302,7 +4302,7 @@ const ns = /* @__PURE__ */ F(jo, [["render", ts], ["__scopeId", "data-v-7f3fffc7
|
|
|
4302
4302
|
}, os = {
|
|
4303
4303
|
key: "1",
|
|
4304
4304
|
class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
|
|
4305
|
-
}, ss = { class: "pl-2" },
|
|
4305
|
+
}, ss = { class: "pl-2" }, ls = ["textContent"], as = { class: "text-sm text-red-600 text-opacity-80" }, rs = {
|
|
4306
4306
|
key: "2",
|
|
4307
4307
|
class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
|
|
4308
4308
|
}, ds = { class: "pl-2" }, cs = ["textContent"], us = { class: "mb-4 text-sm text-red-600 text-opacity-80" }, ms = {
|
|
@@ -4311,14 +4311,14 @@ const ns = /* @__PURE__ */ F(jo, [["render", ts], ["__scopeId", "data-v-7f3fffc7
|
|
|
4311
4311
|
}, ps = ["onClick"], hs = { style: { "padding-left": "0.5em" } };
|
|
4312
4312
|
function fs(e, t, n, s, i, o) {
|
|
4313
4313
|
const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"), y = m("ProBadge"), w = m("IsPremiumPreStep"), k = m("IsPremium"), D = m("SendForm"), T = ie("tooltip");
|
|
4314
|
-
return e.mq !== "sm" || i.isOpen ? (
|
|
4314
|
+
return e.mq !== "sm" || i.isOpen ? (a(), b(W(e.mq === "sm" ? "div" : "Drawer"), {
|
|
4315
4315
|
key: 0,
|
|
4316
4316
|
modelValue: i.isOpen,
|
|
4317
4317
|
"onUpdate:modelValue": t[3] || (t[3] = (v) => i.isOpen = v),
|
|
4318
4318
|
placement: "right"
|
|
4319
4319
|
}, {
|
|
4320
4320
|
default: u(() => [
|
|
4321
|
-
|
|
4321
|
+
l("div", {
|
|
4322
4322
|
class: B([{
|
|
4323
4323
|
"is-fullscreen": e.mq === "sm"
|
|
4324
4324
|
}, "send-modal font-inter"])
|
|
@@ -4339,7 +4339,7 @@ function fs(e, t, n, s, i, o) {
|
|
|
4339
4339
|
"use-scroll": ""
|
|
4340
4340
|
}, {
|
|
4341
4341
|
send: u(() => [
|
|
4342
|
-
o.isPublicForm ? (
|
|
4342
|
+
o.isPublicForm ? (a(), b(r, {
|
|
4343
4343
|
key: 0,
|
|
4344
4344
|
type: "secondary",
|
|
4345
4345
|
wide: "",
|
|
@@ -4353,12 +4353,12 @@ function fs(e, t, n, s, i, o) {
|
|
|
4353
4353
|
}, 8, ["onClick"])) : C("", !0)
|
|
4354
4354
|
]),
|
|
4355
4355
|
[o.saveTemplateSlot]: u(() => [
|
|
4356
|
-
|
|
4356
|
+
l("label", ms, [
|
|
4357
4357
|
c(k, null, {
|
|
4358
4358
|
default: u(({ canCreateTemplate: v }) => [
|
|
4359
4359
|
c(w, { feature: "saveDocTemplate" }, {
|
|
4360
4360
|
default: u(({ onClick: f }) => [
|
|
4361
|
-
|
|
4361
|
+
l("div", {
|
|
4362
4362
|
class: "flex items-center",
|
|
4363
4363
|
onClick: (x) => o.onClickSaveAsTemplate({
|
|
4364
4364
|
event: x,
|
|
@@ -4373,7 +4373,7 @@ function fs(e, t, n, s, i, o) {
|
|
|
4373
4373
|
size: "small",
|
|
4374
4374
|
type: "secondary"
|
|
4375
4375
|
}, null, 8, ["modelValue"]),
|
|
4376
|
-
|
|
4376
|
+
l("div", hs, [
|
|
4377
4377
|
_(d(e.$t("saveDocAsTemplate")) + " ", 1),
|
|
4378
4378
|
G(c(g, {
|
|
4379
4379
|
type: "info",
|
|
@@ -4382,7 +4382,7 @@ function fs(e, t, n, s, i, o) {
|
|
|
4382
4382
|
[T, o.saveTemplateTooltip]
|
|
4383
4383
|
])
|
|
4384
4384
|
]),
|
|
4385
|
-
v ? C("", !0) : (
|
|
4385
|
+
v ? C("", !0) : (a(), b(y, {
|
|
4386
4386
|
key: 0,
|
|
4387
4387
|
class: "ml-2 self-center"
|
|
4388
4388
|
}))
|
|
@@ -4396,39 +4396,39 @@ function fs(e, t, n, s, i, o) {
|
|
|
4396
4396
|
])
|
|
4397
4397
|
]),
|
|
4398
4398
|
default: u(() => [
|
|
4399
|
-
o.tooManyClients ? (
|
|
4400
|
-
|
|
4399
|
+
o.tooManyClients ? (a(), p("div", os, [
|
|
4400
|
+
l("div", null, [
|
|
4401
4401
|
c(g, {
|
|
4402
4402
|
type: "error",
|
|
4403
4403
|
size: "18",
|
|
4404
4404
|
class: "-mt-1 text-red-600"
|
|
4405
4405
|
})
|
|
4406
4406
|
]),
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4407
|
+
l("div", null, [
|
|
4408
|
+
l("div", ss, [
|
|
4409
|
+
l("div", {
|
|
4410
4410
|
class: "text-sm font-semibold text-red-600",
|
|
4411
4411
|
textContent: d(e.$t("tooManyClientsTitle"))
|
|
4412
|
-
}, null, 8,
|
|
4413
|
-
|
|
4412
|
+
}, null, 8, ls),
|
|
4413
|
+
l("div", as, d(e.$t("tooManyClientsText")), 1)
|
|
4414
4414
|
])
|
|
4415
4415
|
])
|
|
4416
4416
|
])) : C("", !0),
|
|
4417
|
-
o.hasAnswerBlock ? C("", !0) : (
|
|
4418
|
-
|
|
4417
|
+
o.hasAnswerBlock ? C("", !0) : (a(), p("div", rs, [
|
|
4418
|
+
l("div", null, [
|
|
4419
4419
|
c(g, {
|
|
4420
4420
|
type: "error",
|
|
4421
4421
|
size: "18",
|
|
4422
4422
|
class: "-mt-1 text-red-600"
|
|
4423
4423
|
})
|
|
4424
4424
|
]),
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4425
|
+
l("div", null, [
|
|
4426
|
+
l("div", ds, [
|
|
4427
|
+
l("div", {
|
|
4428
4428
|
class: "text-sm font-semibold text-red-600",
|
|
4429
4429
|
textContent: d(e.$t("signMissingTitle"))
|
|
4430
4430
|
}, null, 8, cs),
|
|
4431
|
-
|
|
4431
|
+
l("div", us, d(e.$t("signMissingText")), 1)
|
|
4432
4432
|
]),
|
|
4433
4433
|
c(r, {
|
|
4434
4434
|
type: "secondary",
|
|
@@ -4612,10 +4612,10 @@ const gs = /* @__PURE__ */ F(is, [["render", fs], ["__scopeId", "data-v-8f77b768
|
|
|
4612
4612
|
}, vs = { class: "t-root font-inter" }, Cs = { style: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, bs = { key: 1 }, ks = { class: "text-gray-600" }, ws = { key: 2 }, _s = { class: "text-gray-600" };
|
|
4613
4613
|
function xs(e, t, n, s, i, o) {
|
|
4614
4614
|
const r = m("CCallout"), g = m("CInput"), h = m("CField"), y = m("CCheckbox"), w = m("CButton");
|
|
4615
|
-
return
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
n.template ? C("", !0) : (
|
|
4615
|
+
return a(), p("div", vs, [
|
|
4616
|
+
l("div", Cs, d(n.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })), 1),
|
|
4617
|
+
l("div", null, [
|
|
4618
|
+
n.template ? C("", !0) : (a(), b(r, { key: 0 }, {
|
|
4619
4619
|
default: u(() => [
|
|
4620
4620
|
_(d(e.$t("calloutDescription")), 1)
|
|
4621
4621
|
]),
|
|
@@ -4641,7 +4641,7 @@ function xs(e, t, n, s, i, o) {
|
|
|
4641
4641
|
]),
|
|
4642
4642
|
_: 1
|
|
4643
4643
|
}, 8, ["vuelidate", "vuelidate-messages", "label"]),
|
|
4644
|
-
n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (
|
|
4644
|
+
n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (a(), p("div", bs, [
|
|
4645
4645
|
c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
|
|
4646
4646
|
default: u(() => [
|
|
4647
4647
|
c(y, {
|
|
@@ -4651,7 +4651,7 @@ function xs(e, t, n, s, i, o) {
|
|
|
4651
4651
|
size: "normal"
|
|
4652
4652
|
}, {
|
|
4653
4653
|
default: u(() => [
|
|
4654
|
-
|
|
4654
|
+
l("div", ks, d(e.$t("updateExisting")), 1)
|
|
4655
4655
|
]),
|
|
4656
4656
|
_: 1
|
|
4657
4657
|
}, 8, ["modelValue"])
|
|
@@ -4659,7 +4659,7 @@ function xs(e, t, n, s, i, o) {
|
|
|
4659
4659
|
_: 1
|
|
4660
4660
|
})
|
|
4661
4661
|
])) : C("", !0),
|
|
4662
|
-
n.document && n.document.clients.length && n.showKeepClientsOption ? (
|
|
4662
|
+
n.document && n.document.clients.length && n.showKeepClientsOption ? (a(), p("div", ws, [
|
|
4663
4663
|
c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
|
|
4664
4664
|
default: u(() => [
|
|
4665
4665
|
c(y, {
|
|
@@ -4669,7 +4669,7 @@ function xs(e, t, n, s, i, o) {
|
|
|
4669
4669
|
size: "normal"
|
|
4670
4670
|
}, {
|
|
4671
4671
|
default: u(() => [
|
|
4672
|
-
|
|
4672
|
+
l("div", _s, d(e.$t("keepClients")), 1)
|
|
4673
4673
|
]),
|
|
4674
4674
|
_: 1
|
|
4675
4675
|
}, 8, ["modelValue"])
|
|
@@ -4751,31 +4751,31 @@ const Is = /* @__PURE__ */ Ue(Ss), $s = {
|
|
|
4751
4751
|
}, Fs = { 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" }, Ls = { class: "text-gray-600" }, Bs = { class: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, Vs = { class: "w-56 p-4 text-sm" }, Ms = { class: "font-semibold" }, Ps = { class: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, As = { class: "text-sm text-gray-600" }, Es = { 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" }, zs = { class: "mt-5" };
|
|
4752
4752
|
function Rs(e, t, n, s, i, o) {
|
|
4753
4753
|
const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), y = ie("close-popper");
|
|
4754
|
-
return
|
|
4754
|
+
return a(), b(h, null, {
|
|
4755
4755
|
default: u(({
|
|
4756
4756
|
accountType: w,
|
|
4757
4757
|
trialDaysLeft: k,
|
|
4758
4758
|
openUpgradeModal: D,
|
|
4759
4759
|
initialFreePremiumDays: T
|
|
4760
4760
|
}) => [
|
|
4761
|
-
w === "trial" && e.mq !== "sm" ? (
|
|
4761
|
+
w === "trial" && e.mq !== "sm" ? (a(), b(g, {
|
|
4762
4762
|
key: 0,
|
|
4763
4763
|
"popper-class": "trial-popover"
|
|
4764
4764
|
}, {
|
|
4765
4765
|
popper: u(() => [
|
|
4766
|
-
|
|
4767
|
-
|
|
4766
|
+
l("div", Vs, [
|
|
4767
|
+
l("div", Ms, [
|
|
4768
4768
|
_(d(e.$t("title.1")) + " ", 1),
|
|
4769
|
-
|
|
4769
|
+
l("span", Ps, d(e.$t("title.2")), 1),
|
|
4770
4770
|
_(" " + d(e.$t("title.3", { trialDaysLeft: k })) + ". ", 1)
|
|
4771
4771
|
]),
|
|
4772
|
-
|
|
4772
|
+
l("div", As, [
|
|
4773
4773
|
_(d(e.$t("title.4")) + " ", 1),
|
|
4774
|
-
|
|
4774
|
+
l("span", Es, d(e.$t("title.5")), 1),
|
|
4775
4775
|
t[0] || (t[0] = _(". "))
|
|
4776
4776
|
]),
|
|
4777
|
-
|
|
4778
|
-
G((
|
|
4777
|
+
l("div", zs, [
|
|
4778
|
+
G((a(), b(r, {
|
|
4779
4779
|
type: "secondary",
|
|
4780
4780
|
size: "small",
|
|
4781
4781
|
"icon-right": "arrow-right",
|
|
@@ -4792,10 +4792,10 @@ function Rs(e, t, n, s, i, o) {
|
|
|
4792
4792
|
])
|
|
4793
4793
|
]),
|
|
4794
4794
|
default: u(() => [
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4795
|
+
l("div", Fs, [
|
|
4796
|
+
l("div", Ls, d(e.$tc("_common:day", { count: k })) + " " + d(e.$t("button")), 1),
|
|
4797
|
+
l("div", Bs, [
|
|
4798
|
+
l("div", {
|
|
4799
4799
|
style: z({
|
|
4800
4800
|
width: o.clamp(k / T * 100, 0, 100) + "%"
|
|
4801
4801
|
}),
|
|
@@ -4810,7 +4810,7 @@ function Rs(e, t, n, s, i, o) {
|
|
|
4810
4810
|
_: 1
|
|
4811
4811
|
});
|
|
4812
4812
|
}
|
|
4813
|
-
const Os = /* @__PURE__ */ F($s, [["render", Rs]]),
|
|
4813
|
+
const Os = /* @__PURE__ */ F($s, [["render", Rs]]), le = yt({
|
|
4814
4814
|
canEdit: !1,
|
|
4815
4815
|
isForm: !0,
|
|
4816
4816
|
setFormValue: null,
|
|
@@ -4831,7 +4831,7 @@ const Os = /* @__PURE__ */ F($s, [["render", Rs]]), ae = yt({
|
|
|
4831
4831
|
return { isValid: e };
|
|
4832
4832
|
},
|
|
4833
4833
|
mixins: [Q],
|
|
4834
|
-
provide: () => ({ viewSettings:
|
|
4834
|
+
provide: () => ({ viewSettings: le }),
|
|
4835
4835
|
props: {
|
|
4836
4836
|
document: {
|
|
4837
4837
|
type: Object,
|
|
@@ -4901,12 +4901,12 @@ const Os = /* @__PURE__ */ F($s, [["render", Rs]]), ae = yt({
|
|
|
4901
4901
|
canEdit: {
|
|
4902
4902
|
immediate: !0,
|
|
4903
4903
|
handler(e) {
|
|
4904
|
-
|
|
4904
|
+
le.canEdit = !!e;
|
|
4905
4905
|
}
|
|
4906
4906
|
}
|
|
4907
4907
|
},
|
|
4908
4908
|
created() {
|
|
4909
|
-
this.setDocValue && (
|
|
4909
|
+
this.setDocValue && (le.setFormValue = this.setDocValue), this.removeDocValue && (le.removeFormValue = this.removeDocValue);
|
|
4910
4910
|
},
|
|
4911
4911
|
methods: {
|
|
4912
4912
|
async openSendModal() {
|
|
@@ -4942,7 +4942,7 @@ const Os = /* @__PURE__ */ F($s, [["render", Rs]]), ae = yt({
|
|
|
4942
4942
|
}, qs = { class: "flex self-center" }, Gs = { class: "buttons has-addons whitespace-nowrap" };
|
|
4943
4943
|
function Ns(e, t, n, s, i, o) {
|
|
4944
4944
|
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), y = m("IsPremiumPreStep"), w = m("RemainingTrialButton"), k = m("IsPremium"), D = m("DocumentFormContainer"), T = m("DocumentSend");
|
|
4945
|
-
return n.document ? (
|
|
4945
|
+
return n.document ? (a(), p("div", Hs, [
|
|
4946
4946
|
c(D, {
|
|
4947
4947
|
view: i.view,
|
|
4948
4948
|
"onUpdate:view": t[0] || (t[0] = (v) => i.view = v),
|
|
@@ -4959,13 +4959,13 @@ function Ns(e, t, n, s, i, o) {
|
|
|
4959
4959
|
default: u(({ canCreateDocument: v, canCreateTemplate: f }) => [
|
|
4960
4960
|
c(y, { feature: "documents" }, {
|
|
4961
4961
|
default: u(({ onClick: x }) => [
|
|
4962
|
-
(
|
|
4962
|
+
(a(), p("div", {
|
|
4963
4963
|
key: o.canDoActions,
|
|
4964
4964
|
class: "inline-flex flex-1 justify-end space-x-5"
|
|
4965
4965
|
}, [
|
|
4966
4966
|
c(y, { feature: "saveDocTemplate" }, {
|
|
4967
4967
|
default: u(({ onClick: $ }) => [
|
|
4968
|
-
|
|
4968
|
+
l("div", qs, [
|
|
4969
4969
|
c(h, {
|
|
4970
4970
|
disabled: !o.canDoActions
|
|
4971
4971
|
}, {
|
|
@@ -5020,7 +5020,7 @@ function Ns(e, t, n, s, i, o) {
|
|
|
5020
5020
|
}, 1024),
|
|
5021
5021
|
A(e.$slots, "nav-right-action", {}, () => [
|
|
5022
5022
|
c(w),
|
|
5023
|
-
|
|
5023
|
+
l("div", Gs, [
|
|
5024
5024
|
c(r, {
|
|
5025
5025
|
ref: "sendButton",
|
|
5026
5026
|
disabled: !o.canDoActions,
|
|
@@ -5087,7 +5087,7 @@ const Ws = /* @__PURE__ */ F(Us, [["render", Ns]]), js = /* @__PURE__ */ de({
|
|
|
5087
5087
|
}
|
|
5088
5088
|
return (y, w) => {
|
|
5089
5089
|
const k = ie("tooltip");
|
|
5090
|
-
return
|
|
5090
|
+
return a(), b(O(re), {
|
|
5091
5091
|
"append-to-body": y.appendToBody,
|
|
5092
5092
|
style: { top: "-8px", right: "-4px" },
|
|
5093
5093
|
onClick: w[0] || (w[0] = j(() => {
|
|
@@ -5254,16 +5254,16 @@ const Ws = /* @__PURE__ */ F(Us, [["render", Ns]]), js = /* @__PURE__ */ de({
|
|
|
5254
5254
|
key: 2,
|
|
5255
5255
|
class: "text-center text-gray-400",
|
|
5256
5256
|
style: { padding: "1em" }
|
|
5257
|
-
}, Xs = ["onClick", "onMouseoverPassive"],
|
|
5257
|
+
}, Xs = ["onClick", "onMouseoverPassive"], el = {
|
|
5258
5258
|
key: 0,
|
|
5259
5259
|
style: { display: "inline-flex", "align-items": "center", position: "absolute", right: "1em", top: "50%", transform: "translateY(-50%)" }
|
|
5260
5260
|
};
|
|
5261
|
-
function
|
|
5261
|
+
function tl(e, t, n, s, i, o) {
|
|
5262
5262
|
const r = m("CInput"), g = m("CSkeleton"), h = m("CButton"), y = m("IsPremiumPreStep"), w = m("IsPremium");
|
|
5263
|
-
return
|
|
5264
|
-
|
|
5263
|
+
return a(), p("div", null, [
|
|
5264
|
+
l("div", Ks, [
|
|
5265
5265
|
A(e.$slots, "default", {}, void 0, !0),
|
|
5266
|
-
i.hasItems ? (
|
|
5266
|
+
i.hasItems ? (a(), b(r, {
|
|
5267
5267
|
key: 0,
|
|
5268
5268
|
modelValue: i.query,
|
|
5269
5269
|
"onUpdate:modelValue": [
|
|
@@ -5278,8 +5278,8 @@ function ta(e, t, n, s, i, o) {
|
|
|
5278
5278
|
class: "hidden md:flex"
|
|
5279
5279
|
}, null, 8, ["modelValue", "loading", "placeholder", "onUpdate:modelValue"])) : C("", !0)
|
|
5280
5280
|
]),
|
|
5281
|
-
|
|
5282
|
-
i.isLoading && !i.list.length ? (
|
|
5281
|
+
l("div", Qs, [
|
|
5282
|
+
i.isLoading && !i.list.length ? (a(), p(I, { key: 0 }, E(3, (k) => l("div", {
|
|
5283
5283
|
key: k,
|
|
5284
5284
|
class: "recent-item placeholder"
|
|
5285
5285
|
}, [
|
|
@@ -5288,12 +5288,12 @@ function ta(e, t, n, s, i, o) {
|
|
|
5288
5288
|
class: "recent-item-name"
|
|
5289
5289
|
}),
|
|
5290
5290
|
c(g, { width: "35%" })
|
|
5291
|
-
])), 64)) : !i.isLoading && !i.query && !i.list.length ? (
|
|
5291
|
+
])), 64)) : !i.isLoading && !i.query && !i.list.length ? (a(), p("div", Ys, d(e.$t("emptyPlaceholder")), 1)) : i.query && !i.isLoading && !i.list.length ? (a(), p("div", Js, d(e.$t("noResults")), 1)) : (a(), b(w, { key: 3 }, {
|
|
5292
5292
|
default: u(({ canCreateTemplate: k, canUseTemplate: D }) => [
|
|
5293
5293
|
c(y, { feature: "useDocTemplate" }, {
|
|
5294
5294
|
default: u(({ onClick: T }) => [
|
|
5295
|
-
|
|
5296
|
-
(
|
|
5295
|
+
l("div", null, [
|
|
5296
|
+
(a(!0), p(I, null, E(i.list, (v, f) => (a(), p("div", {
|
|
5297
5297
|
key: v._id,
|
|
5298
5298
|
class: "recent-item",
|
|
5299
5299
|
onClick: (x) => D ? o.onUseDocTemplate(v._id) : T({
|
|
@@ -5302,11 +5302,11 @@ function ta(e, t, n, s, i, o) {
|
|
|
5302
5302
|
onMouseoverPassive: (x) => i.hoverIndex = f,
|
|
5303
5303
|
onMouseleavePassive: t[1] || (t[1] = (x) => i.hoverIndex = null)
|
|
5304
5304
|
}, [
|
|
5305
|
-
|
|
5305
|
+
l("div", {
|
|
5306
5306
|
class: B([{ "text-gray-400": !v.data.name }, "recent-item-name"])
|
|
5307
5307
|
}, d(v.data.name || e.$t("_common:untitled")), 3),
|
|
5308
|
-
|
|
5309
|
-
i.hoverIndex === f ? (
|
|
5308
|
+
l("div", null, d(e.$formatDistanceToNow(v.createdAt)), 1),
|
|
5309
|
+
i.hoverIndex === f ? (a(), p("div", el, [
|
|
5310
5310
|
c(y, { feature: "saveDocTemplate" }, {
|
|
5311
5311
|
default: u(({ onClick: x }) => [
|
|
5312
5312
|
c(h, {
|
|
@@ -5346,13 +5346,13 @@ function ta(e, t, n, s, i, o) {
|
|
|
5346
5346
|
])
|
|
5347
5347
|
]);
|
|
5348
5348
|
}
|
|
5349
|
-
const
|
|
5349
|
+
const nl = /* @__PURE__ */ F(Zs, [["render", tl], ["__scopeId", "data-v-718e3064"]]), il = { class: "item-paper" }, ol = {
|
|
5350
5350
|
key: 2,
|
|
5351
5351
|
class: "absolute bottom-2 right-2"
|
|
5352
|
-
},
|
|
5352
|
+
}, sl = {
|
|
5353
5353
|
key: 3,
|
|
5354
5354
|
class: "add-button"
|
|
5355
|
-
},
|
|
5355
|
+
}, ll = { class: "item-footer" }, al = ["textContent"], rl = ["textContent"], dl = /* @__PURE__ */ de({
|
|
5356
5356
|
__name: "DocumentIcon",
|
|
5357
5357
|
props: {
|
|
5358
5358
|
isPlaceholder: { type: Boolean, default: !1 },
|
|
@@ -5369,7 +5369,7 @@ const na = /* @__PURE__ */ F(Zs, [["render", ta], ["__scopeId", "data-v-718e3064
|
|
|
5369
5369
|
), T = U(() => wt(n.name, 60));
|
|
5370
5370
|
return (v, f) => {
|
|
5371
5371
|
const x = m("CIcon");
|
|
5372
|
-
return
|
|
5372
|
+
return a(), p("div", be(k.value, {
|
|
5373
5373
|
key: w.value,
|
|
5374
5374
|
class: [[
|
|
5375
5375
|
h.value,
|
|
@@ -5383,22 +5383,22 @@ const na = /* @__PURE__ */ F(Zs, [["render", ta], ["__scopeId", "data-v-718e3064
|
|
|
5383
5383
|
style: g.value,
|
|
5384
5384
|
onClick: i
|
|
5385
5385
|
}), [
|
|
5386
|
-
|
|
5387
|
-
v.thumbnail ? (
|
|
5386
|
+
l("div", il, [
|
|
5387
|
+
v.thumbnail ? (a(), p("div", {
|
|
5388
5388
|
key: 0,
|
|
5389
5389
|
style: z([{
|
|
5390
5390
|
backgroundImage: `url(${v.thumbnail})`
|
|
5391
5391
|
}, { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }])
|
|
5392
|
-
}, null, 4)) : v.isPlaceholder || v.isAdd ? C("", !0) : (
|
|
5392
|
+
}, null, 4)) : v.isPlaceholder || v.isAdd ? C("", !0) : (a(), b(tn, {
|
|
5393
5393
|
key: 1,
|
|
5394
5394
|
media: v.media,
|
|
5395
5395
|
preview: "",
|
|
5396
5396
|
class: "item-media"
|
|
5397
5397
|
}, null, 8, ["media"])),
|
|
5398
|
-
O(o).badge ? (
|
|
5398
|
+
O(o).badge ? (a(), p("div", ol, [
|
|
5399
5399
|
A(v.$slots, "badge", {}, void 0, !0)
|
|
5400
5400
|
])) : C("", !0),
|
|
5401
|
-
v.isAdd ? (
|
|
5401
|
+
v.isAdd ? (a(), p("div", sl, [
|
|
5402
5402
|
c(x, {
|
|
5403
5403
|
size: 18,
|
|
5404
5404
|
"stroke-width": 3,
|
|
@@ -5406,24 +5406,24 @@ const na = /* @__PURE__ */ F(Zs, [["render", ta], ["__scopeId", "data-v-718e3064
|
|
|
5406
5406
|
})
|
|
5407
5407
|
])) : C("", !0)
|
|
5408
5408
|
]),
|
|
5409
|
-
|
|
5410
|
-
v.isAdd ? (
|
|
5409
|
+
l("div", ll, [
|
|
5410
|
+
v.isAdd ? (a(), p("div", {
|
|
5411
5411
|
key: 0,
|
|
5412
5412
|
class: "item-text",
|
|
5413
5413
|
style: { color: "hsl(0, 0%, 55%)" },
|
|
5414
5414
|
textContent: d(D.value)
|
|
5415
|
-
}, null, 8,
|
|
5416
|
-
|
|
5415
|
+
}, null, 8, al)) : v.name ? (a(), p(I, { key: 1 }, [
|
|
5416
|
+
l("div", {
|
|
5417
5417
|
class: "item-text",
|
|
5418
5418
|
textContent: d(T.value)
|
|
5419
|
-
}, null, 8,
|
|
5419
|
+
}, null, 8, rl),
|
|
5420
5420
|
A(v.$slots, "default", {}, void 0, !0)
|
|
5421
5421
|
], 64)) : C("", !0)
|
|
5422
5422
|
])
|
|
5423
5423
|
], 16);
|
|
5424
5424
|
};
|
|
5425
5425
|
}
|
|
5426
|
-
}),
|
|
5426
|
+
}), cl = /* @__PURE__ */ F(dl, [["__scopeId", "data-v-73746647"]]), ul = {
|
|
5427
5427
|
name: "HorizontalScroll",
|
|
5428
5428
|
components: {
|
|
5429
5429
|
Simplebar: J
|
|
@@ -5475,15 +5475,15 @@ const na = /* @__PURE__ */ F(Zs, [["render", ta], ["__scopeId", "data-v-718e3064
|
|
|
5475
5475
|
}, 50);
|
|
5476
5476
|
}
|
|
5477
5477
|
}
|
|
5478
|
-
},
|
|
5478
|
+
}, ml = {
|
|
5479
5479
|
ref: "container",
|
|
5480
5480
|
class: "horizontal-scroll"
|
|
5481
|
-
},
|
|
5482
|
-
function
|
|
5481
|
+
}, pl = { class: "hl-navigation" }, hl = { class: "hl-container" }, fl = { class: "flex w-full" };
|
|
5482
|
+
function gl(e, t, n, s, i, o) {
|
|
5483
5483
|
const r = m("CButton"), g = m("Simplebar");
|
|
5484
|
-
return
|
|
5485
|
-
|
|
5486
|
-
i.hasPrev ? (
|
|
5484
|
+
return a(), p("div", ml, [
|
|
5485
|
+
l("div", pl, [
|
|
5486
|
+
i.hasPrev ? (a(), p("div", {
|
|
5487
5487
|
key: 0,
|
|
5488
5488
|
class: "hl-btn-left max-sm:hidden",
|
|
5489
5489
|
onClick: t[0] || (t[0] = (h) => o.go(-1))
|
|
@@ -5498,7 +5498,7 @@ function ga(e, t, n, s, i, o) {
|
|
|
5498
5498
|
})
|
|
5499
5499
|
], !0)
|
|
5500
5500
|
])) : C("", !0),
|
|
5501
|
-
i.hasNext ? (
|
|
5501
|
+
i.hasNext ? (a(), p("div", {
|
|
5502
5502
|
key: 1,
|
|
5503
5503
|
class: "hl-btn-right max-sm:hidden",
|
|
5504
5504
|
onClick: t[2] || (t[2] = (h) => o.go(1))
|
|
@@ -5515,14 +5515,14 @@ function ga(e, t, n, s, i, o) {
|
|
|
5515
5515
|
], !0)
|
|
5516
5516
|
])) : C("", !0)
|
|
5517
5517
|
]),
|
|
5518
|
-
|
|
5518
|
+
l("div", hl, [
|
|
5519
5519
|
c(g, {
|
|
5520
5520
|
ref: "list",
|
|
5521
5521
|
class: "hl-list",
|
|
5522
5522
|
onScroll: o.scrollHandler
|
|
5523
5523
|
}, {
|
|
5524
5524
|
default: u(() => [
|
|
5525
|
-
|
|
5525
|
+
l("div", fl, [
|
|
5526
5526
|
A(e.$slots, "default", {}, void 0, !0)
|
|
5527
5527
|
])
|
|
5528
5528
|
]),
|
|
@@ -5531,8 +5531,8 @@ function ga(e, t, n, s, i, o) {
|
|
|
5531
5531
|
])
|
|
5532
5532
|
], 512);
|
|
5533
5533
|
}
|
|
5534
|
-
const
|
|
5535
|
-
function
|
|
5534
|
+
const yl = /* @__PURE__ */ F(ul, [["render", gl], ["__scopeId", "data-v-8c23700f"]]);
|
|
5535
|
+
function vl(e, { availableProducts: t }) {
|
|
5536
5536
|
if (!e) throw new Error("Missing parameter templateId");
|
|
5537
5537
|
const n = t, s = Object.keys(n).find((i) => {
|
|
5538
5538
|
var r;
|
|
@@ -5544,7 +5544,7 @@ function va(e, { availableProducts: t }) {
|
|
|
5544
5544
|
});
|
|
5545
5545
|
return s ? n[s] : null;
|
|
5546
5546
|
}
|
|
5547
|
-
async function
|
|
5547
|
+
async function Cl(e) {
|
|
5548
5548
|
if (!e) throw new Error("Missing argument stripeProduct");
|
|
5549
5549
|
const t = e == null ? void 0 : e.prices[0], { data: n } = await _t.createCheckoutSession({
|
|
5550
5550
|
items: [
|
|
@@ -5561,7 +5561,7 @@ async function Ca(e) {
|
|
|
5561
5561
|
function Je(e, { availableProducts: t }) {
|
|
5562
5562
|
var i, o, r;
|
|
5563
5563
|
let n = null;
|
|
5564
|
-
const s =
|
|
5564
|
+
const s = vl(e.templateId, {
|
|
5565
5565
|
availableProducts: t
|
|
5566
5566
|
});
|
|
5567
5567
|
return s && (n = {
|
|
@@ -5569,10 +5569,10 @@ function Je(e, { availableProducts: t }) {
|
|
|
5569
5569
|
currency: (o = s == null ? void 0 : s.prices) == null ? void 0 : o[0].currency
|
|
5570
5570
|
}),
|
|
5571
5571
|
isPurchased: ((r = e.purchaseInfo) == null ? void 0 : r.isPurchased) || !1,
|
|
5572
|
-
onBuy: async () =>
|
|
5572
|
+
onBuy: async () => Cl(s)
|
|
5573
5573
|
}), n;
|
|
5574
5574
|
}
|
|
5575
|
-
const
|
|
5575
|
+
const bl = {
|
|
5576
5576
|
name: "GalleryTemplateModal",
|
|
5577
5577
|
components: {
|
|
5578
5578
|
Simplebar: J,
|
|
@@ -5711,31 +5711,37 @@ const ba = {
|
|
|
5711
5711
|
await He(t) && we("info", this.$t("copyMessage"));
|
|
5712
5712
|
}
|
|
5713
5713
|
}
|
|
5714
|
-
},
|
|
5714
|
+
}, kl = { class: "template-modal font-inter relative flex h-full w-full flex-col overflow-y-auto rounded-[1.25em] bg-gray-200 p-[10px] md:flex-row md:overflow-hidden" }, wl = {
|
|
5715
|
+
class: "min-h-[400px] flex-none md:min-h-0 md:flex-auto",
|
|
5716
|
+
style: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": `rgb(244, 244, 244) 0px 2px 14px 0px inset,
|
|
5715
5717
|
rgba(0, 0, 0, 0.09) 0px 8px 35px 0px,
|
|
5716
|
-
rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset
|
|
5718
|
+
rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset` }
|
|
5719
|
+
}, _l = {
|
|
5720
|
+
class: "order-first w-full p-6 md:order-none md:flex-[0_1_300px] md:p-[2em_1em_3em_2em]",
|
|
5721
|
+
style: { "font-size": "18px" }
|
|
5722
|
+
}, xl = { style: { "padding-bottom": "2em" } }, Tl = { style: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, Dl = { style: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, Sl = { style: { hyphens: "auto" } }, Il = {
|
|
5717
5723
|
key: 0,
|
|
5718
5724
|
style: { "padding-top": "1.5em" },
|
|
5719
5725
|
class: "flex items-center"
|
|
5720
|
-
}, $
|
|
5726
|
+
}, $l = { style: { "margin-left": "0.5em" } }, Fl = { style: { "font-weight": "500" } }, Ll = { style: { "font-weight": "400", "font-size": "14px" } }, Bl = { style: { "padding-bottom": "2em" } }, Vl = {
|
|
5721
5727
|
key: 0,
|
|
5722
5728
|
class: "mb-5 flex items-center gap-2 rounded-full border border-gray-300 bg-gray-300/60 p-1 text-sm"
|
|
5723
|
-
},
|
|
5724
|
-
function
|
|
5729
|
+
}, Ml = { class: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, Pl = ["textContent"], Al = ["textContent"];
|
|
5730
|
+
function El(e, t, n, s, i, o) {
|
|
5725
5731
|
var D;
|
|
5726
5732
|
const r = m("DocumentLayout"), g = m("Simplebar"), h = m("CIcon"), y = m("CButton"), w = m("IsPremiumPreStep"), k = m("IsPremium");
|
|
5727
|
-
return
|
|
5728
|
-
|
|
5733
|
+
return a(), p("div", kl, [
|
|
5734
|
+
l("div", wl, [
|
|
5729
5735
|
c(g, {
|
|
5730
5736
|
class: "h-full w-full",
|
|
5731
5737
|
"data-simplebar-auto-hide": "false"
|
|
5732
5738
|
}, {
|
|
5733
5739
|
default: u(() => [
|
|
5734
|
-
o.previewDocument ? (
|
|
5740
|
+
o.previewDocument ? (a(), b(r, {
|
|
5735
5741
|
key: 0,
|
|
5736
5742
|
document: o.previewDocument
|
|
5737
5743
|
}, null, 8, ["document"])) : C("", !0),
|
|
5738
|
-
n.product && !i.privateProduct.isPurchased ? (
|
|
5744
|
+
n.product && !i.privateProduct.isPurchased ? (a(), b(W("style"), { key: 1 }, {
|
|
5739
5745
|
default: u(() => t[1] || (t[1] = [
|
|
5740
5746
|
_(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")
|
|
5741
5747
|
])),
|
|
@@ -5745,50 +5751,50 @@ function Ea(e, t, n, s, i, o) {
|
|
|
5745
5751
|
_: 1
|
|
5746
5752
|
})
|
|
5747
5753
|
]),
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
(D = i.templateStat) != null && D.usedTimes ? (
|
|
5754
|
+
l("div", _l, [
|
|
5755
|
+
l("div", xl, [
|
|
5756
|
+
l("div", Tl, d(n.meta.name), 1),
|
|
5757
|
+
l("div", Dl, [
|
|
5758
|
+
(D = i.templateStat) != null && D.usedTimes ? (a(), p(I, { key: 0 }, [
|
|
5753
5759
|
_(d(e.$t("_common:used").capitalize()) + " " + d(i.templateStat.usedTimes) + " " + d(e.$t("_common:times", { count: i.templateStat.usedTimes })), 1)
|
|
5754
5760
|
], 64)) : C("", !0)
|
|
5755
5761
|
]),
|
|
5756
|
-
|
|
5757
|
-
n.meta.author ? (
|
|
5758
|
-
|
|
5762
|
+
l("div", Sl, d(n.meta.text), 1),
|
|
5763
|
+
n.meta.author ? (a(), p("div", Il, [
|
|
5764
|
+
l("div", {
|
|
5759
5765
|
style: z([{ "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, {
|
|
5760
5766
|
backgroundImage: `url(${n.meta.author.avatar})`
|
|
5761
5767
|
}])
|
|
5762
5768
|
}, null, 4),
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
n.meta.author.templatesCount ? (
|
|
5769
|
+
l("div", $l, [
|
|
5770
|
+
l("div", Fl, d(n.meta.author.name), 1),
|
|
5771
|
+
l("div", Ll, [
|
|
5772
|
+
n.meta.author.templatesCount ? (a(), p(I, { key: 0 }, [
|
|
5767
5773
|
_(d(n.meta.author.templatesCount) + " " + d(e.$t("_common:template", { count: n.meta.author.templatesCount })), 1)
|
|
5768
|
-
], 64)) : (
|
|
5774
|
+
], 64)) : (a(), p(I, { key: 1 }, [
|
|
5769
5775
|
_(d(e.$t("_common:template").capitalize()), 1)
|
|
5770
5776
|
], 64))
|
|
5771
5777
|
])
|
|
5772
5778
|
])
|
|
5773
5779
|
])) : C("", !0)
|
|
5774
5780
|
]),
|
|
5775
|
-
|
|
5776
|
-
n.product ? (
|
|
5777
|
-
i.privateProduct.isPurchased ? (
|
|
5778
|
-
|
|
5781
|
+
l("div", Bl, [
|
|
5782
|
+
n.product ? (a(), p(I, { key: 0 }, [
|
|
5783
|
+
i.privateProduct.isPurchased ? (a(), p("div", Vl, [
|
|
5784
|
+
l("div", Ml, [
|
|
5779
5785
|
c(h, {
|
|
5780
5786
|
type: "check",
|
|
5781
5787
|
size: "12",
|
|
5782
5788
|
class: "text-white"
|
|
5783
5789
|
})
|
|
5784
5790
|
]),
|
|
5785
|
-
|
|
5791
|
+
l("div", {
|
|
5786
5792
|
class: "text-xs font-medium text-gray-700",
|
|
5787
5793
|
textContent: d(
|
|
5788
5794
|
e.$t("_common:purchased", { thing: e.$t("_common:template") })
|
|
5789
5795
|
)
|
|
5790
|
-
}, null, 8,
|
|
5791
|
-
])) : (
|
|
5796
|
+
}, null, 8, Pl)
|
|
5797
|
+
])) : (a(), b(y, {
|
|
5792
5798
|
key: 1,
|
|
5793
5799
|
type: "secondary",
|
|
5794
5800
|
wide: "",
|
|
@@ -5797,11 +5803,11 @@ function Ea(e, t, n, s, i, o) {
|
|
|
5797
5803
|
onClick: o.buyTemplate
|
|
5798
5804
|
}, {
|
|
5799
5805
|
default: u(() => [
|
|
5800
|
-
|
|
5801
|
-
|
|
5806
|
+
l("div", null, d(e.$t("_common:buy", { thing: e.$t("_common:template") })), 1),
|
|
5807
|
+
l("div", {
|
|
5802
5808
|
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",
|
|
5803
5809
|
textContent: d(i.privateProduct.price)
|
|
5804
|
-
}, null, 8,
|
|
5810
|
+
}, null, 8, Al)
|
|
5805
5811
|
]),
|
|
5806
5812
|
_: 1
|
|
5807
5813
|
}, 8, ["onClick"]))
|
|
@@ -5810,7 +5816,7 @@ function Ea(e, t, n, s, i, o) {
|
|
|
5810
5816
|
default: u(({ canUseTemplate: T }) => [
|
|
5811
5817
|
c(w, { feature: "useDocTemplate" }, {
|
|
5812
5818
|
default: u(({ onClick: v }) => [
|
|
5813
|
-
!n.product || i.privateProduct.isPurchased ? (
|
|
5819
|
+
!n.product || i.privateProduct.isPurchased ? (a(), b(y, {
|
|
5814
5820
|
key: 0,
|
|
5815
5821
|
disabled: n.product ? !i.privateProduct.isPurchased : !1,
|
|
5816
5822
|
type: "secondary",
|
|
@@ -5835,7 +5841,7 @@ function Ea(e, t, n, s, i, o) {
|
|
|
5835
5841
|
default: u(({ onClick: v }) => {
|
|
5836
5842
|
var f;
|
|
5837
5843
|
return [
|
|
5838
|
-
(n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (
|
|
5844
|
+
(n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (a(), b(y, {
|
|
5839
5845
|
key: 0,
|
|
5840
5846
|
loading: e.isLoading,
|
|
5841
5847
|
type: i.didSave ? "success" : "none",
|
|
@@ -5856,7 +5862,7 @@ function Ea(e, t, n, s, i, o) {
|
|
|
5856
5862
|
]),
|
|
5857
5863
|
_: 1
|
|
5858
5864
|
}),
|
|
5859
|
-
o.allowCopyTemplateLink ? (
|
|
5865
|
+
o.allowCopyTemplateLink ? (a(), b(y, {
|
|
5860
5866
|
key: 1,
|
|
5861
5867
|
type: "none",
|
|
5862
5868
|
"icon-left": "link",
|
|
@@ -5872,7 +5878,7 @@ function Ea(e, t, n, s, i, o) {
|
|
|
5872
5878
|
])
|
|
5873
5879
|
]);
|
|
5874
5880
|
}
|
|
5875
|
-
const
|
|
5881
|
+
const zl = /* @__PURE__ */ F(bl, [["render", El], ["__scopeId", "data-v-2ccff3bb"]]), Rl = {
|
|
5876
5882
|
name: "GalleryLogic",
|
|
5877
5883
|
i18nOptions: {
|
|
5878
5884
|
namespaces: "GalleryLogic",
|
|
@@ -6014,7 +6020,7 @@ const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-837746ac
|
|
|
6014
6020
|
);
|
|
6015
6021
|
this.selectGalleryItem(r);
|
|
6016
6022
|
} catch (r) {
|
|
6017
|
-
|
|
6023
|
+
ae(r);
|
|
6018
6024
|
}
|
|
6019
6025
|
},
|
|
6020
6026
|
methods: {
|
|
@@ -6043,7 +6049,7 @@ const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-837746ac
|
|
|
6043
6049
|
[]
|
|
6044
6050
|
);
|
|
6045
6051
|
} catch (t) {
|
|
6046
|
-
|
|
6052
|
+
ae(t);
|
|
6047
6053
|
} finally {
|
|
6048
6054
|
this.isLoading = !1;
|
|
6049
6055
|
}
|
|
@@ -6067,16 +6073,12 @@ const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-837746ac
|
|
|
6067
6073
|
this.useTemplate({ formData: s });
|
|
6068
6074
|
},
|
|
6069
6075
|
openGalleryTemplateModal({ template: e, galleryItem: t }) {
|
|
6070
|
-
if (window.innerWidth < 800) {
|
|
6071
|
-
this.onUseTemplate(e);
|
|
6072
|
-
return;
|
|
6073
|
-
}
|
|
6074
6076
|
const n = {
|
|
6075
6077
|
cling: "/img/app/icon-blue-text-250x250.png",
|
|
6076
6078
|
docspo: "/img/docspo/icons/apple-touch-icon-180x180.png"
|
|
6077
6079
|
};
|
|
6078
6080
|
this.$modal.show(
|
|
6079
|
-
|
|
6081
|
+
zl,
|
|
6080
6082
|
{
|
|
6081
6083
|
template: e,
|
|
6082
6084
|
fetchGallery: this.fetchGallery,
|
|
@@ -6121,7 +6123,7 @@ const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-837746ac
|
|
|
6121
6123
|
}
|
|
6122
6124
|
}
|
|
6123
6125
|
};
|
|
6124
|
-
function
|
|
6126
|
+
function Ol(e, t, n, s, i, o) {
|
|
6125
6127
|
return A(e.$slots, "default", {
|
|
6126
6128
|
galleryItems: o.galleryItems,
|
|
6127
6129
|
categories: o.categories,
|
|
@@ -6130,7 +6132,7 @@ function Oa(e, t, n, s, i, o) {
|
|
|
6130
6132
|
selectGalleryItem: o.selectGalleryItem
|
|
6131
6133
|
});
|
|
6132
6134
|
}
|
|
6133
|
-
const
|
|
6135
|
+
const Ul = /* @__PURE__ */ F(Rl, [["render", Ol]]), Hl = {
|
|
6134
6136
|
i18nOptions: {
|
|
6135
6137
|
namespaces: "TemplateSelector",
|
|
6136
6138
|
messages: {
|
|
@@ -6174,10 +6176,10 @@ const Ua = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ha = {
|
|
|
6174
6176
|
},
|
|
6175
6177
|
name: "TemplateSelector",
|
|
6176
6178
|
components: {
|
|
6177
|
-
HorizontalScroll:
|
|
6178
|
-
DocumentIcon:
|
|
6179
|
-
DocumentRecent:
|
|
6180
|
-
GalleryLogic:
|
|
6179
|
+
HorizontalScroll: yl,
|
|
6180
|
+
DocumentIcon: cl,
|
|
6181
|
+
DocumentRecent: nl,
|
|
6182
|
+
GalleryLogic: Ul,
|
|
6181
6183
|
IsPremiumPreStep: X,
|
|
6182
6184
|
CDropdown: re,
|
|
6183
6185
|
CDropdownItem: q,
|
|
@@ -6313,7 +6315,7 @@ const Ua = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ha = {
|
|
|
6313
6315
|
]);
|
|
6314
6316
|
return await this.createTemplate({ body: n }), !0;
|
|
6315
6317
|
} catch (t) {
|
|
6316
|
-
|
|
6318
|
+
ae(t);
|
|
6317
6319
|
}
|
|
6318
6320
|
return !1;
|
|
6319
6321
|
},
|
|
@@ -6344,39 +6346,39 @@ const Ua = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ha = {
|
|
|
6344
6346
|
return e.doConsumeDocumentQuota ? this.canFeature("useDocTemplate") : !0;
|
|
6345
6347
|
}
|
|
6346
6348
|
}
|
|
6347
|
-
},
|
|
6349
|
+
}, ql = { class: "h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16" }, Gl = { style: { width: "100%", "padding-bottom": "5em" } }, Nl = { class: "section-title" }, Wl = { class: "section-subtitle" }, jl = {
|
|
6348
6350
|
key: 0,
|
|
6349
6351
|
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"
|
|
6350
|
-
},
|
|
6352
|
+
}, Zl = {
|
|
6351
6353
|
key: 1,
|
|
6352
6354
|
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"
|
|
6353
|
-
},
|
|
6355
|
+
}, Kl = { style: { width: "100%", "padding-bottom": "5em" } }, Ql = { class: "section-title w-full" }, Yl = { class: "flex items-center justify-between" }, Jl = ["innerHTML"], Xl = {
|
|
6354
6356
|
key: 0,
|
|
6355
6357
|
class: "bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg"
|
|
6356
|
-
},
|
|
6358
|
+
}, ea = ["textContent"], ta = {
|
|
6357
6359
|
class: "section-title",
|
|
6358
6360
|
style: { flex: "1 1 auto", "padding-bottom": "0.5em" }
|
|
6359
|
-
},
|
|
6360
|
-
function
|
|
6361
|
+
}, na = { class: "section-subtitle" };
|
|
6362
|
+
function ia(e, t, n, s, i, o) {
|
|
6361
6363
|
const r = m("CIcon"), g = m("CButton"), h = m("TemplateActionsDropdown"), y = m("DocumentIcon"), w = m("IsPremiumPreStep"), k = m("CDropdownItem"), D = m("CDropdown"), T = m("HorizontalScroll"), v = m("GalleryLogic"), f = m("DocumentRecent"), x = ie("tooltip");
|
|
6362
|
-
return
|
|
6363
|
-
|
|
6364
|
+
return a(), p("div", ql, [
|
|
6365
|
+
l("div", {
|
|
6364
6366
|
class: B([{ small: e.mq === "sm" }, "font-inter form-start main mx-auto max-w-5xl"])
|
|
6365
6367
|
}, [
|
|
6366
6368
|
A(e.$slots, "header", {}, void 0, !0),
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6369
|
+
l("div", Gl, [
|
|
6370
|
+
l("div", Nl, [
|
|
6371
|
+
l("div", null, d(e.$t("myTemplates")), 1),
|
|
6372
|
+
l("div", Wl, d(e.$t("myTemplatesSubTitle")), 1)
|
|
6371
6373
|
]),
|
|
6372
6374
|
c(w, { feature: "useDocTemplate" }, {
|
|
6373
6375
|
default: u(({ onClick: $ }) => [
|
|
6374
|
-
(
|
|
6376
|
+
(a(), b(W(i.isExpanded ? "div" : "HorizontalScroll"), {
|
|
6375
6377
|
class: B([{ "is-expanded": i.isExpanded }, "template-list"]),
|
|
6376
6378
|
onExpand: t[1] || (t[1] = (S) => i.isExpanded = !0)
|
|
6377
6379
|
}, {
|
|
6378
6380
|
default: u(() => [
|
|
6379
|
-
(
|
|
6381
|
+
(a(!0), p(I, null, E(o.myTemplates, (S) => (a(), b(y, {
|
|
6380
6382
|
key: S.id,
|
|
6381
6383
|
"is-add": S.id === "empty",
|
|
6382
6384
|
"is-placeholder": S.placeholder,
|
|
@@ -6387,17 +6389,17 @@ function il(e, t, n, s, i, o) {
|
|
|
6387
6389
|
onTriggerOpenTemplate: (H) => S.placeholder ? null : o.canUseTemplate(S) ? o.select({ templateId: S.id }) : $()
|
|
6388
6390
|
}, {
|
|
6389
6391
|
badge: u(() => [
|
|
6390
|
-
o.canUseTemplate(S) ? !S.doConsumeDocumentQuota && !S.placeholder ? (
|
|
6392
|
+
o.canUseTemplate(S) ? !S.doConsumeDocumentQuota && !S.placeholder ? (a(), p("div", Zl, d(e.$t("_common:free")), 1)) : C("", !0) : (a(), p("div", jl, [
|
|
6391
6393
|
c(r, {
|
|
6392
6394
|
type: "lock",
|
|
6393
6395
|
size: "12",
|
|
6394
6396
|
"stroke-width": "2.5"
|
|
6395
6397
|
}),
|
|
6396
|
-
t[3] || (t[3] =
|
|
6398
|
+
t[3] || (t[3] = l("div", { class: "text-[11px] font-semibold" }, "Pro", -1))
|
|
6397
6399
|
]))
|
|
6398
6400
|
]),
|
|
6399
6401
|
default: u(() => [
|
|
6400
|
-
S.onModify === "create" && !S.doConsumeDocumentQuota ? G((
|
|
6402
|
+
S.onModify === "create" && !S.doConsumeDocumentQuota ? G((a(), b(g, {
|
|
6401
6403
|
key: 0,
|
|
6402
6404
|
icon: "info",
|
|
6403
6405
|
type: "none",
|
|
@@ -6411,7 +6413,7 @@ function il(e, t, n, s, i, o) {
|
|
|
6411
6413
|
content: e.$t("icon.freeTooltip"),
|
|
6412
6414
|
placement: "bottom"
|
|
6413
6415
|
}]
|
|
6414
|
-
]) : G((
|
|
6416
|
+
]) : G((a(), b(h, {
|
|
6415
6417
|
key: 1,
|
|
6416
6418
|
"append-to-body": "",
|
|
6417
6419
|
template: S,
|
|
@@ -6431,7 +6433,7 @@ function il(e, t, n, s, i, o) {
|
|
|
6431
6433
|
_: 1
|
|
6432
6434
|
})
|
|
6433
6435
|
]),
|
|
6434
|
-
n.showGallery ? (
|
|
6436
|
+
n.showGallery ? (a(), b(v, {
|
|
6435
6437
|
key: 0,
|
|
6436
6438
|
"fetch-gallery": o.fetchGallery,
|
|
6437
6439
|
"use-template": o.select,
|
|
@@ -6446,10 +6448,10 @@ function il(e, t, n, s, i, o) {
|
|
|
6446
6448
|
selectCategory: V,
|
|
6447
6449
|
selectGalleryItem: se
|
|
6448
6450
|
}) => [
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6451
|
+
l("div", Kl, [
|
|
6452
|
+
l("div", Ql, [
|
|
6453
|
+
l("div", Yl, [
|
|
6454
|
+
l("div", null, d(e.$t("gallery")), 1),
|
|
6453
6455
|
c(D, {
|
|
6454
6456
|
style: { "margin-left": "calc(0.5 * var(--rem))" },
|
|
6455
6457
|
onClick: t[2] || (t[2] = j(() => {
|
|
@@ -6469,7 +6471,7 @@ function il(e, t, n, s, i, o) {
|
|
|
6469
6471
|
}, 1024)
|
|
6470
6472
|
]),
|
|
6471
6473
|
default: u(() => [
|
|
6472
|
-
(
|
|
6474
|
+
(a(!0), p(I, null, E(S, (L) => (a(), b(k, {
|
|
6473
6475
|
key: L.key,
|
|
6474
6476
|
"icon-right": H && H.key === L.key ? "check" : "",
|
|
6475
6477
|
onClick: (ce) => V(L)
|
|
@@ -6483,14 +6485,14 @@ function il(e, t, n, s, i, o) {
|
|
|
6483
6485
|
_: 2
|
|
6484
6486
|
}, 1024)
|
|
6485
6487
|
]),
|
|
6486
|
-
|
|
6488
|
+
l("div", {
|
|
6487
6489
|
class: "section-subtitle",
|
|
6488
6490
|
innerHTML: e.$t("gallerySubTitle")
|
|
6489
|
-
}, null, 8,
|
|
6491
|
+
}, null, 8, Jl)
|
|
6490
6492
|
]),
|
|
6491
6493
|
c(T, { class: "template-list" }, {
|
|
6492
6494
|
default: u(() => [
|
|
6493
|
-
(
|
|
6495
|
+
(a(!0), p(I, null, E($, (L) => (a(), b(y, {
|
|
6494
6496
|
key: L.id,
|
|
6495
6497
|
"is-placeholder": L.placeholder,
|
|
6496
6498
|
media: { type: "image", resourceUrl: L.backgroundUrl },
|
|
@@ -6499,16 +6501,16 @@ function il(e, t, n, s, i, o) {
|
|
|
6499
6501
|
onTriggerOpenTemplate: (ce) => L.placeholder ? null : se(L)
|
|
6500
6502
|
}, {
|
|
6501
6503
|
badge: u(() => [
|
|
6502
|
-
L.product ? (
|
|
6503
|
-
L.product.isPurchased ? (
|
|
6504
|
+
L.product ? (a(), p("div", Xl, [
|
|
6505
|
+
L.product.isPurchased ? (a(), b(r, {
|
|
6504
6506
|
key: 0,
|
|
6505
6507
|
type: "check",
|
|
6506
6508
|
size: "14",
|
|
6507
6509
|
"stroke-width": "3"
|
|
6508
|
-
})) : (
|
|
6510
|
+
})) : (a(), p("div", {
|
|
6509
6511
|
key: 1,
|
|
6510
6512
|
textContent: d(L.product.price)
|
|
6511
|
-
}, null, 8,
|
|
6513
|
+
}, null, 8, ea))
|
|
6512
6514
|
])) : C("", !0)
|
|
6513
6515
|
]),
|
|
6514
6516
|
_: 2
|
|
@@ -6526,9 +6528,9 @@ function il(e, t, n, s, i, o) {
|
|
|
6526
6528
|
onSaveTemplate: o.openTemplateFormModal
|
|
6527
6529
|
}, {
|
|
6528
6530
|
default: u(() => [
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6531
|
+
l("div", ta, [
|
|
6532
|
+
l("div", null, d(e.$t("recent")), 1),
|
|
6533
|
+
l("div", na, d(e.$t("recentSubTitle")), 1)
|
|
6532
6534
|
])
|
|
6533
6535
|
]),
|
|
6534
6536
|
_: 1
|
|
@@ -6536,9 +6538,9 @@ function il(e, t, n, s, i, o) {
|
|
|
6536
6538
|
], 2)
|
|
6537
6539
|
]);
|
|
6538
6540
|
}
|
|
6539
|
-
const
|
|
6541
|
+
const oa = /* @__PURE__ */ F(Hl, [["render", ia], ["__scopeId", "data-v-8b78439a"]]);
|
|
6540
6542
|
var he, Ve;
|
|
6541
|
-
function
|
|
6543
|
+
function sa() {
|
|
6542
6544
|
if (Ve) return he;
|
|
6543
6545
|
Ve = 1;
|
|
6544
6546
|
var e = Ft(), t = Lt(), n = Bt();
|
|
@@ -6552,10 +6554,10 @@ function sl() {
|
|
|
6552
6554
|
return he = s, he;
|
|
6553
6555
|
}
|
|
6554
6556
|
var fe, Me;
|
|
6555
|
-
function
|
|
6557
|
+
function la() {
|
|
6556
6558
|
if (Me) return fe;
|
|
6557
6559
|
Me = 1;
|
|
6558
|
-
var e =
|
|
6560
|
+
var e = sa(), t = Vt();
|
|
6559
6561
|
function n(s, i) {
|
|
6560
6562
|
return e(s, i, function(o, r) {
|
|
6561
6563
|
return t(s, r);
|
|
@@ -6564,16 +6566,16 @@ function al() {
|
|
|
6564
6566
|
return fe = n, fe;
|
|
6565
6567
|
}
|
|
6566
6568
|
var ge, Pe;
|
|
6567
|
-
function
|
|
6569
|
+
function aa() {
|
|
6568
6570
|
if (Pe) return ge;
|
|
6569
6571
|
Pe = 1;
|
|
6570
|
-
var e =
|
|
6572
|
+
var e = la(), t = Kt(), n = t(function(s, i) {
|
|
6571
6573
|
return s == null ? {} : e(s, i);
|
|
6572
6574
|
});
|
|
6573
6575
|
return ge = n, ge;
|
|
6574
6576
|
}
|
|
6575
|
-
var
|
|
6576
|
-
const
|
|
6577
|
+
var ra = aa();
|
|
6578
|
+
const da = /* @__PURE__ */ Ue(ra), ca = {
|
|
6577
6579
|
name: "DocForm",
|
|
6578
6580
|
i18nOptions: {
|
|
6579
6581
|
namespaces: "widgetDocForm",
|
|
@@ -6587,7 +6589,7 @@ const dl = /* @__PURE__ */ Ue(rl), cl = {
|
|
|
6587
6589
|
}
|
|
6588
6590
|
},
|
|
6589
6591
|
components: {
|
|
6590
|
-
TemplateSelector:
|
|
6592
|
+
TemplateSelector: oa,
|
|
6591
6593
|
DocumentForm: Ws,
|
|
6592
6594
|
PostSend: dn
|
|
6593
6595
|
},
|
|
@@ -6708,7 +6710,7 @@ const dl = /* @__PURE__ */ Ue(rl), cl = {
|
|
|
6708
6710
|
},
|
|
6709
6711
|
async onTemplateSelect({ templateId: e, documentId: t, formData: n }) {
|
|
6710
6712
|
var i;
|
|
6711
|
-
const s =
|
|
6713
|
+
const s = da({ ...this.rawDoc }, [
|
|
6712
6714
|
"__tempId",
|
|
6713
6715
|
"externalReferences",
|
|
6714
6716
|
"subscriberCompanyUserIds",
|
|
@@ -6757,23 +6759,23 @@ const dl = /* @__PURE__ */ Ue(rl), cl = {
|
|
|
6757
6759
|
return !t.sms && !t.email;
|
|
6758
6760
|
}
|
|
6759
6761
|
}
|
|
6760
|
-
},
|
|
6762
|
+
}, ua = { class: "flex h-full w-full flex-col" }, ma = {
|
|
6761
6763
|
key: 0,
|
|
6762
6764
|
class: "flex h-full w-full flex-col"
|
|
6763
|
-
},
|
|
6764
|
-
function
|
|
6765
|
+
}, pa = { class: "relative flex h-16 items-center justify-center border-b border-gray-200" };
|
|
6766
|
+
function ha(e, t, n, s, i, o) {
|
|
6765
6767
|
const r = m("CButton"), g = m("TemplateSelector"), h = m("DocumentForm"), y = m("PostSend");
|
|
6766
|
-
return
|
|
6767
|
-
i.view === "templateSelect" ? (
|
|
6768
|
-
|
|
6769
|
-
n.closeFunc ? (
|
|
6768
|
+
return a(), p("div", ua, [
|
|
6769
|
+
i.view === "templateSelect" ? (a(), p("div", ma, [
|
|
6770
|
+
l("div", pa, [
|
|
6771
|
+
n.closeFunc ? (a(), b(r, {
|
|
6770
6772
|
key: 0,
|
|
6771
6773
|
icon: "x",
|
|
6772
6774
|
circle: "",
|
|
6773
6775
|
class: "absolute left-4 top-1/2 -translate-y-1/2",
|
|
6774
6776
|
onClick: n.closeFunc
|
|
6775
6777
|
}, null, 8, ["onClick"])) : C("", !0),
|
|
6776
|
-
|
|
6778
|
+
l("div", null, d(e.$t("selectNavTitle")), 1)
|
|
6777
6779
|
]),
|
|
6778
6780
|
c(g, {
|
|
6779
6781
|
"on-use-template": o.onTemplateSelect,
|
|
@@ -6785,7 +6787,7 @@ function hl(e, t, n, s, i, o) {
|
|
|
6785
6787
|
"include-partner-templates": "",
|
|
6786
6788
|
class: "body-scroll min-h-0"
|
|
6787
6789
|
}, null, 8, ["on-use-template", "show-gallery", "gallery-category", "on-save-template", "show-keep-clients-option"])
|
|
6788
|
-
])) : i.view === "editor" ? (
|
|
6790
|
+
])) : i.view === "editor" ? (a(), b(h, {
|
|
6789
6791
|
key: 1,
|
|
6790
6792
|
document: i.document,
|
|
6791
6793
|
"set-doc-value": o.setDocValue,
|
|
@@ -6801,7 +6803,7 @@ function hl(e, t, n, s, i, o) {
|
|
|
6801
6803
|
"show-keep-clients-option": n.showKeepClientsOption
|
|
6802
6804
|
}, {
|
|
6803
6805
|
"nav-right-action": u(() => [
|
|
6804
|
-
n.isEditingTemplate ? (
|
|
6806
|
+
n.isEditingTemplate ? (a(), b(r, {
|
|
6805
6807
|
key: 0,
|
|
6806
6808
|
loading: i.isSavingTemplate,
|
|
6807
6809
|
disabled: !o.canDoActions,
|
|
@@ -6819,7 +6821,7 @@ function hl(e, t, n, s, i, o) {
|
|
|
6819
6821
|
}, 8, ["loading", "disabled", "onClick"])) : C("", !0)
|
|
6820
6822
|
]),
|
|
6821
6823
|
_: 1
|
|
6822
|
-
}, 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" ? (
|
|
6824
|
+
}, 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(), b(y, {
|
|
6823
6825
|
key: 2,
|
|
6824
6826
|
document: i.document,
|
|
6825
6827
|
"on-send-func": n.closeFunc,
|
|
@@ -6827,7 +6829,7 @@ function hl(e, t, n, s, i, o) {
|
|
|
6827
6829
|
}, null, 8, ["document", "on-send-func", "on-close-func"])) : C("", !0)
|
|
6828
6830
|
]);
|
|
6829
6831
|
}
|
|
6830
|
-
const
|
|
6832
|
+
const Oa = /* @__PURE__ */ F(ca, [["render", ha], ["__scopeId", "data-v-d0a00abf"]]);
|
|
6831
6833
|
export {
|
|
6832
|
-
|
|
6834
|
+
Oa as default
|
|
6833
6835
|
};
|