@cling-se/widget 0.17.0 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AddClientCallout-e8d19R3f.js +101 -0
- package/dist/AnswerModal-BGvB8IVV.js +3291 -0
- package/dist/AttachmentItem-CkHbAm4l.js +171 -0
- package/dist/BaseUpload-BiJBcWRu.js +2472 -0
- package/dist/BlockMedia-CW5wgipC.js +103 -0
- package/dist/CCallout-Cy2eeIYd.js +104 -0
- package/dist/{CCurrencyDropdown-C2rXt2cJ.js → CCurrencyDropdown-DE_3CTjm.js} +91 -53
- package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
- package/dist/{CPhoneFormat-C8VPsiK6.js → CPhoneFormat-BS2nP9kc.js} +13 -21
- package/dist/CPhoneInput-Bf6329PO.js +207 -0
- package/dist/CPriceInput-d1yjuMQr.js +140 -0
- package/dist/CSelect-DgnT07Hk.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
- package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
- package/dist/ClientModal-BzWQtWSZ.js +1181 -0
- package/dist/ColorPicker-BvoFN8nu.js +1408 -0
- package/dist/CompanyModal-Bp4V_az9.js +250 -0
- package/dist/ContentWrapper-CuH6xKmo.js +265 -0
- package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
- package/dist/DocAnswer-BcNA_KEg.js +33 -0
- package/dist/DocDetails-CStEwWnU.js +448 -0
- package/dist/DocForm-BOoILf5E.js +6748 -0
- package/dist/DocFormSend-CQIf-HJY.js +171 -0
- package/dist/DocLinks-BRX5QzNe.js +36 -0
- package/dist/DocModalBase-D72yWj-x.js +29 -0
- package/dist/DocPrint-BI1LXUPE.js +399 -0
- package/dist/DocReceipt-DaZ4V76p.js +341 -0
- package/dist/DocSendReminder-DKGZlo7s.js +181 -0
- package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
- package/dist/DocTimeline-DCwofzuk.js +537 -0
- package/dist/DocumentClient-vJdxCB53.js +90 -0
- package/dist/DocumentLayout-CKSi42ev.js +1368 -0
- package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
- package/dist/DocumentVoided-CRX2WxWO.js +33 -0
- package/dist/EmbedInput-B-oeC4Wy.js +157 -0
- package/dist/EmbedSettings-B9Yka2yB.js +103 -0
- package/dist/ErrorCallout-B_ygH33E.js +34 -0
- package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
- package/dist/Flag-BwTgCNHO.js +41 -0
- package/dist/HeaderSettings-DvC7nlyY.js +720 -0
- package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
- package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
- package/dist/Index-0_3ULrWX.js +126 -0
- package/dist/Index-4NPe0sfX.js +629 -0
- package/dist/Index-B1uA0FF6.js +4 -0
- package/dist/Index-BBkCYm2q.js +201 -0
- package/dist/{Index-LzN6dktq.js → Index-BBwvo7S9.js} +10 -18
- package/dist/Index-BEMlsYwJ.js +68 -0
- package/dist/Index-BRBhJ6kz.js +21 -0
- package/dist/{Index-BPUYpfLJ.js → Index-BTFmHjUt.js} +47 -60
- package/dist/Index-BcUNnxLC.js +1098 -0
- package/dist/Index-Bo6ExBUL.js +93 -0
- package/dist/Index-BvMPCgdH.js +102 -0
- package/dist/Index-Bx5TOI9k.js +74 -0
- package/dist/Index-C7GZS8EI.js +16 -0
- package/dist/Index-CNWhm07R.js +25 -0
- package/dist/{Index-BUK-1yVR.js → Index-CQpznMKV.js} +9 -17
- package/dist/Index-CRzsnIij.js +159 -0
- package/dist/Index-CeSG1C41.js +140 -0
- package/dist/Index-CjfjdZj5.js +52 -0
- package/dist/Index-CskKmZpd.js +363 -0
- package/dist/Index-D5qwbCo1.js +28 -0
- package/dist/Index-D8Ae1Txt.js +228 -0
- package/dist/Index-DE8aenDB.js +3452 -0
- package/dist/Index-DI5EB5Rt.js +39 -0
- package/dist/Index-DaV57YPP.js +163 -0
- package/dist/Index-DbwkmoyM.js +38 -0
- package/dist/Index-Df9skok6.js +70 -0
- package/dist/{Index-BHJGfHm9.js → Index-DfLLA0ij.js} +313 -206
- package/dist/Index-Dw1CO5F9.js +76 -0
- package/dist/Index-PZXyOoVb.js +87 -0
- package/dist/{Index-BioOegOO.js → Index-ZUnH-BHj.js} +10 -18
- package/dist/Index-cjKGSiDi.js +136 -0
- package/dist/Index-m-goRuKD.js +49 -0
- package/dist/Index-rGeWbLcB.js +47 -0
- package/dist/Index-vrljNp6G.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
- package/dist/InputToggleRow-v6qAWPg6.js +99 -0
- package/dist/ManualPopover-BONBJIUA.js +57 -0
- package/dist/MediaWrapper-CXb2UGd9.js +18 -0
- package/dist/{NotBindingText-CM3FN0A6.js → NotBindingText-BqESO13N.js} +13 -17
- package/dist/PackageGroup-AIysVmyh.js +1058 -0
- package/dist/PdfTerms-BlhHdTu3.js +34 -0
- package/dist/PdfViewer-DwZ1rwlN.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
- package/dist/PriceHeader-C4XhnoA3.js +488 -0
- package/dist/SearchApi-B7lXgUY6.js +137 -0
- package/dist/SendForm-BcD0xSvB.js +7031 -0
- package/dist/Setup-C2qaYDei.js +47 -0
- package/dist/{SmartList-DhhjSWLO.js → SmartList-DqG7Q5t7.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
- package/dist/{TermsSettings-BEQwmkFH.js → TermsSettings-BOCONyM4.js} +169 -56
- package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
- package/dist/ToggleBinding-7oq_oXPt.js +44 -0
- package/dist/UploadModal-C_X2NjVY.js +134 -0
- package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
- package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
- package/dist/VideoSelectModal-CW0OweCw.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{debounce-D0hKNU85.js → debounce-DNl99Gyo.js} +10 -10
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-C_aTLmK0.js → focusDrawerMixin-BwcErMDY.js} +1 -1
- package/dist/{formDrawerState-Da4mcbab.js → formDrawerState-DaurePnd.js} +2 -2
- package/dist/helpers-CPW--XIz.js +44 -0
- package/dist/index-BjiGCJPI.js +149 -0
- package/dist/index-CFNv6OvX.js +188 -0
- package/dist/index-Cx71On5Z.js +508 -0
- package/dist/index-DKMxIBz_.js +270 -0
- package/dist/index-DKf5SGLD.js +125 -0
- package/dist/index-E32WgUp9.js +3525 -0
- package/dist/index-kp-GC5I0.js +513 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +285 -1485
- package/dist/{main-BgzLHIoo.js → main-Cb-nyil1.js} +41414 -42507
- package/dist/mapFormMixin-D3BihYWW.js +1544 -0
- package/dist/omit--YYr41Xp.js +31 -0
- package/dist/{publicSenderState-DB4BHByV.js → publicSenderState-CdRW_Wwp.js} +4 -4
- package/dist/splitpanes-D-ThFkeR.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-BvaNnq-g.js +1493 -0
- package/dist/{throttle-DT2UVOqm.js → throttle-D-bUGaVh.js} +2 -2
- package/dist/tippy.esm-BmKNqohP.js +1994 -0
- package/dist/useTermsModal-Dhf6_eYb.js +87 -0
- package/dist/{utils-nos8CB1L.js → utils-CBPcYdLv.js} +8 -11
- package/dist/validation-DOcUOoMe.js +40 -0
- package/package.json +18 -21
- package/dist/AddClientCallout-BJzBdba1.js +0 -48
- package/dist/AnswerModal-frHq1g4s.js +0 -3874
- package/dist/AttachmentItem-BaN0OrEV.js +0 -85
- package/dist/BaseDatePicker-B-AfdrSb.js +0 -3187
- package/dist/BaseUpload-CY3lTcte.js +0 -1977
- package/dist/BlockMedia-Bb5wQIDg.js +0 -76
- package/dist/CCallout-5quI6yyk.js +0 -58
- package/dist/CDropdownItem-CaoSQX6X.js +0 -640
- package/dist/CFormField-Dd2Y71JG.js +0 -240
- package/dist/CPhoneInput-BU1t6eo_.js +0 -138
- package/dist/CPriceInput-pv2aIVkH.js +0 -116
- package/dist/CSelect-CrM45B7V.js +0 -91
- package/dist/CSkeleton-BkvONMqL.js +0 -55
- package/dist/ClientAutocomplete-BRXIKQSk.js +0 -438
- package/dist/ClientModal-CvHAptV2.js +0 -666
- package/dist/ColorPicker-RgoXRrud.js +0 -2879
- package/dist/CompanyModal-OL4bD9Gk.js +0 -147
- package/dist/ContentWrapper-8HduCnR4.js +0 -190
- package/dist/CoverBlockSettings-DUv8AcdX.js +0 -659
- package/dist/DocAnswer-DiyFfpT2.js +0 -36
- package/dist/DocDetails-BxNRfBnK.js +0 -263
- package/dist/DocForm-MGp-o0pu.js +0 -5017
- package/dist/DocFormSend-q_QuVCqh.js +0 -146
- package/dist/DocLinks-DGDdp30U.js +0 -38
- package/dist/DocModalBase-qG4RqwBn.js +0 -28
- package/dist/DocPrint-Cln3kt0g.js +0 -240
- package/dist/DocReceipt-nbsJ-ukZ.js +0 -217
- package/dist/DocSendReminder-B3qdqduf.js +0 -140
- package/dist/DocTextEditor-CQDnjnRY.js +0 -17193
- package/dist/DocTimeline-CgKHoDcG.js +0 -485
- package/dist/DocumentClient-UZlnIlz5.js +0 -136
- package/dist/DocumentLayout-Dvr4zgyF.js +0 -4880
- package/dist/DocumentLogotype-mAVgMRHr.js +0 -92
- package/dist/DocumentVoided-BXYNrf_6.js +0 -25
- package/dist/EmbedInput-YRUrw3c6.js +0 -117
- package/dist/EmbedSettings-DvRreF7H.js +0 -74
- package/dist/ErrorCallout-DVknpLVY.js +0 -27
- package/dist/FilePreviewModal-DC56FaGy.js +0 -81
- package/dist/Flag-D5iZLESg.js +0 -46
- package/dist/HeaderSettings-DXZnZL7A.js +0 -440
- package/dist/ImageSelectModal-Bu4_xZga.js +0 -86
- package/dist/ImageUploadWrapper-CtZhkAm1.js +0 -1604
- package/dist/Index-B1dJO6Bk.js +0 -54
- package/dist/Index-B3pz1coY.js +0 -150
- package/dist/Index-BHgW8EHW.js +0 -2446
- package/dist/Index-BNucs2O-.js +0 -154
- package/dist/Index-BW-EtZ1z.js +0 -55
- package/dist/Index-BjKACpun.js +0 -66
- package/dist/Index-C94BL4uU.js +0 -294
- package/dist/Index-CB57haU8.js +0 -58
- package/dist/Index-CP17iXT6.js +0 -25
- package/dist/Index-CUSbvjoD.js +0 -62
- package/dist/Index-CVnD6jo5.js +0 -25
- package/dist/Index-Ci5zdPeT.js +0 -28
- package/dist/Index-CikqSMjb.js +0 -41
- package/dist/Index-CxO4tJ3U.js +0 -26
- package/dist/Index-D4J4BpHd.js +0 -230
- package/dist/Index-DAQQQlut.js +0 -754
- package/dist/Index-DNxSR72J.js +0 -73
- package/dist/Index-DPuKRwmu.js +0 -41
- package/dist/Index-DSy8QG8T.js +0 -32
- package/dist/Index-DX6_D-J-.js +0 -77
- package/dist/Index-Dk0KaIKg.js +0 -643
- package/dist/Index-Hkzoh9QR.js +0 -24
- package/dist/Index-KsHJxWAa.js +0 -94
- package/dist/Index-TtItTuv6.js +0 -33
- package/dist/Index-YAD39Qvg.js +0 -146
- package/dist/Index-eh909lAz.js +0 -107
- package/dist/Index-otowKI_C.js +0 -56
- package/dist/Index-t_oVV8Rc.js +0 -84
- package/dist/Index-vG96oEXZ.js +0 -144
- package/dist/InputToggleRow-CcqJDguN.js +0 -57
- package/dist/ManualPopover-BE2IN-XU.js +0 -60
- package/dist/MediaWrapper-lnGUFiyc.js +0 -23
- package/dist/PackageGroup-BsmxOMLW.js +0 -704
- package/dist/PdfTerms-BgYwZoAZ.js +0 -31
- package/dist/PdfViewer-C0lDpjte.js +0 -383
- package/dist/PlainHtml-5YwYVj1v.js +0 -27
- package/dist/PriceHeader-CxqhpGS-.js +0 -338
- package/dist/SearchApi-BndaIbri.js +0 -161
- package/dist/SendForm-D7U9fG-5.js +0 -1023
- package/dist/Setup-CmAK2_ZT.js +0 -50
- package/dist/ThemeColorRow-BlnhzebY.js +0 -69
- package/dist/ToggleBinding-t_58JFya.js +0 -42
- package/dist/UploadModal-T-WpYNsN.js +0 -95
- package/dist/VideoPlayerInput-DKHKjMgX.js +0 -97
- package/dist/VideoPlayerSettings-DDMlUvSt.js +0 -61
- package/dist/VideoSelectModal-B9bbP0dd.js +0 -104
- package/dist/answerDocumentMixin-DXI_E5Kx.js +0 -51
- package/dist/dom-CWsqMElk.js +0 -71
- package/dist/formValidationMixin-WZ2lGndu.js +0 -49
- package/dist/index-B2l57ilt.js +0 -102
- package/dist/index-COKDjmM2.js +0 -167
- package/dist/index-HtKGcIng.js +0 -2700
- package/dist/index-LQ7NztTt.js +0 -81
- package/dist/index-fx5gR8fM.js +0 -351
- package/dist/index-zXXJrTvv.js +0 -492
- package/dist/mapFormMixin-CQgSN7dv.js +0 -3028
- package/dist/omit-ScS7B6c5.js +0 -31
- package/dist/simplebar.min-B0cB_p8g.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/tippy.esm-CR89mtdY.js +0 -1805
- package/dist/vuedraggable.umd-CkXXkt1b.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { C as r } from "./CFormField-Dd2Y71JG.js";
|
|
2
|
-
import { C as l } from "./CPhoneInput-BU1t6eo_.js";
|
|
3
|
-
import { w as c } from "./CDropdownItem-CaoSQX6X.js";
|
|
4
|
-
import { M as p, g as s, n as d } from "./main-BgzLHIoo.js";
|
|
5
|
-
import { v as o } from "./index-zXXJrTvv.js";
|
|
6
|
-
import { m as u, b as n, a as f } from "./vuex.esm-DKGl8mcw.js";
|
|
7
|
-
import { s as m, a as y } from "./publicSenderState-DB4BHByV.js";
|
|
8
|
-
const { mapFields: h } = p({
|
|
9
|
-
getterType: "forms/getField",
|
|
10
|
-
mutationType: "forms/updateField"
|
|
11
|
-
}), C = {
|
|
12
|
-
name: "CompanyModal",
|
|
13
|
-
components: {
|
|
14
|
-
CPhoneInput: l,
|
|
15
|
-
CField: r
|
|
16
|
-
},
|
|
17
|
-
mixins: [c],
|
|
18
|
-
props: {
|
|
19
|
-
inputFocusOnMount: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: ""
|
|
22
|
-
},
|
|
23
|
-
isPublicForm: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: !1
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
data() {
|
|
29
|
-
return {
|
|
30
|
-
isLoading: !1
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
validations: {
|
|
34
|
-
name: {
|
|
35
|
-
required: o.required
|
|
36
|
-
},
|
|
37
|
-
email: {
|
|
38
|
-
email: o.email
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
computed: {
|
|
42
|
-
...u({
|
|
43
|
-
isPostingCompany: "companies/isPosting",
|
|
44
|
-
isPostingUser: "companyUsers/isPosting",
|
|
45
|
-
hasChanged: "forms/hasChanged",
|
|
46
|
-
companyRegion: "application/companyRegion",
|
|
47
|
-
can: "application/can"
|
|
48
|
-
}),
|
|
49
|
-
...h({
|
|
50
|
-
company: "company",
|
|
51
|
-
user: "companyUser",
|
|
52
|
-
name: "company.name",
|
|
53
|
-
email: "companyUser.email",
|
|
54
|
-
firstName: "companyUser.firstname",
|
|
55
|
-
lastName: "companyUser.lastname",
|
|
56
|
-
cellphone: "companyUser.cellphone"
|
|
57
|
-
}),
|
|
58
|
-
...n("application", {
|
|
59
|
-
currentUserId: (i) => i.user.userId
|
|
60
|
-
}),
|
|
61
|
-
...n("forms", {
|
|
62
|
-
documentCompanyUserId: ({ document2: i }) => i && i.companyUserId
|
|
63
|
-
}),
|
|
64
|
-
isFullScreen() {
|
|
65
|
-
return this.mq === "sm";
|
|
66
|
-
},
|
|
67
|
-
isPosting() {
|
|
68
|
-
return this.isPostingCompany || this.isPostingUser;
|
|
69
|
-
},
|
|
70
|
-
notCurrentUser() {
|
|
71
|
-
return this.currentUserId !== this.documentCompanyUserId && !this.isPublicForm;
|
|
72
|
-
},
|
|
73
|
-
messages() {
|
|
74
|
-
const i = (e) => this.$t(`views:account.settings.company.validations.${e}`);
|
|
75
|
-
return {
|
|
76
|
-
name: {
|
|
77
|
-
required: i("name.required")
|
|
78
|
-
},
|
|
79
|
-
email: {
|
|
80
|
-
required: i("email.required"),
|
|
81
|
-
email: i("email.email")
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
created() {
|
|
87
|
-
this.loadForm();
|
|
88
|
-
},
|
|
89
|
-
mounted() {
|
|
90
|
-
this.$refs[this.inputFocusOnMount] ? this.$refs[this.inputFocusOnMount].$el.querySelector("input").focus() : this.$refs.name.$el.querySelector("input").focus();
|
|
91
|
-
},
|
|
92
|
-
methods: {
|
|
93
|
-
...f({
|
|
94
|
-
formEditCompany: s.FORM_EDIT_COMPANY,
|
|
95
|
-
formEditCompanyUser: s.FORM_EDIT_COMPANY_USER,
|
|
96
|
-
formSubmitCompany: s.FORM_SUBMIT_COMPANY,
|
|
97
|
-
formSubmitCompanyUser: s.FORM_SUBMIT_COMPANY_USER,
|
|
98
|
-
setForm: s.SET_FORM,
|
|
99
|
-
showMessage: s.SHOW_MESSAGE
|
|
100
|
-
}),
|
|
101
|
-
loadForm() {
|
|
102
|
-
this.isPublicForm ? (this.setForm({ key: "company", formData: m.company }), this.setForm({ key: "companyUser", formData: m.user })) : (this.formEditCompany({ props: ["name"] }), this.formEditCompanyUser({
|
|
103
|
-
id: this.documentCompanyUserId,
|
|
104
|
-
props: ["id", "firstname", "lastname", "cellphone", "email"]
|
|
105
|
-
}));
|
|
106
|
-
},
|
|
107
|
-
async save() {
|
|
108
|
-
this.$v.$touch(), !this.$v.$invalid && (this.isLoading = !0, this.isPublicForm ? y({ company: this.company, user: this.user }) : await Promise.all([
|
|
109
|
-
...this.hasChanged("company") ? [this.formSubmitCompany()] : [],
|
|
110
|
-
...this.hasChanged("companyUser") && this.currentUserId === this.documentCompanyUserId ? [this.formSubmitCompanyUser()] : []
|
|
111
|
-
]), this.$emit("close"), this.isLoading = !1);
|
|
112
|
-
},
|
|
113
|
-
close() {
|
|
114
|
-
this.$emit("close");
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
var g = function() {
|
|
119
|
-
var e = this, a = e._self._c;
|
|
120
|
-
return a("div", { staticClass: "font-inter", class: {
|
|
121
|
-
"full-screen": e.isFullScreen,
|
|
122
|
-
"modal-overlay": !0
|
|
123
|
-
}, on: { "&click": function(t) {
|
|
124
|
-
return t.target !== t.currentTarget ? null : e.close.apply(null, arguments);
|
|
125
|
-
} } }, [a("div", { staticClass: "modal-container", style: !e.isFullScreen && { padding: "calc(3 * var(--rem))" } }, [e.isFullScreen ? a("CButton", { staticClass: "modal-close", attrs: { pattern: "tertiary", type: "none", circle: "", icon: "x" }, on: { click: e.close } }) : e._e(), a("div", { staticClass: "form-client" }, [a("div", { staticStyle: { "font-weight": "600", "font-size": "21px", "padding-bottom": "calc(2.5 * var(--rem))" } }, [e._v(" " + e._s(e.$t("_common:edit", { thing: e.$t("_common:company") })) + " ")]), a("CField", { staticStyle: { "margin-bottom": "calc(1.5 * var(--rem))" }, attrs: { label: e.$t("_common:companyName").capitalize(), validator: e.$v.name, messages: e.messages.name, "label-position": "inside" } }, [a("CInput", { ref: "name", attrs: { disabled: e.isPublicForm ? !1 : !e.can("company", "modify"), placeholder: e.$t("_common:companyName").capitalize(), size: "medium" }, model: { value: e.name, callback: function(t) {
|
|
126
|
-
e.name = t;
|
|
127
|
-
}, expression: "name" } })], 1), a("CField", { staticStyle: { "margin-bottom": "calc(1.5 * var(--rem))" }, attrs: { label: e.$t("_common:firstName").capitalize(), "label-position": "inside" } }, [a("CInput", { ref: "reference", attrs: { disabled: e.notCurrentUser, placeholder: e.$t("_common:firstName").capitalize(), size: "medium" }, model: { value: e.firstName, callback: function(t) {
|
|
128
|
-
e.firstName = t;
|
|
129
|
-
}, expression: "firstName" } }), a("CField", { attrs: { label: e.$t("_common:lastName").capitalize(), "label-position": "inside" } }, [a("CInput", { attrs: { disabled: e.notCurrentUser, placeholder: e.$t("_common:lastName").capitalize(), size: "medium" }, model: { value: e.lastName, callback: function(t) {
|
|
130
|
-
e.lastName = t;
|
|
131
|
-
}, expression: "lastName" } })], 1)], 1), a("CField", { staticStyle: { "margin-bottom": "calc(1.5 * var(--rem))" }, attrs: { validator: e.$v.email, messages: e.messages.email, label: e.$t("_common:email").capitalize(), "label-position": "inside" } }, [a("CInput", { ref: "email", attrs: { disabled: !e.isPublicForm, placeholder: e.$t("_common:email").capitalize(), size: "medium" }, model: { value: e.email, callback: function(t) {
|
|
132
|
-
e.email = typeof t == "string" ? t.trim() : t;
|
|
133
|
-
}, expression: "email" } })], 1), a("CField", [a("CPhoneInput", { ref: "cellphone", attrs: { "default-region": e.companyRegion, disabled: e.notCurrentUser, label: e.$t("_common:cellphone").capitalize(), "label-position": "inside", size: "medium" }, model: { value: e.cellphone, callback: function(t) {
|
|
134
|
-
e.cellphone = t;
|
|
135
|
-
}, expression: "cellphone" } })], 1), a("CButton", { staticStyle: { "margin-top": "calc(3 * var(--rem))" }, attrs: { loading: e.isPosting, type: "secondary", wide: "", size: "medium" }, on: { click: e.save } }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:company") })) + " ")])], 1)], 1)]);
|
|
136
|
-
}, _ = [], b = /* @__PURE__ */ d(
|
|
137
|
-
C,
|
|
138
|
-
g,
|
|
139
|
-
_,
|
|
140
|
-
!1,
|
|
141
|
-
null,
|
|
142
|
-
"81c1ebb3"
|
|
143
|
-
);
|
|
144
|
-
const M = b.exports;
|
|
145
|
-
export {
|
|
146
|
-
M as default
|
|
147
|
-
};
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { m as s, t as r } from "./mapFormMixin-CQgSN7dv.js";
|
|
2
|
-
import { B as l } from "./BlockMedia-Bb5wQIDg.js";
|
|
3
|
-
import { T as i } from "./DocTextEditor-CQDnjnRY.js";
|
|
4
|
-
import { n, ah as c, H as u, K as p, J as m } from "./main-BgzLHIoo.js";
|
|
5
|
-
import { i as d } from "./i18nMessages-Chz_lxGG.js";
|
|
6
|
-
const f = {
|
|
7
|
-
name: "StaticComboLayout",
|
|
8
|
-
props: {
|
|
9
|
-
layout: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: !0
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
var _ = function() {
|
|
16
|
-
var t = this, e = t._self._c;
|
|
17
|
-
return ["horizontal"].includes(t.layout) ? e("div", { staticClass: "flex w-full flex-col", staticStyle: { flex: "1 1 auto", "min-height": "100%" } }, [t._t("logo"), e("div", { staticClass: "flex w-full flex-col justify-end", staticStyle: { flex: "1 1 auto" } }, [t._t("preText"), t._t("documentName"), t._t("postText")], 2)], 2) : e("div", { staticClass: "flex w-full flex-col justify-between", class: {
|
|
18
|
-
"items-center": t.layout === "center"
|
|
19
|
-
}, staticStyle: { flex: "1 1 auto", "min-height": "100%" } }, [t._t("logo"), e("div", { staticClass: "flex w-full flex-col justify-center", staticStyle: { flex: "1 1 auto" } }, [t._t("preText"), t._t("documentName")], 2), t._t("postText")], 2);
|
|
20
|
-
}, y = [], x = /* @__PURE__ */ n(
|
|
21
|
-
f,
|
|
22
|
-
_,
|
|
23
|
-
y,
|
|
24
|
-
!1,
|
|
25
|
-
null,
|
|
26
|
-
"8e41c57b"
|
|
27
|
-
);
|
|
28
|
-
const h = x.exports, v = {
|
|
29
|
-
name: "StaticLayout",
|
|
30
|
-
i18nOptions: {
|
|
31
|
-
namespaces: "staticLayout",
|
|
32
|
-
messages: d
|
|
33
|
-
},
|
|
34
|
-
components: {
|
|
35
|
-
DocumentLogotype: () => import("./DocumentLogotype-mAVgMRHr.js"),
|
|
36
|
-
StaticComboLayout: h,
|
|
37
|
-
TextEditor: i
|
|
38
|
-
},
|
|
39
|
-
mixins: [
|
|
40
|
-
s([
|
|
41
|
-
"layout",
|
|
42
|
-
"preText",
|
|
43
|
-
"documentName",
|
|
44
|
-
"postText",
|
|
45
|
-
"showLogo",
|
|
46
|
-
"logotype"
|
|
47
|
-
])
|
|
48
|
-
],
|
|
49
|
-
props: {
|
|
50
|
-
validator: {
|
|
51
|
-
type: Object,
|
|
52
|
-
default: () => ({})
|
|
53
|
-
},
|
|
54
|
-
hasHover: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: !1
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
computed: {
|
|
60
|
-
companyLogotype() {
|
|
61
|
-
var o, t;
|
|
62
|
-
return ((t = (o = this._document.sender) == null ? void 0 : o.company) == null ? void 0 : t.logotype) || "";
|
|
63
|
-
},
|
|
64
|
-
internalName: {
|
|
65
|
-
get() {
|
|
66
|
-
var o;
|
|
67
|
-
return this.documentName || `<p data-typography="title">${((o = this._document.data) == null ? void 0 : o.name) || ""}</p>`;
|
|
68
|
-
},
|
|
69
|
-
set(o) {
|
|
70
|
-
this.documentName = o, this.$emit("input", {
|
|
71
|
-
key: "data.name",
|
|
72
|
-
value: c(o).trim().slice(0, 255)
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
mentions() {
|
|
77
|
-
return () => this._document.textTemplateItems || [];
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
methods: {
|
|
81
|
-
mustacheToSpan: u,
|
|
82
|
-
spanToMustache: p,
|
|
83
|
-
interpolateString: m
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
var g = function() {
|
|
87
|
-
var t = this, e = t._self._c;
|
|
88
|
-
return e("div", { staticClass: "dont-break-out hyphens-auto flex w-full flex-col break-words", class: [`is-layout-${t.layout}`], staticStyle: { "word-wrap": "break-word", "word-break": "break-word" } }, [e("StaticComboLayout", { attrs: { layout: t.layout }, scopedSlots: t._u([{ key: "logo", fn: function() {
|
|
89
|
-
return [e("DocumentLogotype", { attrs: { "show-logo": t.showLogo, "company-logotype": t.companyLogotype, "has-hover": t.hasHover }, on: { "update:showLogo": function(a) {
|
|
90
|
-
t.showLogo = a;
|
|
91
|
-
}, "update:show-logo": function(a) {
|
|
92
|
-
t.showLogo = a;
|
|
93
|
-
} }, model: { value: t.logotype, callback: function(a) {
|
|
94
|
-
t.logotype = a;
|
|
95
|
-
}, expression: "logotype" } })];
|
|
96
|
-
}, proxy: !0 }, { key: "preText", fn: function() {
|
|
97
|
-
return [e("TextEditor", { key: "preText" + t.canEdit, ref: "preTextEditor", staticClass: "no-drag header-text", attrs: { value: t.canEdit ? t.mustacheToSpan(
|
|
98
|
-
t.preText,
|
|
99
|
-
t._document.textTemplateMap,
|
|
100
|
-
t._document._doc
|
|
101
|
-
) : t.interpolateString(t.preText, t._document._doc), mentions: t.mentions, snippets: !0, placeholder: t.$t("optional").capitalize(), static: "", unstyled: "" }, on: { input: function(a) {
|
|
102
|
-
t.preText = t.spanToMustache(a);
|
|
103
|
-
} } })];
|
|
104
|
-
}, proxy: !0 }, { key: "documentName", fn: function() {
|
|
105
|
-
return [e("div", { staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "700", margin: "calc(1 * var(--rem)) 0" } }, [t.canEdit ? e("TextEditor", { ref: "nameEditor", staticClass: "no-drag header-text", attrs: { value: t.internalName, extensions: {
|
|
106
|
-
bulletList: !0,
|
|
107
|
-
heading: [1, 2, 3],
|
|
108
|
-
bold: !0,
|
|
109
|
-
link: !0,
|
|
110
|
-
underline: !0,
|
|
111
|
-
blockquote: !0,
|
|
112
|
-
table: !1
|
|
113
|
-
}, placeholder: t.$t("name.placeholder"), unstyled: "", static: "" }, on: { input: function(a) {
|
|
114
|
-
t.internalName = a;
|
|
115
|
-
} } }) : e("div", { staticClass: "header-text", domProps: { innerHTML: t._s(t.internalName) } })], 1)];
|
|
116
|
-
}, proxy: !0 }, { key: "postText", fn: function() {
|
|
117
|
-
return [e("TextEditor", { key: "postText" + t.canEdit, ref: "postTextEditor", staticClass: "no-drag header-text", staticStyle: { width: "100%" }, attrs: { value: t.canEdit ? t.mustacheToSpan(
|
|
118
|
-
t.postText,
|
|
119
|
-
t._document.textTemplateMap,
|
|
120
|
-
t._document._doc
|
|
121
|
-
) : t.interpolateString(t.postText, t._document._doc), editable: t.canEdit, mentions: t.mentions, snippets: !0, placeholder: t.$t("optional").capitalize(), static: "", unstyled: "" }, on: { input: function(a) {
|
|
122
|
-
t.postText = t.spanToMustache(a);
|
|
123
|
-
} } })];
|
|
124
|
-
}, proxy: !0 }]) })], 1);
|
|
125
|
-
}, T = [], b = /* @__PURE__ */ n(
|
|
126
|
-
v,
|
|
127
|
-
g,
|
|
128
|
-
T,
|
|
129
|
-
!1,
|
|
130
|
-
null,
|
|
131
|
-
"a4b43835"
|
|
132
|
-
);
|
|
133
|
-
const C = b.exports, S = {
|
|
134
|
-
name: "ContentWrapper",
|
|
135
|
-
components: {
|
|
136
|
-
StaticCombo: C,
|
|
137
|
-
BlockMedia: l
|
|
138
|
-
},
|
|
139
|
-
mixins: [s(["layout", "item", "baseStyle"])],
|
|
140
|
-
props: {
|
|
141
|
-
hasHover: {
|
|
142
|
-
type: Boolean,
|
|
143
|
-
default: !1
|
|
144
|
-
},
|
|
145
|
-
validator: {
|
|
146
|
-
type: Object,
|
|
147
|
-
default: () => ({})
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
data() {
|
|
151
|
-
return {
|
|
152
|
-
hoverIndex: null
|
|
153
|
-
};
|
|
154
|
-
},
|
|
155
|
-
computed: {
|
|
156
|
-
color() {
|
|
157
|
-
var o;
|
|
158
|
-
return ((o = this.baseStyle) == null ? void 0 : o.textColor) || this.fallbackTextColor;
|
|
159
|
-
},
|
|
160
|
-
textAlign() {
|
|
161
|
-
var o;
|
|
162
|
-
return ((o = this.baseStyle) == null ? void 0 : o.textAlign) || "left";
|
|
163
|
-
},
|
|
164
|
-
fallbackTextColor() {
|
|
165
|
-
return this.backgroundColor && r.readability(this.backgroundColor, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
var w = function() {
|
|
170
|
-
var t = this, e = t._self._c;
|
|
171
|
-
return e("div", { staticClass: "content-root", class: { "has-hover": t.hasHover }, style: { color: t.color, textAlign: t.textAlign } }, [t.layout !== "center" ? e("BlockMedia", { staticClass: "content-media", attrs: { media: t.item.media } }) : t._e(), e("div", { staticClass: "content-spacing" }, [e("StaticCombo", t._g({ attrs: { "has-hover": t.hasHover, _document: t._document, _value: {
|
|
172
|
-
layout: t._value.layout,
|
|
173
|
-
preText: `${t._value.item}.value.preText`,
|
|
174
|
-
documentName: `${t._value.item}.value.documentName`,
|
|
175
|
-
postText: `${t._value.item}.value.postText`,
|
|
176
|
-
showLogo: `${t._value.item}.value.showLogo`,
|
|
177
|
-
logotype: `${t._value.item}.value.logotype`
|
|
178
|
-
}, validator: t.validator } }, t.$listeners))], 1)], 1);
|
|
179
|
-
}, k = [], $ = /* @__PURE__ */ n(
|
|
180
|
-
S,
|
|
181
|
-
w,
|
|
182
|
-
k,
|
|
183
|
-
!1,
|
|
184
|
-
null,
|
|
185
|
-
"3dfe0998"
|
|
186
|
-
);
|
|
187
|
-
const H = $.exports;
|
|
188
|
-
export {
|
|
189
|
-
H as default
|
|
190
|
-
};
|