@cling-se/widget 0.19.7 → 0.19.8
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 +8 -0
- package/dist/{AddClientCallout-BdGevuQo.js → AddClientCallout-sPxYX5tQ.js} +19 -19
- package/dist/{AnswerModal-DfjF-RVP.js → AnswerModal-o8OHHulg.js} +80 -80
- package/dist/{AttachmentItem-BEd3qVAo.js → AttachmentItem-CzzOlHB-.js} +14 -14
- package/dist/{BaseUpload-Zm4EX8ir.js → BaseUpload-oZQfFwOj.js} +256 -256
- package/dist/{BlockMedia-ZHaA4OMV.js → BlockMedia-BGPxfM2X.js} +11 -11
- package/dist/{CCallout-BlglVZrm.js → CCallout-CrbMGTIj.js} +15 -15
- package/dist/{CCurrencyDropdown-BzvKsm1N.js → CCurrencyDropdown-BnNDP51j.js} +13 -13
- package/dist/{CDropdownItem-B5rgSee7.js → CDropdownItem-E-kRDIiy.js} +11 -11
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js → CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js} +17 -17
- package/dist/{CPhoneFormat-DaDNMlmK.js → CPhoneFormat-CIQAVdsB.js} +1 -1
- package/dist/{CPhoneInput-BUogm59J.js → CPhoneInput-9AwTJm-0.js} +23 -23
- package/dist/{CPriceInput-Cd5OHMJS.js → CPriceInput-agFahtr1.js} +12 -12
- package/dist/{CSelect-CmoAbVkP.js → CSelect-BpautzPq.js} +15 -15
- package/dist/{CSkeleton-BF6EYj8H.js → CSkeleton-GIqd-JU4.js} +18 -18
- package/dist/{ClientAutocomplete-CHfp4YiV.js → ClientAutocomplete-DOHX9Igy.js} +24 -24
- package/dist/{ClientModal-Com23Qgc.js → ClientModal-DAXKN_b3.js} +49 -49
- package/dist/{ColorPicker-BzdHtZep.js → ColorPicker-B9F8znY_.js} +66 -66
- package/dist/{CompanyModal-CGjSgTEJ.js → CompanyModal-BvIMVys6.js} +18 -18
- package/dist/{ContentWrapper-CS-Bh4Bk.js → ContentWrapper-DB22RaUr.js} +20 -20
- package/dist/{CoverBlockSettings-DDHQzLdc.js → CoverBlockSettings--l4fH9mr.js} +39 -39
- package/dist/{DocAnswer-Cmdsw_CW.js → DocAnswer-Bq-4uVbe.js} +4 -4
- package/dist/{DocDetails-C5Vzh550.js → DocDetails-yxmchgO5.js} +56 -56
- package/dist/{DocForm-DEUVV11n.js → DocForm-CzrR8o22.js} +819 -825
- package/dist/{DocFormSend-Dt7N3wCz.js → DocFormSend-Bjc1QDcK.js} +11 -11
- package/dist/{DocLinks-C6-Er0rk.js → DocLinks-BXbC-6v3.js} +6 -6
- package/dist/{DocModalBase-DbuJwHXi.js → DocModalBase-axX_Rlp3.js} +1 -1
- package/dist/{DocPrint-D_uxg7qD.js → DocPrint-D0IdWsUM.js} +15 -15
- package/dist/{DocReceipt-D6LP9UAa.js → DocReceipt-4e-RmgeQ.js} +23 -23
- package/dist/{DocSendReminder-DopLhyjz.js → DocSendReminder-L35eZxgk.js} +10 -10
- package/dist/{DocTextEditor-DeZtzbgm.js → DocTextEditor-KrfylSV6.js} +4493 -4435
- package/dist/{DocTimeline-DAWZu_KT.js → DocTimeline-Be5CvtcQ.js} +16 -16
- package/dist/{DocumentClient-kxnT6k9s.js → DocumentClient-Bc4kf2q9.js} +12 -12
- package/dist/DocumentLayout-Oe-ZsHML.js +595 -0
- package/dist/{DocumentLogotype-G-a7gBIC.js → DocumentLogotype-BFo5UEWS.js} +18 -18
- package/dist/{DocumentVoided-SG_ShMmc.js → DocumentVoided-DlQtlO7G.js} +4 -4
- package/dist/{EmbedInput-CJL5y3Zj.js → EmbedInput-B29usQZZ.js} +8 -8
- package/dist/{EmbedSettings-B0X6A9Uy.js → EmbedSettings-D-9rcSn0.js} +12 -12
- package/dist/{ErrorCallout-xCSfpQWV.js → ErrorCallout--EnH1Ezu.js} +10 -10
- package/dist/{FilePreviewModal-Da_pMUoO.js → FilePreviewModal-H5Ilg9xN.js} +7 -7
- package/dist/{Flag-wXawyyMO.js → Flag-DgZVh3Lf.js} +4 -4
- package/dist/{HeaderSettings-CD3y6-uY.js → HeaderSettings-HuM_JwJw.js} +36 -36
- package/dist/{ImageSelectModal-DatnXHH1.js → ImageSelectModal-CJ-DstAf.js} +16 -16
- package/dist/{ImageUploadWrapper-CwKe3Iq7.js → ImageUploadWrapper-TYs37LIQ.js} +72 -72
- package/dist/{Index-ezY0DbcB.js → Index-6N_iRlrQ.js} +5 -5
- package/dist/{Index-BJf4YdYB.js → Index-B-PDcQKh.js} +29 -29
- package/dist/{Index-C-EUJjuk.js → Index-B942Auag.js} +2 -2
- package/dist/{Index-NnBwJv9v.js → Index-BLdFyt-s.js} +9 -9
- package/dist/{Index-CXjLkK_n.js → Index-BMpHXgR4.js} +15 -15
- package/dist/{Index-COF0evH4.js → Index-BZ6ZDf9T.js} +6 -6
- package/dist/{Index-y_AJP61r.js → Index-BdnFLjgV.js} +9 -9
- package/dist/{Index-DAkq_7Ws.js → Index-BeOtRIzZ.js} +18 -18
- package/dist/{Index-CTrX3VRa.js → Index-BsRxY7vc.js} +5 -5
- package/dist/{Index-D-gJQEAD.js → Index-CAMAtPVL.js} +6 -6
- package/dist/{Index-C2-s62x7.js → Index-CC4E2CmH.js} +11 -11
- package/dist/{Index-Dxg4gEKd.js → Index-CGus-YwW.js} +18 -18
- package/dist/{Index-Ciy9lnhS.js → Index-CLgN5Jzf.js} +2 -2
- package/dist/{Index-Cjg3X74T.js → Index-CTlB43yV.js} +7 -7
- package/dist/{Index-DkQ8_VkX.js → Index-CY2sRfaY.js} +194 -218
- package/dist/{Index-DfuzxXzD.js → Index-CnrSvy6E.js} +2 -2
- package/dist/{Index-DjfbgA_7.js → Index-CrdSdXWN.js} +19 -19
- package/dist/{Index-Ct735UtM.js → Index-CtJfMiZW.js} +2 -2
- package/dist/Index-D4HNTocO.js +4 -0
- package/dist/{Index-Ck-_9woY.js → Index-D5_GLLQH.js} +501 -506
- package/dist/{Index-DzdEqsZB.js → Index-D9sceHk5.js} +16 -16
- package/dist/{Index-Dfy0PsiW.js → Index-DJ11Zra_.js} +29 -29
- package/dist/{Index-DOeHci16.js → Index-DMIjuWSa.js} +7 -7
- package/dist/{Index-Bb6JZC8l.js → Index-DTm59e-A.js} +11 -11
- package/dist/{Index-CQboLS2e.js → Index-DXT_IMjq.js} +8 -8
- package/dist/{Index-GPliVrhC.js → Index-DYUvtCff.js} +7 -7
- package/dist/{Index-BvAqglwa.js → Index-DYW8T0Hl.js} +27 -27
- package/dist/{Index-BTDQax0X.js → Index-Dg4dwlh_.js} +60 -59
- package/dist/{Index-BlownK7_.js → Index-N88Abomf.js} +7 -7
- package/dist/{Index-9ZFW8Ka7.js → Index-W-Q19E3a.js} +7 -7
- package/dist/{Index-BbVHxVFJ.js → Index-edWEg_rF.js} +33 -33
- package/dist/{Index-B53eUt7Y.js → Index-nRqNPZ3B.js} +15 -15
- package/dist/{Index-1WPEpaVr.js → Index-nTp9wEni.js} +7 -7
- package/dist/{Index-yS5OPrJJ.js → Index-yJRtT77X.js} +2 -2
- package/dist/{Index.vue_vue_type_script_lang-B3RoDZmC.js → Index.vue_vue_type_script_lang-PJPQMT2c.js} +2 -2
- package/dist/{InputToggleRow-D5rvQpAw.js → InputToggleRow-DCr_DEm4.js} +15 -15
- package/dist/{ManualPopover-Bd-GsLGT.js → ManualPopover-CpVsmQvn.js} +6 -6
- package/dist/{MediaWrapper-Ci0XPCcb.js → MediaWrapper-Cj3LBhdR.js} +4 -4
- package/dist/{NotBindingText-DhndGZE3.js → NotBindingText-1J0p_k4u.js} +5 -5
- package/dist/{PackageGroup-4Jt9ClVO.js → PackageGroup-CqrWEfCT.js} +29 -29
- package/dist/{PdfTerms-CGeJDJpQ.js → PdfTerms-DmrPDtae.js} +9 -9
- package/dist/{PdfViewer-o2vb6Fya.js → PdfViewer-C2EEwUBa.js} +71 -71
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js → PlainHtml.vue_vue_type_script_setup_true_lang-B6pRo08V.js} +2 -2
- package/dist/{PriceHeader-BsObxLHK.js → PriceHeader-BaREzUxI.js} +31 -31
- package/dist/{SearchApi-ZczKsBb7.js → SearchApi-Bf4jeQVr.js} +6 -6
- package/dist/{SendForm-D5jqkofo.js → SendForm-D5qpHxNU.js} +713 -711
- package/dist/{Setup-CdZzn0qW.js → Setup-Bw8ViFxw.js} +4 -4
- package/dist/{SmartList-B36ffGAZ.js → SmartList-CzylvV8N.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js → Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js} +118 -118
- package/dist/{TermsSettings-CmAHVOuX.js → TermsSettings-EoJvsPqK.js} +16 -16
- package/dist/{ThemeColorRow-CScTIcPB.js → ThemeColorRow-D3blQMiD.js} +13 -13
- package/dist/{ToggleBinding-CVZZlpBR.js → ToggleBinding-BteBsRYr.js} +7 -7
- package/dist/{UploadModal-2tXsmGMM.js → UploadModal-Cr5sF3M-.js} +19 -19
- package/dist/{VideoPlayerInput-BDzjZ2St.js → VideoPlayerInput-BBycKv9w.js} +10 -10
- package/dist/{VideoPlayerSettings-BLAEZw4C.js → VideoPlayerSettings-BXXpTWBf.js} +9 -9
- package/dist/{VideoSelectModal-iqgmg85K.js → VideoSelectModal-B2VPO6q4.js} +19 -19
- package/dist/{focusDrawerMixin-BmyahQiE.js → focusDrawerMixin-CCAEZjWO.js} +1 -1
- package/dist/{formDrawerState-B7ASfNsk.js → formDrawerState-CJyP4ce1.js} +1 -1
- package/dist/{helpers-BVP2Pul1.js → helpers-Cf9s0P7o.js} +4 -4
- package/dist/{index-B86TZXOh.js → index-C3pnyYI4.js} +94 -94
- package/dist/{index-D0Qee2OX.js → index-CBn1mHmK.js} +30 -30
- package/dist/{index-DXNrJnEc.js → index-DAJmNac8.js} +10 -10
- package/dist/{index-Cd4S4J-L.js → index-DYJN9yoF.js} +56 -56
- package/dist/{index-BDb4bM0D.js → index-DuXECcGq.js} +25 -25
- package/dist/{index-BH5vwOzR.js → index-XzoHqJIR.js} +9 -9
- package/dist/{index-CsbYpQqP.js → index-_MfZEYgE.js} +57 -57
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +153 -158
- package/dist/{main-C2Q8_T2Y.js → main-BayUZ9OO.js} +13620 -13669
- package/dist/{mapFormMixin-CjfqZnmd.js → mapFormMixin-Bx5_nE7g.js} +40 -46
- package/dist/omit-BKJdPM2H.js +56 -0
- package/dist/{publicSenderState-C3ELW8Cw.js → publicSenderState-CblTasKp.js} +4 -4
- package/dist/{splitpanes-CuxtOZyV.js → splitpanes-DFkgBT3z.js} +6 -6
- package/dist/{template-DzrGrOEa.js → template-CvGgzazD.js} +5 -5
- package/dist/{tippy.esm-Bf86qEue.js → tippy.esm-CYKcJaqz.js} +273 -275
- package/dist/{useTermsModal-Be4HLDDm.js → useTermsModal-DFmdeFRm.js} +7 -7
- package/dist/{utils-a_Odlqb5.js → utils-DTwXcY8_.js} +1 -1
- package/dist/{validation-38muBV6x.js → validation-d_jonAPy.js} +4 -4
- package/dist/widget.css +1 -1
- package/package.json +2 -2
- package/dist/DocumentLayout-DaVz9SGF.js +0 -1434
- package/dist/Index-qFx0G3fC.js +0 -4
- package/dist/omit-DzlbtNCX.js +0 -56
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as H } from "./DocumentLayout-
|
|
3
|
-
import { _ as W } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { B
|
|
5
|
-
import { u as J } from "./index-
|
|
6
|
-
import { r as
|
|
7
|
-
import { S as Q } from "./SmartList-
|
|
8
|
-
import { w as X } from "./CDropdownItem-
|
|
9
|
-
const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-container" }, te = /* @__PURE__ */
|
|
1
|
+
import { a7 as q, bf as I, A as V, b as r, d as f, c as g, I as w, o, j as i, e as C, T as $, am as k, bg as F, w as p, R as N, _ as M, m as A, aq as P, a as G, S as D, f as m, q as x, t as _, k as b, g as T, ap as O, V as R, F as z, n as U, x as j } from "./main-BayUZ9OO.js";
|
|
2
|
+
import { i as H } from "./DocumentLayout-Oe-ZsHML.js";
|
|
3
|
+
import { _ as W } from "./CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js";
|
|
4
|
+
import { B } from "./DocTextEditor-KrfylSV6.js";
|
|
5
|
+
import { u as J } from "./index-C3pnyYI4.js";
|
|
6
|
+
import { r as L, m as K } from "./index-XzoHqJIR.js";
|
|
7
|
+
import { S as Q } from "./SmartList-CzylvV8N.js";
|
|
8
|
+
import { w as X } from "./CDropdownItem-E-kRDIiy.js";
|
|
9
|
+
const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-container" }, te = /* @__PURE__ */ q({
|
|
10
10
|
__name: "ContextModal",
|
|
11
11
|
props: {
|
|
12
12
|
placement: { default: "top-start" }
|
|
13
13
|
},
|
|
14
14
|
emits: ["show", "hide"],
|
|
15
15
|
setup(e, { emit: t }) {
|
|
16
|
-
const v = t, { rootChild: u } =
|
|
16
|
+
const v = t, { rootChild: u } = I(), s = V(!1), a = () => {
|
|
17
17
|
s.value = !0, v("show");
|
|
18
18
|
}, n = () => {
|
|
19
19
|
s.value = !1, v("hide");
|
|
20
20
|
};
|
|
21
21
|
return (d, c) => {
|
|
22
22
|
const h = r("VDropdown");
|
|
23
|
-
return w(H) ? (
|
|
24
|
-
i("div", { onClick:
|
|
23
|
+
return w(H) ? (o(), f("div", Y, [
|
|
24
|
+
i("div", { onClick: a }, [
|
|
25
25
|
$(d.$slots, "default", {}, void 0, !0)
|
|
26
26
|
]),
|
|
27
|
-
s.value ? (
|
|
27
|
+
s.value ? (o(), g(F, {
|
|
28
28
|
key: 0,
|
|
29
29
|
to: w(u)
|
|
30
30
|
}, [
|
|
@@ -37,18 +37,18 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
37
37
|
])
|
|
38
38
|
])
|
|
39
39
|
], 8, ["to"])) : C("", !0)
|
|
40
|
-
])) : (
|
|
40
|
+
])) : (o(), g(h, N({ key: 1 }, d.$props, {
|
|
41
41
|
placement: d.placement,
|
|
42
42
|
shown: s.value,
|
|
43
43
|
"onUpdate:shown": c[0] || (c[0] = (y) => s.value = y),
|
|
44
44
|
"popper-class": "context-modal-popper",
|
|
45
|
-
onShow:
|
|
45
|
+
onShow: a,
|
|
46
46
|
onHide: n,
|
|
47
47
|
"auto-hide": !1
|
|
48
48
|
}), {
|
|
49
49
|
popper: p(() => [
|
|
50
50
|
i("div", ee, [
|
|
51
|
-
s.value ? (
|
|
51
|
+
s.value ? (o(), g(F, {
|
|
52
52
|
key: 0,
|
|
53
53
|
to: w(u)
|
|
54
54
|
}, [
|
|
@@ -67,10 +67,10 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
67
67
|
}, 16, ["placement", "shown"]));
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
}), se = /* @__PURE__ */ M(te, [["__scopeId", "data-v-71def6ac"]]), { mapFields:
|
|
70
|
+
}), se = /* @__PURE__ */ M(te, [["__scopeId", "data-v-71def6ac"]]), { mapFields: oe } = P({
|
|
71
71
|
getterType: "forms/getField",
|
|
72
72
|
mutationType: "forms/updateField"
|
|
73
|
-
}),
|
|
73
|
+
}), ae = {
|
|
74
74
|
i18nOptions: {
|
|
75
75
|
namespaces: "TextTemplatesForm",
|
|
76
76
|
messages: {
|
|
@@ -116,8 +116,8 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
116
116
|
},
|
|
117
117
|
name: "TextTemplatesForm",
|
|
118
118
|
components: {
|
|
119
|
-
BaseTextEditor:
|
|
120
|
-
Spinner:
|
|
119
|
+
BaseTextEditor: B,
|
|
120
|
+
Spinner: D,
|
|
121
121
|
CField: W
|
|
122
122
|
},
|
|
123
123
|
expose: ["canLeave"],
|
|
@@ -147,20 +147,20 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
147
147
|
},
|
|
148
148
|
validations: {
|
|
149
149
|
name: {
|
|
150
|
-
required:
|
|
150
|
+
required: L,
|
|
151
151
|
maxLength: K(255)
|
|
152
152
|
},
|
|
153
153
|
textContent: {
|
|
154
|
-
required:
|
|
154
|
+
required: L
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
computed: {
|
|
158
|
-
...
|
|
158
|
+
...G({
|
|
159
159
|
isPosting: "templateMessages/isPosting",
|
|
160
160
|
isFetching: "templateMessages/isFetching",
|
|
161
161
|
checkFormChanged: "forms/hasChanged"
|
|
162
162
|
}),
|
|
163
|
-
...
|
|
163
|
+
...oe({
|
|
164
164
|
templateMessage: "templateMessage",
|
|
165
165
|
name: "templateMessage.name",
|
|
166
166
|
textContent: "templateMessage.message"
|
|
@@ -189,7 +189,7 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
189
189
|
this.load(), this.predefinedTextContent && (this.textContent = this.predefinedTextContent);
|
|
190
190
|
},
|
|
191
191
|
methods: {
|
|
192
|
-
...
|
|
192
|
+
...A({
|
|
193
193
|
loadTemplate: T.LOAD_TEMPLATE_MESSAGE,
|
|
194
194
|
deleteTemplate: T.DELETE_TEMPLATE_MESSAGE,
|
|
195
195
|
formNewTemplate: T.FORM_NEW_TEMPLATE_MESSAGE,
|
|
@@ -234,22 +234,22 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
234
234
|
class: "flex w-full items-center justify-center",
|
|
235
235
|
style: { padding: "calc(3 * var(--rem)) 0" }
|
|
236
236
|
}, ie = { key: 2 };
|
|
237
|
-
function re(e, t, v, u, s,
|
|
237
|
+
function re(e, t, v, u, s, a) {
|
|
238
238
|
const n = r("CButton"), d = r("Spinner"), c = r("CInput"), h = r("CField"), y = r("BaseTextEditor");
|
|
239
|
-
return
|
|
240
|
-
v.showFixedCloseButton ? (
|
|
239
|
+
return o(), f("div", ne, [
|
|
240
|
+
v.showFixedCloseButton ? (o(), g(n, {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "fixed-close-button",
|
|
243
243
|
circle: "",
|
|
244
244
|
icon: "x",
|
|
245
245
|
onClick: t[0] || (t[0] = (l) => e.$emit("close"))
|
|
246
246
|
})) : C("", !0),
|
|
247
|
-
e.isFetching ? (
|
|
247
|
+
e.isFetching ? (o(), f("div", le, [
|
|
248
248
|
m(d)
|
|
249
|
-
])) : e.templateMessage !== void 0 ? (
|
|
249
|
+
])) : e.templateMessage !== void 0 ? (o(), f("form", ie, [
|
|
250
250
|
m(h, {
|
|
251
251
|
validator: u.v$.name,
|
|
252
|
-
messages:
|
|
252
|
+
messages: a.messages.name,
|
|
253
253
|
label: e.$t("name.label")
|
|
254
254
|
}, {
|
|
255
255
|
default: p(() => [
|
|
@@ -264,7 +264,7 @@ function re(e, t, v, u, s, o) {
|
|
|
264
264
|
}, 8, ["validator", "messages", "label"]),
|
|
265
265
|
m(h, {
|
|
266
266
|
validator: u.v$.textContent,
|
|
267
|
-
messages:
|
|
267
|
+
messages: a.messages.textContent,
|
|
268
268
|
label: e.$t("textLabel")
|
|
269
269
|
}, {
|
|
270
270
|
default: p(() => [
|
|
@@ -280,26 +280,26 @@ function re(e, t, v, u, s, o) {
|
|
|
280
280
|
}, 8, ["validator", "messages", "label"]),
|
|
281
281
|
m(n, {
|
|
282
282
|
loading: e.isPosting,
|
|
283
|
-
disabled: !
|
|
283
|
+
disabled: !a.hasChanged,
|
|
284
284
|
type: "secondary",
|
|
285
285
|
style: { "margin-top": "calc(1 * var(--rem))" },
|
|
286
286
|
icon: "save",
|
|
287
287
|
wide: "",
|
|
288
|
-
onClick: t[5] || (t[5] = (l) =>
|
|
288
|
+
onClick: t[5] || (t[5] = (l) => a.validateBeforeSubmit())
|
|
289
289
|
}, {
|
|
290
290
|
default: p(() => [
|
|
291
291
|
x(_(e.$t("_common:save")), 1)
|
|
292
292
|
]),
|
|
293
293
|
_: 1
|
|
294
294
|
}, 8, ["loading", "disabled"]),
|
|
295
|
-
v.id ? (
|
|
295
|
+
v.id ? (o(), g(n, {
|
|
296
296
|
key: 0,
|
|
297
297
|
loading: e.isPosting,
|
|
298
298
|
type: "secondary",
|
|
299
299
|
pattern: "tertiary",
|
|
300
300
|
style: { "margin-top": "calc(1 * var(--rem))" },
|
|
301
301
|
wide: "",
|
|
302
|
-
onClick: t[6] || (t[6] = (l) =>
|
|
302
|
+
onClick: t[6] || (t[6] = (l) => a.remove())
|
|
303
303
|
}, {
|
|
304
304
|
default: p(() => [
|
|
305
305
|
x(_(e.$t("_common:remove")), 1)
|
|
@@ -309,16 +309,16 @@ function re(e, t, v, u, s, o) {
|
|
|
309
309
|
])) : C("", !0)
|
|
310
310
|
]);
|
|
311
311
|
}
|
|
312
|
-
const de = /* @__PURE__ */ M(
|
|
312
|
+
const de = /* @__PURE__ */ M(ae, [["render", re], ["__scopeId", "data-v-286de2c9"]]), me = {
|
|
313
313
|
name: "TextTemplatesModal",
|
|
314
314
|
components: {
|
|
315
315
|
SmartList: Q,
|
|
316
|
-
BaseTextEditor:
|
|
316
|
+
BaseTextEditor: B
|
|
317
317
|
},
|
|
318
318
|
emits: ["select", "close"],
|
|
319
319
|
mixins: [X],
|
|
320
320
|
setup() {
|
|
321
|
-
return { viewContext:
|
|
321
|
+
return { viewContext: R };
|
|
322
322
|
},
|
|
323
323
|
data() {
|
|
324
324
|
return {
|
|
@@ -327,7 +327,7 @@ const de = /* @__PURE__ */ M(oe, [["render", re], ["__scopeId", "data-v-286de2c9
|
|
|
327
327
|
};
|
|
328
328
|
},
|
|
329
329
|
computed: {
|
|
330
|
-
...
|
|
330
|
+
...O("templateMessages", {
|
|
331
331
|
templateMessages: (e) => e.data
|
|
332
332
|
}),
|
|
333
333
|
templates() {
|
|
@@ -369,10 +369,10 @@ const de = /* @__PURE__ */ M(oe, [["render", re], ["__scopeId", "data-v-286de2c9
|
|
|
369
369
|
key: 0,
|
|
370
370
|
class: "t-text quill-format"
|
|
371
371
|
}, ge = { key: 1 }, Ce = { class: "t-footer flex w-full items-center justify-between" };
|
|
372
|
-
function Te(e, t, v, u, s,
|
|
372
|
+
function Te(e, t, v, u, s, a) {
|
|
373
373
|
const n = r("CInput"), d = r("BaseTextEditor"), c = r("CIcon"), h = r("CButton"), y = r("SmartList");
|
|
374
|
-
return
|
|
375
|
-
items:
|
|
374
|
+
return o(), g(y, {
|
|
375
|
+
items: a.templates,
|
|
376
376
|
"sort-key": "position",
|
|
377
377
|
query: s.query
|
|
378
378
|
}, {
|
|
@@ -393,28 +393,28 @@ function Te(e, t, v, u, s, o) {
|
|
|
393
393
|
]),
|
|
394
394
|
i("div", ce, [
|
|
395
395
|
i("div", he, [
|
|
396
|
-
(
|
|
396
|
+
(o(!0), f(z, null, U(l, (S, E) => (o(), f("div", {
|
|
397
397
|
key: S.id,
|
|
398
|
-
class:
|
|
398
|
+
class: j([{ selected: E === s.selectedIndex }, "t-list-item w-full truncate"]),
|
|
399
399
|
onMouseoverPassive: () => s.selectedIndex = E,
|
|
400
|
-
onClick: (Me) =>
|
|
400
|
+
onClick: (Me) => a.onSelect(l[s.selectedIndex].message || "")
|
|
401
401
|
}, _(S.name), 43, fe))), 128))
|
|
402
402
|
]),
|
|
403
|
-
e.mq !== "sm" ? (
|
|
404
|
-
l[s.selectedIndex] ? (
|
|
403
|
+
e.mq !== "sm" ? (o(), f("div", ve, [
|
|
404
|
+
l[s.selectedIndex] ? (o(), g(d, {
|
|
405
405
|
key: 0,
|
|
406
406
|
"model-value": l[s.selectedIndex].message || "",
|
|
407
407
|
editable: !1,
|
|
408
408
|
extensions: "all",
|
|
409
409
|
"class-list": "document-form",
|
|
410
410
|
unstyled: ""
|
|
411
|
-
}, null, 8, ["model-value"])) : (
|
|
411
|
+
}, null, 8, ["model-value"])) : (o(), f("div", ge, _(e.$t("noResults")), 1))
|
|
412
412
|
])) : C("", !0)
|
|
413
413
|
]),
|
|
414
414
|
i("div", Ce, [
|
|
415
415
|
t[2] || (t[2] = i("div", { style: { display: "inline-flex", "align-items": "center" } }, null, -1)),
|
|
416
416
|
i("div", null, [
|
|
417
|
-
u.viewContext !== "widget" ? (
|
|
417
|
+
u.viewContext !== "widget" ? (o(), g(h, {
|
|
418
418
|
key: 0,
|
|
419
419
|
to: { name: "settingsTemplates" },
|
|
420
420
|
class: "t-footer-button",
|
|
@@ -434,7 +434,7 @@ function Te(e, t, v, u, s, o) {
|
|
|
434
434
|
m(h, {
|
|
435
435
|
class: "t-footer-button",
|
|
436
436
|
size: "small",
|
|
437
|
-
onClick:
|
|
437
|
+
onClick: a.openCreateModal
|
|
438
438
|
}, {
|
|
439
439
|
default: p(() => [
|
|
440
440
|
x(_(e.$t("create", { thing: e.$t("template") })), 1)
|
|
@@ -465,14 +465,14 @@ const _e = /* @__PURE__ */ M(me, [["render", Te], ["__scopeId", "data-v-e354b48d
|
|
|
465
465
|
this.loadTemplateMessages();
|
|
466
466
|
},
|
|
467
467
|
methods: {
|
|
468
|
-
...
|
|
468
|
+
...A({
|
|
469
469
|
loadTemplateMessages: T.LOAD_TEMPLATE_MESSAGES
|
|
470
470
|
})
|
|
471
471
|
}
|
|
472
472
|
}, Se = { class: "t-list" }, $e = { class: "t-option main" };
|
|
473
|
-
function xe(e, t, v, u, s,
|
|
473
|
+
function xe(e, t, v, u, s, a) {
|
|
474
474
|
const n = r("TextTemplatesModal"), d = r("ContextModal");
|
|
475
|
-
return
|
|
475
|
+
return o(), f("div", Se, [
|
|
476
476
|
m(d, {
|
|
477
477
|
"break-point": 1e3,
|
|
478
478
|
placement: v.placement,
|
|
@@ -494,7 +494,7 @@ function xe(e, t, v, u, s, o) {
|
|
|
494
494
|
}, 8, ["placement"])
|
|
495
495
|
]);
|
|
496
496
|
}
|
|
497
|
-
const
|
|
497
|
+
const qe = /* @__PURE__ */ M(ye, [["render", xe]]);
|
|
498
498
|
export {
|
|
499
|
-
|
|
499
|
+
qe as default
|
|
500
500
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as C, m as f, a as b, az as $, aA as w, g as T, b as h, a4 as D, d as i, o as s, j as n, f as d, t as a, F as L, n as N, e as l, q as B, u as I, aB as u } from "./main-BayUZ9OO.js";
|
|
2
2
|
const E = {
|
|
3
3
|
name: "ClientLinks",
|
|
4
4
|
emits: ["close"],
|
|
@@ -30,7 +30,7 @@ const E = {
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
computed: {
|
|
33
|
-
...
|
|
33
|
+
...b({
|
|
34
34
|
docById: "documents2/byId"
|
|
35
35
|
}),
|
|
36
36
|
document() {
|
|
@@ -51,7 +51,7 @@ const E = {
|
|
|
51
51
|
},
|
|
52
52
|
methods: {
|
|
53
53
|
...f({
|
|
54
|
-
loadDocument:
|
|
54
|
+
loadDocument: T.LOAD_DOCUMENT2
|
|
55
55
|
}),
|
|
56
56
|
async copyToClipboard(t) {
|
|
57
57
|
var p, c;
|
|
@@ -64,17 +64,17 @@ const E = {
|
|
|
64
64
|
}, S = {
|
|
65
65
|
class: "font-inter",
|
|
66
66
|
style: { "background-color": "white", "border-radius": "10px", overflow: "hidden" }
|
|
67
|
-
},
|
|
67
|
+
}, z = { style: { padding: "40px 30px", position: "relative" } }, V = { style: { padding: "0 0 2.5em" } }, j = ["textContent"], q = ["textContent"], F = ["textContent"], M = { style: { padding: "4px 6px 8px 6px" } }, O = { class: "client-title w-full truncate" }, R = {
|
|
68
68
|
key: 0,
|
|
69
69
|
style: { opacity: "0.5", "padding-left": "0.125ch" }
|
|
70
|
-
},
|
|
70
|
+
}, A = ["textContent"], P = ["href"], G = {
|
|
71
71
|
key: 1,
|
|
72
72
|
style: { padding: "0 0.5ch" }
|
|
73
73
|
}, K = ["href"], U = { style: { display: "flex", position: "relative" } }, W = ["value", "placeholder"], H = { class: "x-hint" }, J = ["textContent"];
|
|
74
74
|
function Q(t, o, y, p, c, r) {
|
|
75
75
|
const k = h("CButton"), _ = h("CPhoneFormat"), m = h("CIcon"), g = D("tooltip");
|
|
76
|
-
return
|
|
77
|
-
n("div",
|
|
76
|
+
return s(), i("div", S, [
|
|
77
|
+
n("div", z, [
|
|
78
78
|
d(k, {
|
|
79
79
|
icon: "x",
|
|
80
80
|
circle: "",
|
|
@@ -82,36 +82,36 @@ function Q(t, o, y, p, c, r) {
|
|
|
82
82
|
style: { position: "absolute", right: "1em", top: "1em", color: "hsl(0, 0%, 55%)" },
|
|
83
83
|
onClick: o[0] || (o[0] = (e) => t.$emit("close"))
|
|
84
84
|
}),
|
|
85
|
-
n("div",
|
|
85
|
+
n("div", V, [
|
|
86
86
|
n("div", {
|
|
87
87
|
class: "x-title",
|
|
88
88
|
textContent: a(t.$t("title"))
|
|
89
|
-
}, null, 8,
|
|
89
|
+
}, null, 8, j),
|
|
90
90
|
n("div", {
|
|
91
91
|
class: "x-text",
|
|
92
92
|
textContent: a(t.$t("text"))
|
|
93
|
-
}, null, 8,
|
|
93
|
+
}, null, 8, q)
|
|
94
94
|
]),
|
|
95
|
-
r.clients.length ? (
|
|
95
|
+
r.clients.length ? (s(!0), i(L, { key: 1 }, N(r.clients, (e, v) => (s(), i("div", {
|
|
96
96
|
key: v,
|
|
97
97
|
class: "client-card"
|
|
98
98
|
}, [
|
|
99
|
-
n("div",
|
|
100
|
-
n("div",
|
|
101
|
-
|
|
102
|
-
e.secondaryTitle ? (
|
|
99
|
+
n("div", M, [
|
|
100
|
+
n("div", O, [
|
|
101
|
+
B(a(e.primaryTitle) + " ", 1),
|
|
102
|
+
e.secondaryTitle ? (s(), i("span", R, "· " + a(e.secondaryTitle), 1)) : l("", !0)
|
|
103
103
|
]),
|
|
104
|
-
e.documentRole ? (
|
|
104
|
+
e.documentRole ? (s(), i("div", {
|
|
105
105
|
key: 0,
|
|
106
106
|
textContent: a(t.$t(`_common:documentRole.${e.documentRole}.label`))
|
|
107
|
-
}, null, 8,
|
|
107
|
+
}, null, 8, A)) : l("", !0),
|
|
108
108
|
n("div", null, [
|
|
109
|
-
e.email ? (
|
|
109
|
+
e.email ? (s(), i("a", {
|
|
110
110
|
key: 0,
|
|
111
111
|
href: `mailto:${e.email}?&body=${e.docLink}`
|
|
112
|
-
}, a(e.email), 9,
|
|
113
|
-
e.email && e.cellphone ? (
|
|
114
|
-
e.cellphone ? (
|
|
112
|
+
}, a(e.email), 9, P)) : l("", !0),
|
|
113
|
+
e.email && e.cellphone ? (s(), i("span", G, "·")) : l("", !0),
|
|
114
|
+
e.cellphone ? (s(), i("a", {
|
|
115
115
|
key: 2,
|
|
116
116
|
href: `sms:${e.cellphone}?&body=${e.docLink}`
|
|
117
117
|
}, [
|
|
@@ -132,7 +132,7 @@ function Q(t, o, y, p, c, r) {
|
|
|
132
132
|
readonly: "readonly",
|
|
133
133
|
class: "link-field w-full truncate"
|
|
134
134
|
}, null, 8, W),
|
|
135
|
-
|
|
135
|
+
I((s(), i("div", {
|
|
136
136
|
class: "clipboard-button",
|
|
137
137
|
onClick: o[1] || (o[1] = (...x) => r.copyToClipboard && r.copyToClipboard(...x))
|
|
138
138
|
}, [
|
|
@@ -145,11 +145,11 @@ function Q(t, o, y, p, c, r) {
|
|
|
145
145
|
[g, t.$t("tooltip")]
|
|
146
146
|
])
|
|
147
147
|
])
|
|
148
|
-
]))), 128)) : (
|
|
148
|
+
]))), 128)) : (s(), i("div", {
|
|
149
149
|
key: 0,
|
|
150
150
|
style: { padding: "2em", "font-size": "14px", "text-align": "center", color: "hsl(0, 0%, 55%)", border: "1px solid hsl(0, 0%, 88%)", "border-radius": "6px" },
|
|
151
151
|
textContent: a(t.$t("placeholder"))
|
|
152
|
-
}, null, 8,
|
|
152
|
+
}, null, 8, F)),
|
|
153
153
|
n("div", H, [
|
|
154
154
|
d(m, {
|
|
155
155
|
type: "info",
|
|
@@ -164,7 +164,7 @@ function Q(t, o, y, p, c, r) {
|
|
|
164
164
|
])
|
|
165
165
|
]);
|
|
166
166
|
}
|
|
167
|
-
const X = /* @__PURE__ */
|
|
167
|
+
const X = /* @__PURE__ */ C(E, [["render", Q], ["__scopeId", "data-v-d4e8613a"]]), Y = X, ee = ({ id: t }) => {
|
|
168
168
|
var o;
|
|
169
169
|
if (!u.$modal)
|
|
170
170
|
throw Error("Open client modal requires plugin vue-js-modal");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as n } from "./main-BayUZ9OO.js";
|
|
2
2
|
const i = (e) => {
|
|
3
3
|
if (e = n(e), Array.isArray(e)) return !!e.length;
|
|
4
4
|
if (e == null)
|
|
@@ -90,7 +90,7 @@ function h(e) {
|
|
|
90
90
|
return u(s, r);
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function I(e) {
|
|
94
94
|
return {
|
|
95
95
|
$validator: h(e),
|
|
96
96
|
$message: "The value is required",
|
|
@@ -103,7 +103,7 @@ function S(e) {
|
|
|
103
103
|
function l(e) {
|
|
104
104
|
return (r) => n(r) === n(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function S(e) {
|
|
107
107
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "other";
|
|
108
108
|
return {
|
|
109
109
|
$validator: l(e),
|
|
@@ -120,7 +120,7 @@ a(p);
|
|
|
120
120
|
function y(e) {
|
|
121
121
|
return (r) => !i(r) || (!/\s/.test(r) || r instanceof Date) && +r >= +n(e);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function T(e) {
|
|
124
124
|
return {
|
|
125
125
|
$validator: y(e),
|
|
126
126
|
$message: (r) => {
|
|
@@ -138,12 +138,12 @@ function I(e) {
|
|
|
138
138
|
a(/(^[0-9]*$)|(^-[0-9]+$)/);
|
|
139
139
|
a(/^[-]?\d*(\.\d+)?$/);
|
|
140
140
|
export {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
I as a,
|
|
142
|
+
L as b,
|
|
143
|
+
T as c,
|
|
144
144
|
A as e,
|
|
145
|
-
|
|
145
|
+
q as m,
|
|
146
146
|
b as n,
|
|
147
147
|
V as r,
|
|
148
|
-
|
|
148
|
+
S as s
|
|
149
149
|
};
|