@cling-se/widget 0.9.23 → 0.9.25
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-b8390699.js} +5 -5
- package/dist/{AnswerModal-6f4004e1.js → AnswerModal-87be4c0b.js} +84 -27
- package/dist/{AttachmentItem-e3bfcd82.js → AttachmentItem-24ad77d3.js} +7 -5
- package/dist/{BaseDatePicker-d04f761f.js → BaseDatePicker-5a89a264.js} +1 -1
- package/dist/{BaseInput-e14e8b12.js → BaseInput-f180db14.js} +6 -2
- package/dist/{BaseUpload-0fa8ad72.js → BaseUpload-529d21bb.js} +28 -11
- package/dist/{BlockMedia-b49a63f3.js → BlockMedia-93ee8699.js} +5 -3
- package/dist/{CCallout-baeb732f.js → CCallout-1c3a4b40.js} +6 -9
- package/dist/{CDropdownItem-e0cecd02.js → CDropdownItem-109be2e2.js} +3 -3
- package/dist/{CField-c10f5951.js → CField-d2390b15.js} +18 -4
- package/dist/{CPhoneFormat-636103a1.js → CPhoneFormat-570a91d9.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-d964f857.js → CSlider.vue_vue_type_style_index_0_lang-49fcd521.js} +4 -2
- package/dist/{ClientAutocomplete-28bf2076.js → ClientAutocomplete-ee0b54d5.js} +3 -3
- package/dist/{ClientModal-b94206f4.js → ClientModal-dc178083.js} +34 -19
- package/dist/{ColorPicker-b5a7f700.js → ColorPicker-94e3b1d4.js} +2 -2
- package/dist/{CompanyModal-c47e7c55.js → CompanyModal-6ef7dcdc.js} +8 -5
- package/dist/{ContentWrapper-8293109f.js → ContentWrapper-95159ca6.js} +40 -27
- package/dist/{CoverBlockSettings-2242d653.js → CoverBlockSettings-647e6b18.js} +49 -34
- package/dist/{DocAnswer-75f53dd5.js → DocAnswer-299edc71.js} +4 -4
- package/dist/{DocDetails-1bdecff4.js → DocDetails-c740d0a6.js} +71 -46
- package/dist/{DocForm-263bac20.js → DocForm-42c0c67c.js} +515 -291
- package/dist/{DocFormSend-5b098ca6.js → DocFormSend-1f9c446f.js} +18 -18
- package/dist/{DocLinks-500b61b0.js → DocLinks-2c63c0dc.js} +2 -2
- package/dist/{DocModalBase-b64e792b.js → DocModalBase-62c42e04.js} +4 -4
- package/dist/{DocPrint-555475c6.js → DocPrint-cea9de40.js} +2 -2
- package/dist/{DocReceipt-5a393f79.js → DocReceipt-61b17b52.js} +33 -10
- package/dist/{DocSendReminder-8d875174.js → DocSendReminder-d69f4a3f.js} +30 -5
- package/dist/{DocTextEditor-7fd7ca5f.js → DocTextEditor-e6008feb.js} +86 -37
- package/dist/{DocTimeline-0273acd1.js → DocTimeline-480b7adf.js} +11 -2
- package/dist/{DocumentClient-342454c2.js → DocumentClient-6e36a622.js} +7 -7
- package/dist/{DocumentLayout-00ec1c6f.js → DocumentLayout-81ae175c.js} +31 -11
- package/dist/{DocumentLogotype-137fd8f5.js → DocumentLogotype-dea21bad.js} +8 -8
- package/dist/{DocumentVoided-584cbee7.js → DocumentVoided-1b3a2ab5.js} +1 -1
- package/dist/{EmbedInput-19362c0b.js → EmbedInput-fbbf12f1.js} +2 -2
- package/dist/{EmbedSettings-cbffd133.js → EmbedSettings-1063c1e4.js} +7 -7
- package/dist/ErrorCallout-82e50910.js +30 -0
- package/dist/{FilePreviewModal-80a5f1fc.js → FilePreviewModal-dc188de1.js} +6 -6
- package/dist/{HeaderSettings-e5e52b5a.js → HeaderSettings-663e5b4f.js} +65 -63
- package/dist/{ImageSelectModal-f54699a2.js → ImageSelectModal-a76f7e4b.js} +27 -27
- package/dist/{ImageUploadWrapper-d4291dd3.js → ImageUploadWrapper-1c6f0ae4.js} +11 -5
- package/dist/{Index-468190f0.js → Index-0078c287.js} +15 -15
- package/dist/{Index-5093d646.js → Index-0428c10a.js} +2 -2
- package/dist/{Index-29147f73.js → Index-0a6802ca.js} +51 -43
- package/dist/{Index-4c78a308.js → Index-12f4ded1.js} +24 -17
- package/dist/{Index-a79cd9b6.js → Index-18c5bc6b.js} +6 -6
- package/dist/{Index-bf2ed6a3.js → Index-1914be9d.js} +3 -3
- package/dist/{Index-8ef32146.js → Index-2c3b5b59.js} +20 -16
- package/dist/{Index-d6635896.js → Index-3f3c03a0.js} +20 -16
- package/dist/{Index-0eb9d45b.js → Index-4b1074d0.js} +13 -9
- package/dist/{Index-7fe05fe5.js → Index-58ee00b1.js} +3 -3
- package/dist/{Index-d60eb16f.js → Index-5a61849b.js} +32 -20
- package/dist/{Index-4df3c1d2.js → Index-5fc2d521.js} +300 -147
- package/dist/{Index-b66d1e1a.js → Index-6fe85402.js} +4 -4
- package/dist/Index-7c14fd96.js +28 -0
- package/dist/{Index-64236029.js → Index-81c49dd8.js} +6 -9
- package/dist/{Index-96725e56.js → Index-90cc1544.js} +7 -7
- package/dist/{Index-843f81bd.js → Index-98237ab3.js} +17 -12
- package/dist/{Index-f640eb29.js → Index-a7e8812e.js} +2 -2
- package/dist/{Index-630c21f5.js → Index-ad36c47b.js} +13 -11
- package/dist/{Index-e813c8cd.js → Index-aea14240.js} +2 -2
- package/dist/{Index-0f2bf3b1.js → Index-b1f07b87.js} +13 -13
- package/dist/{Index-c89d17d9.js → Index-b457cd00.js} +17 -17
- package/dist/{Index-12a6485f.js → Index-c0dd3309.js} +3 -3
- package/dist/{Index-aad34e7e.js → Index-c1b546ad.js} +13 -15
- package/dist/{Index-7c60cb32.js → Index-c1b73537.js} +56 -31
- package/dist/{Index-dbeaf863.js → Index-c2ded827.js} +9 -10
- package/dist/{Index-a3ee21e6.js → Index-ca9d1747.js} +4 -4
- package/dist/{Index-a36c3418.js → Index-cb5b055d.js} +2 -2
- package/dist/{Index-9afa091c.js → Index-cea034a9.js} +13 -11
- package/dist/{Index-7dec77f5.js → Index-e63f7ce8.js} +21 -18
- package/dist/{Index-bb62e92d.js → Index-f05733c2.js} +22 -27
- package/dist/{Index-16155aba.js → Index-f62acccc.js} +7 -7
- package/dist/{Index-bf0e9351.js → Index-f9bbee77.js} +2 -2
- package/dist/{Index-0b1a9238.js → Index-ffedf35a.js} +4 -4
- package/dist/{InputToggleRow-40b7b57e.js → InputToggleRow-176f3685.js} +4 -4
- package/dist/{IsPremiumPreStep-d2ceb183.js → IsPremiumPreStep-f3040c7a.js} +81 -36
- package/dist/{ManualPopover-58c3f059.js → ManualPopover-b7c65a0c.js} +5 -2
- package/dist/{MediaWrapper-0e3ff436.js → MediaWrapper-d1f91245.js} +3 -3
- package/dist/{NotBindingText-38e6e74c.js → NotBindingText-00d1b175.js} +2 -2
- package/dist/{PackageGroup-6e6dd719.js → PackageGroup-89033998.js} +184 -69
- package/dist/{PdfTerms-3be0f8d1.js → PdfTerms-0e214875.js} +8 -8
- package/dist/{PdfViewer-991eb731.js → PdfViewer-00d4de8d.js} +2 -2
- package/dist/{PlainHtml-4aaf6438.js → PlainHtml-00ce6fd0.js} +1 -1
- package/dist/{PriceHeader-f3e7b525.js → PriceHeader-553f4ff0.js} +48 -32
- package/dist/{SearchApi-2523a5fb.js → SearchApi-e5cde5cf.js} +40 -20
- package/dist/{Setup-2849b519.js → Setup-7f309cf0.js} +1 -1
- package/dist/{TermsSettings-6d3dfe8d.js → TermsSettings-74d7c2d9.js} +11 -11
- package/dist/{ThemeColorRow-a33d04b5.js → ThemeColorRow-0b7ad102.js} +4 -4
- package/dist/{ToggleBinding-7c726915.js → ToggleBinding-33b62557.js} +3 -3
- package/dist/{UploadModal-814fc3af.js → UploadModal-6f43c373.js} +16 -14
- package/dist/{VideoPlayerInput-fa0774c1.js → VideoPlayerInput-81e64059.js} +3 -3
- package/dist/{VideoPlayerSettings-ff82938f.js → VideoPlayerSettings-f3445401.js} +5 -5
- package/dist/{VideoSelectModal-7b213a09.js → VideoSelectModal-736176ac.js} +32 -36
- package/dist/{answerDocumentMixin-b2488be9.js → answerDocumentMixin-0b94b90e.js} +3 -3
- package/dist/{debounce-0451fa9d.js → debounce-9410d5d6.js} +1 -1
- package/dist/{focusDrawerMixin-0d406532.js → focusDrawerMixin-14a97cd3.js} +1 -1
- package/dist/{formComponentsInstall-9c59efba.js → formComponentsInstall-6a61db21.js} +210 -168
- package/dist/{formDrawerState-6c57d51e.js → formDrawerState-b23639bd.js} +1 -1
- package/dist/{formValidationMixin-7603171e.js → formValidationMixin-047668c3.js} +1 -1
- package/dist/{image-58c45661.js → image-cd324ded.js} +1 -1
- package/dist/{index-47e427b4.js → index-22c9f370.js} +8 -6
- package/dist/{index-b20167b3.js → index-3003bff6.js} +4 -4
- package/dist/{index-cf014fd4.js → index-569793de.js} +2 -2
- package/dist/{index-0c493549.js → index-a62beb97.js} +17 -9
- package/dist/{index-4afc771b.js → index-ad0c2be7.js} +1 -1
- package/dist/{index-c0b45aa7.js → index-b937c6d2.js} +12 -12
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +96 -67
- package/dist/{main-8d566a02.js → main-4f27b552.js} +137 -80
- package/dist/{mapFormMixin-4446a1bd.js → mapFormMixin-9f326a09.js} +1 -1
- package/dist/{publicSenderState-02c0c9eb.js → publicSenderState-ec8a9ad6.js} +1 -1
- package/dist/{simplebar.min-d30d6e1f.js → simplebar.min-c555666e.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{template-e04cc32f.js → template-70f4518f.js} +7 -7
- package/dist/{throttle-b0a5ba09.js → throttle-a0a6c1c7.js} +2 -2
- package/dist/{tinycolor-c6f29f33.js → tinycolor-2fdfb0b3.js} +1 -1
- package/dist/{tippy.esm-2cb937d0.js → tippy.esm-e8cf7685.js} +8 -8
- package/dist/{utils-36338df7.js → utils-805171cf.js} +1 -1
- package/dist/{vuedraggable.umd-a0d21ce9.js → vuedraggable.umd-79e4b33e.js} +1 -1
- package/package.json +2 -2
- package/dist/ErrorCallout-4ce34a95.js +0 -30
- package/dist/Index-66295ea9.js +0 -28
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { m as e } from "./mapFormMixin-
|
|
2
|
-
import { n as i } from "./main-
|
|
1
|
+
import { m as e } from "./mapFormMixin-9f326a09.js";
|
|
2
|
+
import { n as i } from "./main-4f27b552.js";
|
|
3
3
|
const r = {
|
|
4
4
|
name: "ExtraWorkTimeImpactText",
|
|
5
5
|
components: {
|
|
6
|
-
Read: () => import("./Index-
|
|
7
|
-
Edit: () => import("./Index-
|
|
6
|
+
Read: () => import("./Index-0428c10a.js"),
|
|
7
|
+
Edit: () => import("./Index-5a61849b.js")
|
|
8
8
|
},
|
|
9
|
-
mixins: [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
mixins: [
|
|
10
|
+
e([
|
|
11
|
+
"workStartAt",
|
|
12
|
+
"workEndAt",
|
|
13
|
+
"timeUnit",
|
|
14
|
+
"noOfTimeUnits",
|
|
15
|
+
"timeDeltaDirection"
|
|
16
|
+
])
|
|
17
|
+
]
|
|
16
18
|
};
|
|
17
19
|
var o = function() {
|
|
18
20
|
var t = this, n = t._self._c;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { m as n } from "./mapFormMixin-
|
|
2
|
-
import { V as r } from "./PdfViewer-
|
|
3
|
-
import { n as l } from "./main-
|
|
1
|
+
import { m as n } from "./mapFormMixin-9f326a09.js";
|
|
2
|
+
import { V as r } from "./PdfViewer-00d4de8d.js";
|
|
3
|
+
import { n as l } from "./main-4f27b552.js";
|
|
4
4
|
import "./dom-962579a6.js";
|
|
5
|
-
import "./DocumentLayout-
|
|
6
|
-
import "./debounce-
|
|
7
|
-
import "./CDropdownItem-
|
|
5
|
+
import "./DocumentLayout-81ae175c.js";
|
|
6
|
+
import "./debounce-9410d5d6.js";
|
|
7
|
+
import "./CDropdownItem-109be2e2.js";
|
|
8
8
|
const i = {
|
|
9
9
|
i18nOptions: {
|
|
10
10
|
namespaces: "pdfBlock",
|
|
@@ -25,12 +25,10 @@ const i = {
|
|
|
25
25
|
name: "Pdf",
|
|
26
26
|
components: {
|
|
27
27
|
PdfViewer: r,
|
|
28
|
-
FileIcon: () => import("./Index-
|
|
29
|
-
BaseUpload: () => import("./BaseUpload-
|
|
28
|
+
FileIcon: () => import("./Index-cb5b055d.js"),
|
|
29
|
+
BaseUpload: () => import("./BaseUpload-529d21bb.js")
|
|
30
30
|
},
|
|
31
|
-
mixins: [
|
|
32
|
-
n(["file"])
|
|
33
|
-
],
|
|
31
|
+
mixins: [n(["file"])],
|
|
34
32
|
inject: {
|
|
35
33
|
isPdf: {
|
|
36
34
|
default: !1
|
|
@@ -58,12 +56,7 @@ const i = {
|
|
|
58
56
|
},
|
|
59
57
|
methods: {
|
|
60
58
|
onUploadSuccess(o) {
|
|
61
|
-
const {
|
|
62
|
-
id: e,
|
|
63
|
-
displayName: s,
|
|
64
|
-
url: t,
|
|
65
|
-
mime: a
|
|
66
|
-
} = o.response;
|
|
59
|
+
const { id: e, displayName: s, url: t, mime: a } = o.response;
|
|
67
60
|
if (!e)
|
|
68
61
|
throw new Error("Could not read id from uploaded file");
|
|
69
62
|
this.file = {
|
|
@@ -81,7 +74,17 @@ var d = function() {
|
|
|
81
74
|
e.isHover = !0;
|
|
82
75
|
}, mouseleave: function(t) {
|
|
83
76
|
e.isHover = !1;
|
|
84
|
-
} } }, [e.canEdit ? s("div", { directives: [{ name: "show", rawName: "v-show", value: e.showControls, expression: "showControls" }], staticClass: "flex items-center p-4 text-left bg-gray-100 rounded-lg pdf-control-root", class: !!e.file && [
|
|
77
|
+
} } }, [e.canEdit ? s("div", { directives: [{ name: "show", rawName: "v-show", value: e.showControls, expression: "showControls" }], staticClass: "flex items-center p-4 text-left bg-gray-100 rounded-lg pdf-control-root", class: !!e.file && [
|
|
78
|
+
"absolute",
|
|
79
|
+
"z-10",
|
|
80
|
+
"left-2",
|
|
81
|
+
"right-2",
|
|
82
|
+
"top-2",
|
|
83
|
+
"shadow-lg",
|
|
84
|
+
"bg-white",
|
|
85
|
+
"border",
|
|
86
|
+
"border-gray-200"
|
|
87
|
+
] }, [s("FileIcon", { attrs: { mime: "application/pdf" } }), s("div", { staticClass: "flex-auto pl-4" }, [s("div", { staticClass: "font-medium" }, [e._v("PDF")]), s("div", { staticClass: "text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("embedded")) + " " + e._s(e.numPages ? e.$t("numOfPages", { numPages: e.numPages }) : "") + " ")])]), s("BaseUpload", { ref: "uploader", attrs: { "autostart-upload": !0, "background-drop": !1, extensions: "pdf", accept: "application/pdf" }, on: { input: ([t]) => e.uploadProgress = t ? parseInt(t.progress, 10) : null, "upload-success": e.onUploadSuccess }, scopedSlots: e._u([{ key: "default", fn: function({ openFilePicker: t }) {
|
|
85
88
|
return [s("CButton", { staticStyle: { "z-index": "2" }, attrs: { type: e.file ? "none" : "secondary", pattern: e.file ? "secondary" : "primary", disabled: e.uploadProgress !== null }, on: { click: t } }, [e.uploadProgress !== null ? [e._v(" " + e._s(`${e.uploadProgress}% ${e.$t("_common:uploading")}`) + " ")] : [e._v(" " + e._s(e.file ? e.$t("_common:change", { thing: e.$t("_common:file") }) : e.$t("upload")) + " ")]], 2)];
|
|
86
89
|
} }], null, !1, 3134809537) })], 1) : e._e(), e.file ? s("div", [s("div", { staticClass: "print-page-break" }, [e.file && e.file.url ? s("PdfViewer", { attrs: { src: e.file.url }, on: { numPages: (t) => e.numPages = t } }) : e._e()], 1)]) : e._e()]);
|
|
87
90
|
}, u = [], p = /* @__PURE__ */ l(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as m, o as p } from "./main-
|
|
2
|
-
import { m as c } from "./mapFormMixin-
|
|
3
|
-
import l from "./FilePreviewModal-
|
|
4
|
-
import "./PdfViewer-
|
|
1
|
+
import { n as m, o as p } from "./main-4f27b552.js";
|
|
2
|
+
import { m as c } from "./mapFormMixin-9f326a09.js";
|
|
3
|
+
import l from "./FilePreviewModal-dc188de1.js";
|
|
4
|
+
import "./PdfViewer-00d4de8d.js";
|
|
5
5
|
import "./dom-962579a6.js";
|
|
6
|
-
import "./DocumentLayout-
|
|
7
|
-
import "./debounce-
|
|
8
|
-
import "./CDropdownItem-
|
|
6
|
+
import "./DocumentLayout-81ae175c.js";
|
|
7
|
+
import "./debounce-9410d5d6.js";
|
|
8
|
+
import "./CDropdownItem-109be2e2.js";
|
|
9
9
|
const d = {
|
|
10
10
|
name: "FilePreviewWrapper",
|
|
11
11
|
components: {
|
|
@@ -20,7 +20,10 @@ const d = {
|
|
|
20
20
|
},
|
|
21
21
|
computed: {
|
|
22
22
|
fileList() {
|
|
23
|
-
return this.list.reduce(
|
|
23
|
+
return this.list.reduce(
|
|
24
|
+
(t, e) => this.isImage(e.mime) || this.isPdf(e.mime) ? [...t, e] : t,
|
|
25
|
+
[]
|
|
26
|
+
);
|
|
24
27
|
}
|
|
25
28
|
},
|
|
26
29
|
methods: {
|
|
@@ -71,8 +74,8 @@ const w = h.exports, v = {
|
|
|
71
74
|
name: "AttachmentList",
|
|
72
75
|
components: {
|
|
73
76
|
FilePreviewWrapper: w,
|
|
74
|
-
BaseUpload: () => import("./BaseUpload-
|
|
75
|
-
AttachmentItem: () => import("./AttachmentItem-
|
|
77
|
+
BaseUpload: () => import("./BaseUpload-529d21bb.js"),
|
|
78
|
+
AttachmentItem: () => import("./AttachmentItem-24ad77d3.js")
|
|
76
79
|
},
|
|
77
80
|
mixins: [c(["attachments"])],
|
|
78
81
|
data() {
|
|
@@ -85,17 +88,14 @@ const w = h.exports, v = {
|
|
|
85
88
|
cAttachments() {
|
|
86
89
|
return [
|
|
87
90
|
...this.attachments,
|
|
88
|
-
...this.newFiles.map(
|
|
89
|
-
displayName: t,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
url: s,
|
|
97
|
-
progress: parseInt(n, 10)
|
|
98
|
-
}))
|
|
91
|
+
...this.newFiles.map(
|
|
92
|
+
({ displayName: t, type: e, url: s, progress: n }) => ({
|
|
93
|
+
name: t,
|
|
94
|
+
mime: e,
|
|
95
|
+
url: s,
|
|
96
|
+
progress: parseInt(n, 10)
|
|
97
|
+
})
|
|
98
|
+
)
|
|
99
99
|
];
|
|
100
100
|
},
|
|
101
101
|
showRecentModal() {
|
|
@@ -105,12 +105,7 @@ const w = h.exports, v = {
|
|
|
105
105
|
methods: {
|
|
106
106
|
immutable: p,
|
|
107
107
|
async onUploadSuccess(t) {
|
|
108
|
-
const {
|
|
109
|
-
id: e,
|
|
110
|
-
displayName: s,
|
|
111
|
-
url: n,
|
|
112
|
-
mime: i
|
|
113
|
-
} = t.response;
|
|
108
|
+
const { id: e, displayName: s, url: n, mime: i } = t.response;
|
|
114
109
|
if (!e)
|
|
115
110
|
throw new Error("Could not read id from uploaded file");
|
|
116
111
|
this.attachments = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as o } from "./mapFormMixin-
|
|
2
|
-
import { f as i } from "./focusDrawerMixin-
|
|
3
|
-
import { S as a, n as r } from "./main-
|
|
4
|
-
import "./formDrawerState-
|
|
1
|
+
import { m as o } from "./mapFormMixin-9f326a09.js";
|
|
2
|
+
import { f as i } from "./focusDrawerMixin-14a97cd3.js";
|
|
3
|
+
import { S as a, n as r } from "./main-4f27b552.js";
|
|
4
|
+
import "./formDrawerState-b23639bd.js";
|
|
5
5
|
const d = {
|
|
6
6
|
name: "Embed",
|
|
7
7
|
i18nOptions: {
|
|
@@ -16,8 +16,8 @@ const d = {
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
components: {
|
|
19
|
-
EmbedSettings: () => import("./EmbedSettings-
|
|
20
|
-
EmbedInput: () => import("./EmbedInput-
|
|
19
|
+
EmbedSettings: () => import("./EmbedSettings-1063c1e4.js"),
|
|
20
|
+
EmbedInput: () => import("./EmbedInput-fbbf12f1.js"),
|
|
21
21
|
Spinner: a
|
|
22
22
|
},
|
|
23
23
|
mixins: [o(["embed", "size"]), i],
|
|
@@ -62,7 +62,7 @@ var m = function() {
|
|
|
62
62
|
l,
|
|
63
63
|
!1,
|
|
64
64
|
null,
|
|
65
|
-
"
|
|
65
|
+
"697f54a9",
|
|
66
66
|
null,
|
|
67
67
|
null
|
|
68
68
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as r } from "./main-
|
|
1
|
+
import { n as r } from "./main-4f27b552.js";
|
|
2
2
|
const l = {
|
|
3
3
|
name: "DocChapterSub",
|
|
4
4
|
inheritAttrs: !1,
|
|
@@ -23,7 +23,7 @@ var o = function(e, t) {
|
|
|
23
23
|
u,
|
|
24
24
|
!0,
|
|
25
25
|
null,
|
|
26
|
-
"
|
|
26
|
+
"7f7e7550",
|
|
27
27
|
null,
|
|
28
28
|
null
|
|
29
29
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { m as e } from "./mapFormMixin-
|
|
2
|
-
import { n as i } from "./main-
|
|
1
|
+
import { m as e } from "./mapFormMixin-9f326a09.js";
|
|
2
|
+
import { n as i } from "./main-4f27b552.js";
|
|
3
3
|
const m = {
|
|
4
4
|
name: "EstimatedTimeToComplete",
|
|
5
5
|
components: {
|
|
6
|
-
Read: () => import("./Index-
|
|
7
|
-
Edit: () => import("./Index-
|
|
6
|
+
Read: () => import("./Index-aea14240.js"),
|
|
7
|
+
Edit: () => import("./Index-ca9d1747.js")
|
|
8
8
|
},
|
|
9
9
|
mixins: [e(["noOfTimeUnits", "timeUnit"])]
|
|
10
10
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as s } from "./main-
|
|
1
|
+
import { n as s } from "./main-4f27b552.js";
|
|
2
2
|
const n = {
|
|
3
3
|
name: "InputCompactRow",
|
|
4
4
|
props: {
|
|
@@ -37,19 +37,19 @@ var l = function() {
|
|
|
37
37
|
return e("div", { staticClass: "input-row" }, [e("div", { staticClass: "flex justify-between w-full" }, [e("div", { staticClass: "input-label" }, [t._t("label", function() {
|
|
38
38
|
return [t._v(t._s(t.label))];
|
|
39
39
|
})], 2), e("div", { staticClass: "flex justify-end w-full", staticStyle: { width: "initial" } }, [t._t("toggle", function() {
|
|
40
|
-
return [t.showClear ? e("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("remove"), expression: "$t('remove')" }], staticClass: "clear-input-button", attrs: { size: "small", icon: "x" }, on: { click: function(
|
|
40
|
+
return [t.showClear ? e("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("remove"), expression: "$t('remove')" }], staticClass: "clear-input-button", attrs: { size: "small", icon: "x" }, on: { click: function(c) {
|
|
41
41
|
return t.$emit("remove");
|
|
42
42
|
} } }) : t._e(), t.isEditing ? t.$scopedSlots.bottom ? t._e() : e("div", { directives: [{ name: "click-outside", rawName: "v-click-outside", value: t.closeEdit, expression: "closeEdit" }], ref: "inputContainer" }, [t._t("default")], 2) : e("CButton", { staticClass: "input-toggle-button", class: { "is-edit": t.isEditing }, attrs: { type: "none", pattern: "secondary", size: "small" }, on: { click: t.openEdit } }, [t._t("displayValue", function() {
|
|
43
43
|
return [t._v(t._s(t.displayValue))];
|
|
44
44
|
})], 2)];
|
|
45
|
-
})], 2)]), t.$scopedSlots.bottom ? e("div", [e("div", { directives: [{ name: "click-outside", rawName: "v-click-outside", value: () => t.isEditing ? t.closeEdit : null, expression: "() => isEditing ? closeEdit : null" }] }, [t._t("bottom", null, { isEditing: t.isEditing, closeEdit: t.closeEdit })], 2)]) : t._e()]);
|
|
45
|
+
})], 2)]), t.$scopedSlots.bottom ? e("div", [e("div", { directives: [{ name: "click-outside", rawName: "v-click-outside", value: () => t.isEditing ? t.closeEdit : null, expression: "() => (isEditing ? closeEdit : null)" }] }, [t._t("bottom", null, { isEditing: t.isEditing, closeEdit: t.closeEdit })], 2)]) : t._e()]);
|
|
46
46
|
}, o = [], a = /* @__PURE__ */ s(
|
|
47
47
|
n,
|
|
48
48
|
l,
|
|
49
49
|
o,
|
|
50
50
|
!1,
|
|
51
51
|
null,
|
|
52
|
-
"
|
|
52
|
+
"9cac2cce",
|
|
53
53
|
null,
|
|
54
54
|
null
|
|
55
55
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as h, X as L, ay as B, b as C, az as M, aA as Z, aB as K, aC as Y, aD as W, V as F, aE as X, aF as Q, n as d, u as P, E as J, T as y, aG as ee, g as m, aH as _, aI as te, aJ as ne, aK as ae, aL as H, p as re, h as D, I as E, aM as U, J as ie, aN as se, ao as oe } from "./main-
|
|
1
|
+
import { c as h, X as L, ay as B, b as C, az as M, aA as Z, aB as K, aC as Y, aD as W, V as F, aE as X, aF as Q, n as d, u as P, E as J, T as y, aG as ee, g as m, aH as _, aI as te, aJ as ne, aK as ae, aL as H, p as re, h as D, I as E, aM as U, J as ie, aN as se, ao as oe } from "./main-4f27b552.js";
|
|
2
2
|
import { m as v, a as T, b as le } from "./vuex.esm-4a0fff7c.js";
|
|
3
3
|
import { a as u } from "./anime.es-e284c852.js";
|
|
4
|
-
import { g as k } from "./image-
|
|
5
|
-
import "./index-
|
|
4
|
+
import { g as k } from "./image-cd324ded.js";
|
|
5
|
+
import "./index-ad0c2be7.js";
|
|
6
6
|
import { g as ce } from "./dom-962579a6.js";
|
|
7
7
|
import { v as b } from "./index-805c56e4.js";
|
|
8
8
|
const x = {
|
|
@@ -1760,7 +1760,7 @@ var be = function() {
|
|
|
1760
1760
|
Pe,
|
|
1761
1761
|
!1,
|
|
1762
1762
|
null,
|
|
1763
|
-
"
|
|
1763
|
+
"ebe417f7",
|
|
1764
1764
|
null,
|
|
1765
1765
|
null
|
|
1766
1766
|
);
|
|
@@ -1838,16 +1838,15 @@ const xe = {
|
|
|
1838
1838
|
if (typeof e > "u" || typeof t > "u")
|
|
1839
1839
|
return "";
|
|
1840
1840
|
const a = e / (this.interval === "month" ? 1 : 12);
|
|
1841
|
-
return `${P(a, { currency: t })}/${this.$t(
|
|
1841
|
+
return `${P(a, { currency: t })}/${this.$t(
|
|
1842
|
+
"_common:month"
|
|
1843
|
+
)}`;
|
|
1842
1844
|
}
|
|
1843
1845
|
}
|
|
1844
1846
|
};
|
|
1845
1847
|
var we = function() {
|
|
1846
1848
|
var e = this, t = e._self._c;
|
|
1847
|
-
return t("div", { staticClass: "flex flex-col items-center w-full animating", staticStyle: { "padding-top": "30px" } }, [t("div", { staticClass: "flex flex-col items-center w-full text-center anim-block", staticStyle: { "margin-bottom": "50px" } }, [t("div", { staticStyle: { "font-size": "22px", "font-weight": "600", "margin-bottom": "20px", "max-width": "20ch" }, domProps: { innerHTML: e._s(e.$t("title", { brand: e.$t("_common:brand.name") })) } }), t("div", { staticStyle: { position: "relative" } }, [t("div", { staticClass: "tgl-btn-group" }, e._l([
|
|
1848
|
-
"month",
|
|
1849
|
-
"year"
|
|
1850
|
-
], function(a) {
|
|
1849
|
+
return t("div", { staticClass: "flex flex-col items-center w-full animating", staticStyle: { "padding-top": "30px" } }, [t("div", { staticClass: "flex flex-col items-center w-full text-center anim-block", staticStyle: { "margin-bottom": "50px" } }, [t("div", { staticStyle: { "font-size": "22px", "font-weight": "600", "margin-bottom": "20px", "max-width": "20ch" }, domProps: { innerHTML: e._s(e.$t("title", { brand: e.$t("_common:brand.name") })) } }), t("div", { staticStyle: { position: "relative" } }, [t("div", { staticClass: "tgl-btn-group" }, e._l(["month", "year"], function(a) {
|
|
1851
1850
|
return t("div", { key: a, staticClass: "tgl-btn", class: {
|
|
1852
1851
|
selected: e.interval === a
|
|
1853
1852
|
}, domProps: { textContent: e._s(e.$t(`_common:paymentInterval.${a}`).capitalize()) }, on: { click: function(r) {
|
|
@@ -1858,7 +1857,7 @@ var we = function() {
|
|
|
1858
1857
|
selected: e.plan === a.accountType
|
|
1859
1858
|
}, on: { click: function(i) {
|
|
1860
1859
|
return e.$emit("update:plan", a.accountType);
|
|
1861
|
-
} } }, [t("div", [t("img", { staticStyle: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%" }, attrs: { src: a.img, alt: a.name, width: "50", height: "50" } })]), t("div", { staticClass: "PriceItem__title" }, [t("span", { domProps: { textContent: e._s(a.name) } }), e._v("
|
|
1860
|
+
} } }, [t("div", [t("img", { staticStyle: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%" }, attrs: { src: a.img, alt: a.name, width: "50", height: "50" } })]), t("div", { staticClass: "PriceItem__title" }, [t("span", { domProps: { textContent: e._s(a.name) } }), e._v(" ")]), e.currentAccountType === a.accountType ? t("svg", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("currentPlan"), expression: "$t('currentPlan')" }], staticClass: "absolute right-0 top-0 rounded-tr-lg text-gray-400 [.selected_&]:text-primary-500", attrs: { width: "50", height: "50", viewBox: "0 0 70 70", fill: "none", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M0 0H70V70L0 0Z", fill: "currentColor" } }), t("path", { attrs: { d: "M39.4203 23.5667L45 29.1464L57.0732 17.0732", stroke: "white", "stroke-width": "4" } })]) : e._e(), t("div", { staticClass: "PriceItem__cost" }, [t("span", { staticStyle: { display: "inline-block" }, domProps: { textContent: e._s(e.getPriceFormatted(a)) } }), e._v(" ")]), t("div", { staticStyle: { "font-size": "14px", "margin-bottom": "20px", color: "hsl(240, 8%, 45%)", "min-height": "2em" } }, [t("transition", { attrs: { name: "vertical-fader" } }, [e.interval === "year" && a.accountType !== "free" ? t("span", { staticStyle: { display: "inline-block" }, domProps: { textContent: e._s(e.$t("billedYearly")) } }) : e._e()])], 1), t("ul", { staticClass: "PriceItem__text" }, e._l(a.features, function(i) {
|
|
1862
1861
|
return t("li", { key: i }, [t("span", { domProps: { textContent: e._s(i) } })]);
|
|
1863
1862
|
}), 0)]);
|
|
1864
1863
|
}), 0), t("CButton", { staticClass: "anim-block sticky-btn", attrs: { disabled: e.currentAccountType === e.plan && e.currentInterval === e.interval || e.plan === "free", type: "secondary", "icon-right": "arrow-right" }, on: { click: function(a) {
|
|
@@ -1870,7 +1869,7 @@ var we = function() {
|
|
|
1870
1869
|
Te,
|
|
1871
1870
|
!1,
|
|
1872
1871
|
null,
|
|
1873
|
-
"
|
|
1872
|
+
"8640a593",
|
|
1874
1873
|
null,
|
|
1875
1874
|
null
|
|
1876
1875
|
);
|
|
@@ -2384,7 +2383,11 @@ const He = {
|
|
|
2384
2383
|
return (n = this.customer) == null ? void 0 : n.paymentMethodLast4;
|
|
2385
2384
|
},
|
|
2386
2385
|
sortedRegions() {
|
|
2387
|
-
return (Object.keys(x) || []).map((n) => ({
|
|
2386
|
+
return (Object.keys(x) || []).map((n) => ({
|
|
2387
|
+
key: n,
|
|
2388
|
+
title: `${x[n].name} (${n})`,
|
|
2389
|
+
callingCode: x[n].callingCode
|
|
2390
|
+
})).sort((n, e) => n.title.localeCompare(e.title));
|
|
2388
2391
|
},
|
|
2389
2392
|
currency() {
|
|
2390
2393
|
return this.formPrices.currency;
|
|
@@ -2412,10 +2415,12 @@ const He = {
|
|
|
2412
2415
|
const l = this.getMeteredProduct(s);
|
|
2413
2416
|
if (!l)
|
|
2414
2417
|
return;
|
|
2415
|
-
const o = l.prices.find(
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2418
|
+
const o = l.prices.find(
|
|
2419
|
+
(p) => {
|
|
2420
|
+
var g;
|
|
2421
|
+
return p.active && ((g = p == null ? void 0 : p.metadata) == null ? void 0 : g.visible) === !0;
|
|
2422
|
+
}
|
|
2423
|
+
);
|
|
2419
2424
|
if (!o)
|
|
2420
2425
|
return;
|
|
2421
2426
|
const c = P(o.amount, {
|
|
@@ -2446,7 +2451,10 @@ const He = {
|
|
|
2446
2451
|
}), this.customer) {
|
|
2447
2452
|
const n = !!this.customer.paymentMethodId;
|
|
2448
2453
|
this.useExistingCard = n, this.useExistingCustomer = n, ["name", "region", "email"].forEach((t) => {
|
|
2449
|
-
this.customer[t] && this.$emit("input", {
|
|
2454
|
+
this.customer[t] && this.$emit("input", {
|
|
2455
|
+
key: `customer.${t}`,
|
|
2456
|
+
value: this.customer[t]
|
|
2457
|
+
});
|
|
2450
2458
|
});
|
|
2451
2459
|
const { data: e } = await ee();
|
|
2452
2460
|
this.setPromotion({ promotionDetails: e });
|
|
@@ -2470,7 +2478,9 @@ const He = {
|
|
|
2470
2478
|
this.elementsError = this.$t("missingCard");
|
|
2471
2479
|
return;
|
|
2472
2480
|
}
|
|
2473
|
-
await this.submitPlan({
|
|
2481
|
+
await this.submitPlan({
|
|
2482
|
+
...!this.useExistingCard && { cardElement: this.card }
|
|
2483
|
+
}) && this.$emit("success");
|
|
2474
2484
|
},
|
|
2475
2485
|
async verifyPromotionCode(n) {
|
|
2476
2486
|
if (!n) {
|
|
@@ -2484,14 +2494,17 @@ const He = {
|
|
|
2484
2494
|
var Ue = function() {
|
|
2485
2495
|
var e = this, t = e._self._c;
|
|
2486
2496
|
return t("div", { staticClass: "root font-inter anime-payment-modal" }, [t("div", { staticClass: "flex w-full", staticStyle: { overflow: "hidden" } }, [t("div", { staticClass: "anim-block p-aside" }, [t("div", { staticClass: "p-callout", class: e.uiPlan.accountType }, [t("div", { staticStyle: { "font-size": "11px", position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(1.5 * var(--rem))", display: "flex", "line-height": "1.2" } }, [t("div", { staticStyle: { "text-align": "right", "padding-right": "0.5em" } }, [t("div", { staticStyle: { opacity: "0.7" }, domProps: { textContent: e._s(e.$t("payYearly")) } }), t("div", { staticClass: "font-medium text-primary-500", domProps: { textContent: e._s(e.$t("saveAmount")) } })]), t("CSwitch", { attrs: { value: e.formPlan.interval === "year", size: "small", type: "secondary" }, on: { input: function(a) {
|
|
2487
|
-
return e.$emit(
|
|
2497
|
+
return e.$emit(
|
|
2498
|
+
"update:interval",
|
|
2499
|
+
e.formPlan.interval === "year" ? "month" : "year"
|
|
2500
|
+
);
|
|
2488
2501
|
} } })], 1), t("div", [t("img", { staticStyle: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%", "margin-bottom": "calc(1 * var(--rem))" }, attrs: { src: e.uiPlan.img, alt: e.uiPlan.name, width: "50", height: "50" } })]), t("div", { staticStyle: { "font-weight": "600", "font-size": "21px" } }, [e._v(" " + e._s(e.$t("cardTitle", { plan: e.uiPlan.name })) + " ")]), t("div", { staticClass: "text-[15px] py-4" }, [e._l(e.formPrices.intervals, function(a, r) {
|
|
2489
2502
|
return t("div", { key: `interval-${r}`, staticClass: "pb-2 mb-4 border-b border-gray-200" }, [t("div", { staticClass: "flex justify-between w-full" }, [t("div", { staticClass: "font-medium" }, [e._v(e._s(e.getIntervalTitle(r)))]), t("div", { staticClass: "text-right" }, [t("div", { staticClass: "font-semibold leading-none text-[17px]" }, [e._v(" " + e._s(e.priceFormat(a.subTotal, { currency: e.currency })) + " ")]), t("div", { staticClass: "opacity-70 text-[13px]" }, [e._v(" " + e._s(a.vatAmount ? e.$t("_common:vat.exVat", { thing: e.$t("_common:vat.vat") }) : e.$t("_common:total").capitalize()) + " "), r !== "oneOff" ? [e._v("/ " + e._s(e.$t(`_common:${r}`)) + " ")] : e._e()], 2)])]), e._l(a.items, function(i, s) {
|
|
2490
|
-
return t("div", { key: s, staticClass: "flex justify-between w-full pb-1 mt-2" }, [t("div", { staticClass: "font-medium opacity-70" }, [e._v(" " + e._s(e.disableQuantity ? "" : `${i.quantity} x `) + e._s(i.name.capitalize()) + " ")]), t("div", { staticClass: "text-right opacity-70" }, [e._v(e._s(e.priceFormat(i.amount, { currency: e.currency })))])]);
|
|
2503
|
+
return t("div", { key: s, staticClass: "flex justify-between w-full pb-1 mt-2" }, [t("div", { staticClass: "font-medium opacity-70" }, [e._v(" " + e._s(e.disableQuantity ? "" : `${i.quantity} x `) + e._s(i.name.capitalize()) + " ")]), t("div", { staticClass: "text-right opacity-70" }, [e._v(" " + e._s(e.priceFormat(i.amount, { currency: e.currency })) + " ")])]);
|
|
2491
2504
|
})], 2);
|
|
2492
|
-
}), e.promotion ? t("div", { staticClass: "flex justify-between w-full", staticStyle: { "padding-bottom": "4px" } }, [t("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [e._v(e._s(e.promotion.code || e.promotion.name) + " ")]), t("div", { staticClass: "text-right has-text-danger", staticStyle: { display: "inline-flex", "justify-content": "flex-end", "align-items": "center" } }, [t("CButton", { staticStyle: { height: "inherit", "margin-right": "3px" }, attrs: { disabled: e.isEditLock, "icon-props": { size: 15 }, size: "small", type: "none", pattern: "tertiary", icon: "trash" }, on: { click: function(a) {
|
|
2505
|
+
}), e.promotion ? t("div", { staticClass: "flex justify-between w-full", staticStyle: { "padding-bottom": "4px" } }, [t("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [e._v(" " + e._s(e.promotion.code || e.promotion.name) + " ")]), t("div", { staticClass: "text-right has-text-danger", staticStyle: { display: "inline-flex", "justify-content": "flex-end", "align-items": "center" } }, [t("CButton", { staticStyle: { height: "inherit", "margin-right": "3px" }, attrs: { disabled: e.isEditLock, "icon-props": { size: 15 }, size: "small", type: "none", pattern: "tertiary", icon: "trash" }, on: { click: function(a) {
|
|
2493
2506
|
return e.$emit("input", { key: "promotion", value: null });
|
|
2494
|
-
} } }), t("div", { domProps: { textContent: e._s(e.promotionDescription) } })], 1)]) : e._e(), e.formPrices.vatAmount ? [t("div", { staticClass: "flex justify-between w-full", staticStyle: { "padding-bottom": "4px" } }, [t("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [e._v(e._s(e.$t("_common:vat.vat").capitalize()))]), t("div", { staticClass: "text-right", staticStyle: { opacity: "0.7" } }, [e._v(e._s(e.priceFormat(e.formPrices.vatAmount, { currency: e.currency })))])]), t("div", { staticClass: "flex justify-between w-full", staticStyle: { "padding-bottom": "4px" } }, [t("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [e._v(e._s(e.$t("_common:vat.incVat", { thing: e.$t("_common:vat.vat") }).capitalize()))]), t("div", { staticClass: "text-right", staticStyle: { opacity: "0.7" } }, [e._v(" " + e._s(e.priceFormat(e.formPrices.totalAmount, { currency: e.currency })) + " ")])])] : e._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: !e.promotion, expression: "!promotion" }], staticClass: "flex justify-end w-full" }, [e.promoInputVisible ? t("CField", { staticStyle: { "padding-top": "1em", width: "100%" }, attrs: { expanded: "" } }, [t("CInput", { attrs: { placeholder: e.$t("promotion.placeholder"), "custom-class": e.isInvalidPromotionCode ? "is-danger shake" : "", autofocus: "", size: "small" }, on: { blur: function(a) {
|
|
2507
|
+
} } }), t("div", { domProps: { textContent: e._s(e.promotionDescription) } })], 1)]) : e._e(), e.formPrices.vatAmount ? [t("div", { staticClass: "flex justify-between w-full", staticStyle: { "padding-bottom": "4px" } }, [t("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [e._v(" " + e._s(e.$t("_common:vat.vat").capitalize()) + " ")]), t("div", { staticClass: "text-right", staticStyle: { opacity: "0.7" } }, [e._v(" " + e._s(e.priceFormat(e.formPrices.vatAmount, { currency: e.currency })) + " ")])]), t("div", { staticClass: "flex justify-between w-full", staticStyle: { "padding-bottom": "4px" } }, [t("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [e._v(" " + e._s(e.$t("_common:vat.incVat", { thing: e.$t("_common:vat.vat") }).capitalize()) + " ")]), t("div", { staticClass: "text-right", staticStyle: { opacity: "0.7" } }, [e._v(" " + e._s(e.priceFormat(e.formPrices.totalAmount, { currency: e.currency })) + " ")])])] : e._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: !e.promotion, expression: "!promotion" }], staticClass: "flex justify-end w-full" }, [e.promoInputVisible ? t("CField", { staticStyle: { "padding-top": "1em", width: "100%" }, attrs: { expanded: "" } }, [t("CInput", { attrs: { placeholder: e.$t("promotion.placeholder"), "custom-class": e.isInvalidPromotionCode ? "is-danger shake" : "", autofocus: "", size: "small" }, on: { blur: function(a) {
|
|
2495
2508
|
return e.verifyPromotionCode(e.inputPromotionCode);
|
|
2496
2509
|
} }, nativeOn: { keyup: function(a) {
|
|
2497
2510
|
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.verifyPromotionCode(e.inputPromotionCode);
|
|
@@ -2517,7 +2530,9 @@ var Ue = function() {
|
|
|
2517
2530
|
e.quantity++;
|
|
2518
2531
|
} } })], 1)])]), e.useExistingCustomer ? t("div", { staticClass: "p-callout", staticStyle: { position: "relative", padding: "calc(1 * var(--rem))", "border-radius": "8px" } }, [t("CButton", { staticStyle: { position: "absolute", top: "calc(1 * var(--rem))", right: "calc(1 * var(--rem))" }, attrs: { size: "small", rounded: "" }, on: { click: function(a) {
|
|
2519
2532
|
e.useExistingCustomer = !1;
|
|
2520
|
-
} } }, [e._v(" " + e._s(e.$t("_common:change")) + " ")]), t("div", { staticClass: "flex items-center w-full" }, [t("div", { domProps: { innerHTML: e._s(
|
|
2533
|
+
} } }, [e._v(" " + e._s(e.$t("_common:change")) + " ")]), t("div", { staticClass: "flex items-center w-full" }, [t("div", { domProps: { innerHTML: e._s(
|
|
2534
|
+
e.cardBrands.get(e.customer.paymentMethodBrand, { width: 36 }).logo
|
|
2535
|
+
) } }), t("div", { staticStyle: { "margin-left": "calc(0.5 * var(--rem))" } }, [t("span", { staticStyle: { "margin-right": "5px" } }, [e._v(e._s(e.cardBrands.get(e.customer.paymentMethodBrand).name))]), e._v(" •••• " + e._s(e.customer.paymentMethodLast4 || "") + " ")])]), t("div", [e._v(e._s(e.customer.name))]), t("div", [e._v(e._s(e.customer.email))]), e.regions[e.customer.region] ? t("div", [e._v(" " + e._s(e.regions[e.customer.region].name) + " ")]) : e._e()], 1) : [t("div", { staticClass: "p-block" }, [e.useExistingCard ? e._e() : t("div", { staticClass: "flex items-center w-full p-block-title" }, [t("div", [e._v(e._s(e.$t("paymentInfoLabel")))])]), t("div", [e.useExistingCard && e.existingCardLast4 ? t("div", { staticClass: "p-block" }, [e._v(" " + e._s(e.$t("paymentInfoLabel")) + " "), t("CField", { attrs: { messages: e.messages.email, expanded: "" } }, [t("CInput", { attrs: { value: `•••• •••• •••• ${e.existingCardLast4}`, size: "medium", disabled: "", filled: "" } }, [t("CButton", { attrs: { slot: "suffix", type: "secondary", size: "small" }, on: { click: function(a) {
|
|
2521
2536
|
e.useExistingCard = !1;
|
|
2522
2537
|
} }, slot: "suffix" }, [e._v(" " + e._s(e.$t("_common:change")) + " ")])], 1)], 1)], 1) : e._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: !e.useExistingCard, expression: "!useExistingCard" }], staticClass: "bg-gray-100", staticStyle: { width: "400px", padding: "1em 1em", "border-radius": "0.5em", "min-height": "54px" }, attrs: { id: "card-element" } }), t("div", { directives: [{ name: "show", rawName: "v-show", value: e.elementsError && !e.useExistingCard, expression: "elementsError && !useExistingCard" }], staticClass: "pt-2 text-red-500", domProps: { textContent: e._s(e.elementsError) } })])]), t("div", { staticClass: "p-block" }, [e._v(" " + e._s(e.$t("name.label")) + " "), t("CInput", { attrs: { value: e.formCustomer.name, placeholder: e.$t("name.placeholder"), size: "medium", filled: "" }, on: { input: function(a) {
|
|
2523
2538
|
return e.$emit("input", { key: "customer.name", value: a });
|
|
@@ -2531,10 +2546,16 @@ var Ue = function() {
|
|
|
2531
2546
|
e.consent = a;
|
|
2532
2547
|
}, expression: "consent" } }, [t("div", { class: [
|
|
2533
2548
|
e.$v.consent.$invalid && e.$v.consent.$dirty ? "has-text-danger" : "has-text-grey-dark"
|
|
2534
|
-
] }, [e._v(" " + e._s(e.$t("consent.label", { brand: e.$t("_common:brand.name") })) + " "), t("a", { staticClass: "underline", attrs: { href: e.$t("_common:brand.termsOfService.url"), target: "_blank", rel: "noopener", tabindex: "-1" } }, [e._v(" " + e._s(e.$t("_common:terms.termsAndConditions")) + " ")]), e._v(" " + e._s(e.$t("_common:and")) + " "), t("a", { staticClass: "underline", attrs: { href: e.$t("_common:brand.privacyPolicy.url"), target: "_blank", rel: "noopener", tabindex: "-1" } }, [e._v(" " + e._s(e.$t("_common:terms.privacyPolicy")) + " ")])])])], 1) : e._e(), t("div", { staticClass: "anim-block p-block" }, [t("CButton", { staticStyle: { "margin-top": "calc(1 * var(--rem))" }, attrs: { loading: e.isPosting, type: "secondary", wide: "", size: "medium", "icon-right": "arrow-right" }, on: { click: e.submit } }, [e._v(" " + e._s(e.$t("submitButton", { plan: e.uiPlan.name })) + " ")])], 1)])]), t("modal", { staticClass: "overflow-visible primary", attrs: { adaptive: !0, scrollable: !0, "max-width": 400, height: "auto", width: "90%", classes: "primary overflow-visible", name: "faq" } }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, [t("div", { staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "600", "margin-bottom": ".5em", padding: "calc(1 * var(--rem))" }, domProps: { textContent: e._s(e.$t("faq.title")) } }), e._l(6, function(a) {
|
|
2549
|
+
] }, [e._v(" " + e._s(e.$t("consent.label", { brand: e.$t("_common:brand.name") })) + " "), t("a", { staticClass: "underline", attrs: { href: e.$t("_common:brand.termsOfService.url"), target: "_blank", rel: "noopener", tabindex: "-1" } }, [e._v(" " + e._s(e.$t("_common:terms.termsAndConditions")) + " ")]), e._v(" " + e._s(e.$t("_common:and")) + " "), t("a", { staticClass: "underline", attrs: { href: e.$t("_common:brand.privacyPolicy.url"), target: "_blank", rel: "noopener", tabindex: "-1" } }, [e._v(" " + e._s(e.$t("_common:terms.privacyPolicy")) + " ")])])])], 1) : e._e(), t("div", { staticClass: "anim-block p-block" }, [t("CButton", { staticStyle: { "margin-top": "calc(1 * var(--rem))" }, attrs: { loading: e.isPosting, type: "secondary", wide: "", size: "medium", "icon-right": "arrow-right" }, on: { click: e.submit } }, [e._v(" " + e._s(e.$t("submitButton", { plan: e.uiPlan.name })) + " ")])], 1)])]), t("modal", { staticClass: "overflow-visible primary", attrs: { adaptive: !0, scrollable: !0, "max-width": 400, height: "auto", width: "90%", classes: "primary overflow-visible", name: "faq" } }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, [t("div", { staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "600", "margin-bottom": "0.5em", padding: "calc(1 * var(--rem))" }, domProps: { textContent: e._s(e.$t("faq.title")) } }), e._l(6, function(a) {
|
|
2535
2550
|
return t("CAccordion", { key: a, attrs: { "default-open": null }, scopedSlots: e._u([{ key: "trigger", fn: function({ expanded: r }) {
|
|
2536
|
-
return t("div", { staticClass: "list-button" }, [t("span", { domProps: { textContent: e._s(
|
|
2537
|
-
|
|
2551
|
+
return t("div", { staticClass: "list-button" }, [t("span", { domProps: { textContent: e._s(
|
|
2552
|
+
e.$t(`faq.items.${a - 1}.title`, {
|
|
2553
|
+
brand: e.$t("_common:brand.name")
|
|
2554
|
+
})
|
|
2555
|
+
) } }), t("BaseIcon", { staticStyle: { transition: "200ms" }, style: { transform: `rotate(${r ? "0deg" : "180deg"})` }, attrs: { type: "chevron-down", size: "15" } })], 1);
|
|
2556
|
+
} }], null, !0) }, [t("div", { staticStyle: { "font-size": "14px", opacity: "0.65", padding: "0 calc(0.5 * var(--rem)) calc(2 * var(--rem))" }, domProps: { textContent: e._s(
|
|
2557
|
+
e.$t(`faq.items.${a - 1}.text`, { brand: e.$t("_common:brand.name") })
|
|
2558
|
+
) } })]);
|
|
2538
2559
|
})], 2)]), t("modal", { staticClass: "overflow-visible primary", attrs: { adaptive: !0, scrollable: !0, "max-width": 400, height: "auto", width: "90%", classes: "primary overflow-visible", name: "reasonableUse" } }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, [t("div", { staticStyle: { "font-size": "calc(1.5 * var(--rem))", "font-weight": "600", padding: "calc(1 * var(--rem))" }, domProps: { textContent: e._s(e.$t("reasonableUse.title")) } }), t("div", { staticStyle: { "font-size": "15px", opacity: "0.75", padding: "0 calc(1 * var(--rem)) calc(2 * var(--rem))" }, domProps: { textContent: e._s(e.$t("reasonableUse.text", { brand: e.$t("_common:brand.name") })) } }), t("div", { staticStyle: { padding: "0 calc(1 * var(--rem))" } }, e._l(e.reasonableUseQuotas, function(a, r) {
|
|
2539
2560
|
return t("div", { key: r, staticStyle: { "font-size": "14px", "margin-bottom": "calc(1 * var(--rem))" } }, [t("span", { staticStyle: { "font-weight": "500", "padding-right": "0.5ch" }, domProps: { textContent: e._s(e.$t(`reasonableUse.${a.type}`) + ":") } }), t("span", { staticStyle: { opacity: "0.75", "padding-right": "0.5ch" }, domProps: { textContent: e._s(e.$t("reasonableUse.quotaIncluded", { count: a.count })) } }), a.cost ? t("span", { staticStyle: { opacity: "0.75" }, domProps: { textContent: e._s(e.$t("reasonableUse.quotaExtra", { cost: a.cost })) } }) : e._e()]);
|
|
2540
2561
|
}), 0)])])], 1);
|
|
@@ -2544,7 +2565,7 @@ var Ue = function() {
|
|
|
2544
2565
|
Ae,
|
|
2545
2566
|
!1,
|
|
2546
2567
|
null,
|
|
2547
|
-
"
|
|
2568
|
+
"4ba7e094",
|
|
2548
2569
|
null,
|
|
2549
2570
|
null
|
|
2550
2571
|
);
|
|
@@ -2903,7 +2924,10 @@ const Oe = Ve.exports, Ne = {
|
|
|
2903
2924
|
const t = [];
|
|
2904
2925
|
Object.keys(e.items).forEach((a) => {
|
|
2905
2926
|
const r = this.getProductByPriceId(a);
|
|
2906
|
-
r && t.push({
|
|
2927
|
+
r && t.push({
|
|
2928
|
+
...r,
|
|
2929
|
+
quantity: e.items[a]
|
|
2930
|
+
});
|
|
2907
2931
|
}), t.length && this.setFormValue({
|
|
2908
2932
|
key: "products",
|
|
2909
2933
|
value: [
|
|
@@ -2966,7 +2990,8 @@ const Ze = je.exports, Ke = {
|
|
|
2966
2990
|
return !0;
|
|
2967
2991
|
},
|
|
2968
2992
|
canCreateDocument() {
|
|
2969
|
-
return this.subscription.freeDocumentsLeft > 0 ||
|
|
2993
|
+
return this.subscription.freeDocumentsLeft > 0 || // Has free quota left
|
|
2994
|
+
C(this.companyAccount, "documentQuota.priceExtra.value") !== null;
|
|
2970
2995
|
},
|
|
2971
2996
|
canCreateTemplate() {
|
|
2972
2997
|
return this.feature("createDocTemplate");
|
|
@@ -3000,7 +3025,11 @@ const Ze = je.exports, Ke = {
|
|
|
3000
3025
|
* @param {Function} obj.callback Optional callback to run after upgrade
|
|
3001
3026
|
* @param {Function} obj.onClosed Optional callback to run after Stripe modal is closed
|
|
3002
3027
|
*/
|
|
3003
|
-
openUpgradeModal({
|
|
3028
|
+
openUpgradeModal({
|
|
3029
|
+
suggestedQuantity: n = null,
|
|
3030
|
+
callback: e = null,
|
|
3031
|
+
onClosed: t = null
|
|
3032
|
+
} = {}) {
|
|
3004
3033
|
let a = () => null, r = () => null;
|
|
3005
3034
|
typeof e == "function" && (a = e), typeof t == "function" && (r = t), this.$modal.show(
|
|
3006
3035
|
Ze,
|
|
@@ -3211,7 +3240,7 @@ var it = function() {
|
|
|
3211
3240
|
st,
|
|
3212
3241
|
!1,
|
|
3213
3242
|
null,
|
|
3214
|
-
"
|
|
3243
|
+
"e80b3ec2",
|
|
3215
3244
|
null,
|
|
3216
3245
|
null
|
|
3217
3246
|
);
|
|
@@ -3359,20 +3388,31 @@ const yt = ft.exports, Ct = {
|
|
|
3359
3388
|
var e, t;
|
|
3360
3389
|
if (this.canUseFreeDocVoucher = !1, ((e = this.account) == null ? void 0 : e.accountType) !== "free")
|
|
3361
3390
|
return;
|
|
3362
|
-
const n = JSON.parse(
|
|
3391
|
+
const n = JSON.parse(
|
|
3392
|
+
E.getItem("voucher-freeUserDocs-company-id")
|
|
3393
|
+
);
|
|
3363
3394
|
((t = this.account) == null ? void 0 : t.CompanyId) !== n && (this.canUseFreeDocVoucher = await this.canUseVoucher());
|
|
3364
3395
|
},
|
|
3365
3396
|
async canUseVoucher() {
|
|
3366
3397
|
try {
|
|
3367
3398
|
return await U.canUse("freeUserDocs"), !0;
|
|
3368
3399
|
} catch {
|
|
3369
|
-
return E.setItem(
|
|
3400
|
+
return E.setItem(
|
|
3401
|
+
"voucher-freeUserDocs-company-id",
|
|
3402
|
+
this.account.CompanyId
|
|
3403
|
+
), !1;
|
|
3370
3404
|
}
|
|
3371
3405
|
},
|
|
3372
3406
|
async useFreeDocsVoucher() {
|
|
3373
3407
|
this.isLoading = !0;
|
|
3374
3408
|
try {
|
|
3375
|
-
await U.post({ code: "freeUserDocs" }), E.setItem(
|
|
3409
|
+
await U.post({ code: "freeUserDocs" }), E.setItem(
|
|
3410
|
+
"voucher-freeUserDocs-company-id",
|
|
3411
|
+
this.account.CompanyId
|
|
3412
|
+
), await this.loadCurrentCompany(), ie(
|
|
3413
|
+
"success",
|
|
3414
|
+
this.$t("voucherSuccessMessage", { count: this.voucherDocCount })
|
|
3415
|
+
), this.onUpgrade && typeof this.onUpgrade == "function" && this.onUpgrade(), this.$emit("close");
|
|
3376
3416
|
} catch (n) {
|
|
3377
3417
|
D(n);
|
|
3378
3418
|
} finally {
|
|
@@ -3504,14 +3544,19 @@ const $t = {
|
|
|
3504
3544
|
else if (this.subscription.paymentMethod === "invoice")
|
|
3505
3545
|
await this.addInvoiceLicense(), e = !0;
|
|
3506
3546
|
else
|
|
3507
|
-
throw new Error(
|
|
3547
|
+
throw new Error(
|
|
3548
|
+
"Cannot upgrade license as current paymentMethod is not valid"
|
|
3549
|
+
);
|
|
3508
3550
|
} catch (t) {
|
|
3509
3551
|
D(t);
|
|
3510
3552
|
}
|
|
3511
3553
|
e && await n();
|
|
3512
3554
|
},
|
|
3513
3555
|
async addStripeLicense() {
|
|
3514
|
-
this.updateFormValue({
|
|
3556
|
+
this.updateFormValue({
|
|
3557
|
+
key: "plan.quantity",
|
|
3558
|
+
value: this.currentPlan.quantity + 1
|
|
3559
|
+
});
|
|
3515
3560
|
const n = await this.submitPlan({});
|
|
3516
3561
|
return await this.loadCurrentCompany(), n;
|
|
3517
3562
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as s } from "./main-
|
|
1
|
+
import { n as s } from "./main-4f27b552.js";
|
|
2
2
|
const r = {
|
|
3
3
|
name: "ManualPopover",
|
|
4
4
|
data() {
|
|
@@ -13,7 +13,10 @@ const r = {
|
|
|
13
13
|
},
|
|
14
14
|
beforeDestroy() {
|
|
15
15
|
var o, t, e;
|
|
16
|
-
(e = (t = (o = this.$slots.default) == null ? void 0 : o[0]) == null ? void 0 : t.elm) == null || e.removeEventListener(
|
|
16
|
+
(e = (t = (o = this.$slots.default) == null ? void 0 : o[0]) == null ? void 0 : t.elm) == null || e.removeEventListener(
|
|
17
|
+
"click",
|
|
18
|
+
this.onButtonClick
|
|
19
|
+
), this.getRootElm().removeEventListener("click", this.onClickOutside);
|
|
17
20
|
},
|
|
18
21
|
methods: {
|
|
19
22
|
onButtonClick() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as n } from "./BlockMedia-
|
|
2
|
-
import { m as a } from "./mapFormMixin-
|
|
3
|
-
import { n as m } from "./main-
|
|
1
|
+
import { B as n } from "./BlockMedia-93ee8699.js";
|
|
2
|
+
import { m as a } from "./mapFormMixin-9f326a09.js";
|
|
3
|
+
import { n as m } from "./main-4f27b552.js";
|
|
4
4
|
import "./color-71c20583.js";
|
|
5
5
|
const o = {
|
|
6
6
|
name: "MediaWrapper",
|