@cling-se/widget 0.19.3 → 0.19.5
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 +18 -2
- package/dist/{AddClientCallout-DuuNDL4D.js → AddClientCallout-B3NbV9vX.js} +10 -10
- package/dist/{AnswerModal-D3EqaCFZ.js → AnswerModal-C_at-56v.js} +3 -3
- package/dist/{AttachmentItem-kRFxlzlC.js → AttachmentItem-C4kyomn3.js} +19 -19
- package/dist/{BaseUpload-BxYInU7o.js → BaseUpload-Z3O2bebR.js} +2 -2
- package/dist/{BlockMedia--73N_Of0.js → BlockMedia-BSGtFCsS.js} +14 -14
- package/dist/{CCallout-ChKgPAm2.js → CCallout-DRBCakh2.js} +2 -2
- package/dist/{CCurrencyDropdown-GcQqVqCs.js → CCurrencyDropdown-CyFge_fD.js} +10 -10
- package/dist/{CDropdownItem-CrGOya-D.js → CDropdownItem-BWmAQwpG.js} +20 -20
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CyUMgjqE.js → CFormField.vue_vue_type_script_setup_true_lang-DzcNo15Q.js} +59 -59
- package/dist/{CPhoneFormat-d9r8v4kT.js → CPhoneFormat-D-BGsI3p.js} +1 -1
- package/dist/{CPhoneInput-DbDLU0AC.js → CPhoneInput-Dl7BSG8y.js} +34 -34
- package/dist/{CPriceInput-BqOw7bdS.js → CPriceInput-C8Os9b3V.js} +5 -5
- package/dist/{CSelect-BwpgSn0z.js → CSelect-DXAAKhB6.js} +6 -6
- package/dist/{CSkeleton.vue_vue_type_script_setup_true_lang-C3CzyV_p.js → CSkeleton.vue_vue_type_script_setup_true_lang-D_ZP_7FL.js} +1 -1
- package/dist/{ClientAutocomplete-CvpqyHTG.js → ClientAutocomplete-0XPP0tZr.js} +19 -19
- package/dist/{ClientModal-CYTMaWid.js → ClientModal-Ddv5YiOD.js} +24 -24
- package/dist/{ColorPicker-CEpFbxOm.js → ColorPicker-ClWlJZqh.js} +17 -17
- package/dist/{CompanyModal-BN3P5pxH.js → CompanyModal-CdisHhTQ.js} +10 -10
- package/dist/{ContentWrapper-CxL1K8Pf.js → ContentWrapper-BZ_ff5l9.js} +20 -22
- package/dist/{CoverBlockSettings-buQlTBr8.js → CoverBlockSettings-C3F4jTwa.js} +33 -33
- package/dist/{DocAnswer-DniRIWLM.js → DocAnswer-BkbWkje5.js} +2 -2
- package/dist/{DocDetails-DQlItuAy.js → DocDetails-DxUXsbDV.js} +57 -57
- package/dist/{DocForm-DPnYrMM6.js → DocForm-CABBteE8.js} +26 -26
- package/dist/{DocFormSend-DDWp03Z4.js → DocFormSend-xGIxXjxv.js} +2 -2
- package/dist/{DocLinks-B_WHyJXJ.js → DocLinks-D01zyA-z.js} +2 -2
- package/dist/{DocModalBase-DMoFbE_V.js → DocModalBase-DfrPL4tZ.js} +1 -1
- package/dist/{DocPrint-CJnCR4sj.js → DocPrint-BSKYDCQc.js} +11 -11
- package/dist/{DocReceipt-CLEzesSd.js → DocReceipt-D5Oqb1cC.js} +12 -12
- package/dist/{DocSendReminder-eVB0EpW3.js → DocSendReminder-IbCLg9tW.js} +13 -13
- package/dist/{DocTextEditor-DiiBwSqL.js → DocTextEditor-BVba4QPz.js} +8 -8
- package/dist/{DocTimeline-bTf4PXFt.js → DocTimeline-CaX19zwg.js} +19 -19
- package/dist/{DocumentClient-BliWFKWD.js → DocumentClient-DSQnO5KJ.js} +5 -5
- package/dist/{DocumentLayout-BYF8MkQ6.js → DocumentLayout-CkNcKcB_.js} +31 -31
- package/dist/{DocumentLogotype-CoAoOKFT.js → DocumentLogotype-DAVtl6S_.js} +4 -4
- package/dist/{DocumentVoided-BoE_3xZ-.js → DocumentVoided-DZYqqkrE.js} +1 -1
- package/dist/{EmbedInput-BY9Tk0Fn.js → EmbedInput-BpVkRhg5.js} +8 -8
- package/dist/{EmbedSettings-o4XPxFEg.js → EmbedSettings-BHjex6QD.js} +3 -3
- package/dist/{ErrorCallout-YB_Cq8zQ.js → ErrorCallout-B9TlMH-g.js} +1 -1
- package/dist/{FilePreviewModal-Bb88xu1a.js → FilePreviewModal-DP6yokyq.js} +13 -13
- package/dist/{Flag-BxyVrkyQ.js → Flag-D3GdVwWB.js} +1 -1
- package/dist/{HeaderSettings-bLIJeluc.js → HeaderSettings-sb4vPDsi.js} +35 -35
- package/dist/{ImageSelectModal-BvJoFbVg.js → ImageSelectModal-CicYONc-.js} +3 -3
- package/dist/{ImageUploadWrapper-Cg5PXmyH.js → ImageUploadWrapper-CLq06imX.js} +2 -2
- package/dist/{Index-DxOS1Bcc.js → Index--erm1oIh.js} +4 -4
- package/dist/{Index-7wOqPn5F.js → Index-0JuAv1tp.js} +16 -16
- package/dist/Index-0imHv6b4.js +52 -0
- package/dist/{Index-BfTkhsEB.js → Index-2jg0DL-m.js} +4 -4
- package/dist/{Index-8buSki3l.js → Index-6H0VT88W.js} +1 -1
- package/dist/{Index-BBIJa9tx.js → Index-AjcnSKQD.js} +19 -19
- package/dist/Index-B5zszB2v.js +4 -0
- package/dist/{Index-BHE3BADD.js → Index-BHvpY8xR.js} +2 -2
- package/dist/{Index-Y--RuSty.js → Index-BIrwUJlj.js} +12 -12
- package/dist/{Index-CKm-Ab2J.js → Index-BU2qksFA.js} +3 -3
- package/dist/{Index-DaDw8sm-.js → Index-BWTeXf8h.js} +4 -4
- package/dist/{Index-Cfuzo8uM.js → Index-Be0qeiZi.js} +10 -10
- package/dist/{Index-yczwn2__.js → Index-BePivEDQ.js} +3 -3
- package/dist/{Index-PIl16ugG.js → Index-Bf3O-9-j.js} +6 -6
- package/dist/{Index-CmKBuzvS.js → Index-BpObvjSu.js} +5 -5
- package/dist/{Index-D6qezTjd.js → Index-BrIFaQcB.js} +13 -13
- package/dist/{Index-tSL4w68e.js → Index-BsM0XvZj.js} +24 -23
- package/dist/{Index-u8OyhXD6.js → Index-BtECdggQ.js} +5 -5
- package/dist/{Index-4EhAq9jD.js → Index-CmDRJ5Xr.js} +17 -17
- package/dist/{Index-D0m02lsA.js → Index-CoadaoP0.js} +1 -1
- package/dist/{Index-nbUT4Y0t.js → Index-CpGzRzMp.js} +3 -3
- package/dist/{Index-Bpz-Fyp-.js → Index-CzqNrUn3.js} +2 -2
- package/dist/{Index-B9QJAmKi.js → Index-DGLmjotr.js} +2 -2
- package/dist/{Index-I_htzZi9.js → Index-DH9dMzsw.js} +6 -6
- package/dist/{Index-B1W3BsnU.js → Index-DO8qwrXi.js} +10 -10
- package/dist/{Index-CLmpmEm1.js → Index-DPF_0b3a.js} +14 -15
- package/dist/{Index-DA_DXCrr.js → Index-DdlkzMzM.js} +22 -22
- package/dist/{Index-Btz58lgU.js → Index-DijI5XXh.js} +2 -2
- package/dist/{Index-2i28IE9s.js → Index-DnnRIESN.js} +7 -7
- package/dist/{Index-DFutxc_k.js → Index-Dv0eryvg.js} +4 -4
- package/dist/{Index-Sdko3L9J.js → Index-KZslz-16.js} +23 -24
- package/dist/{Index-BV5EPUqw.js → Index-RhHHrJtM.js} +6 -7
- package/dist/{Index-BVvlz0QZ.js → Index-SXJlaLRr.js} +19 -19
- package/dist/{Index-BPkIQhtP.js → Index-szvZl8G-.js} +4 -4
- package/dist/{Index.vue_vue_type_script_lang-DQvhsOS6.js → Index.vue_vue_type_script_lang-CXjOi3FM.js} +2 -2
- package/dist/{InputToggleRow-d20mUVX2.js → InputToggleRow-3992FkvA.js} +5 -5
- package/dist/{ManualPopover-Cj5mxzND.js → ManualPopover-UiHhIKuw.js} +5 -5
- package/dist/{MediaWrapper-DWUR2K0S.js → MediaWrapper-BlaBWAWe.js} +5 -5
- package/dist/{NotBindingText-Dj7llcNG.js → NotBindingText-C14r7OLr.js} +2 -2
- package/dist/{PackageGroup-BNuMEute.js → PackageGroup-ClZiyb95.js} +23 -23
- package/dist/{PdfTerms-DdHFdJF8.js → PdfTerms-CbVKGNxc.js} +6 -6
- package/dist/{PdfViewer-w58AEZEU.js → PdfViewer-B_7DfQr7.js} +59 -59
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-DAy6tOo4.js → PlainHtml.vue_vue_type_script_setup_true_lang-BM9WSi7y.js} +1 -1
- package/dist/{PriceHeader-BBSS5378.js → PriceHeader-DRkCMuGD.js} +74 -74
- package/dist/{SearchApi-DiNXQk3K.js → SearchApi-6-uNsMl8.js} +3 -3
- package/dist/{SendForm-CRCrqy3V.js → SendForm-DnwHPbWV.js} +13 -13
- package/dist/{Setup-ClnyQJWX.js → Setup-Dz3ZCvFw.js} +1 -1
- package/dist/{SmartList-ICs2gnpw.js → SmartList-7RooD2fY.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DJO7tWIs.js → Sortable.vue_vue_type_script_setup_true_lang-cAzUeXVM.js} +92 -92
- package/dist/{TermsSettings-BDBrMOTk.js → TermsSettings-BEB2t3Ut.js} +29 -29
- package/dist/{ThemeColorRow-ye4CbnQe.js → ThemeColorRow-XE9QcVAy.js} +8 -8
- package/dist/{ToggleBinding-CCVOOpHC.js → ToggleBinding-BeXQfpcK.js} +4 -4
- package/dist/{UploadModal-CE3Gyz8g.js → UploadModal-pRlJXk-Y.js} +12 -12
- package/dist/{VideoPlayerInput-DcYaE3Xn.js → VideoPlayerInput-qankN5Ed.js} +7 -7
- package/dist/{VideoPlayerSettings-DTP_f2k2.js → VideoPlayerSettings-WijGYtE2.js} +2 -2
- package/dist/{VideoSelectModal-D4VpAg8Z.js → VideoSelectModal-Dhb7CmVu.js} +10 -10
- package/dist/{focusDrawerMixin-Dmt0M_ez.js → focusDrawerMixin-DELQ4Leq.js} +1 -1
- package/dist/{formDrawerState-BTI6RBrh.js → formDrawerState-D_OOByIg.js} +1 -1
- package/dist/{helpers-BipYFMq7.js → helpers-BnYWgq30.js} +1 -1
- package/dist/{index-BsNrnPKD.js → index-6175cimw.js} +5 -5
- package/dist/{index-CrYE_wD5.js → index-BGFTOrwb.js} +69 -77
- package/dist/{index-CAX6ZePf.js → index-BIWUM14f.js} +1 -1
- package/dist/{index-BLB7xfoK.js → index-CFD_4fv_.js} +41 -41
- package/dist/{index-mN_zKU2T.js → index-DRINkuNg.js} +7 -18
- package/dist/{index-k3WjZPJe.js → index-KcSRVleg.js} +26 -26
- package/dist/{index-Bei9XuEH.js → index-P4A85Ytd.js} +27 -27
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +145 -145
- package/dist/{main-C3pW_mbm.js → main-q_EWffDQ.js} +9169 -9201
- package/dist/{mapFormMixin-CxDDheFN.js → mapFormMixin-DjPlsXfr.js} +15 -15
- package/dist/omit-DWur9Ujv.js +56 -0
- package/dist/{publicSenderState-CDeVVN6w.js → publicSenderState-BkZVvtJm.js} +1 -1
- package/dist/{splitpanes-Co3TdG3A.js → splitpanes-BR5qxnsj.js} +1 -1
- package/dist/{template-CERxPxb1.js → template-CQlJbqXR.js} +1 -1
- package/dist/{tippy.esm-x-zxHTNy.js → tippy.esm-BABwSp3j.js} +7 -7
- package/dist/{useTermsModal-C01kFCTx.js → useTermsModal-Bj2B-TdQ.js} +6 -6
- package/dist/{utils-BIrpSTl7.js → utils-C53ntVIe.js} +1 -1
- package/dist/{validation-uD43rMVf.js → validation-u_PNxOm8.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +5 -5
- package/dist/Index-C8LrEVrS.js +0 -52
- package/dist/Index-CtDVS-ts.js +0 -4
- package/dist/omit-CCSRNlMn.js +0 -56
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { h as I,
|
|
2
|
-
import { i as H } from "./DocumentLayout-
|
|
3
|
-
import { _ as W } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { B as A } from "./DocTextEditor-
|
|
5
|
-
import { u as
|
|
6
|
-
import { r as
|
|
7
|
-
import { S as Q } from "./SmartList-
|
|
8
|
-
import { w as X } from "./CDropdownItem-
|
|
1
|
+
import { h as I, bh as q, R as V, e as r, j as w, o, b as f, s as i, K as $, c as g, ad as k, bi as L, f as C, w as p, L as N, _ as x, ai as P, S as G, m as D, a as B, g as T, y as b, d as m, H as M, v as _, a7 as O, aj as R, F as j, k as z, n as U } from "./main-q_EWffDQ.js";
|
|
2
|
+
import { i as H } from "./DocumentLayout-CkNcKcB_.js";
|
|
3
|
+
import { _ as W } from "./CFormField.vue_vue_type_script_setup_true_lang-DzcNo15Q.js";
|
|
4
|
+
import { B as A } from "./DocTextEditor-BVba4QPz.js";
|
|
5
|
+
import { u as K } from "./index-CFD_4fv_.js";
|
|
6
|
+
import { r as F, b as J } from "./index-BIWUM14f.js";
|
|
7
|
+
import { S as Q } from "./SmartList-7RooD2fY.js";
|
|
8
|
+
import { w as X } from "./CDropdownItem-BWmAQwpG.js";
|
|
9
9
|
const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-container" }, te = /* @__PURE__ */ I({
|
|
10
10
|
__name: "ContextModal",
|
|
11
11
|
props: {
|
|
@@ -13,18 +13,18 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["show", "hide"],
|
|
15
15
|
setup(e, { emit: t }) {
|
|
16
|
-
const v = t, { rootChild: u } = q(), s =
|
|
16
|
+
const v = t, { rootChild: u } = q(), 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
|
-
const
|
|
23
|
-
return w(H) ? (
|
|
24
|
-
i("div", { onClick:
|
|
22
|
+
const h = r("VDropdown");
|
|
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(L, {
|
|
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(L, {
|
|
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__ */
|
|
70
|
+
}), se = /* @__PURE__ */ x(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: {
|
|
@@ -142,16 +142,16 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
142
142
|
},
|
|
143
143
|
setup() {
|
|
144
144
|
return {
|
|
145
|
-
v$:
|
|
145
|
+
v$: K()
|
|
146
146
|
};
|
|
147
147
|
},
|
|
148
148
|
validations: {
|
|
149
149
|
name: {
|
|
150
|
-
required:
|
|
151
|
-
maxLength:
|
|
150
|
+
required: F,
|
|
151
|
+
maxLength: J(255)
|
|
152
152
|
},
|
|
153
153
|
textContent: {
|
|
154
|
-
required:
|
|
154
|
+
required: F
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
computed: {
|
|
@@ -160,7 +160,7 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
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
|
+
...B({
|
|
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,
|
|
238
|
-
const n = r("CButton"), d = r("Spinner"), c = r("CInput"),
|
|
239
|
-
return
|
|
240
|
-
v.showFixedCloseButton ? (
|
|
237
|
+
function re(e, t, v, u, s, a) {
|
|
238
|
+
const n = r("CButton"), d = r("Spinner"), c = r("CInput"), h = r("CField"), y = r("BaseTextEditor");
|
|
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 ? (
|
|
250
|
-
m(
|
|
249
|
+
])) : e.templateMessage !== void 0 ? (o(), f("form", ie, [
|
|
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(() => [
|
|
@@ -262,9 +262,9 @@ function re(e, t, v, u, s, o) {
|
|
|
262
262
|
]),
|
|
263
263
|
_: 1
|
|
264
264
|
}, 8, ["validator", "messages", "label"]),
|
|
265
|
-
m(
|
|
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,36 +280,36 @@ 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
|
+
M(_(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
|
+
M(_(e.$t("_common:remove")), 1)
|
|
306
306
|
]),
|
|
307
307
|
_: 1
|
|
308
308
|
}, 8, ["loading"])) : C("", !0)
|
|
309
309
|
])) : C("", !0)
|
|
310
310
|
]);
|
|
311
311
|
}
|
|
312
|
-
const de = /* @__PURE__ */
|
|
312
|
+
const de = /* @__PURE__ */ x(ae, [["render", re], ["__scopeId", "data-v-286de2c9"]]), me = {
|
|
313
313
|
name: "TextTemplatesModal",
|
|
314
314
|
components: {
|
|
315
315
|
SmartList: Q,
|
|
@@ -327,7 +327,7 @@ const de = /* @__PURE__ */ M(oe, [["render", re], ["__scopeId", "data-v-286de2c9
|
|
|
327
327
|
};
|
|
328
328
|
},
|
|
329
329
|
computed: {
|
|
330
|
-
...
|
|
330
|
+
...R("templateMessages", {
|
|
331
331
|
templateMessages: (e) => e.data
|
|
332
332
|
}),
|
|
333
333
|
templates() {
|
|
@@ -365,14 +365,14 @@ const de = /* @__PURE__ */ M(oe, [["render", re], ["__scopeId", "data-v-286de2c9
|
|
|
365
365
|
}, pe = {
|
|
366
366
|
ref: "modal-container",
|
|
367
367
|
class: "font-inter t-modal"
|
|
368
|
-
}, ue = { class: "t-nav" }, ce = { class: "t-main" },
|
|
368
|
+
}, ue = { class: "t-nav" }, ce = { class: "t-main" }, he = { class: "t-list" }, fe = ["onMouseoverPassive", "onClick"], ve = {
|
|
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,
|
|
373
|
-
const n = r("CInput"), d = r("BaseTextEditor"), c = r("CIcon"),
|
|
374
|
-
return
|
|
375
|
-
items:
|
|
372
|
+
function Te(e, t, v, u, s, a) {
|
|
373
|
+
const n = r("CInput"), d = r("BaseTextEditor"), c = r("CIcon"), h = r("CButton"), y = r("SmartList");
|
|
374
|
+
return o(), g(y, {
|
|
375
|
+
items: a.templates,
|
|
376
376
|
"sort-key": "position",
|
|
377
377
|
query: s.query
|
|
378
378
|
}, {
|
|
@@ -392,29 +392,29 @@ function Te(e, t, v, u, s, o) {
|
|
|
392
392
|
}, null, 8, ["modelValue", "placeholder"])
|
|
393
393
|
]),
|
|
394
394
|
i("div", ce, [
|
|
395
|
-
i("div",
|
|
396
|
-
(
|
|
395
|
+
i("div", he, [
|
|
396
|
+
(o(!0), f(j, null, z(l, (S, E) => (o(), f("div", {
|
|
397
397
|
key: S.id,
|
|
398
|
-
class: U([{ selected: E === s.selectedIndex }, "t-list-item truncate
|
|
398
|
+
class: U([{ selected: E === s.selectedIndex }, "t-list-item w-full truncate"]),
|
|
399
399
|
onMouseoverPassive: () => s.selectedIndex = E,
|
|
400
|
-
onClick: (
|
|
401
|
-
}, _(S.name), 43,
|
|
400
|
+
onClick: (xe) => a.onSelect(l[s.selectedIndex].message || "")
|
|
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",
|
|
@@ -422,7 +422,7 @@ function Te(e, t, v, u, s, o) {
|
|
|
422
422
|
size: "small"
|
|
423
423
|
}, {
|
|
424
424
|
default: p(() => [
|
|
425
|
-
|
|
425
|
+
M(_(e.$t("handle")) + " ", 1),
|
|
426
426
|
m(c, {
|
|
427
427
|
type: "new-window",
|
|
428
428
|
size: "16",
|
|
@@ -431,13 +431,13 @@ function Te(e, t, v, u, s, o) {
|
|
|
431
431
|
]),
|
|
432
432
|
_: 1
|
|
433
433
|
})) : C("", !0),
|
|
434
|
-
m(
|
|
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
|
+
M(_(e.$t("create", { thing: e.$t("template") })), 1)
|
|
441
441
|
]),
|
|
442
442
|
_: 1
|
|
443
443
|
}, 8, ["onClick"])
|
|
@@ -448,18 +448,13 @@ function Te(e, t, v, u, s, o) {
|
|
|
448
448
|
_: 1
|
|
449
449
|
}, 8, ["items", "query"]);
|
|
450
450
|
}
|
|
451
|
-
const _e = /* @__PURE__ */
|
|
451
|
+
const _e = /* @__PURE__ */ x(me, [["render", Te], ["__scopeId", "data-v-e354b48d"]]), ye = {
|
|
452
452
|
name: "TextTemplates",
|
|
453
453
|
components: {
|
|
454
454
|
ContextModal: se,
|
|
455
455
|
TextTemplatesModal: _e
|
|
456
456
|
},
|
|
457
457
|
emits: ["open", "close", "select"],
|
|
458
|
-
inject: {
|
|
459
|
-
viewSettings: {
|
|
460
|
-
default: () => ({ isPublicForm: !1 })
|
|
461
|
-
}
|
|
462
|
-
},
|
|
463
458
|
props: {
|
|
464
459
|
placement: {
|
|
465
460
|
type: String,
|
|
@@ -467,20 +462,17 @@ const _e = /* @__PURE__ */ M(me, [["render", Te], ["__scopeId", "data-v-f299b0c2
|
|
|
467
462
|
}
|
|
468
463
|
},
|
|
469
464
|
created() {
|
|
470
|
-
this.
|
|
465
|
+
this.loadTemplateMessages();
|
|
471
466
|
},
|
|
472
467
|
methods: {
|
|
473
|
-
...
|
|
468
|
+
...B({
|
|
474
469
|
loadTemplateMessages: T.LOAD_TEMPLATE_MESSAGES
|
|
475
470
|
})
|
|
476
471
|
}
|
|
477
|
-
}, Se = {
|
|
478
|
-
|
|
479
|
-
class: "t-list"
|
|
480
|
-
}, $e = { class: "t-option main" };
|
|
481
|
-
function xe(e, t, v, u, s, o) {
|
|
472
|
+
}, Se = { class: "t-list" }, $e = { class: "t-option main" };
|
|
473
|
+
function Me(e, t, v, u, s, a) {
|
|
482
474
|
const n = r("TextTemplatesModal"), d = r("ContextModal");
|
|
483
|
-
return o
|
|
475
|
+
return o(), f("div", Se, [
|
|
484
476
|
m(d, {
|
|
485
477
|
"break-point": 1e3,
|
|
486
478
|
placement: v.placement,
|
|
@@ -490,7 +482,7 @@ function xe(e, t, v, u, s, o) {
|
|
|
490
482
|
popper: p(({ hide: c }) => [
|
|
491
483
|
m(n, {
|
|
492
484
|
onClose: c,
|
|
493
|
-
onSelect: t[0] || (t[0] = (
|
|
485
|
+
onSelect: t[0] || (t[0] = (h) => e.$emit("select", h))
|
|
494
486
|
}, null, 8, ["onClose"])
|
|
495
487
|
]),
|
|
496
488
|
default: p(() => [
|
|
@@ -500,9 +492,9 @@ function xe(e, t, v, u, s, o) {
|
|
|
500
492
|
]),
|
|
501
493
|
_: 3
|
|
502
494
|
}, 8, ["placement"])
|
|
503
|
-
])
|
|
495
|
+
]);
|
|
504
496
|
}
|
|
505
|
-
const Ie = /* @__PURE__ */
|
|
497
|
+
const Ie = /* @__PURE__ */ x(ye, [["render", Me]]);
|
|
506
498
|
export {
|
|
507
499
|
Ie as default
|
|
508
500
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { Q as ie, R as O, T as ce, U as P, V as A, r as D, W as de, i as h, X as $e, Y as fe, j as g, Z as z, x as B, $ as M } from "./main-q_EWffDQ.js";
|
|
2
|
+
function W(t, a) {
|
|
3
3
|
var n = Object.keys(t);
|
|
4
4
|
if (Object.getOwnPropertySymbols) {
|
|
5
5
|
var e = Object.getOwnPropertySymbols(t);
|
|
@@ -12,9 +12,9 @@ function H(t, a) {
|
|
|
12
12
|
function w(t) {
|
|
13
13
|
for (var a = 1; a < arguments.length; a++) {
|
|
14
14
|
var n = arguments[a] != null ? arguments[a] : {};
|
|
15
|
-
a % 2 ?
|
|
15
|
+
a % 2 ? W(Object(n), !0).forEach(function(e) {
|
|
16
16
|
ve(t, e, n[e]);
|
|
17
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
17
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : W(Object(n)).forEach(function(e) {
|
|
18
18
|
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
|
|
19
19
|
});
|
|
20
20
|
}
|
|
@@ -28,7 +28,7 @@ function ve(t, a, n) {
|
|
|
28
28
|
writable: !0
|
|
29
29
|
}) : t[a] = n, t;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function U(t) {
|
|
32
32
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
33
33
|
return Object.keys(t).reduce((n, e) => (a.includes(e) || (n[e] = g(t[e])), n), {});
|
|
34
34
|
}
|
|
@@ -38,7 +38,7 @@ function _(t) {
|
|
|
38
38
|
function ge(t) {
|
|
39
39
|
return $e(t) || fe(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Z(t, a, n) {
|
|
42
42
|
let e = t;
|
|
43
43
|
const s = a.split(".");
|
|
44
44
|
for (let u = 0; u < s.length; u++) {
|
|
@@ -48,22 +48,22 @@ function q(t, a, n) {
|
|
|
48
48
|
return e;
|
|
49
49
|
}
|
|
50
50
|
function T(t, a, n) {
|
|
51
|
-
return h(() => t.some((e) =>
|
|
51
|
+
return h(() => t.some((e) => Z(a, e, {
|
|
52
52
|
[n]: !1
|
|
53
53
|
})[n]));
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function H(t, a, n) {
|
|
56
56
|
return h(() => t.reduce((e, s) => {
|
|
57
|
-
const u =
|
|
57
|
+
const u = Z(a, s, {
|
|
58
58
|
[n]: !1
|
|
59
59
|
})[n] || [];
|
|
60
60
|
return e.concat(u);
|
|
61
61
|
}, []));
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function q(t, a, n, e) {
|
|
64
64
|
return t.call(e, g(a), g(n), e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function J(t) {
|
|
67
67
|
return t.$valid !== void 0 ? !t.$valid : !t;
|
|
68
68
|
}
|
|
69
69
|
function me(t, a, n, e, s, u, m) {
|
|
@@ -73,17 +73,17 @@ function me(t, a, n, e, s, u, m) {
|
|
|
73
73
|
} = s, l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], f = arguments.length > 8 ? arguments[8] : void 0, $ = arguments.length > 9 ? arguments[9] : void 0, p = arguments.length > 10 ? arguments[10] : void 0;
|
|
74
74
|
const v = O(!!e.value), r = O(0);
|
|
75
75
|
n.value = !1;
|
|
76
|
-
const c =
|
|
76
|
+
const c = P([a, e].concat(l, p), () => {
|
|
77
77
|
if (i && !e.value || d && !$.value && !n.value)
|
|
78
78
|
return;
|
|
79
79
|
let o;
|
|
80
80
|
try {
|
|
81
|
-
o =
|
|
81
|
+
o = q(t, a, f, m);
|
|
82
82
|
} catch (y) {
|
|
83
83
|
o = Promise.reject(y);
|
|
84
84
|
}
|
|
85
85
|
r.value++, n.value = !!r.value, v.value = !1, Promise.resolve(o).then((y) => {
|
|
86
|
-
r.value--, n.value = !!r.value, u.value = y, v.value =
|
|
86
|
+
r.value--, n.value = !!r.value, u.value = y, v.value = J(y);
|
|
87
87
|
}).catch((y) => {
|
|
88
88
|
r.value--, n.value = !!r.value, u.value = y, v.value = !0;
|
|
89
89
|
});
|
|
@@ -106,8 +106,8 @@ function he(t, a, n, e, s, u, m, i) {
|
|
|
106
106
|
return !1;
|
|
107
107
|
let p = !0;
|
|
108
108
|
try {
|
|
109
|
-
const v =
|
|
110
|
-
s.value = v, p =
|
|
109
|
+
const v = q(t, a, m, u);
|
|
110
|
+
s.value = v, p = J(v);
|
|
111
111
|
} catch (v) {
|
|
112
112
|
s.value = v;
|
|
113
113
|
}
|
|
@@ -130,10 +130,10 @@ function pe(t, a, n, e, s, u, m, i, d, l, f) {
|
|
|
130
130
|
} = he(t.$validator, a, n, e, v, s, d, l);
|
|
131
131
|
const o = t.$message;
|
|
132
132
|
return {
|
|
133
|
-
$message: _(o) ? h(() => o(
|
|
133
|
+
$message: _(o) ? h(() => o(U({
|
|
134
134
|
$pending: $,
|
|
135
135
|
$invalid: r,
|
|
136
|
-
$params:
|
|
136
|
+
$params: U(p),
|
|
137
137
|
$model: a,
|
|
138
138
|
$response: v,
|
|
139
139
|
$validator: u,
|
|
@@ -307,13 +307,13 @@ function S(t) {
|
|
|
307
307
|
return e ? R ? g(R[e]) : void 0 : R;
|
|
308
308
|
}), N = Oe($, o, e, m, f, c, d, F, n), b = Ee(p, o, f, m, c, d, F), k = {};
|
|
309
309
|
r && Object.entries(r).forEach((R) => {
|
|
310
|
-
let [
|
|
311
|
-
k[
|
|
310
|
+
let [C, E] = R;
|
|
311
|
+
k[C] = {
|
|
312
312
|
$invalid: T(E, b, "$invalid"),
|
|
313
313
|
$error: T(E, b, "$error"),
|
|
314
314
|
$pending: T(E, b, "$pending"),
|
|
315
|
-
$errors:
|
|
316
|
-
$silentErrors:
|
|
315
|
+
$errors: H(E, b, "$errors"),
|
|
316
|
+
$silentErrors: H(E, b, "$silentErrors")
|
|
317
317
|
};
|
|
318
318
|
});
|
|
319
319
|
const {
|
|
@@ -331,11 +331,11 @@ function S(t) {
|
|
|
331
331
|
get: () => g(o),
|
|
332
332
|
set: (R) => {
|
|
333
333
|
V.value = !0;
|
|
334
|
-
const
|
|
335
|
-
E && (E[e] = y[e]), A(
|
|
334
|
+
const C = g(n), E = g(l);
|
|
335
|
+
E && (E[e] = y[e]), A(C[e]) ? C[e].value = R : C[e] = R;
|
|
336
336
|
}
|
|
337
337
|
}) : null;
|
|
338
|
-
e && c.$autoDirty &&
|
|
338
|
+
e && c.$autoDirty && P(o, () => {
|
|
339
339
|
V.value || I();
|
|
340
340
|
const R = g(l);
|
|
341
341
|
R && (R[e] = y[e]);
|
|
@@ -343,10 +343,10 @@ function S(t) {
|
|
|
343
343
|
flush: "sync"
|
|
344
344
|
});
|
|
345
345
|
async function le() {
|
|
346
|
-
return I(), c.$rewardEarly && (G(), await
|
|
346
|
+
return I(), c.$rewardEarly && (G(), await M()), await M(), new Promise((R) => {
|
|
347
347
|
if (!L.value) return R(!x.value);
|
|
348
|
-
const
|
|
349
|
-
R(!x.value),
|
|
348
|
+
const C = P(L, () => {
|
|
349
|
+
R(!x.value), C();
|
|
350
350
|
});
|
|
351
351
|
});
|
|
352
352
|
}
|
|
@@ -409,8 +409,8 @@ class be {
|
|
|
409
409
|
const j = {
|
|
410
410
|
COLLECT_ALL: !0,
|
|
411
411
|
COLLECT_NONE: !1
|
|
412
|
-
},
|
|
413
|
-
function
|
|
412
|
+
}, Q = Symbol("vuelidate#injectChildResults"), X = Symbol("vuelidate#removeChildResults");
|
|
413
|
+
function Ce(t) {
|
|
414
414
|
let {
|
|
415
415
|
$scope: a,
|
|
416
416
|
instance: n
|
|
@@ -429,23 +429,23 @@ function Pe(t) {
|
|
|
429
429
|
s.value = s.value.filter(($) => $ !== f), delete e[f];
|
|
430
430
|
}
|
|
431
431
|
n.__vuelidateRemoveInstances = [].concat(n.__vuelidateRemoveInstances || [], i);
|
|
432
|
-
const d =
|
|
433
|
-
|
|
434
|
-
const l =
|
|
435
|
-
return
|
|
432
|
+
const d = z(Q, []);
|
|
433
|
+
B(Q, n.__vuelidateInjectInstances);
|
|
434
|
+
const l = z(X, []);
|
|
435
|
+
return B(X, n.__vuelidateRemoveInstances), {
|
|
436
436
|
childResults: u,
|
|
437
437
|
sendValidationResultsToParent: d,
|
|
438
438
|
removeValidationResultsFromParent: l
|
|
439
439
|
};
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function K(t) {
|
|
442
442
|
return new Proxy(t, {
|
|
443
443
|
get(a, n) {
|
|
444
|
-
return typeof a[n] == "object" ?
|
|
444
|
+
return typeof a[n] == "object" ? K(a[n]) : h(() => a[n]);
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
|
-
let
|
|
448
|
+
let Y = 0;
|
|
449
449
|
function je(t, a) {
|
|
450
450
|
var n;
|
|
451
451
|
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -458,12 +458,12 @@ function je(t, a) {
|
|
|
458
458
|
currentVueInstance: d
|
|
459
459
|
} = e;
|
|
460
460
|
const l = d || ((n = ie()) === null || n === void 0 ? void 0 : n.proxy), f = l ? l.$options : {};
|
|
461
|
-
s || (
|
|
461
|
+
s || (Y += 1, s = `_vuelidate_${Y}`);
|
|
462
462
|
const $ = O({}), p = new be(), {
|
|
463
463
|
childResults: v,
|
|
464
464
|
sendValidationResultsToParent: r,
|
|
465
465
|
removeValidationResultsFromParent: c
|
|
466
|
-
} = l ?
|
|
466
|
+
} = l ? Ce({
|
|
467
467
|
$scope: u,
|
|
468
468
|
instance: l
|
|
469
469
|
}) : {
|
|
@@ -472,7 +472,7 @@ function je(t, a) {
|
|
|
472
472
|
if (!t && f.validations) {
|
|
473
473
|
const o = f.validations;
|
|
474
474
|
a = O({}), ce(() => {
|
|
475
|
-
a.value = l,
|
|
475
|
+
a.value = l, P(() => _(o) ? o.call(a.value, new K(a.value)) : o, (y) => {
|
|
476
476
|
$.value = S({
|
|
477
477
|
validations: y,
|
|
478
478
|
state: a,
|
|
@@ -488,7 +488,7 @@ function je(t, a) {
|
|
|
488
488
|
}), e = f.validationsConfig || e;
|
|
489
489
|
} else {
|
|
490
490
|
const o = A(t) || ge(t) ? t : D(t || {});
|
|
491
|
-
|
|
491
|
+
P(o, (y) => {
|
|
492
492
|
$.value = S({
|
|
493
493
|
validations: y,
|
|
494
494
|
state: a,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _, o as c, b as d, s,
|
|
1
|
+
import { _, o as c, b as d, s, K as H, d as h, w as f, l as ce, f as k, a1 as ue, e as v, v as l, H as g, da as ee, A as L, cW as W, db as ve, dc as be, dd as Ce, de as ke, df as Pe, aD as J, dg as _e, p as T, ap as we, m as B, M as A, N as E, dh as Se, a as N, g as S, n as Z, F as $, k as V, O as D, P as Q, c as w, J as $e, ac as de, di as U, aj as Te, az as z, a7 as xe, dj as Ie, dk as Ee, dl as Me, dm as te, a8 as Le, y as X, ak as G, dn as ne, au as Ve, dp as He, cR as Be, h as Fe, ay as Ue } from "./main-q_EWffDQ.js";
|
|
2
2
|
import { a as P } from "./anime.es-4wvNItHq.js";
|
|
3
|
-
import { _ as De } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { C as Re } from "./CSelect-
|
|
5
|
-
import { b as Ae } from "./CDropdownItem-
|
|
3
|
+
import { _ as De } from "./CFormField.vue_vue_type_script_setup_true_lang-DzcNo15Q.js";
|
|
4
|
+
import { C as Re } from "./CSelect-DXAAKhB6.js";
|
|
5
|
+
import { b as Ae } from "./CDropdownItem-BWmAQwpG.js";
|
|
6
6
|
import { r as q } from "./regions-BdZt9Srn.js";
|
|
7
|
-
import { u as Oe } from "./index-
|
|
8
|
-
import { e as ze, r as qe, c as je, n as Ze, a as Ne, s as Ye } from "./index-
|
|
7
|
+
import { u as Oe } from "./index-CFD_4fv_.js";
|
|
8
|
+
import { e as ze, r as qe, c as je, n as Ze, a as Ne, s as Ye } from "./index-BIWUM14f.js";
|
|
9
9
|
import { a as We } from "./dom-DOcGU3-g.js";
|
|
10
10
|
const Qe = {
|
|
11
11
|
props: {
|
|
@@ -2574,8 +2574,7 @@ const fe = /* @__PURE__ */ _(yr, [["render", $r]]), Tr = {
|
|
|
2574
2574
|
...B({
|
|
2575
2575
|
feature: "application/feature",
|
|
2576
2576
|
subscription: "application/subscription",
|
|
2577
|
-
companyAccount: "application/companyAccount"
|
|
2578
|
-
stripeCustomDealToken: "settings/stripeCustomDealToken"
|
|
2577
|
+
companyAccount: "application/companyAccount"
|
|
2579
2578
|
}),
|
|
2580
2579
|
isPremium() {
|
|
2581
2580
|
return te.includes(this.subscription.type);
|
|
@@ -2604,17 +2603,7 @@ const fe = /* @__PURE__ */ _(yr, [["render", $r]]), Tr = {
|
|
|
2604
2603
|
},
|
|
2605
2604
|
canUseSms() {
|
|
2606
2605
|
return this.isPremiumLike ? !0 : !!this.subscription.freeSmsLeft;
|
|
2607
|
-
},
|
|
2608
|
-
openSubscription() {
|
|
2609
|
-
return "openSubscription" in this.$route.query;
|
|
2610
2606
|
}
|
|
2611
|
-
// Route query if subscription modal should be opened (the query just have to be specified, value does not matter)
|
|
2612
|
-
},
|
|
2613
|
-
created() {
|
|
2614
|
-
if (this.openSubscription) {
|
|
2615
|
-
const e = { ...this.$route.query };
|
|
2616
|
-
delete e.openSubscription, this.$router.replace({ ...this.$route, query: e }), this.openUpgradeModal();
|
|
2617
|
-
} else this.stripeCustomDealToken && this.openUpgradeModal();
|
|
2618
2607
|
},
|
|
2619
2608
|
methods: {
|
|
2620
2609
|
/**
|