@cling-se/widget 0.19.11 → 0.19.12
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-CKHwq8Iu.js → AddClientCallout-CKB2ux-T.js} +46 -31
- package/dist/{AnswerModal-UScGRb2q.js → AnswerModal-BJ3_JrYQ.js} +3 -3
- package/dist/{AttachmentItem-xS69Skyw.js → AttachmentItem-CQKNtvF_.js} +4 -4
- package/dist/{BaseUpload-Py3haZt6.js → BaseUpload-CoV5kPSh.js} +2 -2
- package/dist/{BlockMedia-CCDn5B7D.js → BlockMedia-BjXP0TjO.js} +1 -1
- package/dist/{CCallout-CE7D3DsB.js → CCallout-D2K1xjJp.js} +1 -1
- package/dist/{CCurrencyDropdown-5kM8TPrm.js → CCurrencyDropdown-B_ifqq9U.js} +3 -3
- package/dist/{CDropdownItem-B4zcZcfz.js → CDropdownItem-BfdpY3v0.js} +2 -2
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-BVW0KHv4.js → CFormField.vue_vue_type_script_setup_true_lang-S2cfSMeh.js} +2 -2
- package/dist/{CPhoneFormat-BAuwHSBY.js → CPhoneFormat-C3E_mcs_.js} +1 -1
- package/dist/{CPhoneInput-ePQsc2uK.js → CPhoneInput-B4au5HPe.js} +5 -5
- package/dist/{CPriceInput-Dy3LGjuS.js → CPriceInput-BfzyrIFS.js} +2 -2
- package/dist/{CSelect-DwvTYW00.js → CSelect-CrUoAl0P.js} +1 -1
- package/dist/{CSkeleton-Bjauuvv8.js → CSkeleton-DfbHpf8S.js} +1 -1
- package/dist/{ClientAutocomplete-BvFTkFH_.js → ClientAutocomplete-BryD_HTQ.js} +3 -3
- package/dist/{ClientModal-Di6C8Aiw.js → ClientModal-CxwvC5Mx.js} +114 -106
- package/dist/{ColorPicker-CeSHH9Vf.js → ColorPicker-Dzjmfjy2.js} +1 -1
- package/dist/{CompanyModal-CqsYsoHR.js → CompanyModal-9MQ2AXNt.js} +7 -7
- package/dist/{ContentWrapper-DrZ8iTLe.js → ContentWrapper-D2rwWu3e.js} +6 -6
- package/dist/{CoverBlockSettings-CydujWOk.js → CoverBlockSettings-BWOzPM7X.js} +7 -7
- package/dist/{DocAnswer-oum2ebB7.js → DocAnswer-CVqUEDAB.js} +2 -2
- package/dist/{DocDetails-BIqp6i5p.js → DocDetails-C5X2-g_a.js} +4 -4
- package/dist/{DocForm-qgtnxIbM.js → DocForm-0dzfP9DE.js} +394 -394
- package/dist/{DocFormSend-gUP3oNeu.js → DocFormSend-B26N23z_.js} +2 -2
- package/dist/{DocLinks-BMRihAoi.js → DocLinks-DvRvC-aE.js} +2 -2
- package/dist/{DocModalBase-Byhr0bKE.js → DocModalBase-C4rsAl6b.js} +1 -1
- package/dist/{DocPrint-Dfya0Cjx.js → DocPrint-B98dNhsA.js} +1 -1
- package/dist/{DocReceipt-DzueYc7A.js → DocReceipt-CXo_upl2.js} +2 -2
- package/dist/{DocSendReminder-jbDbr3VZ.js → DocSendReminder-DoJMKu9L.js} +1 -1
- package/dist/{DocTextEditor-CwwEkRFq.js → DocTextEditor-BaFbu9v7.js} +8 -8
- package/dist/{DocTimeline-iyb4S9j1.js → DocTimeline-CCwdToqT.js} +2 -2
- package/dist/{DocumentClient-3XePSPGE.js → DocumentClient-IPArl7lF.js} +5 -5
- package/dist/{DocumentLayout-CpRX8ZRH.js → DocumentLayout-DNZ_DvgH.js} +5 -5
- package/dist/{DocumentLogotype-YepQtsq5.js → DocumentLogotype-B3uoTgI4.js} +4 -4
- package/dist/{DocumentVoided-Baipvjx-.js → DocumentVoided-DWde8VwA.js} +1 -1
- package/dist/{EmbedInput-DQB79FBj.js → EmbedInput-BsHyhdIv.js} +3 -3
- package/dist/{EmbedSettings-o3HUPHUL.js → EmbedSettings-DxqT8rQM.js} +3 -3
- package/dist/{ErrorCallout-j0efwRf-.js → ErrorCallout-DVAoEvRy.js} +1 -1
- package/dist/{FilePreviewModal-CrYf10Ph.js → FilePreviewModal-B_qtsBko.js} +2 -2
- package/dist/{Flag-C9t9kUP7.js → Flag-axItvnYr.js} +1 -1
- package/dist/{HeaderSettings-DemdIiEB.js → HeaderSettings-BHxv6zbP.js} +95 -95
- package/dist/{ImageSelectModal-BqjysMij.js → ImageSelectModal-D6qOJzjA.js} +8 -8
- package/dist/{ImageUploadWrapper-B-Ulkt_b.js → ImageUploadWrapper-COMLuYyW.js} +2 -2
- package/dist/{Index-_YuGGSUD.js → Index-0LjbOVSa.js} +68 -67
- package/dist/{Index-DripJuiD.js → Index-BAh35Nee.js} +4 -4
- package/dist/{Index-aehDK94P.js → Index-BILl37wX.js} +4 -4
- package/dist/{Index-C_mYIiaH.js → Index-BOC_usJj.js} +3 -3
- package/dist/{Index-CZTGosBz.js → Index-BOeiZRCe.js} +5 -5
- package/dist/{Index-Dx2TEfS9.js → Index-BVr7Vs45.js} +31 -30
- package/dist/{Index-8aFe7Fn8.js → Index-B_wlGU0V.js} +1 -1
- package/dist/{Index-DrxIo2da.js → Index-BaVfkjuK.js} +3 -3
- package/dist/{Index-BjOx25ue.js → Index-C0VVjYzv.js} +5 -5
- package/dist/{Index-C1Crethk.js → Index-C1qXwtaw.js} +2 -2
- package/dist/{Index-BgSplzXs.js → Index-C9jZraL3.js} +2 -2
- package/dist/{Index-DryrFYUb.js → Index-CO8q3yMx.js} +3 -3
- package/dist/{Index-DTrL4994.js → Index-CPw49wIY.js} +4 -4
- package/dist/{Index-B2AIqEQc.js → Index-CU5UW3Hy.js} +6 -6
- package/dist/{Index-_b6k81e_.js → Index-CbZisK8y.js} +4 -4
- package/dist/{Index-1BTtSkUW.js → Index-CjZjDiay.js} +2 -2
- package/dist/{Index-BeiUm3jr.js → Index-CkCdbHs4.js} +4 -4
- package/dist/{Index-D7X3b6a0.js → Index-Cy8ICAgR.js} +10 -10
- package/dist/{Index-BnhI3MQN.js → Index-D-WpXww5.js} +1 -1
- package/dist/{Index-D7c_zTbq.js → Index-DCA5JJ1t.js} +9 -9
- package/dist/{Index-BeKIkZw9.js → Index-DGVo6Mv_.js} +158 -157
- package/dist/{Index-DVLzlvPr.js → Index-DIa3ZNqY.js} +4 -4
- package/dist/{Index-CDnVJo8h.js → Index-DY1Wb2pH.js} +6 -6
- package/dist/{Index-DMNlO3w6.js → Index-DfClBO72.js} +4 -4
- package/dist/{Index-DxoNVHHo.js → Index-DjdJ9R-S.js} +5 -5
- package/dist/{Index-Ch7Vq5Qm.js → Index-Dt4MpMCQ.js} +1 -1
- package/dist/{Index-B345PtMG.js → Index-MzezIdfd.js} +3 -3
- package/dist/{Index-x65RQkcr.js → Index-QBYnUTJm.js} +14 -14
- package/dist/{Index-BYAA_kFy.js → Index-Za46FzMl.js} +2 -2
- package/dist/{Index-Buu-upak.js → Index-_920IuDX.js} +3 -3
- package/dist/{Index-DN1QcYYy.js → Index-bwUzGE5t.js} +5 -5
- package/dist/{Index-BNzypv7d.js → Index-cGblBo3D.js} +2 -2
- package/dist/{Index-DXnfSIAI.js → Index-d3RpL9s6.js} +7 -7
- package/dist/Index-jTqUWF3X.js +4 -0
- package/dist/{Index.vue_vue_type_script_lang-DIyU4Q6-.js → Index.vue_vue_type_script_lang-CFTxaSrV.js} +2 -2
- package/dist/{InputToggleRow-GvKd0A5B.js → InputToggleRow-DsIWqdk_.js} +1 -1
- package/dist/{ManualPopover-Bm82yXzr.js → ManualPopover-C3KGzuu9.js} +1 -1
- package/dist/{MediaWrapper-rIcHpRnO.js → MediaWrapper-MFm8YeB3.js} +3 -3
- package/dist/{NotBindingText-D6UVvpyn.js → NotBindingText-DcWDdouW.js} +2 -2
- package/dist/{PackageGroup-BkSlTPwU.js → PackageGroup-SGTSnH21.js} +5 -5
- package/dist/{PdfTerms-DFF7qKEk.js → PdfTerms-fOlzudZh.js} +2 -2
- package/dist/{PdfViewer-CmclV0M7.js → PdfViewer-DDpx00sK.js} +3 -3
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-D78UcLmS.js → PlainHtml.vue_vue_type_script_setup_true_lang-Cz2dQuvO.js} +1 -1
- package/dist/{PriceHeader-CXMHfmpW.js → PriceHeader-tqURZOPu.js} +7 -7
- package/dist/{SearchApi-D_OOJLcM.js → SearchApi-DULmvWHU.js} +1 -1
- package/dist/{SendForm-ftEDuhfn.js → SendForm-DOmjDjSH.js} +16 -18
- package/dist/{Setup-8-8a3zoh.js → Setup-Hkd7lTEY.js} +1 -1
- package/dist/{SmartList-2oAmo6a8.js → SmartList-BJzzkwKP.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-sGGmCVtk.js → Sortable.vue_vue_type_script_setup_true_lang-CbQN53qU.js} +1 -1
- package/dist/{TermsSettings-0INcW3bg.js → TermsSettings-BDhWgymk.js} +5 -5
- package/dist/{ThemeColorRow-DuSdO67W.js → ThemeColorRow-ko7tiZab.js} +3 -3
- package/dist/{ToggleBinding-Db9uIhf-.js → ToggleBinding-vlw8aH-N.js} +4 -4
- package/dist/{UploadModal-DJMWrMsy.js → UploadModal-DhhKi9cj.js} +2 -2
- package/dist/{VideoPlayerInput-B0Myfrw8.js → VideoPlayerInput-FAAwDDpw.js} +4 -4
- package/dist/{VideoPlayerSettings-Dt81xwAD.js → VideoPlayerSettings--Z_6wCEh.js} +2 -2
- package/dist/{VideoSelectModal-NFyePPSf.js → VideoSelectModal-DeQL4Kee.js} +22 -22
- package/dist/{focusDrawerMixin-BLe8Rj8E.js → focusDrawerMixin-BTx49vhB.js} +1 -1
- package/dist/{formDrawerState-ZdbgwOqD.js → formDrawerState-BkDkB7ox.js} +1 -1
- package/dist/{helpers-CuDV_1UZ.js → helpers-gWbXh9Ns.js} +1 -1
- package/dist/{index-DH6GPqAx.js → index-B7lPoMlH.js} +1 -1
- package/dist/{index-DvEX7etV.js → index-B8q-wbk1.js} +8 -8
- package/dist/{index-B5gWKBJf.js → index-BXEarzT0.js} +1 -1
- package/dist/{index-B69h-wUl.js → index-Bx6eb6O1.js} +1 -1
- package/dist/{index-q_oCzGqR.js → index-CBzzerP_.js} +6 -6
- package/dist/{index-D3TdSXf3.js → index-CMbTkNvA.js} +3 -3
- package/dist/{index-DVtKtXBe.js → index-ykqjytG7.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +137 -137
- package/dist/{main-CNW7VwKW.js → main-2MP6slUA.js} +36009 -35997
- package/dist/{mapFormMixin-BwoTM1UR.js → mapFormMixin-CLZO7uaz.js} +2 -2
- package/dist/{omit-DNjM7b-D.js → omit-CMuwLvOe.js} +1 -1
- package/dist/{publicSenderState-WRqhCaVK.js → publicSenderState-C66ZctUJ.js} +1 -1
- package/dist/{splitpanes-1eHE_Z5P.js → splitpanes-CgMn3s-g.js} +1 -1
- package/dist/{template-B0NNp0B9.js → template-D41MKsNw.js} +1 -1
- package/dist/{tippy.esm-sII3vzGZ.js → tippy.esm-BE0T4-6s.js} +5 -5
- package/dist/{useTermsModal-Bfx5QhHZ.js → useTermsModal-Dodk50o3.js} +4 -4
- package/dist/{utils-B4O8LxH5.js → utils-GWt5LxqQ.js} +1 -1
- package/dist/{validation-DSWFkl-3.js → validation-C6D3fzeF.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-CuslzuEz.js +0 -4
|
@@ -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, cN as ye, g as P, b as m, d as p, o as l, j as a, f as c, t as d, w as u, q as _, e as
|
|
1
|
+
import et from "./AnswerModal-BJ3_JrYQ.js";
|
|
2
|
+
import { o as tt } from "./index-ykqjytG7.js";
|
|
3
|
+
import { w as Q, C as q, a as re } from "./CDropdownItem-BfdpY3v0.js";
|
|
4
|
+
import { _ as F, m as Z, cN as ye, g as P, b as m, d as p, o as l, j as a, f as c, t as d, w as u, q as _, e as C, W as z, al as ne, an as j, x as V, T as A, aU as J, c as b, ap as W, R as be, F as I, a7 as de, z as nt, A as xe, H as U, p as Te, i as K, a2 as De, cO as it, I as O, af as M, n as E, a as R, cP as ot, y as st, X as ke, s as Ae, S as at, aF as Se, Y as te, cL as lt, a4 as ie, u as G, ai as rt, aE as dt, aB as we, k as le, cf as Ee, cg as ze, v as ve, l as ct, a6 as Ie, ch as ut, cQ as ue, cR as mt, bm as pt, a0 as Re, cS as ht, aa as Oe, cT as ft, cU as gt, aK as Ue, r as yt, aD as Ce, aA as He, cV as vt, cW as Ct, cX as bt, az as kt, a9 as wt, cY as _t, cZ as xt, c_ as Tt, C as qe, c$ as Dt, d0 as St, d1 as It, ci as $t, d2 as Ft, d3 as Lt, b0 as Vt, d4 as Bt, d5 as Mt } from "./main-2MP6slUA.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
|
|
9
|
-
import "./helpers-
|
|
10
|
-
import { a as
|
|
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-DNZ_DvgH.js";
|
|
7
|
+
import { F as Ge, d as Ot } from "./tippy.esm-BE0T4-6s.js";
|
|
8
|
+
import { m as oe, c as $e, u as Ne, i as Ut } from "./mapFormMixin-CLZO7uaz.js";
|
|
9
|
+
import "./helpers-gWbXh9Ns.js";
|
|
10
|
+
import { a as Ht } from "./ClientAutocomplete-BryD_HTQ.js";
|
|
11
|
+
import { _ as qt } from "./Sortable.vue_vue_type_script_setup_true_lang-CbQN53qU.js";
|
|
12
|
+
import { C as Gt, _ as We, a as X, I as ee, s as Nt } from "./index-CBzzerP_.js";
|
|
13
|
+
import { _ as _e } from "./CFormField.vue_vue_type_script_setup_true_lang-S2cfSMeh.js";
|
|
14
|
+
import { S as Wt } from "./SmartList-BJzzkwKP.js";
|
|
15
|
+
import { u as je } from "./index-Bx6eb6O1.js";
|
|
16
|
+
import { r as Fe, a as jt } from "./index-BXEarzT0.js";
|
|
17
|
+
import { o as Zt, r as Kt } from "./omit-CMuwLvOe.js";
|
|
18
|
+
import { s as N } from "./formDrawerState-BkDkB7ox.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-DOmjDjSH.js";
|
|
21
|
+
import "./template-D41MKsNw.js";
|
|
22
|
+
import { u as Jt } from "./validation-C6D3fzeF.js";
|
|
23
|
+
import { C as Xt } from "./CCallout-D2K1xjJp.js";
|
|
24
|
+
import { C as en } from "./CSkeleton-DfbHpf8S.js";
|
|
25
|
+
import { B as tn } from "./BlockMedia-BjXP0TjO.js";
|
|
26
26
|
const nn = {
|
|
27
27
|
name: "DocumentPostSendStep",
|
|
28
28
|
mixins: [Q],
|
|
@@ -219,7 +219,7 @@ function un(e, t, n, s, i, o) {
|
|
|
219
219
|
zIndex: n.zIndex
|
|
220
220
|
}),
|
|
221
221
|
class: "d-overlay"
|
|
222
|
-
}, null, 4)) :
|
|
222
|
+
}, null, 4)) : C("", !0)
|
|
223
223
|
]),
|
|
224
224
|
_: 1
|
|
225
225
|
}),
|
|
@@ -248,7 +248,7 @@ function un(e, t, n, s, i, o) {
|
|
|
248
248
|
}, [
|
|
249
249
|
A(e.$slots, "default", {}, void 0, !0)
|
|
250
250
|
], 4)
|
|
251
|
-
], 6)) :
|
|
251
|
+
], 6)) : C("", !0)
|
|
252
252
|
]),
|
|
253
253
|
_: 3
|
|
254
254
|
}, 8, ["name"])
|
|
@@ -282,12 +282,12 @@ const Ze = /* @__PURE__ */ F(cn, [["render", un], ["__scopeId", "data-v-05571167
|
|
|
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 l(),
|
|
285
|
+
return l(), 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 ? (l(),
|
|
290
|
+
n.open ? (l(), b(W(n.fixed ? "drawer" : "div"), be({ key: 0 }, e.$props, {
|
|
291
291
|
ref: "drawer",
|
|
292
292
|
class: [{
|
|
293
293
|
"is-sticky": !n.fixed
|
|
@@ -318,7 +318,7 @@ function fn(e, t, n, s, i, o) {
|
|
|
318
318
|
])
|
|
319
319
|
]),
|
|
320
320
|
_: 3
|
|
321
|
-
}, 16, ["class", "model-value", "placement"])) :
|
|
321
|
+
}, 16, ["class", "model-value", "placement"])) : C("", !0)
|
|
322
322
|
]),
|
|
323
323
|
_: 3
|
|
324
324
|
}, 8, ["name"]);
|
|
@@ -364,7 +364,7 @@ function Sn(e, t, n, s, i, o) {
|
|
|
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 ? (l(),
|
|
367
|
+
n.small ? (l(), b(r, {
|
|
368
368
|
key: 0,
|
|
369
369
|
type: "edit",
|
|
370
370
|
size: "20"
|
|
@@ -379,7 +379,7 @@ function Sn(e, t, n, s, i, o) {
|
|
|
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 ? (l(),
|
|
382
|
+
n.small ? (l(), b(r, {
|
|
383
383
|
key: 0,
|
|
384
384
|
type: "eye",
|
|
385
385
|
size: "20"
|
|
@@ -436,13 +436,13 @@ function Mn(e, t, n, s, i, o) {
|
|
|
436
436
|
class: "control-button",
|
|
437
437
|
onClick: t[0] || (t[0] = (g) => e.$emit("toggle-visible", !n.isVisible))
|
|
438
438
|
}, [
|
|
439
|
-
n.isVisible ?
|
|
439
|
+
n.isVisible ? C("", !0) : (l(), p("span", Ln, d(e.$t("hidden")), 1)),
|
|
440
440
|
c(r, {
|
|
441
441
|
type: n.isVisible ? "eye" : "eye-off",
|
|
442
442
|
size: "14",
|
|
443
443
|
class: V({ "mr-1": !n.isVisible })
|
|
444
444
|
}, null, 8, ["type", "class"])
|
|
445
|
-
])) :
|
|
445
|
+
])) : C("", !0),
|
|
446
446
|
A(e.$slots, "default", {}, void 0, !0),
|
|
447
447
|
!o.isHidden && n.isMovable ? (l(), p("div", Vn, [
|
|
448
448
|
a("div", Bn, [
|
|
@@ -474,7 +474,7 @@ function Mn(e, t, n, s, i, o) {
|
|
|
474
474
|
size: "16"
|
|
475
475
|
})
|
|
476
476
|
])
|
|
477
|
-
])) :
|
|
477
|
+
])) : C("", !0)
|
|
478
478
|
]);
|
|
479
479
|
}
|
|
480
480
|
const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-2b534db7"]]), An = ["inert"], En = /* @__PURE__ */ de({
|
|
@@ -490,48 +490,48 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-2b534db7
|
|
|
490
490
|
},
|
|
491
491
|
emits: ["edit", "toggle-visible", "move", "remove"],
|
|
492
492
|
setup(e, { emit: t }) {
|
|
493
|
-
const n = t, { uid: s } = nt(), i = xe(!1), o = xe(() => n("edit", s)), r =
|
|
494
|
-
typeof
|
|
493
|
+
const n = t, { uid: s } = nt(), i = xe(!1), o = xe(() => n("edit", s)), r = U(() => typeof e.isVisible == "boolean" && !e.isVisible), g = U(() => e.isEditView ? !e.isDragging && i.value ? !0 : r.value : !1), h = U(() => r.value ? "h-16 overflow-hidden after:bg-gradient-to-b after:from-white/50 after:to-white relative after:absolute after:content-[''] after:inset-0 after:z-[1]" : ""), y = (w) => {
|
|
494
|
+
typeof w == "function" && (o.value = w);
|
|
495
495
|
};
|
|
496
|
-
return Te("sectionTopNode", s), Te("setOpenDrawer",
|
|
497
|
-
const
|
|
498
|
-
return l(),
|
|
496
|
+
return Te("sectionTopNode", s), Te("setOpenDrawer", y), (w, k) => {
|
|
497
|
+
const D = m("CButton"), T = m("Animation");
|
|
498
|
+
return l(), b(T, { class: "w-full" }, {
|
|
499
499
|
default: u(() => [
|
|
500
500
|
a("div", {
|
|
501
501
|
class: V([[
|
|
502
502
|
{
|
|
503
|
-
"is-edit-view":
|
|
503
|
+
"is-edit-view": w.isEditView,
|
|
504
504
|
"is-hovering": i.value,
|
|
505
|
-
"min-h-none":
|
|
505
|
+
"min-h-none": w.blockType === "custom" || r.value,
|
|
506
506
|
"border-b border-gray-200": r.value
|
|
507
507
|
},
|
|
508
508
|
h.value
|
|
509
509
|
], "block-root"]),
|
|
510
510
|
style: z(
|
|
511
|
-
|
|
511
|
+
w.isDragging && {
|
|
512
512
|
pointerEvents: "none"
|
|
513
513
|
}
|
|
514
514
|
),
|
|
515
|
-
onMouseoverPassive:
|
|
516
|
-
onMouseleavePassive:
|
|
515
|
+
onMouseoverPassive: k[3] || (k[3] = (v) => i.value = !0),
|
|
516
|
+
onMouseleavePassive: k[4] || (k[4] = (v) => i.value = !1)
|
|
517
517
|
}, [
|
|
518
518
|
a("div", {
|
|
519
519
|
class: V(["block-container", { "spacing-snug": r.value }]),
|
|
520
520
|
inert: r.value
|
|
521
521
|
}, [
|
|
522
|
-
A(
|
|
522
|
+
A(w.$slots, "default", {}, void 0, !0)
|
|
523
523
|
], 10, An),
|
|
524
|
-
g.value ? (l(),
|
|
524
|
+
g.value ? (l(), b(Pn, {
|
|
525
525
|
key: 0,
|
|
526
526
|
class: "control-root z-10",
|
|
527
|
-
"is-movable":
|
|
528
|
-
"is-visible":
|
|
529
|
-
onToggleVisible:
|
|
530
|
-
onMove:
|
|
531
|
-
onRemove:
|
|
527
|
+
"is-movable": w.canMove,
|
|
528
|
+
"is-visible": w.isVisible,
|
|
529
|
+
onToggleVisible: k[0] || (k[0] = (v) => n("toggle-visible", v)),
|
|
530
|
+
onMove: k[1] || (k[1] = (v) => n("move", v)),
|
|
531
|
+
onRemove: k[2] || (k[2] = (v) => n("remove"))
|
|
532
532
|
}, {
|
|
533
533
|
default: u(() => [
|
|
534
|
-
|
|
534
|
+
w.showEditButton ? (l(), b(D, {
|
|
535
535
|
key: 0,
|
|
536
536
|
round: "",
|
|
537
537
|
size: "small",
|
|
@@ -541,13 +541,13 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-2b534db7
|
|
|
541
541
|
onClick: o.value
|
|
542
542
|
}, {
|
|
543
543
|
default: u(() => [
|
|
544
|
-
_(d(
|
|
544
|
+
_(d(w.$t("_common:edit").capitalize()), 1)
|
|
545
545
|
]),
|
|
546
546
|
_: 1
|
|
547
|
-
}, 8, ["onClick"])) :
|
|
547
|
+
}, 8, ["onClick"])) : C("", !0)
|
|
548
548
|
]),
|
|
549
549
|
_: 1
|
|
550
|
-
}, 8, ["is-movable", "is-visible"])) :
|
|
550
|
+
}, 8, ["is-movable", "is-visible"])) : C("", !0)
|
|
551
551
|
], 38)
|
|
552
552
|
]),
|
|
553
553
|
_: 3
|
|
@@ -571,7 +571,7 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-2b534db7
|
|
|
571
571
|
return `/img/${e}/icons/apple-touch-icon-60x60.png`;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
}, On = ["href"],
|
|
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
576
|
return l(), p("div", {
|
|
577
577
|
class: V([n.position, "pointer-events-none bottom-0 left-0 right-0 z-50 flex justify-end px-[10px] pb-[10px]"])
|
|
@@ -583,12 +583,12 @@ function Gn(e, t, n, s, i, o) {
|
|
|
583
583
|
)}?utm_source=document&utm_medium=logo-banner`,
|
|
584
584
|
target: "_blank"
|
|
585
585
|
}, [
|
|
586
|
-
a("div",
|
|
586
|
+
a("div", Un, [
|
|
587
587
|
a("img", {
|
|
588
588
|
src: o.logoUrl,
|
|
589
589
|
alt: e.$t("brand.name"),
|
|
590
590
|
class: "h-full w-full"
|
|
591
|
-
}, null, 8,
|
|
591
|
+
}, null, 8, Hn)
|
|
592
592
|
]),
|
|
593
593
|
a("div", qn, " Made in " + d(e.$t("brand.name")), 1)
|
|
594
594
|
], 8, On)
|
|
@@ -607,8 +607,8 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-fu
|
|
|
607
607
|
initialValue: { x: e.offset + 15, y: 70 }
|
|
608
608
|
});
|
|
609
609
|
return (r, g) => {
|
|
610
|
-
const h = m("CButton"),
|
|
611
|
-
return l(),
|
|
610
|
+
const h = m("CButton"), y = m("portal");
|
|
611
|
+
return l(), b(y, { to: "modal" }, {
|
|
612
612
|
default: u(() => [
|
|
613
613
|
a("div", {
|
|
614
614
|
ref_key: "el",
|
|
@@ -624,7 +624,7 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-fu
|
|
|
624
624
|
pattern: "tertiary",
|
|
625
625
|
circle: "",
|
|
626
626
|
class: "absolute right-0 top-0",
|
|
627
|
-
onClick: g[0] || (g[0] = (
|
|
627
|
+
onClick: g[0] || (g[0] = (w) => n("close"))
|
|
628
628
|
}),
|
|
629
629
|
c(h, {
|
|
630
630
|
ref_key: "handle",
|
|
@@ -1190,8 +1190,8 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-fu
|
|
|
1190
1190
|
if (!this.activeItem) return [];
|
|
1191
1191
|
const { selector: e, category: t, style: n = {} } = this.activeItem, s = M(this.css, e) || {}, i = (o) => s[o] || n[o];
|
|
1192
1192
|
return this[t].map(({ option: o, key: r }, g) => {
|
|
1193
|
-
const h = this.definitionOptions[o],
|
|
1194
|
-
return h(
|
|
1193
|
+
const h = this.definitionOptions[o], y = Array.isArray(r) ? r.map((w) => ({ key: w, value: i(w) })) : { key: r, value: i(r) };
|
|
1194
|
+
return h(y, g);
|
|
1195
1195
|
});
|
|
1196
1196
|
}
|
|
1197
1197
|
},
|
|
@@ -1217,7 +1217,7 @@ function oi(e, t, n, s, i, o) {
|
|
|
1217
1217
|
(l(!0), p(I, null, E(o.typography, (h) => (l(), p("div", {
|
|
1218
1218
|
key: h.label,
|
|
1219
1219
|
class: "list-option",
|
|
1220
|
-
onClick: (
|
|
1220
|
+
onClick: (y) => i.activeItem = h
|
|
1221
1221
|
}, [
|
|
1222
1222
|
a("div", {
|
|
1223
1223
|
style: z({
|
|
@@ -1237,27 +1237,27 @@ function oi(e, t, n, s, i, o) {
|
|
|
1237
1237
|
(l(!0), p(I, null, E(i.sections, (h) => (l(), p("div", {
|
|
1238
1238
|
key: h.label,
|
|
1239
1239
|
class: "list-option",
|
|
1240
|
-
onClick: (
|
|
1240
|
+
onClick: (y) => i.activeItem = h
|
|
1241
1241
|
}, [
|
|
1242
1242
|
a("div", ii, d(h.label), 1),
|
|
1243
1243
|
t[1] || (t[1] = a("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 ? (l(),
|
|
1246
|
+
i.activeItem ? (l(), 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
|
-
(l(!0), p(I, null, E(o.activeItemOptions, (h,
|
|
1254
|
-
key:
|
|
1253
|
+
(l(!0), p(I, null, E(o.activeItemOptions, (h, y) => (l(), b(r, {
|
|
1254
|
+
key: y,
|
|
1255
1255
|
label: h.label,
|
|
1256
1256
|
inputs: h.inputs
|
|
1257
1257
|
}, null, 8, ["label", "inputs"]))), 128))
|
|
1258
1258
|
]),
|
|
1259
1259
|
_: 1
|
|
1260
|
-
}, 8, ["title", "offset"])) :
|
|
1260
|
+
}, 8, ["title", "offset"])) : C("", !0)
|
|
1261
1261
|
]);
|
|
1262
1262
|
}
|
|
1263
1263
|
const si = /* @__PURE__ */ F(Kn, [["render", oi], ["__scopeId", "data-v-381aaa3c"]]), ai = {
|
|
@@ -1600,22 +1600,22 @@ const si = /* @__PURE__ */ F(Kn, [["render", oi], ["__scopeId", "data-v-381aaa3c
|
|
|
1600
1600
|
function di(e, t, n, s, i, o) {
|
|
1601
1601
|
const r = m("FormInputRow"), g = m("DragWindow");
|
|
1602
1602
|
return l(), p("div", li, [
|
|
1603
|
-
(l(!0), p(I, null, E(o.options, (h,
|
|
1604
|
-
key:
|
|
1603
|
+
(l(!0), p(I, null, E(o.options, (h, y) => (l(), b(r, {
|
|
1604
|
+
key: y,
|
|
1605
1605
|
label: h.label,
|
|
1606
1606
|
"info-tooltip": h.infoTooltip,
|
|
1607
1607
|
inputs: h.inputs
|
|
1608
1608
|
}, null, 8, ["label", "info-tooltip", "inputs"]))), 128)),
|
|
1609
|
-
i.showDragWindow ? (l(),
|
|
1609
|
+
i.showDragWindow ? (l(), b(g, {
|
|
1610
1610
|
key: 0,
|
|
1611
1611
|
offset: n.offset,
|
|
1612
1612
|
title: e.$t("pricing.title"),
|
|
1613
1613
|
onClose: t[0] || (t[0] = (h) => i.showDragWindow = !1)
|
|
1614
1614
|
}, {
|
|
1615
1615
|
default: u(() => [
|
|
1616
|
-
(l(!0), p(I, null, E(o.priceOptions, (h,
|
|
1617
|
-
h.type === "divider" ? (l(), p("div", ri)) : (l(),
|
|
1618
|
-
key:
|
|
1616
|
+
(l(!0), p(I, null, E(o.priceOptions, (h, y) => (l(), p(I, { key: y }, [
|
|
1617
|
+
h.type === "divider" ? (l(), p("div", ri)) : (l(), b(r, {
|
|
1618
|
+
key: y,
|
|
1619
1619
|
label: h.label,
|
|
1620
1620
|
"info-tooltip": h.infoTooltip,
|
|
1621
1621
|
inputs: h.inputs
|
|
@@ -1623,7 +1623,7 @@ function di(e, t, n, s, i, o) {
|
|
|
1623
1623
|
], 64))), 128))
|
|
1624
1624
|
]),
|
|
1625
1625
|
_: 1
|
|
1626
|
-
}, 8, ["offset", "title"])) :
|
|
1626
|
+
}, 8, ["offset", "title"])) : C("", !0)
|
|
1627
1627
|
]);
|
|
1628
1628
|
}
|
|
1629
1629
|
const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-5b9bfecb"]]), ui = {
|
|
@@ -1671,7 +1671,7 @@ const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-5b9bfecb
|
|
|
1671
1671
|
components: {
|
|
1672
1672
|
Sortable: qt,
|
|
1673
1673
|
Spinner: at,
|
|
1674
|
-
CAutocomplete:
|
|
1674
|
+
CAutocomplete: Ht,
|
|
1675
1675
|
CDropdown: re,
|
|
1676
1676
|
CDropdownItem: q
|
|
1677
1677
|
},
|
|
@@ -1859,14 +1859,14 @@ const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-5b9bfecb
|
|
|
1859
1859
|
key: 3,
|
|
1860
1860
|
class: "flex w-full flex-col items-center justify-center text-center",
|
|
1861
1861
|
style: { "padding-top": "calc(1 * var(--rem))" }
|
|
1862
|
-
}, Oi = { class: "text-gray-600" },
|
|
1862
|
+
}, Oi = { class: "text-gray-600" }, Ui = {
|
|
1863
1863
|
class: "text-center",
|
|
1864
1864
|
style: { "padding-top": "calc(1 * var(--rem))" }
|
|
1865
1865
|
};
|
|
1866
|
-
function
|
|
1867
|
-
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"),
|
|
1866
|
+
function Hi(e, t, n, s, i, o) {
|
|
1867
|
+
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");
|
|
1868
1868
|
return l(), p("div", mi, [
|
|
1869
|
-
e.allAuthenticatedCRMs.length > 1 ? (l(),
|
|
1869
|
+
e.allAuthenticatedCRMs.length > 1 ? (l(), b(h, {
|
|
1870
1870
|
key: 0,
|
|
1871
1871
|
position: "is-bottom-left",
|
|
1872
1872
|
style: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }
|
|
@@ -1881,7 +1881,7 @@ function Ui(e, t, n, s, i, o) {
|
|
|
1881
1881
|
})
|
|
1882
1882
|
]),
|
|
1883
1883
|
default: u(() => [
|
|
1884
|
-
(l(!0), p(I, null, E(e.allAuthenticatedCRMs, (f) => (l(),
|
|
1884
|
+
(l(!0), p(I, null, E(e.allAuthenticatedCRMs, (f) => (l(), b(g, {
|
|
1885
1885
|
key: f,
|
|
1886
1886
|
type: i.activeCrm === f ? "primary" : "secondary",
|
|
1887
1887
|
size: "small",
|
|
@@ -1894,9 +1894,9 @@ function Ui(e, t, n, s, i, o) {
|
|
|
1894
1894
|
}, 1032, ["type", "onClick"]))), 128))
|
|
1895
1895
|
]),
|
|
1896
1896
|
_: 1
|
|
1897
|
-
})) :
|
|
1897
|
+
})) : C("", !0),
|
|
1898
1898
|
i.isLoading && !i.dealDetails ? (l(), p("div", pi, [
|
|
1899
|
-
c(
|
|
1899
|
+
c(y, {
|
|
1900
1900
|
size: "24",
|
|
1901
1901
|
color: "grey"
|
|
1902
1902
|
})
|
|
@@ -1930,14 +1930,14 @@ function Ui(e, t, n, s, i, o) {
|
|
|
1930
1930
|
}, null, 8, bi)
|
|
1931
1931
|
]),
|
|
1932
1932
|
t[7] || (t[7] = a("div", { class: "divider" }, null, -1))
|
|
1933
|
-
])) :
|
|
1933
|
+
])) : C("", !0),
|
|
1934
1934
|
a("div", ki, d(e.$t("headerText", { crm: i.activeCrm.capitalize() })), 1),
|
|
1935
1935
|
t[8] || (t[8] = a("div", { style: { height: "2em" } }, null, -1)),
|
|
1936
1936
|
o.currentExternalDeal ? (l(), p(I, { key: 1 }, [
|
|
1937
1937
|
a("div", wi, d(e.$t("connectedTo", { type: o.dealType })), 1),
|
|
1938
1938
|
i.dealDetails ? (l(), p("div", _i, [
|
|
1939
1939
|
a("div", null, [
|
|
1940
|
-
(l(),
|
|
1940
|
+
(l(), b(W(i.dealDetails.externalUrl ? "a" : "span"), {
|
|
1941
1941
|
href: i.dealDetails.externalUrl || "#",
|
|
1942
1942
|
target: "_blank",
|
|
1943
1943
|
style: { "font-weight": "600" },
|
|
@@ -1948,8 +1948,8 @@ function Ui(e, t, n, s, i, o) {
|
|
|
1948
1948
|
i.dealDetails.currency ? (l(), p("div", xi, d(o.priceFormat(i.dealDetails.value, {
|
|
1949
1949
|
showZero: !1,
|
|
1950
1950
|
currency: i.dealDetails.currency
|
|
1951
|
-
})), 1)) :
|
|
1952
|
-
])) :
|
|
1951
|
+
})), 1)) : C("", !0)
|
|
1952
|
+
])) : C("", !0),
|
|
1953
1953
|
a("div", null, [
|
|
1954
1954
|
c(r, {
|
|
1955
1955
|
loading: i.isLoading,
|
|
@@ -1983,7 +1983,7 @@ function Ui(e, t, n, s, i, o) {
|
|
|
1983
1983
|
class: "text-gray-600",
|
|
1984
1984
|
textContent: d(e.$t("linkToDoc", { type: o.dealType }))
|
|
1985
1985
|
}, null, 8, Di),
|
|
1986
|
-
c(
|
|
1986
|
+
c(w, {
|
|
1987
1987
|
ref: "input",
|
|
1988
1988
|
modelValue: i.searchQuery,
|
|
1989
1989
|
"onUpdate:modelValue": t[4] || (t[4] = (f) => i.searchQuery = f),
|
|
@@ -2008,7 +2008,7 @@ function Ui(e, t, n, s, i, o) {
|
|
|
2008
2008
|
showZero: !1,
|
|
2009
2009
|
currency: f.currency
|
|
2010
2010
|
})), 1)
|
|
2011
|
-
], 64)) :
|
|
2011
|
+
], 64)) : C("", !0)
|
|
2012
2012
|
])
|
|
2013
2013
|
])
|
|
2014
2014
|
]),
|
|
@@ -2023,12 +2023,12 @@ function Ui(e, t, n, s, i, o) {
|
|
|
2023
2023
|
a("div", Li, [
|
|
2024
2024
|
a("div", Vi, [
|
|
2025
2025
|
_(d(e.$t("productsTitle")) + " ", 1),
|
|
2026
|
-
G(c(
|
|
2026
|
+
G(c(k, {
|
|
2027
2027
|
type: "info",
|
|
2028
2028
|
size: "13"
|
|
2029
2029
|
}, null, 512), [
|
|
2030
2030
|
[
|
|
2031
|
-
|
|
2031
|
+
v,
|
|
2032
2032
|
"Use a product by drag & dropping a product to a package."
|
|
2033
2033
|
]
|
|
2034
2034
|
])
|
|
@@ -2043,7 +2043,7 @@ function Ui(e, t, n, s, i, o) {
|
|
|
2043
2043
|
)
|
|
2044
2044
|
}, null, 8, Bi)
|
|
2045
2045
|
]),
|
|
2046
|
-
i.dealDetails.articles && i.dealDetails.articles.length ? (l(),
|
|
2046
|
+
i.dealDetails.articles && i.dealDetails.articles.length ? (l(), b(D, {
|
|
2047
2047
|
key: 0,
|
|
2048
2048
|
"item-key": "_uniqueId",
|
|
2049
2049
|
list: i.dealDetails.articles,
|
|
@@ -2073,13 +2073,13 @@ function Ui(e, t, n, s, i, o) {
|
|
|
2073
2073
|
})) + " · " + d(f.quantity || 0) + "x ", 1),
|
|
2074
2074
|
f.vat !== null ? (l(), p(I, { key: 0 }, [
|
|
2075
2075
|
_(" · " + d(e._document.$t("vat").capitalize()) + " " + d(f.vat) + "% ", 1)
|
|
2076
|
-
], 64)) :
|
|
2076
|
+
], 64)) : C("", !0)
|
|
2077
2077
|
])
|
|
2078
2078
|
], 8, Mi)
|
|
2079
2079
|
]),
|
|
2080
2080
|
_: 1
|
|
2081
2081
|
}, 8, ["list", "clone"])) : (l(), p("div", Ei, [
|
|
2082
|
-
c(
|
|
2082
|
+
c(k, {
|
|
2083
2083
|
type: "info",
|
|
2084
2084
|
size: "13",
|
|
2085
2085
|
style: { margin: "1px 4px 0 0", "flex-shrink": "0" }
|
|
@@ -2088,17 +2088,17 @@ function Ui(e, t, n, s, i, o) {
|
|
|
2088
2088
|
textContent: d(e.$t("noProducts", { type: o.dealType }))
|
|
2089
2089
|
}, null, 8, zi)
|
|
2090
2090
|
]))
|
|
2091
|
-
])) :
|
|
2091
|
+
])) : C("", !0)
|
|
2092
2092
|
], 64)) : (l(), p("div", Ri, [
|
|
2093
|
-
c(
|
|
2093
|
+
c(k, {
|
|
2094
2094
|
type: "info",
|
|
2095
2095
|
size: "16",
|
|
2096
2096
|
class: "text-primary-500",
|
|
2097
2097
|
style: { "padding-bottom": "5px" }
|
|
2098
2098
|
}),
|
|
2099
2099
|
a("div", Oi, d(e.$t("noCrm")), 1),
|
|
2100
|
-
a("div",
|
|
2101
|
-
c(
|
|
2100
|
+
a("div", Ui, [
|
|
2101
|
+
c(T, {
|
|
2102
2102
|
to: { name: "settings" },
|
|
2103
2103
|
style: { "font-weight": "500" },
|
|
2104
2104
|
class: "text-primary-500"
|
|
@@ -2112,7 +2112,7 @@ function Ui(e, t, n, s, i, o) {
|
|
|
2112
2112
|
]))
|
|
2113
2113
|
]);
|
|
2114
2114
|
}
|
|
2115
|
-
const qi = /* @__PURE__ */ F(ui, [["render",
|
|
2115
|
+
const qi = /* @__PURE__ */ F(ui, [["render", Hi], ["__scopeId", "data-v-5c4afae3"]]), Gi = {
|
|
2116
2116
|
name: "FieldsModal",
|
|
2117
2117
|
i18nOptions: {
|
|
2118
2118
|
namespaces: "FieldsModal",
|
|
@@ -2243,8 +2243,8 @@ function Ki(e, t, n, s, i, o) {
|
|
|
2243
2243
|
]),
|
|
2244
2244
|
a("form", {
|
|
2245
2245
|
style: { width: "100%" },
|
|
2246
|
-
onSubmit: t[2] || (t[2] = j((...
|
|
2247
|
-
onKeyup: t[3] || (t[3] = rt((...
|
|
2246
|
+
onSubmit: t[2] || (t[2] = j((...y) => o.submit && o.submit(...y), ["prevent"])),
|
|
2247
|
+
onKeyup: t[3] || (t[3] = rt((...y) => o.submit && o.submit(...y), ["enter"]))
|
|
2248
2248
|
}, [
|
|
2249
2249
|
c(g, {
|
|
2250
2250
|
label: e.$t("label"),
|
|
@@ -2256,7 +2256,7 @@ function Ki(e, t, n, s, i, o) {
|
|
|
2256
2256
|
default: u(() => [
|
|
2257
2257
|
c(r, {
|
|
2258
2258
|
modelValue: i.form.label,
|
|
2259
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2259
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => i.form.label = y),
|
|
2260
2260
|
placeholder: e.$t("labelPlaceholder"),
|
|
2261
2261
|
filled: ""
|
|
2262
2262
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -2273,7 +2273,7 @@ function Ki(e, t, n, s, i, o) {
|
|
|
2273
2273
|
default: u(() => [
|
|
2274
2274
|
c(r, {
|
|
2275
2275
|
modelValue: i.form.value,
|
|
2276
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2276
|
+
"onUpdate:modelValue": t[1] || (t[1] = (y) => i.form.value = y),
|
|
2277
2277
|
placeholder: e.$t("valuePlaceholder"),
|
|
2278
2278
|
filled: ""
|
|
2279
2279
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -2287,7 +2287,7 @@ function Ki(e, t, n, s, i, o) {
|
|
|
2287
2287
|
onClick: o.submit,
|
|
2288
2288
|
textContent: d(e.$t("_common:save"))
|
|
2289
2289
|
}, null, 8, ["onClick", "textContent"]),
|
|
2290
|
-
n.existingFieldId ? (l(),
|
|
2290
|
+
n.existingFieldId ? (l(), b(h, {
|
|
2291
2291
|
key: 0,
|
|
2292
2292
|
style: { "margin-top": "5px" },
|
|
2293
2293
|
type: "none",
|
|
@@ -2295,7 +2295,7 @@ function Ki(e, t, n, s, i, o) {
|
|
|
2295
2295
|
wide: "",
|
|
2296
2296
|
onClick: o.remove,
|
|
2297
2297
|
textContent: d(e.$t("_common:remove"))
|
|
2298
|
-
}, null, 8, ["onClick", "textContent"])) :
|
|
2298
|
+
}, null, 8, ["onClick", "textContent"])) : C("", !0)
|
|
2299
2299
|
], 32)
|
|
2300
2300
|
]);
|
|
2301
2301
|
}
|
|
@@ -2452,7 +2452,7 @@ const Qi = /* @__PURE__ */ F(Gi, [["render", Ki]]), Yi = {
|
|
|
2452
2452
|
style: { position: "relative", flex: "1 1 auto" }
|
|
2453
2453
|
}, go = ["onDragstart", "textContent"], yo = { class: "field-actions" };
|
|
2454
2454
|
function vo(e, t, n, s, i, o) {
|
|
2455
|
-
const r = m("CInput"), g = m("CField"), h = m("CButton"),
|
|
2455
|
+
const r = m("CInput"), g = m("CField"), h = m("CButton"), y = m("SmartList"), w = m("CIcon"), k = m("CAccordion");
|
|
2456
2456
|
return l(), p("div", Ji, [
|
|
2457
2457
|
a("div", Xi, [
|
|
2458
2458
|
a("div", {
|
|
@@ -2466,21 +2466,21 @@ function vo(e, t, n, s, i, o) {
|
|
|
2466
2466
|
]),
|
|
2467
2467
|
c(r, {
|
|
2468
2468
|
modelValue: i.query,
|
|
2469
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2469
|
+
"onUpdate:modelValue": t[0] || (t[0] = (D) => i.query = D),
|
|
2470
2470
|
placeholder: e.$t("_common:search"),
|
|
2471
2471
|
filled: "",
|
|
2472
2472
|
size: "small"
|
|
2473
2473
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
2474
2474
|
i.query ? (l(), p("div", no, [
|
|
2475
|
-
c(
|
|
2475
|
+
c(y, {
|
|
2476
2476
|
items: o.options,
|
|
2477
2477
|
"filter-method": o.filterMethod,
|
|
2478
2478
|
query: i.query
|
|
2479
2479
|
}, {
|
|
2480
|
-
default: u(({ items:
|
|
2480
|
+
default: u(({ items: D }) => [
|
|
2481
2481
|
a("div", null, [
|
|
2482
|
-
|
|
2483
|
-
key:
|
|
2482
|
+
D.length ? (l(!0), p(I, { key: 0 }, E(D, (T, v) => (l(), p("div", {
|
|
2483
|
+
key: v,
|
|
2484
2484
|
class: "field-parent flex w-full items-center"
|
|
2485
2485
|
}, [
|
|
2486
2486
|
a("div", io, [
|
|
@@ -2493,40 +2493,40 @@ function vo(e, t, n, s, i, o) {
|
|
|
2493
2493
|
a("span", {
|
|
2494
2494
|
class: "drag-label",
|
|
2495
2495
|
draggable: !0,
|
|
2496
|
-
onDragstart: (f) => o.onDragStart(f,
|
|
2497
|
-
textContent: d(
|
|
2496
|
+
onDragstart: (f) => o.onDragStart(f, T),
|
|
2497
|
+
textContent: d(T.label)
|
|
2498
2498
|
}, null, 40, oo),
|
|
2499
2499
|
c(r, {
|
|
2500
|
-
"model-value":
|
|
2501
|
-
disabled:
|
|
2500
|
+
"model-value": T.value,
|
|
2501
|
+
disabled: T.inputDisabled,
|
|
2502
2502
|
filled: "",
|
|
2503
2503
|
size: "small",
|
|
2504
2504
|
style: { width: "100%" },
|
|
2505
2505
|
onBlur: (f) => {
|
|
2506
2506
|
var x;
|
|
2507
|
-
return
|
|
2507
|
+
return T.onInput(((x = f == null ? void 0 : f.target) == null ? void 0 : x.value) || "");
|
|
2508
2508
|
}
|
|
2509
2509
|
}, null, 8, ["model-value", "disabled", "onBlur"])
|
|
2510
2510
|
]),
|
|
2511
2511
|
_: 2
|
|
2512
2512
|
}, 1024),
|
|
2513
2513
|
a("div", so, [
|
|
2514
|
-
!
|
|
2514
|
+
!T.inputDisabled && !T.virtual ? (l(), b(h, {
|
|
2515
2515
|
key: 0,
|
|
2516
2516
|
icon: "edit",
|
|
2517
2517
|
size: "small",
|
|
2518
2518
|
type: "none",
|
|
2519
2519
|
pattern: "tertiary",
|
|
2520
2520
|
style: { width: "30px", height: "30px", "border-radius": "3px" },
|
|
2521
|
-
onClick: (f) => o.openFieldModal({ existingFieldId:
|
|
2522
|
-
}, null, 8, ["onClick"])) :
|
|
2521
|
+
onClick: (f) => o.openFieldModal({ existingFieldId: T.id })
|
|
2522
|
+
}, null, 8, ["onClick"])) : C("", !0),
|
|
2523
2523
|
c(h, {
|
|
2524
2524
|
icon: "copy",
|
|
2525
2525
|
size: "small",
|
|
2526
2526
|
type: "none",
|
|
2527
2527
|
pattern: "secondary",
|
|
2528
2528
|
style: { width: "30px", height: "30px", "border-radius": "3px" },
|
|
2529
|
-
onClick: (f) => o.onCopyField(`{{${
|
|
2529
|
+
onClick: (f) => o.onCopyField(`{{${T.key}}}`)
|
|
2530
2530
|
}, null, 8, ["onClick"])
|
|
2531
2531
|
])
|
|
2532
2532
|
])
|
|
@@ -2564,24 +2564,24 @@ function vo(e, t, n, s, i, o) {
|
|
|
2564
2564
|
defaultOpen: !o.usedFields.length,
|
|
2565
2565
|
items: o.unUsedFields
|
|
2566
2566
|
}
|
|
2567
|
-
], (
|
|
2568
|
-
key:
|
|
2569
|
-
"default-open":
|
|
2567
|
+
], (D, T) => (l(), b(k, {
|
|
2568
|
+
key: T,
|
|
2569
|
+
"default-open": D.defaultOpen,
|
|
2570
2570
|
style: { "border-top": "1px solid hsl(0, 0%, 88%)" }
|
|
2571
2571
|
}, {
|
|
2572
|
-
trigger: u(({ expanded:
|
|
2572
|
+
trigger: u(({ expanded: v }) => [
|
|
2573
2573
|
a("div", co, [
|
|
2574
2574
|
a("span", null, [
|
|
2575
2575
|
a("span", {
|
|
2576
|
-
textContent: d(
|
|
2576
|
+
textContent: d(D.label)
|
|
2577
2577
|
}, null, 8, uo),
|
|
2578
2578
|
a("span", {
|
|
2579
2579
|
style: { opacity: "0.45", "padding-left": "0.5em" },
|
|
2580
|
-
textContent: d(
|
|
2580
|
+
textContent: d(D.items.length)
|
|
2581
2581
|
}, null, 8, mo)
|
|
2582
2582
|
]),
|
|
2583
|
-
c(
|
|
2584
|
-
style: z([{ transform: `rotate(${
|
|
2583
|
+
c(w, {
|
|
2584
|
+
style: z([{ transform: `rotate(${v ? "180deg" : "0deg"})` }, { transition: "200ms" }]),
|
|
2585
2585
|
type: "chevron-down",
|
|
2586
2586
|
size: "15"
|
|
2587
2587
|
}, null, 8, ["style"])
|
|
@@ -2589,7 +2589,7 @@ function vo(e, t, n, s, i, o) {
|
|
|
2589
2589
|
]),
|
|
2590
2590
|
default: u(() => [
|
|
2591
2591
|
a("div", po, [
|
|
2592
|
-
|
|
2592
|
+
D.items.length ? (l(!0), p(I, { key: 1 }, E(D.items, (v, f) => (l(), p("div", {
|
|
2593
2593
|
key: f,
|
|
2594
2594
|
class: "field-parent flex w-full items-center"
|
|
2595
2595
|
}, [
|
|
@@ -2603,40 +2603,40 @@ function vo(e, t, n, s, i, o) {
|
|
|
2603
2603
|
a("span", {
|
|
2604
2604
|
class: "drag-label",
|
|
2605
2605
|
draggable: !0,
|
|
2606
|
-
onDragstart: (x) => o.onDragStart(x,
|
|
2607
|
-
textContent: d(
|
|
2606
|
+
onDragstart: (x) => o.onDragStart(x, v),
|
|
2607
|
+
textContent: d(v.label)
|
|
2608
2608
|
}, null, 40, go),
|
|
2609
2609
|
c(r, {
|
|
2610
|
-
"model-value":
|
|
2611
|
-
disabled:
|
|
2610
|
+
"model-value": v.value,
|
|
2611
|
+
disabled: v.inputDisabled,
|
|
2612
2612
|
filled: "",
|
|
2613
2613
|
size: "small",
|
|
2614
2614
|
style: { width: "100%" },
|
|
2615
2615
|
onBlur: (x) => {
|
|
2616
2616
|
var $;
|
|
2617
|
-
return
|
|
2617
|
+
return v.onInput((($ = x == null ? void 0 : x.target) == null ? void 0 : $.value) || "");
|
|
2618
2618
|
}
|
|
2619
2619
|
}, null, 8, ["model-value", "disabled", "onBlur"])
|
|
2620
2620
|
]),
|
|
2621
2621
|
_: 2
|
|
2622
2622
|
}, 1024),
|
|
2623
2623
|
a("div", yo, [
|
|
2624
|
-
!
|
|
2624
|
+
!v.inputDisabled && !v.virtual ? (l(), b(h, {
|
|
2625
2625
|
key: 0,
|
|
2626
2626
|
icon: "edit",
|
|
2627
2627
|
size: "small",
|
|
2628
2628
|
type: "none",
|
|
2629
2629
|
pattern: "tertiary",
|
|
2630
2630
|
style: { width: "30px", height: "30px", "border-radius": "3px" },
|
|
2631
|
-
onClick: (x) => o.openFieldModal({ existingFieldId:
|
|
2632
|
-
}, null, 8, ["onClick"])) :
|
|
2631
|
+
onClick: (x) => o.openFieldModal({ existingFieldId: v.id })
|
|
2632
|
+
}, null, 8, ["onClick"])) : C("", !0),
|
|
2633
2633
|
c(h, {
|
|
2634
2634
|
icon: "copy",
|
|
2635
2635
|
size: "small",
|
|
2636
2636
|
type: "none",
|
|
2637
2637
|
pattern: "secondary",
|
|
2638
2638
|
style: { width: "30px", height: "30px", "border-radius": "3px" },
|
|
2639
|
-
onClick: (x) => o.onCopyField(`{{${
|
|
2639
|
+
onClick: (x) => o.onCopyField(`{{${v.key}}}`)
|
|
2640
2640
|
}, null, 8, ["onClick"])
|
|
2641
2641
|
])
|
|
2642
2642
|
])
|
|
@@ -3248,25 +3248,25 @@ const xo = /* @__PURE__ */ F(bo, [["render", _o]]), To = {
|
|
|
3248
3248
|
style: { width: "initial", flex: "1 1 auto" }
|
|
3249
3249
|
}, Lo = ["innerHTML"], Vo = { class: "option-title" }, Bo = { class: "relative" }, Mo = ["onClick", "innerHTML"];
|
|
3250
3250
|
function Po(e, t, n, s, i, o) {
|
|
3251
|
-
const r = m("MenuBlockConvertPopover"), g = m("ProBadge"), h = m("CIcon"),
|
|
3251
|
+
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");
|
|
3252
3252
|
return l(), p("div", {
|
|
3253
|
-
onMouseleavePassive: t[4] || (t[4] = (...
|
|
3253
|
+
onMouseleavePassive: t[4] || (t[4] = (...v) => o.onMouseleaveDrawer && o.onMouseleaveDrawer(...v))
|
|
3254
3254
|
}, [
|
|
3255
|
-
c(
|
|
3256
|
-
default: u(({ onClick:
|
|
3257
|
-
!n.canUseBlocks && i.showConvertEditableDialog ? (l(),
|
|
3255
|
+
c(T, { feature: "documentBlocks" }, {
|
|
3256
|
+
default: u(({ onClick: v }) => [
|
|
3257
|
+
!n.canUseBlocks && i.showConvertEditableDialog ? (l(), b(r, {
|
|
3258
3258
|
key: 0,
|
|
3259
3259
|
target: i.showConvertEditableDialogTarget,
|
|
3260
3260
|
onConvert: o.deSyncTemplate,
|
|
3261
3261
|
onClose: t[0] || (t[0] = (f) => i.showConvertEditableDialog = !1)
|
|
3262
|
-
}, null, 8, ["target", "onConvert"])) :
|
|
3262
|
+
}, null, 8, ["target", "onConvert"])) : C("", !0),
|
|
3263
3263
|
a("div", Do, [
|
|
3264
3264
|
(l(!0), p(I, null, E([
|
|
3265
3265
|
{ data: o.primaryBlocks },
|
|
3266
3266
|
{ data: o.secondaryBlocks }
|
|
3267
3267
|
], (f, x) => (l(), p("div", { key: x }, [
|
|
3268
|
-
x > 0 ? (l(), p("div", So)) :
|
|
3269
|
-
c(
|
|
3268
|
+
x > 0 ? (l(), p("div", So)) : C("", !0),
|
|
3269
|
+
c(k, {
|
|
3270
3270
|
group: { name: "blocks", pull: "clone", put: !1 },
|
|
3271
3271
|
"get-child-payload": ($) => s.getBlockPayload(o.getSectionKey({ data: f.data, index: $ })),
|
|
3272
3272
|
"drop-placeholder": {
|
|
@@ -3280,7 +3280,7 @@ function Po(e, t, n, s, i, o) {
|
|
|
3280
3280
|
behaviour: "copy"
|
|
3281
3281
|
}, {
|
|
3282
3282
|
default: u(() => [
|
|
3283
|
-
(l(!0), p(I, null, E(f.data, ($) => (l(),
|
|
3283
|
+
(l(!0), p(I, null, E(f.data, ($) => (l(), b(w, {
|
|
3284
3284
|
key: $.key,
|
|
3285
3285
|
class: V({ "drag-item": o.canDrag })
|
|
3286
3286
|
}, {
|
|
@@ -3296,7 +3296,7 @@ function Po(e, t, n, s, i, o) {
|
|
|
3296
3296
|
onMouseleavePassive: t[1] || (t[1] = (S) => i.subMenuToShow = null)
|
|
3297
3297
|
}
|
|
3298
3298
|
), [
|
|
3299
|
-
c(
|
|
3299
|
+
c(y, {
|
|
3300
3300
|
ref_for: !0,
|
|
3301
3301
|
ref: "blockItem",
|
|
3302
3302
|
disabled: $.disabled,
|
|
@@ -3306,7 +3306,7 @@ function Po(e, t, n, s, i, o) {
|
|
|
3306
3306
|
wide: "",
|
|
3307
3307
|
pattern: "secondary",
|
|
3308
3308
|
style: { "padding-left": "1.5em", "padding-right": "2em", "border-radius": "0", "font-size": "14px", "border-color": "transparent" },
|
|
3309
|
-
onClick: (S) => o.onUseBlock({ block: $, openUpgradeModal:
|
|
3309
|
+
onClick: (S) => o.onUseBlock({ block: $, openUpgradeModal: v })
|
|
3310
3310
|
}, {
|
|
3311
3311
|
default: u(() => [
|
|
3312
3312
|
a("div", $o, [
|
|
@@ -3317,12 +3317,12 @@ function Po(e, t, n, s, i, o) {
|
|
|
3317
3317
|
}, null, 8, Lo),
|
|
3318
3318
|
a("div", Vo, d(e.$t(`blocks.${$.key}`)), 1)
|
|
3319
3319
|
]),
|
|
3320
|
-
$.locked ? (l(),
|
|
3320
|
+
$.locked ? (l(), b(g, { key: 0 })) : !n.fixed && $.subMenu ? (l(), b(h, {
|
|
3321
3321
|
key: 1,
|
|
3322
3322
|
type: "chevron-right",
|
|
3323
3323
|
size: "14",
|
|
3324
3324
|
style: { color: "hsl(205, 10%, 65%)" }
|
|
3325
|
-
})) :
|
|
3325
|
+
})) : C("", !0)
|
|
3326
3326
|
])
|
|
3327
3327
|
]),
|
|
3328
3328
|
_: 2
|
|
@@ -3344,12 +3344,12 @@ function Po(e, t, n, s, i, o) {
|
|
|
3344
3344
|
onMouseoverPassive: t[2] || (t[2] = (f) => i.subMenuToShow = i.activeSubMenu),
|
|
3345
3345
|
onMouseleavePassive: t[3] || (t[3] = (f) => i.subMenuToShow = null)
|
|
3346
3346
|
}, [
|
|
3347
|
-
c(
|
|
3347
|
+
c(D, {
|
|
3348
3348
|
class: "h-full py-4 pl-3",
|
|
3349
3349
|
"data-simplebar-auto-hide": "false"
|
|
3350
3350
|
}, {
|
|
3351
3351
|
default: u(() => [
|
|
3352
|
-
c(
|
|
3352
|
+
c(k, {
|
|
3353
3353
|
group: { name: "blocks", pull: "clone", put: !1 },
|
|
3354
3354
|
"get-child-payload": (f) => o.getSubMenuPayload({ index: f, getBlockPayload: s.getBlockPayload }),
|
|
3355
3355
|
"drop-placeholder": { className: "drag-drop-menu-placeholder" },
|
|
@@ -3361,7 +3361,7 @@ function Po(e, t, n, s, i, o) {
|
|
|
3361
3361
|
behaviour: "copy"
|
|
3362
3362
|
}, {
|
|
3363
3363
|
default: u(() => [
|
|
3364
|
-
(l(!0), p(I, null, E(i.activeSubMenu, (f, x) => (l(),
|
|
3364
|
+
(l(!0), p(I, null, E(i.activeSubMenu, (f, x) => (l(), b(w, {
|
|
3365
3365
|
key: f.key + x,
|
|
3366
3366
|
class: V(["px-1.5", { "drag-item": !f.locked && n.canUseBlocks }])
|
|
3367
3367
|
}, {
|
|
@@ -3369,13 +3369,13 @@ function Po(e, t, n, s, i, o) {
|
|
|
3369
3369
|
a("div", Bo, [
|
|
3370
3370
|
a("div", {
|
|
3371
3371
|
class: "drag-item-preview",
|
|
3372
|
-
onClick: ($) => o.onUseBlock({ block: f, openUpgradeModal:
|
|
3372
|
+
onClick: ($) => o.onUseBlock({ block: f, openUpgradeModal: v }),
|
|
3373
3373
|
innerHTML: f.previewUrl
|
|
3374
3374
|
}, null, 8, Mo),
|
|
3375
|
-
f.locked ? (l(),
|
|
3375
|
+
f.locked ? (l(), b(g, {
|
|
3376
3376
|
key: 0,
|
|
3377
3377
|
class: "absolute bottom-2 right-4"
|
|
3378
|
-
})) :
|
|
3378
|
+
})) : C("", !0)
|
|
3379
3379
|
])
|
|
3380
3380
|
]),
|
|
3381
3381
|
_: 2
|
|
@@ -3418,7 +3418,7 @@ const Ao = /* @__PURE__ */ F(To, [["render", Po], ["__scopeId", "data-v-babdf4c0
|
|
|
3418
3418
|
ExtensionTab: qi,
|
|
3419
3419
|
DocumentGeneralSettings: ci,
|
|
3420
3420
|
DocumentGuide: ct(
|
|
3421
|
-
() => import("./index-
|
|
3421
|
+
() => import("./index-B7lPoMlH.js")
|
|
3422
3422
|
),
|
|
3423
3423
|
MenuBlocks: Ao,
|
|
3424
3424
|
Simplebar: J
|
|
@@ -3485,7 +3485,7 @@ const Ao = /* @__PURE__ */ F(To, [["render", Po], ["__scopeId", "data-v-babdf4c0
|
|
|
3485
3485
|
}, zo = {
|
|
3486
3486
|
key: 0,
|
|
3487
3487
|
class: "tab-list"
|
|
3488
|
-
}, Ro = ["textContent"], Oo = ["textContent"],
|
|
3488
|
+
}, Ro = ["textContent"], Oo = ["textContent"], Uo = ["textContent"], Ho = { style: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "flex-end", "align-items": "flex-start", padding: "calc(1 * var(--rem))" } }, qo = {
|
|
3489
3489
|
key: 0,
|
|
3490
3490
|
class: "circle-pulse"
|
|
3491
3491
|
}, Go = {
|
|
@@ -3493,7 +3493,7 @@ const Ao = /* @__PURE__ */ F(To, [["render", Po], ["__scopeId", "data-v-babdf4c0
|
|
|
3493
3493
|
class: "menu-container"
|
|
3494
3494
|
};
|
|
3495
3495
|
function No(e, t, n, s, i, o) {
|
|
3496
|
-
const r = m("CIcon"), g = m("CButton"), h = m("MenuBlocks"),
|
|
3496
|
+
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");
|
|
3497
3497
|
return l(), p("div", null, [
|
|
3498
3498
|
a("div", {
|
|
3499
3499
|
style: z([{ width: `${n.width}px` }, n.fixed && { zIndex: 999 }]),
|
|
@@ -3503,11 +3503,11 @@ function No(e, t, n, s, i, o) {
|
|
|
3503
3503
|
key: 0,
|
|
3504
3504
|
class: "fixed inset-0",
|
|
3505
3505
|
onClick: t[0] || (t[0] = (f) => e.$emit("close"))
|
|
3506
|
-
})) :
|
|
3506
|
+
})) : C("", !0),
|
|
3507
3507
|
a("div", {
|
|
3508
3508
|
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)" }])
|
|
3509
3509
|
}, [
|
|
3510
|
-
n.isLegacyTemplate ?
|
|
3510
|
+
n.isLegacyTemplate ? C("", !0) : (l(), p("div", zo, [
|
|
3511
3511
|
a("div", {
|
|
3512
3512
|
class: V([{ "is-active": i.tab === "blocks" }, "tab-item"]),
|
|
3513
3513
|
onClick: t[1] || (t[1] = (f) => i.tab = "blocks"),
|
|
@@ -3522,7 +3522,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3522
3522
|
class: V([{ "is-active": i.tab === "fields" }, "tab-item"]),
|
|
3523
3523
|
onClick: t[3] || (t[3] = (f) => i.tab = "fields"),
|
|
3524
3524
|
textContent: d(e.$t("tabs.fields"))
|
|
3525
|
-
}, null, 10,
|
|
3525
|
+
}, null, 10, Uo),
|
|
3526
3526
|
o.extensionTabType ? (l(), p("div", {
|
|
3527
3527
|
key: 0,
|
|
3528
3528
|
class: V([{ "is-active": i.tab === "extension" }, "tab-item"]),
|
|
@@ -3544,7 +3544,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3544
3544
|
size: "14"
|
|
3545
3545
|
}, null, 8, ["type"])
|
|
3546
3546
|
], 4)
|
|
3547
|
-
], 2)) :
|
|
3547
|
+
], 2)) : C("", !0),
|
|
3548
3548
|
a("div", {
|
|
3549
3549
|
class: V([{ "is-active": i.tab === "generalSettings" }, "tab-item ml-[2px]"]),
|
|
3550
3550
|
onClick: t[5] || (t[5] = (f) => i.tab = "generalSettings")
|
|
@@ -3556,7 +3556,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3556
3556
|
})
|
|
3557
3557
|
], 2)
|
|
3558
3558
|
])),
|
|
3559
|
-
i.tab === "blocks" ? (l(),
|
|
3559
|
+
i.tab === "blocks" ? (l(), b(h, {
|
|
3560
3560
|
key: 1,
|
|
3561
3561
|
_document: n.state,
|
|
3562
3562
|
set: n.set,
|
|
@@ -3566,7 +3566,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3566
3566
|
onBlockAdded: t[6] || (t[6] = (f) => n.fixed ? e.$emit("close") : null)
|
|
3567
3567
|
}, {
|
|
3568
3568
|
footer: u(() => [
|
|
3569
|
-
a("div",
|
|
3569
|
+
a("div", Ho, [
|
|
3570
3570
|
c(g, {
|
|
3571
3571
|
"icon-left": "help",
|
|
3572
3572
|
type: "none",
|
|
@@ -3577,7 +3577,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3577
3577
|
}, {
|
|
3578
3578
|
default: u(() => [
|
|
3579
3579
|
_(d(e.$t("guideButton")) + " ", 1),
|
|
3580
|
-
i.showGuideNotification ? (l(), p("div", qo)) :
|
|
3580
|
+
i.showGuideNotification ? (l(), p("div", qo)) : C("", !0)
|
|
3581
3581
|
]),
|
|
3582
3582
|
_: 1
|
|
3583
3583
|
}, 8, ["onClick"])
|
|
@@ -3585,9 +3585,9 @@ function No(e, t, n, s, i, o) {
|
|
|
3585
3585
|
]),
|
|
3586
3586
|
_: 1
|
|
3587
3587
|
}, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (l(), p("div", Go, [
|
|
3588
|
-
c(
|
|
3588
|
+
c(T, { class: "h-full w-full" }, {
|
|
3589
3589
|
default: u(() => [
|
|
3590
|
-
i.tab === "design" ? (l(),
|
|
3590
|
+
i.tab === "design" ? (l(), b(y, {
|
|
3591
3591
|
key: 0,
|
|
3592
3592
|
_document: n.state,
|
|
3593
3593
|
_value: {
|
|
@@ -3595,7 +3595,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3595
3595
|
},
|
|
3596
3596
|
set: n.set,
|
|
3597
3597
|
offset: n.fixed ? 0 : n.width
|
|
3598
|
-
}, null, 8, ["_document", "set", "offset"])) : i.tab === "fields" ? (l(),
|
|
3598
|
+
}, null, 8, ["_document", "set", "offset"])) : i.tab === "fields" ? (l(), b(w, {
|
|
3599
3599
|
key: 1,
|
|
3600
3600
|
_document: n.state,
|
|
3601
3601
|
"crm-service": o.extensionTabType,
|
|
@@ -3603,7 +3603,7 @@ function No(e, t, n, s, i, o) {
|
|
|
3603
3603
|
css: "data.css"
|
|
3604
3604
|
},
|
|
3605
3605
|
set: n.set
|
|
3606
|
-
}, null, 8, ["_document", "crm-service", "set"])) : i.tab === "extension" ? (l(),
|
|
3606
|
+
}, null, 8, ["_document", "crm-service", "set"])) : i.tab === "extension" ? (l(), b(k, {
|
|
3607
3607
|
key: 2,
|
|
3608
3608
|
_document: n.state,
|
|
3609
3609
|
_value: {
|
|
@@ -3612,8 +3612,8 @@ function No(e, t, n, s, i, o) {
|
|
|
3612
3612
|
articles: "articles"
|
|
3613
3613
|
},
|
|
3614
3614
|
onInput: t[7] || (t[7] = ({ key: f, value: x }) => n.set({ key: f, value: x }))
|
|
3615
|
-
}, null, 8, ["_document"])) :
|
|
3616
|
-
i.tab === "generalSettings" ? (l(),
|
|
3615
|
+
}, null, 8, ["_document"])) : C("", !0),
|
|
3616
|
+
i.tab === "generalSettings" ? (l(), b(D, {
|
|
3617
3617
|
key: 3,
|
|
3618
3618
|
_document: n.state,
|
|
3619
3619
|
_value: {
|
|
@@ -3630,15 +3630,15 @@ function No(e, t, n, s, i, o) {
|
|
|
3630
3630
|
offset: n.fixed ? 0 : n.width,
|
|
3631
3631
|
class: V({ "!top-0 rounded-sm": n.isLegacyTemplate }),
|
|
3632
3632
|
onInput: t[8] || (t[8] = ({ key: f, value: x }) => n.set({ key: f, value: x }))
|
|
3633
|
-
}, null, 8, ["_document", "offset", "class"])) :
|
|
3633
|
+
}, null, 8, ["_document", "offset", "class"])) : C("", !0)
|
|
3634
3634
|
]),
|
|
3635
3635
|
_: 1
|
|
3636
3636
|
})
|
|
3637
3637
|
])),
|
|
3638
|
-
i.showGuide ? (l(),
|
|
3638
|
+
i.showGuide ? (l(), b(v, {
|
|
3639
3639
|
key: 3,
|
|
3640
3640
|
onClose: t[9] || (t[9] = (f) => i.showGuide = !1)
|
|
3641
|
-
})) :
|
|
3641
|
+
})) : C("", !0)
|
|
3642
3642
|
], 4)
|
|
3643
3643
|
], 4)
|
|
3644
3644
|
]);
|
|
@@ -3807,7 +3807,7 @@ const Wo = /* @__PURE__ */ F(Eo, [["render", No], ["__scopeId", "data-v-2721fb3f
|
|
|
3807
3807
|
},
|
|
3808
3808
|
methods: {
|
|
3809
3809
|
onAddBlockMount(e, t) {
|
|
3810
|
-
t &&
|
|
3810
|
+
t && Ut(e) && this.$nextTick(() => Qt(t, { offset: 100 }));
|
|
3811
3811
|
},
|
|
3812
3812
|
onBlockToggleVisible(e, t) {
|
|
3813
3813
|
const s = [...this.readLayout].findIndex(
|
|
@@ -3879,20 +3879,20 @@ const Wo = /* @__PURE__ */ F(Eo, [["render", No], ["__scopeId", "data-v-2721fb3f
|
|
|
3879
3879
|
value: ue(i)
|
|
3880
3880
|
});
|
|
3881
3881
|
} else if (!t && n !== null) {
|
|
3882
|
-
const { sectionKey: i, createNewSection: o, addValidation: r, contentData: g } = s, { readView: h, validation:
|
|
3882
|
+
const { sectionKey: i, createNewSection: o, addValidation: r, contentData: g } = s, { readView: h, validation: y, data: w } = o({
|
|
3883
3883
|
sectionKey: i,
|
|
3884
3884
|
document: this._document,
|
|
3885
3885
|
contentData: g
|
|
3886
3886
|
});
|
|
3887
|
-
r({ validation:
|
|
3888
|
-
const
|
|
3887
|
+
r({ validation: y, data: w });
|
|
3888
|
+
const k = mt({ tree: h }), D = [
|
|
3889
3889
|
...this.nestedReadLayout.slice(0, n),
|
|
3890
|
-
...
|
|
3890
|
+
...k,
|
|
3891
3891
|
...this.nestedReadLayout.slice(n)
|
|
3892
3892
|
];
|
|
3893
3893
|
this.setFormValue({
|
|
3894
3894
|
key: "template.views.read.nodes",
|
|
3895
|
-
value: ue(
|
|
3895
|
+
value: ue(D)
|
|
3896
3896
|
});
|
|
3897
3897
|
}
|
|
3898
3898
|
},
|
|
@@ -3909,7 +3909,7 @@ const Wo = /* @__PURE__ */ F(Eo, [["render", No], ["__scopeId", "data-v-2721fb3f
|
|
|
3909
3909
|
class: "drag-drop-empty-list is-placeholder text-gray-400"
|
|
3910
3910
|
}, es = ["innerHTML"];
|
|
3911
3911
|
function ts(e, t, n, s, i, o) {
|
|
3912
|
-
const r = m("CButton"), g = m("DocumentFormViewRadio"), h = m("CIcon"),
|
|
3912
|
+
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");
|
|
3913
3913
|
return l(), p("div", Zo, [
|
|
3914
3914
|
a("div", {
|
|
3915
3915
|
class: V([{
|
|
@@ -3917,10 +3917,10 @@ function ts(e, t, n, s, i, o) {
|
|
|
3917
3917
|
"is-empty-list": !o.nestedReadLayout.length
|
|
3918
3918
|
}, "relative flex min-h-screen flex-row bg-gray-200"])
|
|
3919
3919
|
}, [
|
|
3920
|
-
c(
|
|
3920
|
+
c(y, { close: n.close }, {
|
|
3921
3921
|
left: u(() => [
|
|
3922
3922
|
a("div", Ko, [
|
|
3923
|
-
n.close ? (l(),
|
|
3923
|
+
n.close ? (l(), b(r, {
|
|
3924
3924
|
key: 0,
|
|
3925
3925
|
"icon-props": { size: 20 },
|
|
3926
3926
|
size: "normal",
|
|
@@ -3929,8 +3929,8 @@ function ts(e, t, n, s, i, o) {
|
|
|
3929
3929
|
type: "none",
|
|
3930
3930
|
pattern: "tertiary",
|
|
3931
3931
|
onClick: n.close
|
|
3932
|
-
}, null, 8, ["onClick"])) :
|
|
3933
|
-
n.goBack && e.mq !== "sm" ? (l(),
|
|
3932
|
+
}, null, 8, ["onClick"])) : C("", !0),
|
|
3933
|
+
n.goBack && e.mq !== "sm" ? (l(), b(r, {
|
|
3934
3934
|
key: 1,
|
|
3935
3935
|
"icon-props": { size: 20 },
|
|
3936
3936
|
type: "none",
|
|
@@ -3938,7 +3938,7 @@ function ts(e, t, n, s, i, o) {
|
|
|
3938
3938
|
icon: "arrow-left",
|
|
3939
3939
|
class: "mr-2 h-[2.25em] w-[2.25em] backdrop-blur-[25px]",
|
|
3940
3940
|
onClick: n.goBack
|
|
3941
|
-
}, null, 8, ["onClick"])) :
|
|
3941
|
+
}, null, 8, ["onClick"])) : C("", !0),
|
|
3942
3942
|
c(r, {
|
|
3943
3943
|
size: "normal",
|
|
3944
3944
|
type: "none",
|
|
@@ -3973,14 +3973,14 @@ function ts(e, t, n, s, i, o) {
|
|
|
3973
3973
|
}
|
|
3974
3974
|
),
|
|
3975
3975
|
class: "pointer inline-flex select-none items-center justify-center rounded-md p-[10px] font-semibold text-gray-700 transition duration-150 ease-linear",
|
|
3976
|
-
onClick: (
|
|
3976
|
+
onClick: (H) => i.previewDevice = S
|
|
3977
3977
|
}, [
|
|
3978
3978
|
c(h, {
|
|
3979
3979
|
type: S,
|
|
3980
3980
|
size: "20"
|
|
3981
3981
|
}, null, 8, ["type"])
|
|
3982
3982
|
], 12, Jo)), 64))
|
|
3983
|
-
])) :
|
|
3983
|
+
])) : C("", !0)
|
|
3984
3984
|
])
|
|
3985
3985
|
]),
|
|
3986
3986
|
right: u(() => [
|
|
@@ -3988,7 +3988,7 @@ function ts(e, t, n, s, i, o) {
|
|
|
3988
3988
|
]),
|
|
3989
3989
|
_: 3
|
|
3990
3990
|
}, 8, ["close"]),
|
|
3991
|
-
G(c(
|
|
3991
|
+
G(c(w, {
|
|
3992
3992
|
state: n._document,
|
|
3993
3993
|
set: n.setFormValue,
|
|
3994
3994
|
"remove-value": n.removeFormValue,
|
|
@@ -4029,17 +4029,17 @@ function ts(e, t, n, s, i, o) {
|
|
|
4029
4029
|
style: { "max-width": "22ch" },
|
|
4030
4030
|
innerHTML: e.$t("emptyBlockPlaceholderLarge")
|
|
4031
4031
|
}, null, 8, es)
|
|
4032
|
-
])) :
|
|
4033
|
-
(l(),
|
|
4032
|
+
])) : C("", !0),
|
|
4033
|
+
(l(), b(W(o.isEditView ? "div" : "simplebar"), { class: "h-full w-full" }, {
|
|
4034
4034
|
default: u(() => {
|
|
4035
|
-
var S,
|
|
4035
|
+
var S, H;
|
|
4036
4036
|
return [
|
|
4037
4037
|
c(f, {
|
|
4038
4038
|
class: "relative h-full w-full",
|
|
4039
|
-
"input-style": ((
|
|
4039
|
+
"input-style": ((H = (S = n._document) == null ? void 0 : S.data) == null ? void 0 : H.css) || null
|
|
4040
4040
|
}, {
|
|
4041
4041
|
default: u(() => [
|
|
4042
|
-
o.nestedReadLayout ? (l(),
|
|
4042
|
+
o.nestedReadLayout ? (l(), b(W(o.dndEnabled ? "DragList" : "div"), {
|
|
4043
4043
|
key: 0,
|
|
4044
4044
|
handle: ".NO-SELECTOR",
|
|
4045
4045
|
"drop-placeholder": { className: "drag-drop-placeholder" },
|
|
@@ -4058,7 +4058,7 @@ function ts(e, t, n, s, i, o) {
|
|
|
4058
4058
|
default: u(() => [
|
|
4059
4059
|
(l(!0), p(I, null, E(n._document.getReadLayout({
|
|
4060
4060
|
showHiddenNodes: o.isEditView
|
|
4061
|
-
}), (B, se) => (l(),
|
|
4061
|
+
}), (B, se) => (l(), b(W(o.dndEnabled ? "DragItem" : "div"), {
|
|
4062
4062
|
key: B.nodeId,
|
|
4063
4063
|
class: V([
|
|
4064
4064
|
{
|
|
@@ -4067,7 +4067,7 @@ function ts(e, t, n, s, i, o) {
|
|
|
4067
4067
|
])
|
|
4068
4068
|
}, {
|
|
4069
4069
|
default: u(() => [
|
|
4070
|
-
c(
|
|
4070
|
+
c(D, {
|
|
4071
4071
|
ref_for: !0,
|
|
4072
4072
|
ref: B.nodeId,
|
|
4073
4073
|
"is-dragging": i.isDragging,
|
|
@@ -4082,7 +4082,7 @@ function ts(e, t, n, s, i, o) {
|
|
|
4082
4082
|
onToggleVisible: (L) => o.onBlockToggleVisible(B, L)
|
|
4083
4083
|
}, {
|
|
4084
4084
|
default: u(() => [
|
|
4085
|
-
c(
|
|
4085
|
+
c(k, {
|
|
4086
4086
|
"component-name": B.componentName,
|
|
4087
4087
|
"component-props": {
|
|
4088
4088
|
...B.props,
|
|
@@ -4104,16 +4104,16 @@ function ts(e, t, n, s, i, o) {
|
|
|
4104
4104
|
}, 1032, ["class"]))), 128))
|
|
4105
4105
|
]),
|
|
4106
4106
|
_: 1
|
|
4107
|
-
}, 40, ["should-animate-drop"])) :
|
|
4108
|
-
n.canShowBanner ? (l(),
|
|
4107
|
+
}, 40, ["should-animate-drop"])) : C("", !0),
|
|
4108
|
+
n.canShowBanner ? (l(), b(v, { key: 1 }, {
|
|
4109
4109
|
default: u(({ isProLike: B }) => [
|
|
4110
|
-
!o.isEditView && !B ? (l(),
|
|
4110
|
+
!o.isEditView && !B ? (l(), b(T, {
|
|
4111
4111
|
key: 0,
|
|
4112
4112
|
position: "sticky"
|
|
4113
|
-
})) :
|
|
4113
|
+
})) : C("", !0)
|
|
4114
4114
|
]),
|
|
4115
4115
|
_: 1
|
|
4116
|
-
})) :
|
|
4116
|
+
})) : C("", !0)
|
|
4117
4117
|
]),
|
|
4118
4118
|
_: 1
|
|
4119
4119
|
}, 8, ["input-style"])
|
|
@@ -4123,7 +4123,7 @@ function ts(e, t, n, s, i, o) {
|
|
|
4123
4123
|
}))
|
|
4124
4124
|
], 2)
|
|
4125
4125
|
], 6),
|
|
4126
|
-
(l(),
|
|
4126
|
+
(l(), b($, {
|
|
4127
4127
|
id: "settingsDrawer",
|
|
4128
4128
|
key: "settingsDrawer",
|
|
4129
4129
|
open: !!i.drawerState.openSection,
|
|
@@ -4304,11 +4304,11 @@ const ns = /* @__PURE__ */ F(jo, [["render", ts], ["__scopeId", "data-v-29e700ee
|
|
|
4304
4304
|
class: "inline-flex cursor-pointer select-none items-center py-2 text-[12px] font-[500] text-gray-600"
|
|
4305
4305
|
}, ps = ["onClick"], hs = { style: { "padding-left": "0.5em" } };
|
|
4306
4306
|
function fs(e, t, n, s, i, o) {
|
|
4307
|
-
const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"),
|
|
4308
|
-
return e.mq !== "sm" || i.isOpen ? (l(),
|
|
4307
|
+
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");
|
|
4308
|
+
return e.mq !== "sm" || i.isOpen ? (l(), b(W(e.mq === "sm" ? "div" : "Drawer"), {
|
|
4309
4309
|
key: 0,
|
|
4310
4310
|
modelValue: i.isOpen,
|
|
4311
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
4311
|
+
"onUpdate:modelValue": t[3] || (t[3] = (v) => i.isOpen = v),
|
|
4312
4312
|
placement: "right"
|
|
4313
4313
|
}, {
|
|
4314
4314
|
default: u(() => [
|
|
@@ -4322,9 +4322,9 @@ function fs(e, t, n, s, i, o) {
|
|
|
4322
4322
|
icon: "x",
|
|
4323
4323
|
pattern: "secondary",
|
|
4324
4324
|
style: { position: "absolute", right: "1em", top: "1em", "z-index": "99" },
|
|
4325
|
-
onClick: t[0] || (t[0] = (
|
|
4325
|
+
onClick: t[0] || (t[0] = (v) => i.isOpen = !1)
|
|
4326
4326
|
}),
|
|
4327
|
-
c(
|
|
4327
|
+
c(D, {
|
|
4328
4328
|
_document: e._document,
|
|
4329
4329
|
_value: e._value,
|
|
4330
4330
|
"set-form-value": n.setFormValue,
|
|
@@ -4333,7 +4333,7 @@ function fs(e, t, n, s, i, o) {
|
|
|
4333
4333
|
"use-scroll": ""
|
|
4334
4334
|
}, {
|
|
4335
4335
|
send: u(() => [
|
|
4336
|
-
o.isPublicForm ? (l(),
|
|
4336
|
+
o.isPublicForm ? (l(), b(r, {
|
|
4337
4337
|
key: 0,
|
|
4338
4338
|
type: "secondary",
|
|
4339
4339
|
wide: "",
|
|
@@ -4344,19 +4344,19 @@ function fs(e, t, n, s, i, o) {
|
|
|
4344
4344
|
_(d(e.$t("signupToSend")), 1)
|
|
4345
4345
|
]),
|
|
4346
4346
|
_: 1
|
|
4347
|
-
}, 8, ["onClick"])) :
|
|
4347
|
+
}, 8, ["onClick"])) : C("", !0)
|
|
4348
4348
|
]),
|
|
4349
4349
|
[o.saveTemplateSlot]: u(() => [
|
|
4350
4350
|
a("label", ms, [
|
|
4351
|
-
c(
|
|
4352
|
-
default: u(({ canCreateTemplate:
|
|
4353
|
-
c(
|
|
4351
|
+
c(k, null, {
|
|
4352
|
+
default: u(({ canCreateTemplate: v }) => [
|
|
4353
|
+
c(w, { feature: "saveDocTemplate" }, {
|
|
4354
4354
|
default: u(({ onClick: f }) => [
|
|
4355
4355
|
a("div", {
|
|
4356
4356
|
class: "flex items-center",
|
|
4357
4357
|
onClick: (x) => o.onClickSaveAsTemplate({
|
|
4358
4358
|
event: x,
|
|
4359
|
-
can:
|
|
4359
|
+
can: v,
|
|
4360
4360
|
open: f
|
|
4361
4361
|
})
|
|
4362
4362
|
}, [
|
|
@@ -4373,10 +4373,10 @@ function fs(e, t, n, s, i, o) {
|
|
|
4373
4373
|
type: "info",
|
|
4374
4374
|
size: "15"
|
|
4375
4375
|
}, null, 512), [
|
|
4376
|
-
[
|
|
4376
|
+
[T, o.saveTemplateTooltip]
|
|
4377
4377
|
])
|
|
4378
4378
|
]),
|
|
4379
|
-
|
|
4379
|
+
v ? C("", !0) : (l(), b(y, {
|
|
4380
4380
|
key: 0,
|
|
4381
4381
|
class: "ml-2 self-center"
|
|
4382
4382
|
}))
|
|
@@ -4407,8 +4407,8 @@ function fs(e, t, n, s, i, o) {
|
|
|
4407
4407
|
a("div", ls, d(e.$t("tooManyClientsText")), 1)
|
|
4408
4408
|
])
|
|
4409
4409
|
])
|
|
4410
|
-
])) :
|
|
4411
|
-
o.hasAnswerBlock ?
|
|
4410
|
+
])) : C("", !0),
|
|
4411
|
+
o.hasAnswerBlock ? C("", !0) : (l(), p("div", rs, [
|
|
4412
4412
|
a("div", null, [
|
|
4413
4413
|
c(g, {
|
|
4414
4414
|
type: "error",
|
|
@@ -4428,7 +4428,7 @@ function fs(e, t, n, s, i, o) {
|
|
|
4428
4428
|
type: "secondary",
|
|
4429
4429
|
class: "is-left",
|
|
4430
4430
|
size: "small",
|
|
4431
|
-
onClick: t[1] || (t[1] = (
|
|
4431
|
+
onClick: t[1] || (t[1] = (v) => s.addBlock({ sectionKey: "answer", document: e._document }))
|
|
4432
4432
|
}, {
|
|
4433
4433
|
default: u(() => [
|
|
4434
4434
|
_(d(e.$t("signMissingAdd")), 1)
|
|
@@ -4443,7 +4443,7 @@ function fs(e, t, n, s, i, o) {
|
|
|
4443
4443
|
], 2)
|
|
4444
4444
|
]),
|
|
4445
4445
|
_: 1
|
|
4446
|
-
}, 8, ["modelValue"])) :
|
|
4446
|
+
}, 8, ["modelValue"])) : C("", !0);
|
|
4447
4447
|
}
|
|
4448
4448
|
const gs = /* @__PURE__ */ F(is, [["render", fs], ["__scopeId", "data-v-fde11d9e"]]), ys = {
|
|
4449
4449
|
i18nOptions: {
|
|
@@ -4605,11 +4605,11 @@ const gs = /* @__PURE__ */ F(is, [["render", fs], ["__scopeId", "data-v-fde11d9e
|
|
|
4605
4605
|
}
|
|
4606
4606
|
}, 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" };
|
|
4607
4607
|
function xs(e, t, n, s, i, o) {
|
|
4608
|
-
const r = m("CCallout"), g = m("CInput"), h = m("CField"),
|
|
4608
|
+
const r = m("CCallout"), g = m("CInput"), h = m("CField"), y = m("CCheckbox"), w = m("CButton");
|
|
4609
4609
|
return l(), p("div", vs, [
|
|
4610
4610
|
a("div", Cs, d(n.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })), 1),
|
|
4611
4611
|
a("div", null, [
|
|
4612
|
-
n.template ?
|
|
4612
|
+
n.template ? C("", !0) : (l(), b(r, { key: 0 }, {
|
|
4613
4613
|
default: u(() => [
|
|
4614
4614
|
_(d(e.$t("calloutDescription")), 1)
|
|
4615
4615
|
]),
|
|
@@ -4630,7 +4630,7 @@ function xs(e, t, n, s, i, o) {
|
|
|
4630
4630
|
size: "medium",
|
|
4631
4631
|
class: "rounder",
|
|
4632
4632
|
style: { "margin-bottom": "calc(1 * var(--rem))" },
|
|
4633
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
4633
|
+
"onUpdate:modelValue": t[0] || (t[0] = (k) => i.name = k)
|
|
4634
4634
|
}, null, 8, ["model-value", "placeholder", "disabled"])
|
|
4635
4635
|
]),
|
|
4636
4636
|
_: 1
|
|
@@ -4638,9 +4638,9 @@ function xs(e, t, n, s, i, o) {
|
|
|
4638
4638
|
n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (l(), p("div", bs, [
|
|
4639
4639
|
c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
|
|
4640
4640
|
default: u(() => [
|
|
4641
|
-
c(
|
|
4641
|
+
c(y, {
|
|
4642
4642
|
modelValue: i.updateExistingDocTemplate,
|
|
4643
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
4643
|
+
"onUpdate:modelValue": t[1] || (t[1] = (k) => i.updateExistingDocTemplate = k),
|
|
4644
4644
|
type: "secondary",
|
|
4645
4645
|
size: "normal"
|
|
4646
4646
|
}, {
|
|
@@ -4652,13 +4652,13 @@ function xs(e, t, n, s, i, o) {
|
|
|
4652
4652
|
]),
|
|
4653
4653
|
_: 1
|
|
4654
4654
|
})
|
|
4655
|
-
])) :
|
|
4655
|
+
])) : C("", !0),
|
|
4656
4656
|
n.document && n.document.clients.length && n.showKeepClientsOption ? (l(), p("div", ws, [
|
|
4657
4657
|
c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
|
|
4658
4658
|
default: u(() => [
|
|
4659
|
-
c(
|
|
4659
|
+
c(y, {
|
|
4660
4660
|
modelValue: i.keepClients,
|
|
4661
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
4661
|
+
"onUpdate:modelValue": t[2] || (t[2] = (k) => i.keepClients = k),
|
|
4662
4662
|
type: "secondary",
|
|
4663
4663
|
size: "normal"
|
|
4664
4664
|
}, {
|
|
@@ -4670,9 +4670,9 @@ function xs(e, t, n, s, i, o) {
|
|
|
4670
4670
|
]),
|
|
4671
4671
|
_: 1
|
|
4672
4672
|
})
|
|
4673
|
-
])) :
|
|
4673
|
+
])) : C("", !0)
|
|
4674
4674
|
]),
|
|
4675
|
-
c(
|
|
4675
|
+
c(w, {
|
|
4676
4676
|
loading: e.isPosting,
|
|
4677
4677
|
type: "secondary",
|
|
4678
4678
|
wide: "",
|
|
@@ -4708,7 +4708,7 @@ function Ds() {
|
|
|
4708
4708
|
return pe = n, pe;
|
|
4709
4709
|
}
|
|
4710
4710
|
var Ss = Ds();
|
|
4711
|
-
const Is = /* @__PURE__ */
|
|
4711
|
+
const Is = /* @__PURE__ */ Ue(Ss), $s = {
|
|
4712
4712
|
name: "RemainingTrialButton",
|
|
4713
4713
|
components: { IsPremium: ee },
|
|
4714
4714
|
i18nOptions: {
|
|
@@ -4744,15 +4744,15 @@ const Is = /* @__PURE__ */ He(Ss), $s = {
|
|
|
4744
4744
|
}
|
|
4745
4745
|
}, 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" }, Vs = { class: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, Bs = { 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" };
|
|
4746
4746
|
function Rs(e, t, n, s, i, o) {
|
|
4747
|
-
const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"),
|
|
4748
|
-
return l(),
|
|
4747
|
+
const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), y = ie("close-popper");
|
|
4748
|
+
return l(), b(h, null, {
|
|
4749
4749
|
default: u(({
|
|
4750
|
-
accountType:
|
|
4751
|
-
trialDaysLeft:
|
|
4752
|
-
openUpgradeModal:
|
|
4753
|
-
initialFreePremiumDays:
|
|
4750
|
+
accountType: w,
|
|
4751
|
+
trialDaysLeft: k,
|
|
4752
|
+
openUpgradeModal: D,
|
|
4753
|
+
initialFreePremiumDays: T
|
|
4754
4754
|
}) => [
|
|
4755
|
-
|
|
4755
|
+
w === "trial" && e.mq !== "sm" ? (l(), b(g, {
|
|
4756
4756
|
key: 0,
|
|
4757
4757
|
"popper-class": "trial-popover"
|
|
4758
4758
|
}, {
|
|
@@ -4761,7 +4761,7 @@ function Rs(e, t, n, s, i, o) {
|
|
|
4761
4761
|
a("div", Ms, [
|
|
4762
4762
|
_(d(e.$t("title.1")) + " ", 1),
|
|
4763
4763
|
a("span", Ps, d(e.$t("title.2")), 1),
|
|
4764
|
-
_(" " + d(e.$t("title.3", { trialDaysLeft:
|
|
4764
|
+
_(" " + d(e.$t("title.3", { trialDaysLeft: k })) + ". ", 1)
|
|
4765
4765
|
]),
|
|
4766
4766
|
a("div", As, [
|
|
4767
4767
|
_(d(e.$t("title.4")) + " ", 1),
|
|
@@ -4769,29 +4769,29 @@ function Rs(e, t, n, s, i, o) {
|
|
|
4769
4769
|
t[0] || (t[0] = _(". "))
|
|
4770
4770
|
]),
|
|
4771
4771
|
a("div", zs, [
|
|
4772
|
-
G((l(),
|
|
4772
|
+
G((l(), b(r, {
|
|
4773
4773
|
type: "secondary",
|
|
4774
4774
|
size: "small",
|
|
4775
4775
|
"icon-right": "arrow-right",
|
|
4776
|
-
onClick:
|
|
4776
|
+
onClick: D
|
|
4777
4777
|
}, {
|
|
4778
4778
|
default: u(() => [
|
|
4779
4779
|
_(d(e.$t("actionButton")), 1)
|
|
4780
4780
|
]),
|
|
4781
4781
|
_: 2
|
|
4782
4782
|
}, 1032, ["onClick"])), [
|
|
4783
|
-
[
|
|
4783
|
+
[y]
|
|
4784
4784
|
])
|
|
4785
4785
|
])
|
|
4786
4786
|
])
|
|
4787
4787
|
]),
|
|
4788
4788
|
default: u(() => [
|
|
4789
4789
|
a("div", Fs, [
|
|
4790
|
-
a("div", Ls, d(e.$tc("_common:day", { count:
|
|
4790
|
+
a("div", Ls, d(e.$tc("_common:day", { count: k })) + " " + d(e.$t("button")), 1),
|
|
4791
4791
|
a("div", Vs, [
|
|
4792
4792
|
a("div", {
|
|
4793
4793
|
style: z({
|
|
4794
|
-
width: o.clamp(
|
|
4794
|
+
width: o.clamp(k / T * 100, 0, 100) + "%"
|
|
4795
4795
|
}),
|
|
4796
4796
|
class: "to-primary-600 absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500"
|
|
4797
4797
|
}, null, 4)
|
|
@@ -4799,7 +4799,7 @@ function Rs(e, t, n, s, i, o) {
|
|
|
4799
4799
|
])
|
|
4800
4800
|
]),
|
|
4801
4801
|
_: 2
|
|
4802
|
-
}, 1024)) :
|
|
4802
|
+
}, 1024)) : C("", !0)
|
|
4803
4803
|
]),
|
|
4804
4804
|
_: 1
|
|
4805
4805
|
});
|
|
@@ -4809,7 +4809,7 @@ const Os = /* @__PURE__ */ F($s, [["render", Rs]]), ae = yt({
|
|
|
4809
4809
|
isForm: !0,
|
|
4810
4810
|
setFormValue: null,
|
|
4811
4811
|
removeFormValue: null
|
|
4812
|
-
}),
|
|
4812
|
+
}), Us = {
|
|
4813
4813
|
name: "DocumentForm",
|
|
4814
4814
|
components: {
|
|
4815
4815
|
DocumentFormContainer: ns,
|
|
@@ -4930,16 +4930,16 @@ const Os = /* @__PURE__ */ F($s, [["render", Rs]]), ae = yt({
|
|
|
4930
4930
|
);
|
|
4931
4931
|
}
|
|
4932
4932
|
}
|
|
4933
|
-
},
|
|
4933
|
+
}, Hs = {
|
|
4934
4934
|
key: 0,
|
|
4935
4935
|
class: "flex w-screen flex-col bg-white"
|
|
4936
4936
|
}, qs = { class: "flex self-center" }, Gs = { class: "buttons has-addons whitespace-nowrap" };
|
|
4937
4937
|
function Ns(e, t, n, s, i, o) {
|
|
4938
|
-
const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"),
|
|
4939
|
-
return n.document ? (l(), p("div",
|
|
4940
|
-
c(
|
|
4938
|
+
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");
|
|
4939
|
+
return n.document ? (l(), p("div", Hs, [
|
|
4940
|
+
c(D, {
|
|
4941
4941
|
view: i.view,
|
|
4942
|
-
"onUpdate:view": t[0] || (t[0] = (
|
|
4942
|
+
"onUpdate:view": t[0] || (t[0] = (v) => i.view = v),
|
|
4943
4943
|
_document: n.document,
|
|
4944
4944
|
"set-form-value": n.setDocValue,
|
|
4945
4945
|
"remove-form-value": n.removeDocValue,
|
|
@@ -4949,15 +4949,15 @@ function Ns(e, t, n, s, i, o) {
|
|
|
4949
4949
|
"can-show-banner": n.canShowBanner
|
|
4950
4950
|
}, {
|
|
4951
4951
|
"nav-right": u(() => [
|
|
4952
|
-
c(
|
|
4953
|
-
default: u(({ canCreateDocument:
|
|
4954
|
-
c(
|
|
4952
|
+
c(k, null, {
|
|
4953
|
+
default: u(({ canCreateDocument: v, canCreateTemplate: f }) => [
|
|
4954
|
+
c(y, { feature: "documents" }, {
|
|
4955
4955
|
default: u(({ onClick: x }) => [
|
|
4956
4956
|
(l(), p("div", {
|
|
4957
4957
|
key: o.canDoActions,
|
|
4958
4958
|
class: "inline-flex flex-1 justify-end space-x-5"
|
|
4959
4959
|
}, [
|
|
4960
|
-
c(
|
|
4960
|
+
c(y, { feature: "saveDocTemplate" }, {
|
|
4961
4961
|
default: u(({ onClick: $ }) => [
|
|
4962
4962
|
a("div", qs, [
|
|
4963
4963
|
c(h, {
|
|
@@ -4982,7 +4982,7 @@ function Ns(e, t, n, s, i, o) {
|
|
|
4982
4982
|
c(g, {
|
|
4983
4983
|
"icon-props": { stroke: "hsl(205, 100%, 50%)" },
|
|
4984
4984
|
"icon-left": "save",
|
|
4985
|
-
onClick: (S) =>
|
|
4985
|
+
onClick: (S) => v || n.document.id ? o.submitSave() : x({ callback: o.submitSave })
|
|
4986
4986
|
}, {
|
|
4987
4987
|
default: u(() => [
|
|
4988
4988
|
_(d(e.$t("_common:save", {
|
|
@@ -5013,7 +5013,7 @@ function Ns(e, t, n, s, i, o) {
|
|
|
5013
5013
|
_: 2
|
|
5014
5014
|
}, 1024),
|
|
5015
5015
|
A(e.$slots, "nav-right-action", {}, () => [
|
|
5016
|
-
c(
|
|
5016
|
+
c(w),
|
|
5017
5017
|
a("div", Gs, [
|
|
5018
5018
|
c(r, {
|
|
5019
5019
|
ref: "sendButton",
|
|
@@ -5025,7 +5025,7 @@ function Ns(e, t, n, s, i, o) {
|
|
|
5025
5025
|
type: "secondary",
|
|
5026
5026
|
icon: e.mq === "sm" ? "send" : "",
|
|
5027
5027
|
label: e.mq === "sm" ? "" : e.$t("_common:reviewSend"),
|
|
5028
|
-
onClick: ($) =>
|
|
5028
|
+
onClick: ($) => v || !o.doConsumeQuota || n.document.id ? o.openSendModal() : x({ callback: o.openSendModal })
|
|
5029
5029
|
}, null, 8, ["disabled", "loading", "class", "icon", "label", "onClick"])
|
|
5030
5030
|
])
|
|
5031
5031
|
])
|
|
@@ -5039,7 +5039,7 @@ function Ns(e, t, n, s, i, o) {
|
|
|
5039
5039
|
]),
|
|
5040
5040
|
_: 3
|
|
5041
5041
|
}, 8, ["view", "_document", "set-form-value", "remove-form-value", "remove-form-key-value", "close", "go-back", "can-show-banner"]),
|
|
5042
|
-
c(
|
|
5042
|
+
c(T, {
|
|
5043
5043
|
ref: "documentSend",
|
|
5044
5044
|
_document: n.document,
|
|
5045
5045
|
_value: {
|
|
@@ -5054,9 +5054,9 @@ function Ns(e, t, n, s, i, o) {
|
|
|
5054
5054
|
"remove-form-value": n.removeDocValue,
|
|
5055
5055
|
"on-save-document": n.onSaveDocument
|
|
5056
5056
|
}, null, 8, ["_document", "set-form-value", "remove-form-value", "on-save-document"])
|
|
5057
|
-
])) :
|
|
5057
|
+
])) : C("", !0);
|
|
5058
5058
|
}
|
|
5059
|
-
const Ws = /* @__PURE__ */ F(
|
|
5059
|
+
const Ws = /* @__PURE__ */ F(Us, [["render", Ns]]), js = /* @__PURE__ */ de({
|
|
5060
5060
|
__name: "TemplateActionsDropdown",
|
|
5061
5061
|
props: {
|
|
5062
5062
|
template: {},
|
|
@@ -5064,23 +5064,23 @@ const Ws = /* @__PURE__ */ F(Hs, [["render", Ns]]), js = /* @__PURE__ */ de({
|
|
|
5064
5064
|
},
|
|
5065
5065
|
emits: ["edit", "rename", "remove"],
|
|
5066
5066
|
setup(e, { emit: t }) {
|
|
5067
|
-
const { t: n } = Ce, s =
|
|
5067
|
+
const { t: n } = Ce, s = e, i = t;
|
|
5068
|
+
function o() {
|
|
5069
|
+
i("edit", s.template.id);
|
|
5070
|
+
}
|
|
5068
5071
|
function r() {
|
|
5069
|
-
|
|
5072
|
+
i("rename", { template: s.template });
|
|
5070
5073
|
}
|
|
5071
5074
|
function g() {
|
|
5072
|
-
|
|
5073
|
-
}
|
|
5074
|
-
function h() {
|
|
5075
|
-
o("remove", { template: i.template });
|
|
5075
|
+
i("remove", { template: s.template });
|
|
5076
5076
|
}
|
|
5077
|
-
async function
|
|
5078
|
-
const
|
|
5079
|
-
await
|
|
5077
|
+
async function h() {
|
|
5078
|
+
const w = `${K.baseUrl}/template/${s.template.id}`;
|
|
5079
|
+
await He(w) && we("info", n("copyMessage"));
|
|
5080
5080
|
}
|
|
5081
|
-
return (
|
|
5082
|
-
const
|
|
5083
|
-
return l(),
|
|
5081
|
+
return (y, w) => {
|
|
5082
|
+
const k = ie("tooltip");
|
|
5083
|
+
return l(), b(O(re), {
|
|
5084
5084
|
style: { top: "-8px", right: "-4px" },
|
|
5085
5085
|
onClick: w[0] || (w[0] = j(() => {
|
|
5086
5086
|
}, ["stop"]))
|
|
@@ -5092,28 +5092,28 @@ const Ws = /* @__PURE__ */ F(Hs, [["render", Ns]]), js = /* @__PURE__ */ de({
|
|
|
5092
5092
|
pattern: "tertiary",
|
|
5093
5093
|
size: "small"
|
|
5094
5094
|
}, null, 512), [
|
|
5095
|
-
[
|
|
5095
|
+
[k, y.tooltip]
|
|
5096
5096
|
])
|
|
5097
5097
|
]),
|
|
5098
5098
|
default: u(() => [
|
|
5099
5099
|
c(O(q), {
|
|
5100
5100
|
"icon-left": "template-color",
|
|
5101
|
-
onClick:
|
|
5101
|
+
onClick: o,
|
|
5102
5102
|
"data-test": "edit-item"
|
|
5103
5103
|
}, {
|
|
5104
5104
|
default: u(() => [
|
|
5105
|
-
_(d(
|
|
5105
|
+
_(d(y.$t("_common:edit", { thing: y.$t("_common:template") })), 1)
|
|
5106
5106
|
]),
|
|
5107
5107
|
_: 1
|
|
5108
5108
|
}),
|
|
5109
5109
|
c(O(q), {
|
|
5110
5110
|
"icon-props": { size: 16 },
|
|
5111
5111
|
"icon-left": "edit",
|
|
5112
|
-
onClick:
|
|
5112
|
+
onClick: r,
|
|
5113
5113
|
"data-test": "rename-item"
|
|
5114
5114
|
}, {
|
|
5115
5115
|
default: u(() => [
|
|
5116
|
-
_(d(
|
|
5116
|
+
_(d(y.$t("_common:change", { thing: y.$t("_common:name") })), 1)
|
|
5117
5117
|
]),
|
|
5118
5118
|
_: 1
|
|
5119
5119
|
}),
|
|
@@ -5121,11 +5121,11 @@ const Ws = /* @__PURE__ */ F(Hs, [["render", Ns]]), js = /* @__PURE__ */ de({
|
|
|
5121
5121
|
c(O(q), {
|
|
5122
5122
|
"icon-props": { size: 16 },
|
|
5123
5123
|
"icon-left": "link",
|
|
5124
|
-
onClick:
|
|
5124
|
+
onClick: h,
|
|
5125
5125
|
"data-test": "copy-item"
|
|
5126
5126
|
}, {
|
|
5127
5127
|
default: u(() => [
|
|
5128
|
-
_(d(
|
|
5128
|
+
_(d(y.$t("_common:share", { thing: y.$t("_common:link") })), 1)
|
|
5129
5129
|
]),
|
|
5130
5130
|
_: 1
|
|
5131
5131
|
}),
|
|
@@ -5133,11 +5133,11 @@ const Ws = /* @__PURE__ */ F(Hs, [["render", Ns]]), js = /* @__PURE__ */ de({
|
|
|
5133
5133
|
c(O(q), {
|
|
5134
5134
|
"icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" },
|
|
5135
5135
|
"icon-left": "trash",
|
|
5136
|
-
onClick:
|
|
5136
|
+
onClick: g,
|
|
5137
5137
|
"data-test": "remove-item"
|
|
5138
5138
|
}, {
|
|
5139
5139
|
default: u(() => [
|
|
5140
|
-
_(d(
|
|
5140
|
+
_(d(y.$t("_common:remove")), 1)
|
|
5141
5141
|
]),
|
|
5142
5142
|
_: 1
|
|
5143
5143
|
})
|
|
@@ -5251,15 +5251,15 @@ const Ws = /* @__PURE__ */ F(Hs, [["render", Ns]]), js = /* @__PURE__ */ de({
|
|
|
5251
5251
|
style: { display: "inline-flex", "align-items": "center", position: "absolute", right: "1em", top: "50%", transform: "translateY(-50%)" }
|
|
5252
5252
|
};
|
|
5253
5253
|
function ta(e, t, n, s, i, o) {
|
|
5254
|
-
const r = m("CInput"), g = m("CSkeleton"), h = m("CButton"),
|
|
5254
|
+
const r = m("CInput"), g = m("CSkeleton"), h = m("CButton"), y = m("IsPremiumPreStep"), w = m("IsPremium");
|
|
5255
5255
|
return l(), p("div", null, [
|
|
5256
5256
|
a("div", Ks, [
|
|
5257
5257
|
A(e.$slots, "default", {}, void 0, !0),
|
|
5258
|
-
i.hasItems ? (l(),
|
|
5258
|
+
i.hasItems ? (l(), b(r, {
|
|
5259
5259
|
key: 0,
|
|
5260
5260
|
modelValue: i.query,
|
|
5261
5261
|
"onUpdate:modelValue": [
|
|
5262
|
-
t[0] || (t[0] = (
|
|
5262
|
+
t[0] || (t[0] = (k) => i.query = k),
|
|
5263
5263
|
o.onInput
|
|
5264
5264
|
],
|
|
5265
5265
|
loading: i.isLoading,
|
|
@@ -5268,11 +5268,11 @@ function ta(e, t, n, s, i, o) {
|
|
|
5268
5268
|
size: "normal",
|
|
5269
5269
|
filled: "",
|
|
5270
5270
|
class: "hidden md:flex"
|
|
5271
|
-
}, null, 8, ["modelValue", "loading", "placeholder", "onUpdate:modelValue"])) :
|
|
5271
|
+
}, null, 8, ["modelValue", "loading", "placeholder", "onUpdate:modelValue"])) : C("", !0)
|
|
5272
5272
|
]),
|
|
5273
5273
|
a("div", Qs, [
|
|
5274
|
-
i.isLoading && !i.list.length ? (l(), p(I, { key: 0 }, E(3, (
|
|
5275
|
-
key:
|
|
5274
|
+
i.isLoading && !i.list.length ? (l(), p(I, { key: 0 }, E(3, (k) => a("div", {
|
|
5275
|
+
key: k,
|
|
5276
5276
|
class: "recent-item placeholder"
|
|
5277
5277
|
}, [
|
|
5278
5278
|
c(g, {
|
|
@@ -5280,32 +5280,32 @@ function ta(e, t, n, s, i, o) {
|
|
|
5280
5280
|
class: "recent-item-name"
|
|
5281
5281
|
}),
|
|
5282
5282
|
c(g, { width: "35%" })
|
|
5283
|
-
])), 64)) : !i.isLoading && !i.query && !i.list.length ? (l(), p("div", Ys, d(e.$t("emptyPlaceholder")), 1)) : i.query && !i.isLoading && !i.list.length ? (l(), p("div", Js, d(e.$t("noResults")), 1)) : (l(),
|
|
5284
|
-
default: u(({ canCreateTemplate:
|
|
5285
|
-
c(
|
|
5286
|
-
default: u(({ onClick:
|
|
5283
|
+
])), 64)) : !i.isLoading && !i.query && !i.list.length ? (l(), p("div", Ys, d(e.$t("emptyPlaceholder")), 1)) : i.query && !i.isLoading && !i.list.length ? (l(), p("div", Js, d(e.$t("noResults")), 1)) : (l(), b(w, { key: 3 }, {
|
|
5284
|
+
default: u(({ canCreateTemplate: k, canUseTemplate: D }) => [
|
|
5285
|
+
c(y, { feature: "useDocTemplate" }, {
|
|
5286
|
+
default: u(({ onClick: T }) => [
|
|
5287
5287
|
a("div", null, [
|
|
5288
|
-
(l(!0), p(I, null, E(i.list, (
|
|
5289
|
-
key:
|
|
5288
|
+
(l(!0), p(I, null, E(i.list, (v, f) => (l(), p("div", {
|
|
5289
|
+
key: v._id,
|
|
5290
5290
|
class: "recent-item",
|
|
5291
|
-
onClick: (x) =>
|
|
5292
|
-
callback: () => o.onUseDocTemplate(
|
|
5291
|
+
onClick: (x) => D ? o.onUseDocTemplate(v._id) : T({
|
|
5292
|
+
callback: () => o.onUseDocTemplate(v._id)
|
|
5293
5293
|
}),
|
|
5294
5294
|
onMouseoverPassive: (x) => i.hoverIndex = f,
|
|
5295
5295
|
onMouseleavePassive: t[1] || (t[1] = (x) => i.hoverIndex = null)
|
|
5296
5296
|
}, [
|
|
5297
5297
|
a("div", {
|
|
5298
|
-
class: V([{ "text-gray-400": !
|
|
5299
|
-
}, d(
|
|
5300
|
-
a("div", null, d(e.$formatDistanceToNow(
|
|
5298
|
+
class: V([{ "text-gray-400": !v.data.name }, "recent-item-name"])
|
|
5299
|
+
}, d(v.data.name || e.$t("_common:untitled")), 3),
|
|
5300
|
+
a("div", null, d(e.$formatDistanceToNow(v.createdAt)), 1),
|
|
5301
5301
|
i.hoverIndex === f ? (l(), p("div", ea, [
|
|
5302
|
-
c(
|
|
5302
|
+
c(y, { feature: "saveDocTemplate" }, {
|
|
5303
5303
|
default: u(({ onClick: x }) => [
|
|
5304
5304
|
c(h, {
|
|
5305
5305
|
style: { "margin-left": "1em" },
|
|
5306
5306
|
size: "small",
|
|
5307
|
-
onClick: j(($) =>
|
|
5308
|
-
callback: () => o.onSaveDocumentTemplate(
|
|
5307
|
+
onClick: j(($) => k ? o.onSaveDocumentTemplate(v._id) : x({
|
|
5308
|
+
callback: () => o.onSaveDocumentTemplate(v._id)
|
|
5309
5309
|
}), ["stop"])
|
|
5310
5310
|
}, {
|
|
5311
5311
|
default: u(() => [
|
|
@@ -5326,7 +5326,7 @@ function ta(e, t, n, s, i, o) {
|
|
|
5326
5326
|
]),
|
|
5327
5327
|
_: 1
|
|
5328
5328
|
})
|
|
5329
|
-
])) :
|
|
5329
|
+
])) : C("", !0)
|
|
5330
5330
|
], 40, Xs))), 128))
|
|
5331
5331
|
])
|
|
5332
5332
|
]),
|
|
@@ -5356,61 +5356,61 @@ const na = /* @__PURE__ */ F(Zs, [["render", ta], ["__scopeId", "data-v-afd30dd3
|
|
|
5356
5356
|
},
|
|
5357
5357
|
emits: ["triggerOpenTemplate"],
|
|
5358
5358
|
setup(e, { emit: t }) {
|
|
5359
|
-
const n = e, s = t, i = () => s("triggerOpenTemplate"), o = bt(), r = kt(), g =
|
|
5359
|
+
const n = e, s = t, i = () => s("triggerOpenTemplate"), o = bt(), r = kt(), g = U(() => r.style), h = U(() => r.staticClass), y = U(() => r.class), w = U(() => r.key), k = U(() => r.attrs), D = U(
|
|
5360
5360
|
() => Ce.t("_common:empty", { thing: Ce.t("_common:template") })
|
|
5361
|
-
),
|
|
5362
|
-
return (
|
|
5361
|
+
), T = U(() => wt(n.name, 60));
|
|
5362
|
+
return (v, f) => {
|
|
5363
5363
|
const x = m("CIcon");
|
|
5364
|
-
return l(), p("div", be(
|
|
5365
|
-
key:
|
|
5364
|
+
return l(), p("div", be(k.value, {
|
|
5365
|
+
key: w.value,
|
|
5366
5366
|
class: [[
|
|
5367
5367
|
h.value,
|
|
5368
|
-
|
|
5368
|
+
y.value,
|
|
5369
5369
|
{
|
|
5370
|
-
"is-placeholder":
|
|
5371
|
-
"is-add":
|
|
5372
|
-
"is-compact":
|
|
5370
|
+
"is-placeholder": v.isPlaceholder,
|
|
5371
|
+
"is-add": v.isAdd,
|
|
5372
|
+
"is-compact": v.compact
|
|
5373
5373
|
}
|
|
5374
5374
|
], "item"],
|
|
5375
5375
|
style: g.value,
|
|
5376
5376
|
onClick: i
|
|
5377
5377
|
}), [
|
|
5378
5378
|
a("div", ia, [
|
|
5379
|
-
|
|
5379
|
+
v.thumbnail ? (l(), p("div", {
|
|
5380
5380
|
key: 0,
|
|
5381
5381
|
style: z([{
|
|
5382
|
-
backgroundImage: `url(${
|
|
5382
|
+
backgroundImage: `url(${v.thumbnail})`
|
|
5383
5383
|
}, { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }])
|
|
5384
|
-
}, null, 4)) :
|
|
5384
|
+
}, null, 4)) : v.isPlaceholder || v.isAdd ? C("", !0) : (l(), b(tn, {
|
|
5385
5385
|
key: 1,
|
|
5386
|
-
media:
|
|
5386
|
+
media: v.media,
|
|
5387
5387
|
preview: "",
|
|
5388
5388
|
class: "item-media"
|
|
5389
5389
|
}, null, 8, ["media"])),
|
|
5390
5390
|
O(o).badge ? (l(), p("div", oa, [
|
|
5391
|
-
A(
|
|
5392
|
-
])) :
|
|
5393
|
-
|
|
5391
|
+
A(v.$slots, "badge", {}, void 0, !0)
|
|
5392
|
+
])) : C("", !0),
|
|
5393
|
+
v.isAdd ? (l(), p("div", sa, [
|
|
5394
5394
|
c(x, {
|
|
5395
5395
|
size: 18,
|
|
5396
5396
|
"stroke-width": 3,
|
|
5397
5397
|
type: "plus"
|
|
5398
5398
|
})
|
|
5399
|
-
])) :
|
|
5399
|
+
])) : C("", !0)
|
|
5400
5400
|
]),
|
|
5401
5401
|
a("div", aa, [
|
|
5402
|
-
|
|
5402
|
+
v.isAdd ? (l(), p("div", {
|
|
5403
5403
|
key: 0,
|
|
5404
5404
|
class: "item-text",
|
|
5405
5405
|
style: { color: "hsl(0, 0%, 55%)" },
|
|
5406
|
-
textContent: d(
|
|
5407
|
-
}, null, 8, la)) :
|
|
5406
|
+
textContent: d(D.value)
|
|
5407
|
+
}, null, 8, la)) : v.name ? (l(), p(I, { key: 1 }, [
|
|
5408
5408
|
a("div", {
|
|
5409
5409
|
class: "item-text",
|
|
5410
|
-
textContent: d(
|
|
5410
|
+
textContent: d(T.value)
|
|
5411
5411
|
}, null, 8, ra),
|
|
5412
|
-
A(
|
|
5413
|
-
], 64)) :
|
|
5412
|
+
A(v.$slots, "default", {}, void 0, !0)
|
|
5413
|
+
], 64)) : C("", !0)
|
|
5414
5414
|
])
|
|
5415
5415
|
], 16);
|
|
5416
5416
|
};
|
|
@@ -5489,7 +5489,7 @@ function ga(e, t, n, s, i, o) {
|
|
|
5489
5489
|
size: "medium"
|
|
5490
5490
|
})
|
|
5491
5491
|
], !0)
|
|
5492
|
-
])) :
|
|
5492
|
+
])) : C("", !0),
|
|
5493
5493
|
i.hasNext ? (l(), p("div", {
|
|
5494
5494
|
key: 1,
|
|
5495
5495
|
class: "hl-btn-right max-sm:hidden",
|
|
@@ -5505,7 +5505,7 @@ function ga(e, t, n, s, i, o) {
|
|
|
5505
5505
|
onClick: t[1] || (t[1] = (h) => e.$emit("expand"))
|
|
5506
5506
|
})
|
|
5507
5507
|
], !0)
|
|
5508
|
-
])) :
|
|
5508
|
+
])) : C("", !0)
|
|
5509
5509
|
]),
|
|
5510
5510
|
a("div", ha, [
|
|
5511
5511
|
c(g, {
|
|
@@ -5700,7 +5700,7 @@ const ba = {
|
|
|
5700
5700
|
},
|
|
5701
5701
|
async copyToClipboard(e) {
|
|
5702
5702
|
const t = `${K.baseUrl}/template/${e}`;
|
|
5703
|
-
await
|
|
5703
|
+
await He(t) && we("info", this.$t("copyMessage"));
|
|
5704
5704
|
}
|
|
5705
5705
|
}
|
|
5706
5706
|
}, ka = { class: "template-modal font-inter bg-gray-200" }, wa = { style: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": `rgb(244, 244, 244) 0px 2px 14px 0px inset,
|
|
@@ -5714,8 +5714,8 @@ const ba = {
|
|
|
5714
5714
|
class: "mb-5 flex items-center gap-2 rounded-full border border-gray-300 bg-gray-300/60 p-1 text-sm"
|
|
5715
5715
|
}, Ma = { class: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, Pa = ["textContent"], Aa = ["textContent"];
|
|
5716
5716
|
function Ea(e, t, n, s, i, o) {
|
|
5717
|
-
var
|
|
5718
|
-
const r = m("DocumentLayout"), g = m("Simplebar"), h = m("CIcon"),
|
|
5717
|
+
var D;
|
|
5718
|
+
const r = m("DocumentLayout"), g = m("Simplebar"), h = m("CIcon"), y = m("CButton"), w = m("IsPremiumPreStep"), k = m("IsPremium");
|
|
5719
5719
|
return l(), p("div", ka, [
|
|
5720
5720
|
a("div", wa, [
|
|
5721
5721
|
c(g, {
|
|
@@ -5723,16 +5723,16 @@ function Ea(e, t, n, s, i, o) {
|
|
|
5723
5723
|
"data-simplebar-auto-hide": "false"
|
|
5724
5724
|
}, {
|
|
5725
5725
|
default: u(() => [
|
|
5726
|
-
o.previewDocument ? (l(),
|
|
5726
|
+
o.previewDocument ? (l(), b(r, {
|
|
5727
5727
|
key: 0,
|
|
5728
5728
|
document: o.previewDocument
|
|
5729
|
-
}, null, 8, ["document"])) :
|
|
5730
|
-
n.product && !i.privateProduct.isPurchased ? (l(),
|
|
5729
|
+
}, null, 8, ["document"])) : C("", !0),
|
|
5730
|
+
n.product && !i.privateProduct.isPurchased ? (l(), b(W("style"), { key: 1 }, {
|
|
5731
5731
|
default: u(() => t[1] || (t[1] = [
|
|
5732
5732
|
_(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")
|
|
5733
5733
|
])),
|
|
5734
5734
|
_: 1
|
|
5735
|
-
})) :
|
|
5735
|
+
})) : C("", !0)
|
|
5736
5736
|
]),
|
|
5737
5737
|
_: 1
|
|
5738
5738
|
})
|
|
@@ -5741,9 +5741,9 @@ function Ea(e, t, n, s, i, o) {
|
|
|
5741
5741
|
a("div", xa, [
|
|
5742
5742
|
a("div", Ta, d(n.meta.name), 1),
|
|
5743
5743
|
a("div", Da, [
|
|
5744
|
-
(
|
|
5744
|
+
(D = i.templateStat) != null && D.usedTimes ? (l(), p(I, { key: 0 }, [
|
|
5745
5745
|
_(d(e.$t("_common:used").capitalize()) + " " + d(i.templateStat.usedTimes) + " " + d(e.$t("_common:times", { count: i.templateStat.usedTimes })), 1)
|
|
5746
|
-
], 64)) :
|
|
5746
|
+
], 64)) : C("", !0)
|
|
5747
5747
|
]),
|
|
5748
5748
|
a("div", Sa, d(n.meta.text), 1),
|
|
5749
5749
|
n.meta.author ? (l(), p("div", Ia, [
|
|
@@ -5762,7 +5762,7 @@ function Ea(e, t, n, s, i, o) {
|
|
|
5762
5762
|
], 64))
|
|
5763
5763
|
])
|
|
5764
5764
|
])
|
|
5765
|
-
])) :
|
|
5765
|
+
])) : C("", !0)
|
|
5766
5766
|
]),
|
|
5767
5767
|
a("div", Va, [
|
|
5768
5768
|
n.product ? (l(), p(I, { key: 0 }, [
|
|
@@ -5780,7 +5780,7 @@ function Ea(e, t, n, s, i, o) {
|
|
|
5780
5780
|
e.$t("_common:purchased", { thing: e.$t("_common:template") })
|
|
5781
5781
|
)
|
|
5782
5782
|
}, null, 8, Pa)
|
|
5783
|
-
])) : (l(),
|
|
5783
|
+
])) : (l(), b(y, {
|
|
5784
5784
|
key: 1,
|
|
5785
5785
|
type: "secondary",
|
|
5786
5786
|
wide: "",
|
|
@@ -5797,50 +5797,50 @@ function Ea(e, t, n, s, i, o) {
|
|
|
5797
5797
|
]),
|
|
5798
5798
|
_: 1
|
|
5799
5799
|
}, 8, ["onClick"]))
|
|
5800
|
-
], 64)) :
|
|
5801
|
-
c(
|
|
5802
|
-
default: u(({ canUseTemplate:
|
|
5803
|
-
c(
|
|
5804
|
-
default: u(({ onClick:
|
|
5805
|
-
!n.product || i.privateProduct.isPurchased ? (l(),
|
|
5800
|
+
], 64)) : C("", !0),
|
|
5801
|
+
c(k, null, {
|
|
5802
|
+
default: u(({ canUseTemplate: T }) => [
|
|
5803
|
+
c(w, { feature: "useDocTemplate" }, {
|
|
5804
|
+
default: u(({ onClick: v }) => [
|
|
5805
|
+
!n.product || i.privateProduct.isPurchased ? (l(), b(y, {
|
|
5806
5806
|
key: 0,
|
|
5807
5807
|
disabled: n.product ? !i.privateProduct.isPurchased : !1,
|
|
5808
5808
|
type: "secondary",
|
|
5809
5809
|
wide: "",
|
|
5810
5810
|
style: { "margin-bottom": "0.5em" },
|
|
5811
|
-
onClick: (f) => n.isPublicForm ||
|
|
5811
|
+
onClick: (f) => n.isPublicForm || T ? o.useSelectedTemplate() : v({ callback: o.useSelectedTemplate })
|
|
5812
5812
|
}, {
|
|
5813
5813
|
default: u(() => [
|
|
5814
5814
|
_(d(e.$t("_common:use", { thing: e.$t("_common:template") })), 1)
|
|
5815
5815
|
]),
|
|
5816
5816
|
_: 2
|
|
5817
|
-
}, 1032, ["disabled", "onClick"])) :
|
|
5817
|
+
}, 1032, ["disabled", "onClick"])) : C("", !0)
|
|
5818
5818
|
]),
|
|
5819
5819
|
_: 2
|
|
5820
5820
|
}, 1024)
|
|
5821
5821
|
]),
|
|
5822
5822
|
_: 1
|
|
5823
5823
|
}),
|
|
5824
|
-
c(
|
|
5825
|
-
default: u(({ canCreateTemplate:
|
|
5826
|
-
c(
|
|
5827
|
-
default: u(({ onClick:
|
|
5824
|
+
c(k, null, {
|
|
5825
|
+
default: u(({ canCreateTemplate: T }) => [
|
|
5826
|
+
c(w, { feature: "saveDocTemplate" }, {
|
|
5827
|
+
default: u(({ onClick: v }) => {
|
|
5828
5828
|
var f;
|
|
5829
5829
|
return [
|
|
5830
|
-
(n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (l(),
|
|
5830
|
+
(n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (l(), b(y, {
|
|
5831
5831
|
key: 0,
|
|
5832
5832
|
loading: e.isLoading,
|
|
5833
5833
|
type: i.didSave ? "success" : "none",
|
|
5834
5834
|
"icon-left": i.didSave ? "check" : void 0,
|
|
5835
5835
|
style: { "margin-bottom": "0.5em" },
|
|
5836
5836
|
wide: "",
|
|
5837
|
-
onClick: (x) => i.didSave ? null : n.isPublicForm ||
|
|
5837
|
+
onClick: (x) => i.didSave ? null : n.isPublicForm || T ? o.saveAsTemplate() : v({ callback: o.saveAsTemplate })
|
|
5838
5838
|
}, {
|
|
5839
5839
|
default: u(() => [
|
|
5840
5840
|
_(d(i.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })), 1)
|
|
5841
5841
|
]),
|
|
5842
5842
|
_: 2
|
|
5843
|
-
}, 1032, ["loading", "type", "icon-left", "onClick"])) :
|
|
5843
|
+
}, 1032, ["loading", "type", "icon-left", "onClick"])) : C("", !0)
|
|
5844
5844
|
];
|
|
5845
5845
|
}),
|
|
5846
5846
|
_: 2
|
|
@@ -5848,18 +5848,18 @@ function Ea(e, t, n, s, i, o) {
|
|
|
5848
5848
|
]),
|
|
5849
5849
|
_: 1
|
|
5850
5850
|
}),
|
|
5851
|
-
o.allowCopyTemplateLink ? (l(),
|
|
5851
|
+
o.allowCopyTemplateLink ? (l(), b(y, {
|
|
5852
5852
|
key: 1,
|
|
5853
5853
|
type: "none",
|
|
5854
5854
|
"icon-left": "link",
|
|
5855
5855
|
wide: "",
|
|
5856
|
-
onClick: t[0] || (t[0] = (
|
|
5856
|
+
onClick: t[0] || (t[0] = (T) => o.copyToClipboard(n.template.id))
|
|
5857
5857
|
}, {
|
|
5858
5858
|
default: u(() => [
|
|
5859
5859
|
_(d(e.$t("_common:share", { thing: e.$t("_common:link") })), 1)
|
|
5860
5860
|
]),
|
|
5861
5861
|
_: 1
|
|
5862
|
-
})) :
|
|
5862
|
+
})) : C("", !0)
|
|
5863
5863
|
])
|
|
5864
5864
|
])
|
|
5865
5865
|
]);
|
|
@@ -6122,7 +6122,7 @@ function Oa(e, t, n, s, i, o) {
|
|
|
6122
6122
|
selectGalleryItem: o.selectGalleryItem
|
|
6123
6123
|
});
|
|
6124
6124
|
}
|
|
6125
|
-
const
|
|
6125
|
+
const Ua = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ha = {
|
|
6126
6126
|
i18nOptions: {
|
|
6127
6127
|
namespaces: "TemplateSelector",
|
|
6128
6128
|
messages: {
|
|
@@ -6169,7 +6169,7 @@ const Ha = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ua = {
|
|
|
6169
6169
|
HorizontalScroll: ya,
|
|
6170
6170
|
DocumentIcon: ca,
|
|
6171
6171
|
DocumentRecent: na,
|
|
6172
|
-
GalleryLogic:
|
|
6172
|
+
GalleryLogic: Ua,
|
|
6173
6173
|
IsPremiumPreStep: X,
|
|
6174
6174
|
CDropdown: re,
|
|
6175
6175
|
CDropdownItem: q,
|
|
@@ -6350,7 +6350,7 @@ const Ha = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ua = {
|
|
|
6350
6350
|
style: { flex: "1 1 auto", "padding-bottom": "0.5em" }
|
|
6351
6351
|
}, nl = { class: "section-subtitle" };
|
|
6352
6352
|
function il(e, t, n, s, i, o) {
|
|
6353
|
-
const r = m("CIcon"), g = m("CButton"), h = m("TemplateActionsDropdown"),
|
|
6353
|
+
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");
|
|
6354
6354
|
return l(), p("div", qa, [
|
|
6355
6355
|
a("div", {
|
|
6356
6356
|
class: V([{ small: e.mq === "sm" }, "font-inter form-start main mx-auto max-w-5xl"])
|
|
@@ -6361,14 +6361,14 @@ function il(e, t, n, s, i, o) {
|
|
|
6361
6361
|
a("div", null, d(e.$t("myTemplates")), 1),
|
|
6362
6362
|
a("div", Wa, d(e.$t("myTemplatesSubTitle")), 1)
|
|
6363
6363
|
]),
|
|
6364
|
-
c(
|
|
6364
|
+
c(w, { feature: "useDocTemplate" }, {
|
|
6365
6365
|
default: u(({ onClick: $ }) => [
|
|
6366
|
-
(l(),
|
|
6366
|
+
(l(), b(W(i.isExpanded ? "div" : "HorizontalScroll"), {
|
|
6367
6367
|
class: V([{ "is-expanded": i.isExpanded }, "template-list"]),
|
|
6368
6368
|
onExpand: t[1] || (t[1] = (S) => i.isExpanded = !0)
|
|
6369
6369
|
}, {
|
|
6370
6370
|
default: u(() => [
|
|
6371
|
-
(l(!0), p(I, null, E(o.myTemplates, (S) => (l(),
|
|
6371
|
+
(l(!0), p(I, null, E(o.myTemplates, (S) => (l(), b(y, {
|
|
6372
6372
|
key: S.id,
|
|
6373
6373
|
"is-add": S.id === "empty",
|
|
6374
6374
|
"is-placeholder": S.placeholder,
|
|
@@ -6376,10 +6376,10 @@ function il(e, t, n, s, i, o) {
|
|
|
6376
6376
|
thumbnail: S.thumbnailUrl,
|
|
6377
6377
|
name: S.name,
|
|
6378
6378
|
class: "template-item",
|
|
6379
|
-
onTriggerOpenTemplate: (
|
|
6379
|
+
onTriggerOpenTemplate: (H) => S.placeholder ? null : o.canUseTemplate(S) ? o.select({ templateId: S.id }) : $()
|
|
6380
6380
|
}, {
|
|
6381
6381
|
badge: u(() => [
|
|
6382
|
-
o.canUseTemplate(S) ? !S.doConsumeDocumentQuota && !S.placeholder ? (l(), p("div", Za, d(e.$t("_common:free")), 1)) :
|
|
6382
|
+
o.canUseTemplate(S) ? !S.doConsumeDocumentQuota && !S.placeholder ? (l(), p("div", Za, d(e.$t("_common:free")), 1)) : C("", !0) : (l(), p("div", ja, [
|
|
6383
6383
|
c(r, {
|
|
6384
6384
|
type: "lock",
|
|
6385
6385
|
size: "12",
|
|
@@ -6389,7 +6389,7 @@ function il(e, t, n, s, i, o) {
|
|
|
6389
6389
|
]))
|
|
6390
6390
|
]),
|
|
6391
6391
|
default: u(() => [
|
|
6392
|
-
S.onModify === "create" && !S.doConsumeDocumentQuota ? G((l(),
|
|
6392
|
+
S.onModify === "create" && !S.doConsumeDocumentQuota ? G((l(), b(g, {
|
|
6393
6393
|
key: 0,
|
|
6394
6394
|
icon: "info",
|
|
6395
6395
|
type: "none",
|
|
@@ -6403,7 +6403,7 @@ function il(e, t, n, s, i, o) {
|
|
|
6403
6403
|
content: e.$t("icon.freeTooltip"),
|
|
6404
6404
|
placement: "bottom"
|
|
6405
6405
|
}]
|
|
6406
|
-
]) : G((l(),
|
|
6406
|
+
]) : G((l(), b(h, {
|
|
6407
6407
|
key: 1,
|
|
6408
6408
|
"append-to-body": "",
|
|
6409
6409
|
template: S,
|
|
@@ -6423,7 +6423,7 @@ function il(e, t, n, s, i, o) {
|
|
|
6423
6423
|
_: 1
|
|
6424
6424
|
})
|
|
6425
6425
|
]),
|
|
6426
|
-
n.showGallery ? (l(),
|
|
6426
|
+
n.showGallery ? (l(), b(v, {
|
|
6427
6427
|
key: 0,
|
|
6428
6428
|
"fetch-gallery": o.fetchGallery,
|
|
6429
6429
|
"use-template": o.select,
|
|
@@ -6434,7 +6434,7 @@ function il(e, t, n, s, i, o) {
|
|
|
6434
6434
|
default: u(({
|
|
6435
6435
|
galleryItems: $,
|
|
6436
6436
|
categories: S,
|
|
6437
|
-
activeCategory:
|
|
6437
|
+
activeCategory: H,
|
|
6438
6438
|
selectCategory: B,
|
|
6439
6439
|
selectGalleryItem: se
|
|
6440
6440
|
}) => [
|
|
@@ -6442,7 +6442,7 @@ function il(e, t, n, s, i, o) {
|
|
|
6442
6442
|
a("div", Qa, [
|
|
6443
6443
|
a("div", Ya, [
|
|
6444
6444
|
a("div", null, d(e.$t("gallery")), 1),
|
|
6445
|
-
c(
|
|
6445
|
+
c(D, {
|
|
6446
6446
|
style: { "margin-left": "calc(0.5 * var(--rem))" },
|
|
6447
6447
|
onClick: t[2] || (t[2] = j(() => {
|
|
6448
6448
|
}, ["stop"]))
|
|
@@ -6455,15 +6455,15 @@ function il(e, t, n, s, i, o) {
|
|
|
6455
6455
|
"icon-right": "chevron-down"
|
|
6456
6456
|
}, {
|
|
6457
6457
|
default: u(() => [
|
|
6458
|
-
_(d(
|
|
6458
|
+
_(d(H ? H.label : ""), 1)
|
|
6459
6459
|
]),
|
|
6460
6460
|
_: 2
|
|
6461
6461
|
}, 1024)
|
|
6462
6462
|
]),
|
|
6463
6463
|
default: u(() => [
|
|
6464
|
-
(l(!0), p(I, null, E(S, (L) => (l(),
|
|
6464
|
+
(l(!0), p(I, null, E(S, (L) => (l(), b(k, {
|
|
6465
6465
|
key: L.key,
|
|
6466
|
-
"icon-right":
|
|
6466
|
+
"icon-right": H && H.key === L.key ? "check" : "",
|
|
6467
6467
|
onClick: (ce) => B(L)
|
|
6468
6468
|
}, {
|
|
6469
6469
|
default: u(() => [
|
|
@@ -6480,9 +6480,9 @@ function il(e, t, n, s, i, o) {
|
|
|
6480
6480
|
innerHTML: e.$t("gallerySubTitle")
|
|
6481
6481
|
}, null, 8, Ja)
|
|
6482
6482
|
]),
|
|
6483
|
-
c(
|
|
6483
|
+
c(T, { class: "template-list" }, {
|
|
6484
6484
|
default: u(() => [
|
|
6485
|
-
(l(!0), p(I, null, E($, (L) => (l(),
|
|
6485
|
+
(l(!0), p(I, null, E($, (L) => (l(), b(y, {
|
|
6486
6486
|
key: L.id,
|
|
6487
6487
|
"is-placeholder": L.placeholder,
|
|
6488
6488
|
media: { type: "image", resourceUrl: L.backgroundUrl },
|
|
@@ -6492,7 +6492,7 @@ function il(e, t, n, s, i, o) {
|
|
|
6492
6492
|
}, {
|
|
6493
6493
|
badge: u(() => [
|
|
6494
6494
|
L.product ? (l(), p("div", Xa, [
|
|
6495
|
-
L.product.isPurchased ? (l(),
|
|
6495
|
+
L.product.isPurchased ? (l(), b(r, {
|
|
6496
6496
|
key: 0,
|
|
6497
6497
|
type: "check",
|
|
6498
6498
|
size: "14",
|
|
@@ -6501,7 +6501,7 @@ function il(e, t, n, s, i, o) {
|
|
|
6501
6501
|
key: 1,
|
|
6502
6502
|
textContent: d(L.product.price)
|
|
6503
6503
|
}, null, 8, el))
|
|
6504
|
-
])) :
|
|
6504
|
+
])) : C("", !0)
|
|
6505
6505
|
]),
|
|
6506
6506
|
_: 2
|
|
6507
6507
|
}, 1032, ["is-placeholder", "media", "name", "onTriggerOpenTemplate"]))), 128))
|
|
@@ -6511,7 +6511,7 @@ function il(e, t, n, s, i, o) {
|
|
|
6511
6511
|
])
|
|
6512
6512
|
]),
|
|
6513
6513
|
_: 1
|
|
6514
|
-
}, 8, ["fetch-gallery", "use-template", "show-template-author", "modal-props", "gallery-category"])) :
|
|
6514
|
+
}, 8, ["fetch-gallery", "use-template", "show-template-author", "modal-props", "gallery-category"])) : C("", !0),
|
|
6515
6515
|
c(f, {
|
|
6516
6516
|
style: { width: "100%", "padding-bottom": "5em" },
|
|
6517
6517
|
onUseDocTemplate: o.select,
|
|
@@ -6528,18 +6528,18 @@ function il(e, t, n, s, i, o) {
|
|
|
6528
6528
|
], 2)
|
|
6529
6529
|
]);
|
|
6530
6530
|
}
|
|
6531
|
-
const ol = /* @__PURE__ */ F(
|
|
6531
|
+
const ol = /* @__PURE__ */ F(Ha, [["render", il], ["__scopeId", "data-v-825ca28b"]]);
|
|
6532
6532
|
var he, Be;
|
|
6533
6533
|
function sl() {
|
|
6534
6534
|
if (Be) return he;
|
|
6535
6535
|
Be = 1;
|
|
6536
6536
|
var e = Ft(), t = Lt(), n = Vt();
|
|
6537
6537
|
function s(i, o, r) {
|
|
6538
|
-
for (var g = -1, h = o.length,
|
|
6539
|
-
var
|
|
6540
|
-
r(
|
|
6538
|
+
for (var g = -1, h = o.length, y = {}; ++g < h; ) {
|
|
6539
|
+
var w = o[g], k = e(i, w);
|
|
6540
|
+
r(k, w) && t(y, n(w, i), k);
|
|
6541
6541
|
}
|
|
6542
|
-
return
|
|
6542
|
+
return y;
|
|
6543
6543
|
}
|
|
6544
6544
|
return he = s, he;
|
|
6545
6545
|
}
|
|
@@ -6565,7 +6565,7 @@ function ll() {
|
|
|
6565
6565
|
return ge = n, ge;
|
|
6566
6566
|
}
|
|
6567
6567
|
var rl = ll();
|
|
6568
|
-
const dl = /* @__PURE__ */
|
|
6568
|
+
const dl = /* @__PURE__ */ Ue(rl), cl = {
|
|
6569
6569
|
name: "DocForm",
|
|
6570
6570
|
i18nOptions: {
|
|
6571
6571
|
namespaces: "widgetDocForm",
|
|
@@ -6754,17 +6754,17 @@ const dl = /* @__PURE__ */ He(rl), cl = {
|
|
|
6754
6754
|
class: "flex h-full w-full flex-col"
|
|
6755
6755
|
}, pl = { class: "relative flex h-16 items-center justify-center border-b border-gray-200" };
|
|
6756
6756
|
function hl(e, t, n, s, i, o) {
|
|
6757
|
-
const r = m("CButton"), g = m("TemplateSelector"), h = m("DocumentForm"),
|
|
6757
|
+
const r = m("CButton"), g = m("TemplateSelector"), h = m("DocumentForm"), y = m("PostSend");
|
|
6758
6758
|
return l(), p("div", ul, [
|
|
6759
6759
|
i.view === "templateSelect" ? (l(), p("div", ml, [
|
|
6760
6760
|
a("div", pl, [
|
|
6761
|
-
n.closeFunc ? (l(),
|
|
6761
|
+
n.closeFunc ? (l(), b(r, {
|
|
6762
6762
|
key: 0,
|
|
6763
6763
|
icon: "x",
|
|
6764
6764
|
circle: "",
|
|
6765
6765
|
class: "absolute left-4 top-1/2 -translate-y-1/2",
|
|
6766
6766
|
onClick: n.closeFunc
|
|
6767
|
-
}, null, 8, ["onClick"])) :
|
|
6767
|
+
}, null, 8, ["onClick"])) : C("", !0),
|
|
6768
6768
|
a("div", null, d(e.$t("selectNavTitle")), 1)
|
|
6769
6769
|
]),
|
|
6770
6770
|
c(g, {
|
|
@@ -6777,7 +6777,7 @@ function hl(e, t, n, s, i, o) {
|
|
|
6777
6777
|
"include-partner-templates": "",
|
|
6778
6778
|
class: "body-scroll min-h-0"
|
|
6779
6779
|
}, null, 8, ["on-use-template", "show-gallery", "gallery-category", "on-save-template", "show-keep-clients-option"])
|
|
6780
|
-
])) : i.view === "editor" ? (l(),
|
|
6780
|
+
])) : i.view === "editor" ? (l(), b(h, {
|
|
6781
6781
|
key: 1,
|
|
6782
6782
|
document: i.document,
|
|
6783
6783
|
"set-doc-value": o.setDocValue,
|
|
@@ -6793,7 +6793,7 @@ function hl(e, t, n, s, i, o) {
|
|
|
6793
6793
|
"show-keep-clients-option": n.showKeepClientsOption
|
|
6794
6794
|
}, {
|
|
6795
6795
|
"nav-right-action": u(() => [
|
|
6796
|
-
n.isEditingTemplate ? (l(),
|
|
6796
|
+
n.isEditingTemplate ? (l(), b(r, {
|
|
6797
6797
|
key: 0,
|
|
6798
6798
|
loading: i.isSavingTemplate,
|
|
6799
6799
|
disabled: !o.canDoActions,
|
|
@@ -6808,15 +6808,15 @@ function hl(e, t, n, s, i, o) {
|
|
|
6808
6808
|
_(d(e.$t("_common:save", { thing: e.$t("_common:template") })), 1)
|
|
6809
6809
|
]),
|
|
6810
6810
|
_: 1
|
|
6811
|
-
}, 8, ["loading", "disabled", "onClick"])) :
|
|
6811
|
+
}, 8, ["loading", "disabled", "onClick"])) : C("", !0)
|
|
6812
6812
|
]),
|
|
6813
6813
|
_: 1
|
|
6814
|
-
}, 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" ? (l(),
|
|
6814
|
+
}, 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" ? (l(), b(y, {
|
|
6815
6815
|
key: 2,
|
|
6816
6816
|
document: i.document,
|
|
6817
6817
|
"on-send-func": n.closeFunc,
|
|
6818
6818
|
"on-close-func": n.closeFunc
|
|
6819
|
-
}, null, 8, ["document", "on-send-func", "on-close-func"])) :
|
|
6819
|
+
}, null, 8, ["document", "on-send-func", "on-close-func"])) : C("", !0)
|
|
6820
6820
|
]);
|
|
6821
6821
|
}
|
|
6822
6822
|
const Ol = /* @__PURE__ */ F(cl, [["render", hl], ["__scopeId", "data-v-4c6b6a6b"]]);
|