@cling-se/widget 0.9.23 → 0.9.24
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-49655a64.js → AddClientCallout-4afb07ff.js} +5 -5
- package/dist/{AnswerModal-6f4004e1.js → AnswerModal-2b11381b.js} +84 -27
- package/dist/{AttachmentItem-e3bfcd82.js → AttachmentItem-c666fb74.js} +7 -5
- package/dist/{BaseDatePicker-d04f761f.js → BaseDatePicker-e1efcf48.js} +1 -1
- package/dist/{BaseInput-e14e8b12.js → BaseInput-44c3af54.js} +6 -2
- package/dist/{BaseUpload-0fa8ad72.js → BaseUpload-740b1f88.js} +28 -11
- package/dist/{BlockMedia-b49a63f3.js → BlockMedia-f5086397.js} +5 -3
- package/dist/{CCallout-baeb732f.js → CCallout-1a1feea0.js} +6 -9
- package/dist/{CDropdownItem-e0cecd02.js → CDropdownItem-cc274799.js} +3 -3
- package/dist/{CField-c10f5951.js → CField-372bd9c7.js} +18 -4
- package/dist/{CPhoneFormat-636103a1.js → CPhoneFormat-b273a499.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-d964f857.js → CSlider.vue_vue_type_style_index_0_lang-ef031b7b.js} +4 -2
- package/dist/{ClientAutocomplete-28bf2076.js → ClientAutocomplete-0f51c1cd.js} +3 -3
- package/dist/{ClientModal-b94206f4.js → ClientModal-1bec5a45.js} +34 -19
- package/dist/{ColorPicker-b5a7f700.js → ColorPicker-43c741fb.js} +2 -2
- package/dist/{CompanyModal-c47e7c55.js → CompanyModal-adec1d7e.js} +8 -5
- package/dist/{ContentWrapper-8293109f.js → ContentWrapper-48e69342.js} +40 -27
- package/dist/{CoverBlockSettings-2242d653.js → CoverBlockSettings-c0a57bee.js} +49 -34
- package/dist/{DocAnswer-75f53dd5.js → DocAnswer-f0f7d55d.js} +4 -4
- package/dist/{DocDetails-1bdecff4.js → DocDetails-0e25552f.js} +71 -46
- package/dist/{DocForm-263bac20.js → DocForm-2ab0c521.js} +515 -291
- package/dist/{DocFormSend-5b098ca6.js → DocFormSend-e60808ca.js} +18 -18
- package/dist/{DocLinks-500b61b0.js → DocLinks-20719644.js} +2 -2
- package/dist/{DocModalBase-b64e792b.js → DocModalBase-039f53c2.js} +4 -4
- package/dist/{DocPrint-555475c6.js → DocPrint-aafc72e2.js} +2 -2
- package/dist/{DocReceipt-5a393f79.js → DocReceipt-641b141c.js} +33 -10
- package/dist/{DocSendReminder-8d875174.js → DocSendReminder-aabc0994.js} +30 -5
- package/dist/{DocTextEditor-7fd7ca5f.js → DocTextEditor-3eb97671.js} +86 -37
- package/dist/{DocTimeline-0273acd1.js → DocTimeline-9d765ded.js} +11 -2
- package/dist/{DocumentClient-342454c2.js → DocumentClient-8d59d823.js} +7 -7
- package/dist/{DocumentLayout-00ec1c6f.js → DocumentLayout-a659ce2a.js} +31 -11
- package/dist/{DocumentLogotype-137fd8f5.js → DocumentLogotype-393d1610.js} +8 -8
- package/dist/{DocumentVoided-584cbee7.js → DocumentVoided-9294f5d4.js} +1 -1
- package/dist/{EmbedInput-19362c0b.js → EmbedInput-e6a9ee21.js} +2 -2
- package/dist/{EmbedSettings-cbffd133.js → EmbedSettings-e31ccfdc.js} +7 -7
- package/dist/ErrorCallout-d6c77efa.js +30 -0
- package/dist/{FilePreviewModal-80a5f1fc.js → FilePreviewModal-84d6ab65.js} +6 -6
- package/dist/{HeaderSettings-e5e52b5a.js → HeaderSettings-51d44d2d.js} +65 -63
- package/dist/{ImageSelectModal-f54699a2.js → ImageSelectModal-051e0929.js} +27 -27
- package/dist/{ImageUploadWrapper-d4291dd3.js → ImageUploadWrapper-dcceec48.js} +11 -5
- package/dist/{Index-dbeaf863.js → Index-06045b22.js} +9 -10
- package/dist/{Index-d60eb16f.js → Index-0932b744.js} +32 -20
- package/dist/{Index-468190f0.js → Index-20c0168b.js} +15 -15
- package/dist/{Index-e813c8cd.js → Index-3571dbbe.js} +2 -2
- package/dist/{Index-8ef32146.js → Index-36ba2c7c.js} +20 -16
- package/dist/{Index-c89d17d9.js → Index-39d0e781.js} +17 -17
- package/dist/{Index-7fe05fe5.js → Index-3bdfc806.js} +3 -3
- package/dist/{Index-a3ee21e6.js → Index-3cb4cf49.js} +4 -4
- package/dist/Index-42639492.js +28 -0
- package/dist/{Index-4df3c1d2.js → Index-494c3112.js} +300 -147
- package/dist/{Index-d6635896.js → Index-51ceb867.js} +20 -16
- package/dist/{Index-630c21f5.js → Index-54695ef1.js} +13 -11
- package/dist/{Index-9afa091c.js → Index-5b2c568a.js} +13 -11
- package/dist/{Index-843f81bd.js → Index-5def7508.js} +17 -12
- package/dist/{Index-5093d646.js → Index-5ead0dc5.js} +2 -2
- package/dist/{Index-a79cd9b6.js → Index-652a82d0.js} +6 -6
- package/dist/{Index-0f2bf3b1.js → Index-75922cfc.js} +13 -13
- package/dist/{Index-bf0e9351.js → Index-9a162ce6.js} +2 -2
- package/dist/{Index-7c60cb32.js → Index-a94f257f.js} +56 -31
- package/dist/{Index-7dec77f5.js → Index-a98c290d.js} +21 -18
- package/dist/{Index-0eb9d45b.js → Index-b33109a3.js} +13 -9
- package/dist/{Index-12a6485f.js → Index-c1aa1453.js} +3 -3
- package/dist/{Index-a36c3418.js → Index-c2008029.js} +2 -2
- package/dist/{Index-bb62e92d.js → Index-c4942c4e.js} +22 -27
- package/dist/{Index-aad34e7e.js → Index-c5983b2b.js} +13 -15
- package/dist/{Index-f640eb29.js → Index-c8ded03a.js} +2 -2
- package/dist/{Index-16155aba.js → Index-cc56dad6.js} +7 -7
- package/dist/{Index-29147f73.js → Index-d77ba606.js} +51 -43
- package/dist/{Index-4c78a308.js → Index-d7a7de69.js} +24 -17
- package/dist/{Index-0b1a9238.js → Index-e8a3b12b.js} +4 -4
- package/dist/{Index-bf2ed6a3.js → Index-e9da5a9c.js} +3 -3
- package/dist/{Index-b66d1e1a.js → Index-f36accd7.js} +4 -4
- package/dist/{Index-96725e56.js → Index-fd6da129.js} +7 -7
- package/dist/{Index-64236029.js → Index-fdb53118.js} +6 -9
- package/dist/{InputToggleRow-40b7b57e.js → InputToggleRow-79bbd6c6.js} +4 -4
- package/dist/{IsPremiumPreStep-d2ceb183.js → IsPremiumPreStep-f0524e76.js} +81 -36
- package/dist/{ManualPopover-58c3f059.js → ManualPopover-8a1e53a5.js} +5 -2
- package/dist/{MediaWrapper-0e3ff436.js → MediaWrapper-b128c707.js} +3 -3
- package/dist/{NotBindingText-38e6e74c.js → NotBindingText-561df6d3.js} +2 -2
- package/dist/{PackageGroup-6e6dd719.js → PackageGroup-3eaff6a7.js} +184 -69
- package/dist/{PdfTerms-3be0f8d1.js → PdfTerms-27d7ea41.js} +8 -8
- package/dist/{PdfViewer-991eb731.js → PdfViewer-5b2bcbb5.js} +2 -2
- package/dist/{PlainHtml-4aaf6438.js → PlainHtml-c743e90e.js} +1 -1
- package/dist/{PriceHeader-f3e7b525.js → PriceHeader-287b8219.js} +48 -32
- package/dist/{SearchApi-2523a5fb.js → SearchApi-1cd32dd3.js} +40 -20
- package/dist/{Setup-2849b519.js → Setup-647c8d19.js} +1 -1
- package/dist/{TermsSettings-6d3dfe8d.js → TermsSettings-28e00bdf.js} +11 -11
- package/dist/{ThemeColorRow-a33d04b5.js → ThemeColorRow-87aad7e1.js} +4 -4
- package/dist/{ToggleBinding-7c726915.js → ToggleBinding-86912659.js} +3 -3
- package/dist/{UploadModal-814fc3af.js → UploadModal-4065d410.js} +16 -14
- package/dist/{VideoPlayerInput-fa0774c1.js → VideoPlayerInput-1b402e91.js} +3 -3
- package/dist/{VideoPlayerSettings-ff82938f.js → VideoPlayerSettings-4dcca863.js} +5 -5
- package/dist/{VideoSelectModal-7b213a09.js → VideoSelectModal-4f9def15.js} +32 -36
- package/dist/{answerDocumentMixin-b2488be9.js → answerDocumentMixin-6b6cfdb6.js} +3 -3
- package/dist/{debounce-0451fa9d.js → debounce-97bb38ac.js} +1 -1
- package/dist/{focusDrawerMixin-0d406532.js → focusDrawerMixin-0d00dfeb.js} +1 -1
- package/dist/{formComponentsInstall-9c59efba.js → formComponentsInstall-0e28cca8.js} +210 -168
- package/dist/{formDrawerState-6c57d51e.js → formDrawerState-68670778.js} +1 -1
- package/dist/{formValidationMixin-7603171e.js → formValidationMixin-cb6f10e2.js} +1 -1
- package/dist/{image-58c45661.js → image-456aa00c.js} +1 -1
- package/dist/{index-b20167b3.js → index-1f6e36c5.js} +4 -4
- package/dist/{index-cf014fd4.js → index-2710ab1c.js} +2 -2
- package/dist/{index-c0b45aa7.js → index-63ab2d14.js} +12 -12
- package/dist/{index-4afc771b.js → index-b8207e2a.js} +1 -1
- package/dist/{index-47e427b4.js → index-e4f936ec.js} +8 -6
- package/dist/{index-0c493549.js → index-ea1c7f84.js} +17 -9
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +95 -66
- package/dist/{main-8d566a02.js → main-b5eb6366.js} +134 -76
- package/dist/{mapFormMixin-4446a1bd.js → mapFormMixin-e0c45bbd.js} +1 -1
- package/dist/{publicSenderState-02c0c9eb.js → publicSenderState-4163b1b6.js} +1 -1
- package/dist/{simplebar.min-d30d6e1f.js → simplebar.min-147772cd.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{template-e04cc32f.js → template-6e93622c.js} +7 -7
- package/dist/{throttle-b0a5ba09.js → throttle-7a7a1299.js} +2 -2
- package/dist/{tinycolor-c6f29f33.js → tinycolor-bb8652ea.js} +1 -1
- package/dist/{tippy.esm-2cb937d0.js → tippy.esm-f533f77b.js} +8 -8
- package/dist/{utils-36338df7.js → utils-066c47a5.js} +1 -1
- package/dist/{vuedraggable.umd-a0d21ce9.js → vuedraggable.umd-76911d11.js} +1 -1
- package/package.json +2 -2
- package/dist/ErrorCallout-4ce34a95.js +0 -30
- package/dist/Index-66295ea9.js +0 -28
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as p, R as h, I as v, n as u, T as y, c as C, b as d, g as c, U as b, w as _ } from "./main-
|
|
1
|
+
import { A as p, R as h, I as v, n as u, T as y, c as C, b as d, g as c, U as b, w as _ } from "./main-b5eb6366.js";
|
|
2
2
|
import { m as f, b as $, a as w } from "./vuex.esm-4a0fff7c.js";
|
|
3
|
-
import { w as x } from "./CDropdownItem-
|
|
4
|
-
import { C as k } from "./ClientAutocomplete-
|
|
3
|
+
import { w as x } from "./CDropdownItem-cc274799.js";
|
|
4
|
+
import { C as k } from "./ClientAutocomplete-0f51c1cd.js";
|
|
5
5
|
import { v as s } from "./index-805c56e4.js";
|
|
6
|
-
import "./SearchApi-
|
|
7
|
-
import "./debounce-
|
|
6
|
+
import "./SearchApi-1cd32dd3.js";
|
|
7
|
+
import "./debounce-97bb38ac.js";
|
|
8
8
|
function g(n) {
|
|
9
9
|
if (typeof n > "u")
|
|
10
10
|
throw Error("Missing param inputParam");
|
|
@@ -200,7 +200,13 @@ const { mapFields: N } = p({
|
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
202
|
validations() {
|
|
203
|
-
return [
|
|
203
|
+
return [
|
|
204
|
+
this.name,
|
|
205
|
+
this.orgNo,
|
|
206
|
+
this.reference,
|
|
207
|
+
this.email,
|
|
208
|
+
this.cellphone
|
|
209
|
+
].some((e) => !!e) ? {
|
|
204
210
|
orgNo: {
|
|
205
211
|
personalNumber(e) {
|
|
206
212
|
return !this.validateOrgNo || !e ? !0 : this.isIndivid ? l(e) : m(e) || l(e);
|
|
@@ -324,7 +330,7 @@ var F = function() {
|
|
|
324
330
|
e.cellphone = i;
|
|
325
331
|
}, expression: "cellphone" } }), e.documentRole ? t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" } }, [t("CButton", { staticClass: "is-left", staticStyle: { width: "100%" }, attrs: { slot: "trigger", "dropdown-icon": !0, "icon-props": {
|
|
326
332
|
stroke: "hsl(0, 0%, 50%)"
|
|
327
|
-
}, "icon-left": e.documentRole === "signee" ? "pen-tool" : "eye", type: "none", pattern: "secondary" }, slot: "trigger" }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`_common:documentRole.${e.documentRole}.description`)))]), t("div", { staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.label`)) + " ")])])]), e._l(["signee", "recipient", "approver"], function(i) {
|
|
333
|
+
}, "icon-left": e.documentRole === "signee" ? "pen-tool" : "eye", type: "none", pattern: "secondary" }, slot: "trigger" }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.description`)) + " ")]), t("div", { staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.label`)) + " ")])])]), e._l(["signee", "recipient", "approver"], function(i) {
|
|
328
334
|
return t("CDropdownItem", { key: i, attrs: { "icon-left": i === "signee" ? "pen-tool" : "eye", "icon-props": {
|
|
329
335
|
stroke: "hsl(0, 0%, 50%)"
|
|
330
336
|
} }, on: { click: function(a) {
|
|
@@ -332,7 +338,7 @@ var F = function() {
|
|
|
332
338
|
} } }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`_common:documentRole.${i}.description`)))]), t("div", { staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`_common:documentRole.${i}.label`)) + " ")])])]);
|
|
333
339
|
})], 2) : e._e(), t("CButton", { attrs: { type: "secondary", pattern: "tertiary", size: "small", "icon-left": "arrow-right" }, on: { click: function(i) {
|
|
334
340
|
return e.$emit("show-more");
|
|
335
|
-
} } }, [e._v(" " + e._s(e.$t("showMore").capitalize()) + " ")]), t("CButton", { staticClass: "mt-4", staticStyle: { padding: "16px", "border-radius": "8px", height: "100%", "font-size": "14px", "font-weight": "600", "box-shadow": "0 2px 4px -1px rgba(0,0,0,0.1)" }, attrs: { loading: e.isPosting, "native-type": "submit", type: "secondary", wide: "", size: "medium" } }, [e._v(" " + e._s(e.$t("updateButton")) + " ")])], 1) : t("div", { class: { "column-only": e.windowWidth <= 600 } }, [t("div", { staticClass: "flex items-center justify-center", staticStyle: { "margin-bottom": "calc(2.5 * var(--rem))" } }, [t("div", { staticClass: "type-toggle" }, [t("div", { staticClass: "type-toggle-button", class: { active: e.type === "individual" }, on: { click: function(i) {
|
|
341
|
+
} } }, [e._v(" " + e._s(e.$t("showMore").capitalize()) + " ")]), t("CButton", { staticClass: "mt-4", staticStyle: { padding: "16px", "border-radius": "8px", height: "100%", "font-size": "14px", "font-weight": "600", "box-shadow": "0 2px 4px -1px rgba(0, 0, 0, 0.1)" }, attrs: { loading: e.isPosting, "native-type": "submit", type: "secondary", wide: "", size: "medium" } }, [e._v(" " + e._s(e.$t("updateButton")) + " ")])], 1) : t("div", { class: { "column-only": e.windowWidth <= 600 } }, [t("div", { staticClass: "flex items-center justify-center", staticStyle: { "margin-bottom": "calc(2.5 * var(--rem))" } }, [t("div", { staticClass: "type-toggle" }, [t("div", { staticClass: "type-toggle-button", class: { active: e.type === "individual" }, on: { click: function(i) {
|
|
336
342
|
e.type = "individual";
|
|
337
343
|
} } }, [e._v(" " + e._s(e.$t("individual")) + " ")]), t("div", { staticClass: "type-toggle-button", class: { active: e.type === "company" }, on: { click: function(i) {
|
|
338
344
|
e.type = "company";
|
|
@@ -370,7 +376,7 @@ var F = function() {
|
|
|
370
376
|
e.workCity = i;
|
|
371
377
|
}, expression: "workCity" } })], 1)], 1)], 1) : e._e()]), e.documentRole || e.answerMethod ? t("CField", { staticClass: "flex pt-4", attrs: { grouped: "" } }, [e.documentRole ? t("div", { staticClass: "dropdown-field-wrapper" }, [t("div", { staticClass: "my-1 text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("_common:documentRole.title")) + " ")]), t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" } }, [t("CButton", { staticClass: "is-left", staticStyle: { width: "100%" }, attrs: { slot: "trigger", "dropdown-icon": !0, "icon-props": {
|
|
372
378
|
stroke: "hsl(0, 0%, 50%)"
|
|
373
|
-
}, "icon-left": e.documentRole === "signee" ? "pen-tool" : "eye", type: "none", pattern: "secondary" }, slot: "trigger" }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`_common:documentRole.${e.documentRole}.description`)))]), t("div", { staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.label`)) + " ")])])]), e._l(["signee", "recipient", "approver"], function(i) {
|
|
379
|
+
}, "icon-left": e.documentRole === "signee" ? "pen-tool" : "eye", type: "none", pattern: "secondary" }, slot: "trigger" }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.description`)) + " ")]), t("div", { staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.label`)) + " ")])])]), e._l(["signee", "recipient", "approver"], function(i) {
|
|
374
380
|
return t("CDropdownItem", { key: i, attrs: { "icon-left": i === "signee" ? "pen-tool" : "eye", "icon-props": {
|
|
375
381
|
stroke: "hsl(0, 0%, 50%)"
|
|
376
382
|
} }, on: { click: function(a) {
|
|
@@ -382,16 +388,19 @@ var F = function() {
|
|
|
382
388
|
"inPerson"
|
|
383
389
|
], function(i) {
|
|
384
390
|
return t("CDropdownItem", { key: i, on: { click: function(a) {
|
|
385
|
-
return e.$emit("update:answer-method", {
|
|
391
|
+
return e.$emit("update:answer-method", {
|
|
392
|
+
...e.answerMethod,
|
|
393
|
+
accept: i
|
|
394
|
+
});
|
|
386
395
|
} } }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`signMethod.${i}.title`)))]), t("div", { staticClass: "max-w-[calc(12_*_var(--rem))] truncate", staticStyle: { "font-size": "12px", opacity: "0.7", "text-wrap": "wrap" } }, [e._v(" " + e._s(e.$t(`signMethod.${i}.content`)) + " ")])])]);
|
|
387
|
-
})], 2)], 1) : e._e()]) : e._e(), t("div", { staticStyle: { "margin-top": "calc(3 * var(--rem))" } }, [t("CButton", { staticStyle: { padding: "16px", "border-radius": "8px", height: "100%", "font-size": "14px", "font-weight": "600", "box-shadow": "0 2px 4px -1px rgba(0,0,0,0.1)" }, attrs: { loading: e.isPosting, type: "secondary", wide: "" }, on: { click: e.validateForm } }, [e._v(e._s(e.$t("updateButton")))])], 1)], 1)]);
|
|
396
|
+
})], 2)], 1) : e._e()]) : e._e(), t("div", { staticStyle: { "margin-top": "calc(3 * var(--rem))" } }, [t("CButton", { staticStyle: { padding: "16px", "border-radius": "8px", height: "100%", "font-size": "14px", "font-weight": "600", "box-shadow": "0 2px 4px -1px rgba(0, 0, 0, 0.1)" }, attrs: { loading: e.isPosting, type: "secondary", wide: "" }, on: { click: e.validateForm } }, [e._v(e._s(e.$t("updateButton")))])], 1)], 1)]);
|
|
388
397
|
}, z = [], R = /* @__PURE__ */ u(
|
|
389
398
|
I,
|
|
390
399
|
F,
|
|
391
400
|
z,
|
|
392
401
|
!1,
|
|
393
402
|
null,
|
|
394
|
-
"
|
|
403
|
+
"d4e472e0",
|
|
395
404
|
null,
|
|
396
405
|
null
|
|
397
406
|
);
|
|
@@ -466,13 +475,19 @@ const M = R.exports, { mapFields: O } = p({
|
|
|
466
475
|
},
|
|
467
476
|
created() {
|
|
468
477
|
this.forceExpand && (this.showMore = !0);
|
|
469
|
-
const n = d(
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
478
|
+
const n = d(
|
|
479
|
+
this.formData,
|
|
480
|
+
`clients[${this.documentClientIndex}]`,
|
|
481
|
+
{}
|
|
482
|
+
);
|
|
483
|
+
this.loadForm(n), ["endCustomer", "storedNewClient"].forEach(
|
|
484
|
+
(e) => this.$watch(e, {
|
|
485
|
+
deep: !0,
|
|
486
|
+
handler() {
|
|
487
|
+
this.hasChanged = !0;
|
|
488
|
+
}
|
|
489
|
+
})
|
|
490
|
+
);
|
|
476
491
|
},
|
|
477
492
|
methods: {
|
|
478
493
|
...w({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as ht, n as bt } from "./main-
|
|
1
|
+
import { W as ht, n as bt } from "./main-b5eb6366.js";
|
|
2
2
|
var vt = { exports: {} };
|
|
3
3
|
(function(gt, Ct) {
|
|
4
4
|
(function(c, i) {
|
|
@@ -2871,7 +2871,7 @@ var yt = /* @__PURE__ */ bt(
|
|
|
2871
2871
|
wt,
|
|
2872
2872
|
!1,
|
|
2873
2873
|
null,
|
|
2874
|
-
"
|
|
2874
|
+
"94048cc1",
|
|
2875
2875
|
null,
|
|
2876
2876
|
null
|
|
2877
2877
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as r, g as i, n as l } from "./main-
|
|
2
|
-
import { w as c } from "./CDropdownItem-
|
|
1
|
+
import { A as r, g as i, n as l } from "./main-b5eb6366.js";
|
|
2
|
+
import { w as c } from "./CDropdownItem-cc274799.js";
|
|
3
3
|
import { m as p, b as o, a as d } from "./vuex.esm-4a0fff7c.js";
|
|
4
|
-
import { s as n, a as u } from "./publicSenderState-
|
|
4
|
+
import { s as n, a as u } from "./publicSenderState-4163b1b6.js";
|
|
5
5
|
import { v as m } from "./index-805c56e4.js";
|
|
6
6
|
const { mapFields: f } = r({
|
|
7
7
|
getterType: "forms/getField",
|
|
@@ -93,7 +93,10 @@ const { mapFields: f } = r({
|
|
|
93
93
|
showMessage: i.SHOW_MESSAGE
|
|
94
94
|
}),
|
|
95
95
|
loadForm() {
|
|
96
|
-
this.isPublicForm ? (this.setForm({ key: "company", formData: n.company }), this.setForm({ key: "companyUser", formData: n.user })) : (this.formEditCompany({ props: ["name"] }), this.formEditCompanyUser({
|
|
96
|
+
this.isPublicForm ? (this.setForm({ key: "company", formData: n.company }), this.setForm({ key: "companyUser", formData: n.user })) : (this.formEditCompany({ props: ["name"] }), this.formEditCompanyUser({
|
|
97
|
+
id: this.documentCompanyUserId,
|
|
98
|
+
props: ["id", "firstname", "lastname", "cellphone", "email"]
|
|
99
|
+
}));
|
|
97
100
|
},
|
|
98
101
|
async save() {
|
|
99
102
|
this.$v.$touch(), !this.$v.$invalid && (this.isLoading = !0, this.isPublicForm ? u({ company: this.company, user: this.user }) : await Promise.all([
|
|
@@ -130,7 +133,7 @@ var h = function() {
|
|
|
130
133
|
_,
|
|
131
134
|
!1,
|
|
132
135
|
null,
|
|
133
|
-
"
|
|
136
|
+
"accc1bc1",
|
|
134
137
|
null,
|
|
135
138
|
null
|
|
136
139
|
);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { a as l } from "./tinycolor-
|
|
2
|
-
import { m as n } from "./mapFormMixin-
|
|
3
|
-
import { B as r } from "./BlockMedia-
|
|
4
|
-
import { n as s, a6 as i, x as c, z as u, y as p } from "./main-
|
|
5
|
-
import { T as m } from "./DocTextEditor-
|
|
1
|
+
import { a as l } from "./tinycolor-bb8652ea.js";
|
|
2
|
+
import { m as n } from "./mapFormMixin-e0c45bbd.js";
|
|
3
|
+
import { B as r } from "./BlockMedia-f5086397.js";
|
|
4
|
+
import { n as s, a6 as i, x as c, z as u, y as p } from "./main-b5eb6366.js";
|
|
5
|
+
import { T as m } from "./DocTextEditor-3eb97671.js";
|
|
6
6
|
import { i as d } from "./i18nMessages-45c6bfd6.js";
|
|
7
7
|
import "./color-71c20583.js";
|
|
8
|
-
import "./tippy.esm-
|
|
9
|
-
import "./ColorPicker-
|
|
10
|
-
import "./DocumentLayout-
|
|
11
|
-
import "./debounce-
|
|
12
|
-
import "./CDropdownItem-
|
|
13
|
-
import "./CSlider.vue_vue_type_style_index_0_lang-
|
|
8
|
+
import "./tippy.esm-f533f77b.js";
|
|
9
|
+
import "./ColorPicker-43c741fb.js";
|
|
10
|
+
import "./DocumentLayout-a659ce2a.js";
|
|
11
|
+
import "./debounce-97bb38ac.js";
|
|
12
|
+
import "./CDropdownItem-cc274799.js";
|
|
13
|
+
import "./CSlider.vue_vue_type_style_index_0_lang-ef031b7b.js";
|
|
14
14
|
import "./dom-962579a6.js";
|
|
15
15
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
16
|
-
import "./ManualPopover-
|
|
16
|
+
import "./ManualPopover-8a1e53a5.js";
|
|
17
17
|
const _ = {
|
|
18
18
|
name: "StaticComboLayout",
|
|
19
19
|
props: {
|
|
@@ -34,7 +34,7 @@ var f = function() {
|
|
|
34
34
|
y,
|
|
35
35
|
!1,
|
|
36
36
|
null,
|
|
37
|
-
"
|
|
37
|
+
"6df3f6bf",
|
|
38
38
|
null,
|
|
39
39
|
null
|
|
40
40
|
);
|
|
@@ -46,18 +46,20 @@ const v = {
|
|
|
46
46
|
messages: d
|
|
47
47
|
},
|
|
48
48
|
components: {
|
|
49
|
-
DocumentLogotype: () => import("./DocumentLogotype-
|
|
49
|
+
DocumentLogotype: () => import("./DocumentLogotype-393d1610.js"),
|
|
50
50
|
StaticComboLayout: h,
|
|
51
51
|
TextEditor: m
|
|
52
52
|
},
|
|
53
|
-
mixins: [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
mixins: [
|
|
54
|
+
n([
|
|
55
|
+
"layout",
|
|
56
|
+
"preText",
|
|
57
|
+
"documentName",
|
|
58
|
+
"postText",
|
|
59
|
+
"showLogo",
|
|
60
|
+
"logotype"
|
|
61
|
+
])
|
|
62
|
+
],
|
|
61
63
|
props: {
|
|
62
64
|
validator: {
|
|
63
65
|
type: Object,
|
|
@@ -79,7 +81,10 @@ const v = {
|
|
|
79
81
|
return this.documentName || `<p data-typography="title">${((o = this._document.data) == null ? void 0 : o.name) || ""}</p>`;
|
|
80
82
|
},
|
|
81
83
|
set(o) {
|
|
82
|
-
this.documentName = o, this.$emit("input", {
|
|
84
|
+
this.documentName = o, this.$emit("input", {
|
|
85
|
+
key: "data.name",
|
|
86
|
+
value: i(o).trim().slice(0, 255)
|
|
87
|
+
});
|
|
83
88
|
}
|
|
84
89
|
},
|
|
85
90
|
mentions() {
|
|
@@ -100,7 +105,11 @@ var g = function() {
|
|
|
100
105
|
t.showLogo = a;
|
|
101
106
|
} }, slot: "logo", model: { value: t.logotype, callback: function(a) {
|
|
102
107
|
t.logotype = a;
|
|
103
|
-
}, expression: "logotype" } }), e("template", { slot: "preText" }, [e("TextEditor", { key: "preText" + t.canEdit, ref: "preTextEditor", staticClass: "no-drag header-text", attrs: { value: t.canEdit ? t.mustacheToSpan(
|
|
108
|
+
}, expression: "logotype" } }), e("template", { slot: "preText" }, [e("TextEditor", { key: "preText" + t.canEdit, ref: "preTextEditor", staticClass: "no-drag header-text", attrs: { value: t.canEdit ? t.mustacheToSpan(
|
|
109
|
+
t.preText,
|
|
110
|
+
t._document.textTemplateMap,
|
|
111
|
+
t._document._doc
|
|
112
|
+
) : t.interpolateString(t.preText, t._document._doc), mentions: t.mentions, snippets: !0, placeholder: t.$t("optional").capitalize(), static: "", unstyled: "" }, on: { input: function(a) {
|
|
104
113
|
t.preText = t.spanToMustache(a);
|
|
105
114
|
} } })], 1), e("div", { staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "700", margin: "calc(1 * var(--rem)) 0" }, attrs: { slot: "documentName" }, slot: "documentName" }, [t.canEdit ? e("TextEditor", { ref: "nameEditor", staticClass: "no-drag header-text", attrs: { value: t.internalName, extensions: {
|
|
106
115
|
bulletList: !0,
|
|
@@ -112,7 +121,11 @@ var g = function() {
|
|
|
112
121
|
table: !1
|
|
113
122
|
}, placeholder: t.$t("name.placeholder"), unstyled: "", static: "" }, on: { input: function(a) {
|
|
114
123
|
t.internalName = a;
|
|
115
|
-
} } }) : e("div", { staticClass: "header-text", domProps: { innerHTML: t._s(t.internalName) } })], 1), e("template", { slot: "postText" }, [e("TextEditor", { key: "postText" + t.canEdit, ref: "postTextEditor", staticClass: "no-drag header-text", staticStyle: { width: "100%" }, attrs: { value: t.canEdit ? t.mustacheToSpan(
|
|
124
|
+
} } }) : e("div", { staticClass: "header-text", domProps: { innerHTML: t._s(t.internalName) } })], 1), e("template", { slot: "postText" }, [e("TextEditor", { key: "postText" + t.canEdit, ref: "postTextEditor", staticClass: "no-drag header-text", staticStyle: { width: "100%" }, attrs: { value: t.canEdit ? t.mustacheToSpan(
|
|
125
|
+
t.postText,
|
|
126
|
+
t._document.textTemplateMap,
|
|
127
|
+
t._document._doc
|
|
128
|
+
) : 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) {
|
|
116
129
|
t.postText = t.spanToMustache(a);
|
|
117
130
|
} } })], 1)], 2)], 1);
|
|
118
131
|
}, T = [], b = /* @__PURE__ */ s(
|
|
@@ -121,7 +134,7 @@ var g = function() {
|
|
|
121
134
|
T,
|
|
122
135
|
!1,
|
|
123
136
|
null,
|
|
124
|
-
"
|
|
137
|
+
"adf92b79",
|
|
125
138
|
null,
|
|
126
139
|
null
|
|
127
140
|
);
|
|
@@ -178,7 +191,7 @@ var w = function() {
|
|
|
178
191
|
$,
|
|
179
192
|
!1,
|
|
180
193
|
null,
|
|
181
|
-
"
|
|
194
|
+
"342a22b3",
|
|
182
195
|
null,
|
|
183
196
|
null
|
|
184
197
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { m as d } from "./mapFormMixin-
|
|
2
|
-
import { T as l } from "./ThemeColorRow-
|
|
3
|
-
import { a as p } from "./image-
|
|
4
|
-
import { n as s, K as u } from "./main-
|
|
1
|
+
import { m as d } from "./mapFormMixin-e0c45bbd.js";
|
|
2
|
+
import { T as l } from "./ThemeColorRow-87aad7e1.js";
|
|
3
|
+
import { a as p } from "./image-456aa00c.js";
|
|
4
|
+
import { n as s, K as u } from "./main-b5eb6366.js";
|
|
5
5
|
import "./color-71c20583.js";
|
|
6
|
-
import "./ColorPicker-
|
|
7
|
-
import "./ManualPopover-
|
|
6
|
+
import "./ColorPicker-43c741fb.js";
|
|
7
|
+
import "./ManualPopover-8a1e53a5.js";
|
|
8
8
|
const m = (i, e, t, o) => Math.atan2(i - t, e - o) * (180 / Math.PI) * -1 + 180, v = {
|
|
9
9
|
name: "DegreePicker",
|
|
10
10
|
props: {
|
|
@@ -24,12 +24,21 @@ const m = (i, e, t, o) => Math.atan2(i - t, e - o) * (180 / Math.PI) * -1 + 180,
|
|
|
24
24
|
const t = (o) => {
|
|
25
25
|
e = this.mouseMoveHandler(o, e) || e;
|
|
26
26
|
};
|
|
27
|
-
window.addEventListener("mousemove", t), window.addEventListener(
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
window.addEventListener("mousemove", t), window.addEventListener(
|
|
28
|
+
"mouseup",
|
|
29
|
+
() => {
|
|
30
|
+
window.removeEventListener("mousemove", t);
|
|
31
|
+
},
|
|
32
|
+
{ once: !0 }
|
|
33
|
+
);
|
|
30
34
|
},
|
|
31
35
|
mouseMoveHandler(i, { centerX: e, centerY: t }) {
|
|
32
|
-
const o = m(
|
|
36
|
+
const o = m(
|
|
37
|
+
i.clientX,
|
|
38
|
+
i.clientY,
|
|
39
|
+
e,
|
|
40
|
+
t
|
|
41
|
+
);
|
|
33
42
|
this.$emit("input", parseInt(o, 10));
|
|
34
43
|
},
|
|
35
44
|
mouseDownHandler(i) {
|
|
@@ -47,7 +56,7 @@ var g = function() {
|
|
|
47
56
|
_,
|
|
48
57
|
!1,
|
|
49
58
|
null,
|
|
50
|
-
"
|
|
59
|
+
"0c48c700",
|
|
51
60
|
null,
|
|
52
61
|
null
|
|
53
62
|
);
|
|
@@ -107,7 +116,9 @@ const h = {
|
|
|
107
116
|
let t = e;
|
|
108
117
|
if (i === "colors") {
|
|
109
118
|
const { i: o, color: r, percent: a } = e || {};
|
|
110
|
-
t = this.internalValue.colors.map(
|
|
119
|
+
t = this.internalValue.colors.map(
|
|
120
|
+
(n, c) => c === o ? { color: r, percent: a } : n
|
|
121
|
+
);
|
|
111
122
|
}
|
|
112
123
|
this.internalValue = { ...this.internalValue, [i]: t };
|
|
113
124
|
}
|
|
@@ -128,14 +139,14 @@ var C = function() {
|
|
|
128
139
|
b,
|
|
129
140
|
!1,
|
|
130
141
|
null,
|
|
131
|
-
"
|
|
142
|
+
"3924f832",
|
|
132
143
|
null,
|
|
133
144
|
null
|
|
134
145
|
);
|
|
135
146
|
const x = w.exports;
|
|
136
147
|
const $ = {
|
|
137
|
-
image: () => import("./ImageSelectModal-
|
|
138
|
-
video: () => import("./VideoSelectModal-
|
|
148
|
+
image: () => import("./ImageSelectModal-051e0929.js"),
|
|
149
|
+
video: () => import("./VideoSelectModal-4f9def15.js")
|
|
139
150
|
}, S = {
|
|
140
151
|
name: "CoverBlockSettings",
|
|
141
152
|
i18nOptions: {
|
|
@@ -163,21 +174,23 @@ const $ = {
|
|
|
163
174
|
ThemeColorRow: l,
|
|
164
175
|
GradientPicker: x
|
|
165
176
|
},
|
|
166
|
-
mixins: [
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
mixins: [
|
|
178
|
+
d(
|
|
179
|
+
[
|
|
180
|
+
"type",
|
|
181
|
+
"video",
|
|
182
|
+
"resourceUrl",
|
|
183
|
+
"filter",
|
|
184
|
+
"blur",
|
|
185
|
+
"position",
|
|
186
|
+
"overlay",
|
|
187
|
+
"overlayColor",
|
|
188
|
+
"gradient",
|
|
189
|
+
"backgroundColor"
|
|
190
|
+
],
|
|
191
|
+
{ useEmit: !1 }
|
|
192
|
+
)
|
|
193
|
+
],
|
|
181
194
|
data() {
|
|
182
195
|
return {
|
|
183
196
|
getUnsplashResized: p
|
|
@@ -227,7 +240,7 @@ const $ = {
|
|
|
227
240
|
};
|
|
228
241
|
var k = function() {
|
|
229
242
|
var e = this, t = e._self._c;
|
|
230
|
-
return t("div", { staticClass: "d-root" }, [t("div", { staticClass: "d-option", staticStyle: { "border-bottom": "none" } }, [t("div", { staticClass: "d-option-title" }, [e._v(e._s(e.$t("_common:background").capitalize()))]), t("div", { staticClass: "flex w-full", staticStyle: { "flex-wrap": "wrap", "padding-top": "0.25em" } }, e._l([
|
|
243
|
+
return t("div", { staticClass: "d-root" }, [t("div", { staticClass: "d-option", staticStyle: { "border-bottom": "none" } }, [t("div", { staticClass: "d-option-title" }, [e._v(" " + e._s(e.$t("_common:background").capitalize()) + " ")]), t("div", { staticClass: "flex w-full", staticStyle: { "flex-wrap": "wrap", "padding-top": "0.25em" } }, e._l([
|
|
231
244
|
{ label: e.$t("_common:image"), value: "image" },
|
|
232
245
|
{ label: e.$t("_common:color"), value: "color" },
|
|
233
246
|
{ label: e.$t("_common:gradient"), value: "gradient" },
|
|
@@ -238,7 +251,7 @@ var k = function() {
|
|
|
238
251
|
} } }, [e._v(" " + e._s(o.capitalize()) + " ")]);
|
|
239
252
|
}), 1)]), e.type === "image" ? [t("div", { staticClass: "d-option-button-image", style: { backgroundImage: `url(${e.resourceUrl})` }, on: { click: function(o) {
|
|
240
253
|
return e.openResourceModal(e.type);
|
|
241
|
-
} } }), e.resourceUrl ? t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(e._s(e.$t("_common:filter").capitalize()))]), t("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "padding-top": "0.25em" } }, e._l([
|
|
254
|
+
} } }), e.resourceUrl ? t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(" " + e._s(e.$t("_common:filter").capitalize()) + " ")]), t("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "padding-top": "0.25em" } }, e._l([
|
|
242
255
|
"",
|
|
243
256
|
"sepia(30%) brightness(110%) contrast(110%) grayscale(100%)",
|
|
244
257
|
"brightness(110%) contrast(90%) saturate(150%)",
|
|
@@ -250,7 +263,9 @@ var k = function() {
|
|
|
250
263
|
e.filter = o;
|
|
251
264
|
} } }, [t("div", { staticClass: "bg-filter-preview", style: {
|
|
252
265
|
filter: o,
|
|
253
|
-
backgroundImage: `url(${e.getUnsplashResized(e.resourceUrl, {
|
|
266
|
+
backgroundImage: `url(${e.getUnsplashResized(e.resourceUrl, {
|
|
267
|
+
w: 200
|
|
268
|
+
})})`
|
|
254
269
|
} })]);
|
|
255
270
|
}), 0)]) : e._e(), t("div", { staticClass: "d-option", staticStyle: { "padding-bottom": "0.5em" } }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("_common:position").capitalize()) + " ")]), t("CSlider", { staticStyle: { width: "80px", margin: "0" }, attrs: { value: e.position || 0, type: "secondary", size: "small", rounded: "" }, on: { input: function(o) {
|
|
256
271
|
e.position = o;
|
|
@@ -271,7 +286,7 @@ var k = function() {
|
|
|
271
286
|
R,
|
|
272
287
|
!1,
|
|
273
288
|
null,
|
|
274
|
-
"
|
|
289
|
+
"3a135046",
|
|
275
290
|
null,
|
|
276
291
|
null
|
|
277
292
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import r from "./AnswerModal-
|
|
2
|
-
import { r as e, n as s } from "./main-
|
|
1
|
+
import r from "./AnswerModal-2b11381b.js";
|
|
2
|
+
import { r as e, n as s } from "./main-b5eb6366.js";
|
|
3
3
|
import "./anime.es-e284c852.js";
|
|
4
4
|
import "./vuex.esm-4a0fff7c.js";
|
|
5
|
-
import "./mapFormMixin-
|
|
6
|
-
import "./CField-
|
|
5
|
+
import "./mapFormMixin-e0c45bbd.js";
|
|
6
|
+
import "./CField-372bd9c7.js";
|
|
7
7
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
8
8
|
const t = {
|
|
9
9
|
components: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as c, ac as f, b as g, ad as h, ae as x, af as $, r as y } from "./main-
|
|
2
|
-
import { C as w } from "./CPhoneFormat-
|
|
3
|
-
import { w as b, C, a as D } from "./CDropdownItem-
|
|
4
|
-
import { D as S } from "./DocumentVoided-
|
|
1
|
+
import { n as c, ac as f, b as g, ad as h, ae as x, af as $, r as y } from "./main-b5eb6366.js";
|
|
2
|
+
import { C as w } from "./CPhoneFormat-b273a499.js";
|
|
3
|
+
import { w as b, C, a as D } from "./CDropdownItem-cc274799.js";
|
|
4
|
+
import { D as S } from "./DocumentVoided-9294f5d4.js";
|
|
5
5
|
const z = {
|
|
6
6
|
name: "PublicDocumentEvents",
|
|
7
7
|
props: {
|
|
@@ -14,54 +14,73 @@ const z = {
|
|
|
14
14
|
events() {
|
|
15
15
|
const s = [], { acceptedAt: e } = this.document;
|
|
16
16
|
return this.document.events.filter(({ createdAt: t }) => e ? f(e, t) : !0).forEach((t) => {
|
|
17
|
-
const {
|
|
18
|
-
code: i,
|
|
19
|
-
createdAt: n,
|
|
20
|
-
children: r = []
|
|
21
|
-
} = t;
|
|
17
|
+
const { code: i, createdAt: n, children: r = [] } = t;
|
|
22
18
|
let { data: l = {} } = t;
|
|
23
19
|
l === null && (l = {});
|
|
24
|
-
const {
|
|
25
|
-
client: o = {},
|
|
26
|
-
clients: u = [],
|
|
27
|
-
status: p,
|
|
28
|
-
counter: _
|
|
29
|
-
} = l, m = {
|
|
20
|
+
const { client: o = {}, clients: u = [], status: p, counter: _ } = l, m = {
|
|
30
21
|
sent: () => u.map((a) => {
|
|
31
|
-
const d = this.getClientName(a.id), v = this.filteredOxfordComma([
|
|
22
|
+
const d = this.getClientName(a.id), v = this.filteredOxfordComma([
|
|
23
|
+
a.email,
|
|
24
|
+
a.cellphone
|
|
25
|
+
]);
|
|
32
26
|
return {
|
|
33
27
|
// eslint-disable-next-line prefer-template
|
|
34
|
-
text: this.document.$t("event.sent", {
|
|
28
|
+
text: this.document.$t("event.sent", {
|
|
29
|
+
to: `${d ? d + ", " : ""}${v}`
|
|
30
|
+
}),
|
|
35
31
|
time: n
|
|
36
32
|
};
|
|
37
33
|
}),
|
|
38
34
|
viewed: () => {
|
|
39
35
|
const a = _ || r.length + 1;
|
|
40
|
-
return [
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
return [
|
|
37
|
+
{
|
|
38
|
+
text: `${this.document.$t(
|
|
39
|
+
`event.${o.name ? "viewedName" : "viewed"}`,
|
|
40
|
+
{ name: o.name }
|
|
41
|
+
)} ${a ? this.document.$tc("times", { count: a }) : ""}.`,
|
|
42
|
+
time: n
|
|
43
|
+
}
|
|
44
|
+
];
|
|
44
45
|
},
|
|
45
|
-
accepted: () => [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
46
|
+
accepted: () => [
|
|
47
|
+
{
|
|
48
|
+
text: this.document.$t("event.accepted", {
|
|
49
|
+
by: o.name || o.email || o.cellphone
|
|
50
|
+
}),
|
|
51
|
+
time: n
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
denied: () => [
|
|
55
|
+
{
|
|
56
|
+
text: this.document.$t("event.denied", {
|
|
57
|
+
by: o.name || o.email || o.cellphone
|
|
58
|
+
}),
|
|
59
|
+
time: n
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
statusChanged: () => [
|
|
63
|
+
{
|
|
64
|
+
text: this.document.$t("event.statusChanged", {
|
|
65
|
+
status: this.document.$t(`status.${p}`).toLowerCase()
|
|
66
|
+
}),
|
|
67
|
+
time: n
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
requestChange: () => [
|
|
71
|
+
{
|
|
72
|
+
text: this.document.$t("event.requestChange", {
|
|
73
|
+
status: this.document.$t(`status.${p}`).toLowerCase()
|
|
74
|
+
}),
|
|
75
|
+
time: n
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
expired: () => [
|
|
79
|
+
{
|
|
80
|
+
text: this.document.$t("event.expired"),
|
|
81
|
+
time: n
|
|
82
|
+
}
|
|
83
|
+
]
|
|
65
84
|
};
|
|
66
85
|
m[i] && s.push(...m[i]());
|
|
67
86
|
}), s;
|
|
@@ -70,7 +89,9 @@ const z = {
|
|
|
70
89
|
methods: {
|
|
71
90
|
filteredOxfordComma(s = []) {
|
|
72
91
|
const e = s.filter((i) => !!i), t = e.length;
|
|
73
|
-
return t ? t < 2 ? e[0] : `${e.slice(0, -1).join(", ")} ${this.document.$t("and")} ${e.slice(
|
|
92
|
+
return t ? t < 2 ? e[0] : `${e.slice(0, -1).join(", ")} ${this.document.$t("and")} ${e.slice(
|
|
93
|
+
-1
|
|
94
|
+
)}` : "";
|
|
74
95
|
},
|
|
75
96
|
getClientName(s) {
|
|
76
97
|
const e = this.document.clients.find(({ id: t }) => t === s);
|
|
@@ -118,18 +139,22 @@ const A = {
|
|
|
118
139
|
};
|
|
119
140
|
var I = function() {
|
|
120
141
|
var e = this, t = e._self._c;
|
|
121
|
-
return t("div", { staticStyle: { border: "1px solid hsl(0, 0%, 84%)", "border-radius": "3px", "margin-bottom": "1em" } }, [t("div", { staticStyle: { padding: "0.5em 0.75em" } }, [e._l([
|
|
142
|
+
return t("div", { staticStyle: { border: "1px solid hsl(0, 0%, 84%)", "border-radius": "3px", "margin-bottom": "1em" } }, [t("div", { staticStyle: { padding: "0.5em 0.75em" } }, [e._l([
|
|
143
|
+
e.recipient.name,
|
|
144
|
+
e.recipient.companyName,
|
|
145
|
+
e.recipient.orgNo
|
|
146
|
+
], function(i, n) {
|
|
122
147
|
return t("span", { key: `${i}-${n}`, style: n === 0 ? { fontWeight: 500 } : { opacity: 0.65 } }, [e._v(" " + e._s(i && n > 0 ? "·" : "") + " " + e._s(i) + " ")]);
|
|
123
148
|
}), t("div", { staticClass: "flex flex-col w-full", staticStyle: { "font-size": "14px", "align-items": "baseline" } }, [e.recipient.email ? t("a", { attrs: { href: `mailto:${e.recipient.email}`, target: "_blank" } }, [e._v(" " + e._s(e.recipient.email) + " ")]) : e._e(), e.recipient.cellphone ? t("CPhoneFormat", { attrs: { phone: e.recipient.cellphone, region: e.recipient.cellphoneRegion }, scopedSlots: e._u([{ key: "default", fn: function({ formattedValue: i }) {
|
|
124
149
|
return t("a", { attrs: { href: `tel:${e.recipient.cellphone}` } }, [e._v(" " + e._s(i) + " ")]);
|
|
125
|
-
} }], null, !1, 2469850174) }) : e._e()], 1)], 2), t("div", { staticStyle: { "background-color": "hsl(0, 0%, 94%)", padding: "0.75em 0.75em", "font-weight": "500", "font-size": "13px", "line-height": "1", color: "hsl(0, 0%, 40%)", position: "relative" } }, [t("div", [e._v(e._s(e.$t(`_common:documentRole.${e.recipient.documentRole}.label`)))]), t("div", { staticStyle: { position: "absolute", right: "1em", top: "0px", transform: "translate(0, -50%)" } }, [t("v-popover", { attrs: { "popover-inner-class": "signee-popover", trigger: "hover", placement: "bottom-end" } }, [e.recipient.documentRole === "signee" ? t("div", { staticStyle: { padding: "5px 0.75em", background: "hsl(0, 0%, 60%)", "border-radius": "4px", "font-size": "13px", color: "hsl(0, 0%, 100%)", cursor: "default", display: "inline-flex", "align-items": "center" } }, [t("BaseIcon", { staticStyle: { "margin-right": "0.5ch" }, attrs: { size: 15, type: "info", "stroke-width": "2" } }), e.recipient.answer && e.recipient.answer.didAccept ? [e._v(" " + e._s(e.$t("_common:approved").capitalize()) + " ")] : e.recipient.answer ? [e._v(" " + e._s(e.$t("_common:denied").capitalize()) + " ")] : [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.waitingForAnswer")) + " ")]], 2) : e._e(), t("div", { staticStyle: { padding: "0" }, attrs: { slot: "popover" }, slot: "popover" }, [t("div", { staticStyle: { padding: "1em 1.5em" } }, [e.recipient.answer && e.recipient.answer.didAccept ? [e.recipient.answer.signatureDataURL ? t("div", { staticStyle: { "padding-bottom": "0.5em" } }, [t("div", { staticClass: "has-text-grey", staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("_common:signature").capitalize()) + " ")]), t("img", { staticStyle: { width: "80%" }, attrs: { src: e.recipient.answer.signatureDataURL } })]) : t("div", { staticStyle: { "font-size": "13px", "padding-top": "3px" } }, [e.get(e.recipient, "answerMethod.accept") === "bankId" ? [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(e.$t("views:publicDocument.pdfVerification.recipient.signedBankId")))]), t("div", [e._v(e._s(e.recipient.answer.response.name))]), t("div", [e._v(e._s(e.recipient.socialNo))])] : e.get(e.recipient, "answerMethod.accept") === "login" ? t("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.recipient.verifiedLogin")) + " ")]) : e._e()], 2)] : e.recipient.answer ? t("div", [e._v(" " + e._s(e.$t("_common:denied").capitalize()) + " ")]) : t("div", [e._v(" " + e._s(e.$t("pendingAnswer")) + " ")])], 2), e.recipient.answer ? t("div", { staticStyle: { padding: "8px 1.5em", "border-top": "1px solid hsl(0deg 0% 88%)", "background-color": "hsl(0deg 0% 95%)", "font-size": "13px", color: "hsl(0, 0%, 35%)", "font-weight": "500" } }, [e.recipient.answer.didAnswerAt ? t("div", [t("div", [e._v(e._s(e.$t("_common:date").capitalize()) + ": " + e._s(e.$formatDate(e.recipient.answer.didAnswerAt, "P")))]), t("div", [e._v(e._s(e.$t("_common:time.time").capitalize()) + ": " + e._s(e.$formatDate(e.recipient.answer.didAnswerAt, "p")))])]) : e._e(), e.recipient.answer.ip ? t("div", [e._v(" IP: " + e._s(e.recipient.answer.ip) + " ")]) : e._e(), e.recipient.answer.browser ? t("div", [e._v(" Browser: " + e._s(e.getBrowserString(e.recipient.answer)) + " ")]) : e._e()]) : e._e()])])], 1)])]);
|
|
150
|
+
} }], null, !1, 2469850174) }) : e._e()], 1)], 2), t("div", { staticStyle: { "background-color": "hsl(0, 0%, 94%)", padding: "0.75em 0.75em", "font-weight": "500", "font-size": "13px", "line-height": "1", color: "hsl(0, 0%, 40%)", position: "relative" } }, [t("div", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.recipient.documentRole}.label`)) + " ")]), t("div", { staticStyle: { position: "absolute", right: "1em", top: "0px", transform: "translate(0, -50%)" } }, [t("v-popover", { attrs: { "popover-inner-class": "signee-popover", trigger: "hover", placement: "bottom-end" } }, [e.recipient.documentRole === "signee" ? t("div", { staticStyle: { padding: "5px 0.75em", background: "hsl(0, 0%, 60%)", "border-radius": "4px", "font-size": "13px", color: "hsl(0, 0%, 100%)", cursor: "default", display: "inline-flex", "align-items": "center" } }, [t("BaseIcon", { staticStyle: { "margin-right": "0.5ch" }, attrs: { size: 15, type: "info", "stroke-width": "2" } }), e.recipient.answer && e.recipient.answer.didAccept ? [e._v(" " + e._s(e.$t("_common:approved").capitalize()) + " ")] : e.recipient.answer ? [e._v(" " + e._s(e.$t("_common:denied").capitalize()) + " ")] : [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.waitingForAnswer")) + " ")]], 2) : e._e(), t("div", { staticStyle: { padding: "0" }, attrs: { slot: "popover" }, slot: "popover" }, [t("div", { staticStyle: { padding: "1em 1.5em" } }, [e.recipient.answer && e.recipient.answer.didAccept ? [e.recipient.answer.signatureDataURL ? t("div", { staticStyle: { "padding-bottom": "0.5em" } }, [t("div", { staticClass: "has-text-grey", staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("_common:signature").capitalize()) + " ")]), t("img", { staticStyle: { width: "80%" }, attrs: { src: e.recipient.answer.signatureDataURL } })]) : t("div", { staticStyle: { "font-size": "13px", "padding-top": "3px" } }, [e.get(e.recipient, "answerMethod.accept") === "bankId" ? [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.recipient.signedBankId")) + " ")]), t("div", [e._v(e._s(e.recipient.answer.response.name))]), t("div", [e._v(e._s(e.recipient.socialNo))])] : e.get(e.recipient, "answerMethod.accept") === "login" ? t("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.recipient.verifiedLogin")) + " ")]) : e._e()], 2)] : e.recipient.answer ? t("div", [e._v(" " + e._s(e.$t("_common:denied").capitalize()) + " ")]) : t("div", [e._v(" " + e._s(e.$t("pendingAnswer")) + " ")])], 2), e.recipient.answer ? t("div", { staticStyle: { padding: "8px 1.5em", "border-top": "1px solid hsl(0deg 0% 88%)", "background-color": "hsl(0deg 0% 95%)", "font-size": "13px", color: "hsl(0, 0%, 35%)", "font-weight": "500" } }, [e.recipient.answer.didAnswerAt ? t("div", [t("div", [e._v(" " + e._s(e.$t("_common:date").capitalize()) + ": " + e._s(e.$formatDate(e.recipient.answer.didAnswerAt, "P")) + " ")]), t("div", [e._v(" " + e._s(e.$t("_common:time.time").capitalize()) + ": " + e._s(e.$formatDate(e.recipient.answer.didAnswerAt, "p")) + " ")])]) : e._e(), e.recipient.answer.ip ? t("div", [e._v(" IP: " + e._s(e.recipient.answer.ip) + " ")]) : e._e(), e.recipient.answer.browser ? t("div", [e._v(" Browser: " + e._s(e.getBrowserString(e.recipient.answer)) + " ")]) : e._e()]) : e._e()])])], 1)])]);
|
|
126
151
|
}, L = [], j = /* @__PURE__ */ c(
|
|
127
152
|
A,
|
|
128
153
|
I,
|
|
129
154
|
L,
|
|
130
155
|
!1,
|
|
131
156
|
null,
|
|
132
|
-
"
|
|
157
|
+
"7bf07f05",
|
|
133
158
|
null,
|
|
134
159
|
null
|
|
135
160
|
);
|
|
@@ -193,7 +218,7 @@ var O = function() {
|
|
|
193
218
|
N,
|
|
194
219
|
!1,
|
|
195
220
|
null,
|
|
196
|
-
"
|
|
221
|
+
"0d868038",
|
|
197
222
|
null,
|
|
198
223
|
null
|
|
199
224
|
);
|