@cling-se/widget 0.9.10 → 0.9.12
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/README.md +35 -35
- package/dist/{AddClientCallout-98b5d2c9.js → AddClientCallout-6b0621ec.js} +5 -5
- package/dist/{AnswerModal-995e7a87.js → AnswerModal-f6cb74d7.js} +156 -145
- package/dist/{AttachmentItem-331b9c1e.js → AttachmentItem-2a4cb524.js} +4 -4
- package/dist/{BaseDatePicker-7f047527.js → BaseDatePicker-2daf62c0.js} +1 -1
- package/dist/{BaseInput-c79f0001.js → BaseInput-a4523348.js} +1 -1
- package/dist/{BaseUpload-9402cc1b.js → BaseUpload-737004ad.js} +3 -3
- package/dist/{BlockMedia-80a082ed.js → BlockMedia-a145fc19.js} +2 -2
- package/dist/{CCallout-bd314caa.js → CCallout-7fb1ad5c.js} +6 -6
- package/dist/{CDropdownItem-ab42f924.js → CDropdownItem-79c8dc70.js} +5 -5
- package/dist/{CField-6da7299b.js → CField-2b1118f9.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-c70342a2.js → CSlider.vue_vue_type_style_index_0_lang-47894df7.js} +1 -1
- package/dist/{ClientAutocomplete-67fc253c.js → ClientAutocomplete-3d098904.js} +6 -6
- package/dist/{ClientModal-1709e8c7.js → ClientModal-d1bf8d0d.js} +5 -5
- package/dist/{ColorPicker-4880a624.js → ColorPicker-c61cd86f.js} +29 -29
- package/dist/{CompanyModal-dbe85884.js → CompanyModal-46cab2d1.js} +4 -4
- package/dist/{ContentWrapper-a602cc3d.js → ContentWrapper-3251ab37.js} +14 -14
- package/dist/{CoverBlockSettings-f37fe6e1.js → CoverBlockSettings-3ad93db4.js} +21 -20
- package/dist/{DocAnswer-081e8239.js → DocAnswer-a0f2853b.js} +4 -4
- package/dist/DocForm-a4c0a0f1.js +7087 -0
- package/dist/{DocFormSend-c9b955b9.js → DocFormSend-ed982485.js} +24 -21
- package/dist/{DocModalBase-8c238a59.js → DocModalBase-22abfff9.js} +4 -4
- package/dist/{DocPrint-2a181ffb.js → DocPrint-028aa0ed.js} +5 -5
- package/dist/{DocReceipt-00c0f631.js → DocReceipt-3bd27c4a.js} +1 -1
- package/dist/{DocSendReminder-9effd808.js → DocSendReminder-8ad0ca86.js} +1 -1
- package/dist/{DocTextEditor-0c8a4782.js → DocTextEditor-8930e458.js} +12 -12
- package/dist/{DocTimeline-be5e8b9d.js → DocTimeline-2ab336f0.js} +1 -1
- package/dist/{DocumentClient-13f55b25.js → DocumentClient-441798b5.js} +5 -5
- package/dist/{DocumentLayout-2ff55f9f.js → DocumentLayout-02c32058.js} +97 -97
- package/dist/{DocumentLogotype-80a2521a.js → DocumentLogotype-43ef9231.js} +6 -6
- package/dist/{EmbedInput-8572a42b.js → EmbedInput-996ae0e3.js} +2 -2
- package/dist/{EmbedSettings-1a60358e.js → EmbedSettings-41af8b9c.js} +5 -5
- package/dist/{ErrorCallout-84e8168b.js → ErrorCallout-d392ffe9.js} +2 -2
- package/dist/{FilePreviewModal-cdafbf1c.js → FilePreviewModal-e298691e.js} +5 -5
- package/dist/{HeaderSettings-9f4d182b.js → HeaderSettings-687131c9.js} +20 -19
- package/dist/{ImageSelectModal-b97c8185.js → ImageSelectModal-eec441aa.js} +16 -18
- package/dist/{ImageUploadWrapper-ebcdbc9e.js → ImageUploadWrapper-b244cf9e.js} +3 -3
- package/dist/{Index-6c782bef.js → Index-01a3b6ed.js} +12 -12
- package/dist/{Index-473d0fad.js → Index-0ed1b84a.js} +3 -3
- package/dist/{Index-4bbfdb2e.js → Index-13b65d9b.js} +2 -2
- package/dist/{Index-dd30bbc5.js → Index-2468cd69.js} +12 -12
- package/dist/{Index-8eff4eae.js → Index-25ce24cc.js} +2 -2
- package/dist/{Index-0bd4a30c.js → Index-2b19a264.js} +16 -16
- package/dist/{Index-7b1fd376.js → Index-30ebb13c.js} +2 -2
- package/dist/{Index-b233276b.js → Index-37d3fd60.js} +2 -2
- package/dist/{Index-8c4fd5b4.js → Index-485b35e8.js} +27 -27
- package/dist/{Index-341f9388.js → Index-5ff95ead.js} +8 -8
- package/dist/{Index-ba4cfb80.js → Index-62ea070e.js} +6 -6
- package/dist/{Index-dca28212.js → Index-6c5de42a.js} +2 -2
- package/dist/{Index-11d16691.js → Index-6ca4a7e4.js} +22 -22
- package/dist/{Index-8cba5dac.js → Index-6d61f98d.js} +26 -26
- package/dist/{Index-de93e029.js → Index-77a7d639.js} +7 -7
- package/dist/{Index-8053871b.js → Index-7c421b05.js} +4 -4
- package/dist/{Index-0306a974.js → Index-7d2fe1bd.js} +12 -12
- package/dist/{Index-c2b2ccd9.js → Index-87cd4771.js} +8 -8
- package/dist/{Index-8755440b.js → Index-8882ee1b.js} +5 -5
- package/dist/{Index-7f01697f.js → Index-8c254496.js} +7 -7
- package/dist/{Index-623bb993.js → Index-9ccce76f.js} +4 -4
- package/dist/{Index-ffc7dba1.js → Index-a7871ea6.js} +5 -5
- package/dist/{Index-3ccc66e4.js → Index-a9f197a7.js} +4 -4
- package/dist/{Index-451f5485.js → Index-af3a9b66.js} +5 -5
- package/dist/{Index-f9063054.js → Index-b9b80eae.js} +7 -7
- package/dist/{Index-5428e87c.js → Index-bf23d7a9.js} +11 -11
- package/dist/{Index-0022bc40.js → Index-c3a619f4.js} +4 -4
- package/dist/{Index-ddf49640.js → Index-d3225e03.js} +6 -6
- package/dist/{Index-95f0dd2f.js → Index-d76bf229.js} +19 -19
- package/dist/{Index-2ecefac2.js → Index-e2919ed0.js} +4 -4
- package/dist/{Index-8ecb9aa4.js → Index-ee558d21.js} +2 -2
- package/dist/{Index-9c5f5d6e.js → Index-efa47af4.js} +7 -7
- package/dist/{Index-039d9c9d.js → Index-f14261e7.js} +6 -6
- package/dist/{Index-0bbbe1cf.js → Index-fd947a18.js} +13 -13
- package/dist/{InputToggleRow-533651e6.js → InputToggleRow-ee713437.js} +2 -2
- package/dist/IsPremiumPreStep-9b5a0a01.js +3669 -0
- package/dist/{MediaWrapper-388589e5.js → MediaWrapper-45257b41.js} +3 -3
- package/dist/{NotBindingText-b833c49b.js → NotBindingText-c2f7c9cb.js} +2 -2
- package/dist/{PackageGroup-41b2d524.js → PackageGroup-b2aa42da.js} +15 -15
- package/dist/{PdfTerms-461fcd9e.js → PdfTerms-2d66043e.js} +7 -7
- package/dist/{PdfViewer-099b598c.js → PdfViewer-947ee278.js} +2 -2
- package/dist/{PlainHtml-37aa5b7b.js → PlainHtml-a3d47a45.js} +1 -1
- package/dist/PriceHeader-b6a99a57.js +337 -0
- package/dist/{SearchApi-25909227.js → SearchApi-c6511bc3.js} +2 -2
- package/dist/Setup-60ec3c2a.js +54 -0
- package/dist/{TermsSettings-c730ac70.js → TermsSettings-836555da.js} +10 -10
- package/dist/{ThemeColorRow-31d8285b.js → ThemeColorRow-672086c3.js} +12 -21
- package/dist/{ToggleBinding-1a98360f.js → ToggleBinding-3c581fbb.js} +3 -3
- package/dist/{UploadModal-e0a37c3e.js → UploadModal-b3933203.js} +4 -4
- package/dist/{VideoPlayerInput-4d7f302a.js → VideoPlayerInput-5ad13a27.js} +3 -3
- package/dist/{VideoPlayerSettings-81168a6b.js → VideoPlayerSettings-e964804b.js} +5 -5
- package/dist/{VideoSelectModal-dc429ff0.js → VideoSelectModal-321b2270.js} +30 -30
- package/dist/{answerDocumentMixin-3ff2b25d.js → answerDocumentMixin-76224b35.js} +3 -3
- package/dist/{cssMode-c6b1b286.js → cssMode-2bf89988.js} +7 -7
- package/dist/{focusDrawerMixin-01b547f0.js → focusDrawerMixin-dffff858.js} +1 -1
- package/dist/{formComponentsInstall-9e33cb8f.js → formComponentsInstall-57c30f22.js} +265 -255
- package/dist/{formValidationMixin-74c239ee.js → formValidationMixin-9d5c1283.js} +1 -1
- package/dist/{freemarker2-076519a0.js → freemarker2-503b066f.js} +7 -7
- package/dist/{handlebars-bb155717.js → handlebars-8c0c0a90.js} +7 -7
- package/dist/{html-1cf008d9.js → html-5b503855.js} +7 -7
- package/dist/{htmlMode-bf67fa2b.js → htmlMode-b751a462.js} +7 -7
- package/dist/image-a902f5a5.js +18 -0
- package/dist/{index-e37214e9.js → index-1c1cefec.js} +4 -4
- package/dist/{index-908333a3.js → index-771f5571.js} +9 -9
- package/dist/index-9a5227ef.js +82 -0
- package/dist/{index-7097f05c.js → index-a9f8e647.js} +13 -13
- package/dist/{index-0f09ca1c.js → index-d81be181.js} +10 -10
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +581 -581
- package/dist/{javascript-b98377f9.js → javascript-2d18f43b.js} +8 -8
- package/dist/{jsonMode-e9595a57.js → jsonMode-95421c7a.js} +7 -7
- package/dist/{liquid-b60636e3.js → liquid-47ff3277.js} +7 -7
- package/dist/{main-cf622dd3.js → main-5532481e.js} +7274 -7171
- package/dist/{mapFormMixin-490a1765.js → mapFormMixin-218f9749.js} +1 -1
- package/dist/{publicSenderState-6b369e21.js → publicSenderState-7c91d66d.js} +1 -1
- package/dist/{python-4e4d18f5.js → python-afd06bc4.js} +7 -7
- package/dist/{razor-63ead89f.js → razor-28875ccf.js} +7 -7
- package/dist/{simplebar.min-3f1edc12.js → simplebar.min-3682e5c9.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{template-66eba036.js → template-cd101772.js} +1 -1
- package/dist/throttle-3a262479.js +18 -0
- package/dist/{tinycolor-9f3cc25c.js → tinycolor-ca02e626.js} +6 -6
- package/dist/{tippy.esm-dec03596.js → tippy.esm-a7740684.js} +7 -7
- package/dist/{tsMode-e93504e4.js → tsMode-bc258439.js} +7 -7
- package/dist/{typescript-111230d0.js → typescript-ac68850c.js} +7 -7
- package/dist/{utils-fb02e603.js → utils-b0646315.js} +5 -5
- package/dist/{vuedraggable.umd-f2d6d3e3.js → vuedraggable.umd-934a0379.js} +1 -1
- package/dist/{xml-987e33cc.js → xml-a8591419.js} +7 -7
- package/package.json +1 -1
- package/.env +0 -12
- package/dist/DocForm-c69281fc.js +0 -7062
- package/dist/IsPremiumPreStep-8d46fadc.js +0 -2349
- package/dist/PriceHeader-41c48787.js +0 -337
- package/dist/regions-29ee6964.js +0 -1250
- package/dist/throttle-2b45d29c.js +0 -18
- package/jsconfig.json +0 -11
- package/postcss.config.cjs +0 -6
- package/stats.html +0 -4044
- package/tailwind.config.cjs +0 -26
- package/vite-plugin-library-asset-external/index.js +0 -134
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { b as H, m as
|
|
2
|
-
import { s as q } from "./simplebar.min-
|
|
3
|
-
import { m
|
|
4
|
-
import { B as
|
|
5
|
-
import { E as j } from "./ErrorCallout-
|
|
6
|
-
import {
|
|
7
|
-
import Y from "./
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
14
|
-
const
|
|
1
|
+
import { b as H, m as g } from "./vuex.esm-4a0fff7c.js";
|
|
2
|
+
import { s as q } from "./simplebar.min-3682e5c9.js";
|
|
3
|
+
import { m } from "./mapFormMixin-218f9749.js";
|
|
4
|
+
import { B as I } from "./BaseDatePicker-2daf62c0.js";
|
|
5
|
+
import { E as j } from "./ErrorCallout-d392ffe9.js";
|
|
6
|
+
import { I as K, a as W, r as l } from "./IsPremiumPreStep-9b5a0a01.js";
|
|
7
|
+
import { n as o, an as O, ao as v, h as X, b as c, ap as U, o as Q, aq as Y, ar as G, q as P, as as T, at as R, d as M, D as y } from "./main-5532481e.js";
|
|
8
|
+
import J from "./AddClientCallout-6b0621ec.js";
|
|
9
|
+
import Z from "./ClientModal-d1bf8d0d.js";
|
|
10
|
+
import { c as ee, r as te, g as ie, C as h, b as f, e as p } from "./CDropdownItem-79c8dc70.js";
|
|
11
|
+
import { S as se } from "./CSlider.vue_vue_type_style_index_0_lang-47894df7.js";
|
|
12
|
+
import { C as _ } from "./CCallout-7fb1ad5c.js";
|
|
13
|
+
import { C as z } from "./CField-2b1118f9.js";
|
|
14
|
+
const ne = {
|
|
15
15
|
name: "DocumentSendReminderItem",
|
|
16
16
|
props: {
|
|
17
17
|
label: {
|
|
@@ -28,24 +28,24 @@ const ie = {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
var
|
|
31
|
+
var ae = function() {
|
|
32
32
|
var e = this, i = e._self._c;
|
|
33
33
|
return i("div", { staticClass: "flex items-center bg-gray-100 mb-4 rounded-md px-4 py-2 select-none text-sm font-medium min-h-[2.5em]" }, [i("div", { staticClass: "text-gray-700 flex-auto mr-6 select-none" }, [e._v(" " + e._s(e.label) + " ")]), i("div", { staticClass: "flex items-center justify-center flex-nowrap text-sm" }, [e.done ? i("span", { staticClass: "text-green-500" }, [i("BaseIcon", { attrs: { type: "check", size: "18" } }), e._v(" " + e._s(e.$t("sent")) + " ")], 1) : [i("CButton", { staticClass: "bg-white !h-6 !w-6", attrs: { icon: "minus", size: "small", circle: "", raised: "" }, on: { click: function(s) {
|
|
34
34
|
e.$emit("input", Math.max(e.value - 1, 0));
|
|
35
35
|
} } }), i("div", { staticClass: "py-4 text-gray-800 font-medium text-center min-w-[8ch] text-sm" }, [e.value ? [e._v(" " + e._s(e.$tc("day", { count: Number(e.value) })) + " ")] : i("span", { staticClass: "text-gray-500 text-xs" }, [e._v(" " + e._s(e.$t("disabled").capitalize()) + " ")])], 2), i("CButton", { staticClass: "bg-white !w-6 !h-6", attrs: { icon: "plus", size: "small", circle: "", raised: "" }, on: { click: function(s) {
|
|
36
36
|
return e.$emit("input", e.value + 1);
|
|
37
37
|
} } })]], 2)]);
|
|
38
|
-
},
|
|
39
|
-
ie,
|
|
40
|
-
se,
|
|
38
|
+
}, re = [], oe = /* @__PURE__ */ o(
|
|
41
39
|
ne,
|
|
40
|
+
ae,
|
|
41
|
+
re,
|
|
42
42
|
!1,
|
|
43
43
|
null,
|
|
44
44
|
null,
|
|
45
45
|
null,
|
|
46
46
|
null
|
|
47
47
|
);
|
|
48
|
-
const
|
|
48
|
+
const le = oe.exports, de = {
|
|
49
49
|
name: "DocumentSendReminders",
|
|
50
50
|
i18nOptions: {
|
|
51
51
|
namespaces: "documentSendReminders",
|
|
@@ -65,9 +65,9 @@ const re = ae.exports, oe = {
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
components: {
|
|
68
|
-
DocumentSendReminderItem:
|
|
68
|
+
DocumentSendReminderItem: le
|
|
69
69
|
},
|
|
70
|
-
mixins: [
|
|
70
|
+
mixins: [m()],
|
|
71
71
|
props: {
|
|
72
72
|
setFormValue: {
|
|
73
73
|
type: Function,
|
|
@@ -106,7 +106,7 @@ const re = ae.exports, oe = {
|
|
|
106
106
|
}
|
|
107
107
|
if (typeof t == "string") {
|
|
108
108
|
let s = this.getDefaultReminders().find((n) => n.type === t);
|
|
109
|
-
if (s || (s =
|
|
109
|
+
if (s || (s = O.default.find((n) => n.type === t)), !s)
|
|
110
110
|
throw new Error("Could not find default reminder");
|
|
111
111
|
s[i] = e, this.setFormValue({ key: "data.reminders", value: s });
|
|
112
112
|
return;
|
|
@@ -115,7 +115,7 @@ const re = ae.exports, oe = {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
var
|
|
118
|
+
var ce = function() {
|
|
119
119
|
var e = this, i = e._self._c;
|
|
120
120
|
return i("div", { staticStyle: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(2 * var(--rem))", "font-size": "16px" } }, [i("div", { staticStyle: { "font-size": "1.25em", "font-weight": "700", "margin-bottom": "0.25em", "text-align": "center" } }, [e._v(" " + e._s(e.$t("_common:reminder_plural").capitalize()) + " ")]), i("div", { staticClass: "text-center text-gray-600", staticStyle: { "max-width": "calc(20 * var(--rem))", margin: "0 auto calc(2 * var(--rem)) auto" } }, [e._v(" " + e._s(e.$t("description")) + " ")]), e._l([
|
|
121
121
|
{ type: "notViewed", fallbackKey: "viewed" },
|
|
@@ -128,17 +128,17 @@ var le = function() {
|
|
|
128
128
|
}), i("div", { staticClass: "flex items-center justify-center w-full", staticStyle: { "margin-top": "calc(2.5 * var(--rem))" } }, [i("CButton", { attrs: { type: "secondary", expanded: "" }, on: { click: function(s) {
|
|
129
129
|
return e.$emit("close");
|
|
130
130
|
} } }, [e._v(" " + e._s(e.$t("_common:save")) + " ")])], 1)], 2);
|
|
131
|
-
},
|
|
132
|
-
oe,
|
|
133
|
-
le,
|
|
131
|
+
}, ue = [], me = /* @__PURE__ */ o(
|
|
134
132
|
de,
|
|
133
|
+
ce,
|
|
134
|
+
ue,
|
|
135
135
|
!1,
|
|
136
136
|
null,
|
|
137
137
|
null,
|
|
138
138
|
null,
|
|
139
139
|
null
|
|
140
140
|
);
|
|
141
|
-
const
|
|
141
|
+
const pe = me.exports;
|
|
142
142
|
function N(t, e) {
|
|
143
143
|
const i = new Date(t.getTime());
|
|
144
144
|
return i.setDate(t.getDate() + (7 + e - t.getDay() - 1) % 7 + 1), i.setHours(8, 0, 0, 0), i;
|
|
@@ -148,7 +148,7 @@ function E(t) {
|
|
|
148
148
|
return e.setDate(e.getDate() + 1), e.setHours(10, 0, 0, 0), e;
|
|
149
149
|
}
|
|
150
150
|
let b = E(/* @__PURE__ */ new Date()), C = N(/* @__PURE__ */ new Date(), 1);
|
|
151
|
-
const
|
|
151
|
+
const he = {
|
|
152
152
|
name: "DocumentSendLater",
|
|
153
153
|
i18nOptions: {
|
|
154
154
|
namespaces: "documentSendLater",
|
|
@@ -174,7 +174,7 @@ const me = {
|
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
176
|
components: {
|
|
177
|
-
BaseDatePicker:
|
|
177
|
+
BaseDatePicker: I
|
|
178
178
|
},
|
|
179
179
|
props: {
|
|
180
180
|
_document: {
|
|
@@ -212,7 +212,7 @@ const me = {
|
|
|
212
212
|
...H("forms", {
|
|
213
213
|
formData: (t) => t.document2.data
|
|
214
214
|
}),
|
|
215
|
-
...
|
|
215
|
+
...g({
|
|
216
216
|
deliveryTypes: "forms/deliveryTypes",
|
|
217
217
|
isPostingDocument: "documents2/isPosting",
|
|
218
218
|
feature: "application/feature"
|
|
@@ -258,14 +258,14 @@ const me = {
|
|
|
258
258
|
}, i = this.formData.reminders.findIndex((n) => n.type === "first"), s = i >= 0 ? `data.reminders[${i}]` : "data.reminders";
|
|
259
259
|
this.setFormValue({ key: s, value: e }), await this.onSaveDocument({ doSend: !0 }), this.backupSentFlag = !1;
|
|
260
260
|
} catch (e) {
|
|
261
|
-
|
|
261
|
+
X(e);
|
|
262
262
|
} finally {
|
|
263
263
|
this.backupSentFlag = !1;
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
|
-
var
|
|
268
|
+
var fe = function() {
|
|
269
269
|
var e = this, i = e._self._c;
|
|
270
270
|
return i("div", { staticClass: "bg-white rounded-xl overflow-hidden" }, [i("div", { staticClass: "px-6 pt-8 pb-3" }, [i("div", { staticClass: "text-md font-semibold text-center" }, [e._v(" " + e._s(e.$t("title")) + " ")]), i("div", { staticClass: "pt-8" }, e._l([
|
|
271
271
|
[e.tomorrowMorning, "tomorrowMorning"],
|
|
@@ -277,18 +277,18 @@ var pe = function() {
|
|
|
277
277
|
} } }, [i("div", { staticClass: "flex items-center text-sm" }, [i("BaseIcon", { staticClass: "text-primary-500 mr-2", attrs: { type: "calendar", size: "18" } }), i("div", { staticClass: "font-medium", domProps: { textContent: e._s(e.$t("custom.title")) } })], 1), i("Animation", [i("div", { directives: [{ name: "show", rawName: "v-show", value: e.showCustom, expression: "showCustom" }], staticClass: "mt-4" }, [i("div", { staticClass: "grid grid-cols-2 gap-4" }, [i("BaseDatePicker", { attrs: { value: e.sendAt }, on: { input: e.setDate } }), i("CInput", { attrs: { value: e.$formatDate(e.sendAt, "HH:mm"), clearable: !1, type: "time" }, on: { input: e.setTime } })], 1), e.$v.$invalid ? i("div", { staticClass: "error-wrapper" }, [i("BaseIcon", { staticClass: "mr-2 text-primary-500", attrs: { type: "calendar" } }), e._v(" " + e._s(e.$t("custom.invalid")) + " ")], 1) : e._e(), i("CButton", { staticStyle: { "margin-top": "calc(1.5 * var(--rem))" }, attrs: { loading: e.isPostingDocument || e.isPostingProject, type: "secondary", wide: "" }, on: { click: function(s) {
|
|
278
278
|
return e.onSendAt(e.sendAt);
|
|
279
279
|
} } }, [e._v(" " + e._s(e.$t("_common:send")) + " " + e._s(e.$formatDate(e.sendAt, "d MMM - p")) + " ")])], 1)])], 1)]);
|
|
280
|
-
},
|
|
281
|
-
me,
|
|
282
|
-
pe,
|
|
280
|
+
}, ge = [], ve = /* @__PURE__ */ o(
|
|
283
281
|
he,
|
|
282
|
+
fe,
|
|
283
|
+
ge,
|
|
284
284
|
!1,
|
|
285
285
|
null,
|
|
286
|
-
"
|
|
286
|
+
"3b80f637",
|
|
287
287
|
null,
|
|
288
288
|
null
|
|
289
289
|
);
|
|
290
|
-
const
|
|
291
|
-
const
|
|
290
|
+
const ye = ve.exports;
|
|
291
|
+
const _e = {
|
|
292
292
|
name: "ClientSendListItem",
|
|
293
293
|
props: {
|
|
294
294
|
client: {
|
|
@@ -320,7 +320,7 @@ const ve = {
|
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
|
-
var
|
|
323
|
+
var be = function() {
|
|
324
324
|
var s;
|
|
325
325
|
var e = this, i = e._self._c;
|
|
326
326
|
return i("div", { staticClass: "flex items-center rc-card", class: {
|
|
@@ -349,18 +349,18 @@ var ye = function() {
|
|
|
349
349
|
} } }, [i("CButton", { attrs: { slot: "trigger", circle: "", size: "small", type: "none", pattern: "secondary", raised: "", icon: "more-horizontal" }, slot: "trigger" }), e._t("dropdownOptions")], 2) : i("CButton", { staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))" }, attrs: { circle: "", size: "small", icon: "x", type: "none", pattern: "secondary", raised: "" }, on: { click: function(n) {
|
|
350
350
|
return n.stopPropagation(), e.$emit("remove");
|
|
351
351
|
} } })] : e._e()], 2) : e._e()], 2);
|
|
352
|
-
},
|
|
353
|
-
ve,
|
|
354
|
-
ye,
|
|
352
|
+
}, Ce = [], we = /* @__PURE__ */ o(
|
|
355
353
|
_e,
|
|
354
|
+
be,
|
|
355
|
+
Ce,
|
|
356
356
|
!1,
|
|
357
357
|
null,
|
|
358
|
-
"
|
|
358
|
+
"4102ea12",
|
|
359
359
|
null,
|
|
360
360
|
null
|
|
361
361
|
);
|
|
362
|
-
const L =
|
|
363
|
-
const
|
|
362
|
+
const L = we.exports;
|
|
363
|
+
const xe = {
|
|
364
364
|
name: "SenderBlockItem",
|
|
365
365
|
i18nOptions: {
|
|
366
366
|
namespaces: "senderBlockItem",
|
|
@@ -383,7 +383,7 @@ const Ce = {
|
|
|
383
383
|
RecipientBlockItem: L
|
|
384
384
|
},
|
|
385
385
|
mixins: [
|
|
386
|
-
|
|
386
|
+
m(
|
|
387
387
|
["senderClient"],
|
|
388
388
|
{ useEmit: !1, setFnName: "setFormValue" }
|
|
389
389
|
)
|
|
@@ -409,7 +409,7 @@ const Ce = {
|
|
|
409
409
|
};
|
|
410
410
|
},
|
|
411
411
|
computed: {
|
|
412
|
-
...
|
|
412
|
+
...g({
|
|
413
413
|
feature: "application/feature"
|
|
414
414
|
})
|
|
415
415
|
},
|
|
@@ -417,11 +417,11 @@ const Ce = {
|
|
|
417
417
|
this.generateSenderClient(), this._document.id || this._document.isDirty("senderClient") ? this.toggleSenderSign(!!this.senderClient) : this.defaultAddSenderClient && this.toggleSenderSign(!0);
|
|
418
418
|
},
|
|
419
419
|
methods: {
|
|
420
|
-
get:
|
|
420
|
+
get: c,
|
|
421
421
|
generateSenderClient() {
|
|
422
|
-
const { company: t, user: e } = this._document.sender || {}, i =
|
|
422
|
+
const { company: t, user: e } = this._document.sender || {}, i = c(this._document, "data.defaultAnswerMethod");
|
|
423
423
|
this.senderClientData = {
|
|
424
|
-
...
|
|
424
|
+
...U(),
|
|
425
425
|
documentRole: "recipient",
|
|
426
426
|
...i && { answerMethod: i },
|
|
427
427
|
...this.senderClient,
|
|
@@ -448,7 +448,7 @@ const Ce = {
|
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
|
-
var
|
|
451
|
+
var Se = function() {
|
|
452
452
|
var e = this, i = e._self._c;
|
|
453
453
|
return e.senderClientData ? i("RecipientBlockItem", { staticClass: "first-of-group last-of-group", staticStyle: { display: "inline-flex", width: "auto", "padding-right": "2em", "min-width": "220px" }, attrs: { client: e.senderClientData, "right-button": e.allowSenderSign, "is-sender": !0 } }, [i("template", { slot: "dropdownOptions" }, [i("CDropdownItem", { attrs: { value: !!e.senderClient, "close-on-click": !1, toggle: "" }, on: { input: e.toggleSenderSign } }, [e._v(" " + e._s(e.$t("toggle.label")) + " ")]), e.senderClient ? [i("CDropdownItem", { attrs: { separator: "" } }), i("div", { staticClass: "text-gray-400", staticStyle: { "font-size": "13px", padding: "calc(0.5 * var(--rem)) 0 calc(0.25 * var(--rem)) calc(1 * var(--rem))", "font-weight": "500" } }, [e._v(" " + e._s(e.$t("_common:signMethod.title")) + " ")]), e._l([
|
|
454
454
|
"login",
|
|
@@ -459,17 +459,17 @@ var we = function() {
|
|
|
459
459
|
return e.setSenderMethod(s);
|
|
460
460
|
} } }, [e._v(" " + e._s(e.$t(`_common:signMethod.${s}`)) + " ")]);
|
|
461
461
|
})] : i("div", { staticClass: "text-gray-700 bg-gray-100", staticStyle: { padding: "calc(0.5 * var(--rem))", margin: "calc(0.5 * var(--rem))", "font-size": "13px", "border-radius": "4px", "line-height": "1.25", "font-weight": "500" } }, [e._v(" " + e._s(e.$t("toggle.description")) + " ")])], 2)], 2) : e._e();
|
|
462
|
-
},
|
|
463
|
-
Ce,
|
|
464
|
-
we,
|
|
462
|
+
}, $e = [], ke = /* @__PURE__ */ o(
|
|
465
463
|
xe,
|
|
464
|
+
Se,
|
|
465
|
+
$e,
|
|
466
466
|
!1,
|
|
467
467
|
null,
|
|
468
|
-
"
|
|
468
|
+
"f5277e62",
|
|
469
469
|
null,
|
|
470
470
|
null
|
|
471
471
|
);
|
|
472
|
-
const
|
|
472
|
+
const De = ke.exports, Ve = {
|
|
473
473
|
sv: {
|
|
474
474
|
title: "Skicka dokument",
|
|
475
475
|
nameLabel: "Dokumentnamn",
|
|
@@ -536,7 +536,7 @@ const Se = $e.exports, ke = {
|
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
},
|
|
539
|
+
}, Fe = {
|
|
540
540
|
sv: {
|
|
541
541
|
addFirstButton: "Lägg till mottagare",
|
|
542
542
|
addButton: "Lägg till mottagare",
|
|
@@ -554,19 +554,19 @@ const Se = $e.exports, ke = {
|
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
};
|
|
557
|
-
const
|
|
557
|
+
const Ae = {
|
|
558
558
|
name: "RecipientBlock",
|
|
559
559
|
i18nOptions: {
|
|
560
560
|
namespaces: "recipientBlock",
|
|
561
|
-
messages:
|
|
561
|
+
messages: Fe
|
|
562
562
|
},
|
|
563
563
|
components: {
|
|
564
|
-
AddClientCallout:
|
|
564
|
+
AddClientCallout: J,
|
|
565
565
|
RecipientBlockItem: L,
|
|
566
|
-
SenderBlockItem:
|
|
566
|
+
SenderBlockItem: De
|
|
567
567
|
},
|
|
568
568
|
mixins: [
|
|
569
|
-
|
|
569
|
+
m(
|
|
570
570
|
["clients"],
|
|
571
571
|
{
|
|
572
572
|
useEmit: !1,
|
|
@@ -607,12 +607,12 @@ const Ve = {
|
|
|
607
607
|
return t;
|
|
608
608
|
},
|
|
609
609
|
useSignOrder() {
|
|
610
|
-
return
|
|
610
|
+
return c(this._document, "useSignOrder", !1);
|
|
611
611
|
}
|
|
612
612
|
},
|
|
613
613
|
methods: {
|
|
614
614
|
onMoveRecipient({ index: t, direction: e }) {
|
|
615
|
-
this.clients =
|
|
615
|
+
this.clients = Q(this.clients).set(
|
|
616
616
|
{
|
|
617
617
|
...this.clients[t],
|
|
618
618
|
signOrder: Math.max(this.clients[t].signOrder + e, 0)
|
|
@@ -629,20 +629,20 @@ const Ve = {
|
|
|
629
629
|
signOrder: i ? s.signOrder : n + 1
|
|
630
630
|
}));
|
|
631
631
|
} else
|
|
632
|
-
e =
|
|
632
|
+
e = c(this._document, "template.reminders", []), e.length || (e = O.default);
|
|
633
633
|
this.setFormValue({ key: "data.reminders", value: e }), this.setFormValue({ key: "useSignOrder", value: t });
|
|
634
634
|
},
|
|
635
635
|
removeClient(t) {
|
|
636
636
|
this.removeFormValue(`clients[${t}]`);
|
|
637
637
|
},
|
|
638
638
|
openClientModal(t = 0) {
|
|
639
|
-
const e =
|
|
639
|
+
const e = c(this, `clients[${t}].signOrder`);
|
|
640
640
|
this.$modal.show(
|
|
641
|
-
|
|
641
|
+
Z,
|
|
642
642
|
{
|
|
643
643
|
documentClientIndex: t,
|
|
644
644
|
...this.useSignOrder && {
|
|
645
|
-
signOrder:
|
|
645
|
+
signOrder: Y(e) === "number" ? e : this.maxSignOrder + 1
|
|
646
646
|
},
|
|
647
647
|
isPublicForm: this.isPublicForm
|
|
648
648
|
}
|
|
@@ -653,7 +653,7 @@ const Ve = {
|
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
};
|
|
656
|
-
var
|
|
656
|
+
var Be = function() {
|
|
657
657
|
var e = this, i = e._self._c;
|
|
658
658
|
return i("div", [e.compact ? e._e() : [i("div", { staticClass: "text-gray-900 text-xs font-medium pb-0.5" }, [e._v(" " + e._s(e.$t("_common:from").capitalize()) + ": ")]), i("SenderBlockItem", { attrs: { _document: e._document, _value: { senderClient: "senderClient" }, "set-form-value": e.setFormValue, "default-add-sender-client": e.defaultAddSenderClient } })], i("div", { staticClass: "block-title flex text-gray-500 text-xs pb-0.5 pt-2", class: { "block-title__line": !e.compact } }, [e.compact ? e._e() : i("div", { staticClass: "text-gray-900 font-medium" }, [e._v(" " + e._s(e.$t("_common:to").capitalize()) + ": ")]), e.clients && e.clients.length ? i("div", { staticClass: "inline-flex items-center justify-end ml-auto" }, [i("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("signOrder.tooltip"), expression: "$t('signOrder.tooltip')" }], staticClass: "mr-1", attrs: { type: "info", size: "14" } }), i("div", { staticClass: "font-medium mr-2" }, [e._v(" " + e._s(e.$t("signOrder.label")) + " ")]), i("CSwitch", { staticClass: "!mr-0", attrs: { value: e.useSignOrder, size: "tiny", type: "success" }, on: { input: e.toggleSignOrder } })], 1) : e._e()]), e.clients && e.clients.length ? [e.useSignOrder ? i("transition-group", { staticClass: "list-move", attrs: { name: "list-move" } }, [e._l(e.sortedClients, function(s, n) {
|
|
659
659
|
return [n > 0 && s.signOrder !== e.sortedClients[n - 1].signOrder ? i("div", { key: n, staticClass: "h-2 pl-6" }, [i("div", { staticClass: "h-full w-0.5 rounded-sm bg-primary-500" })]) : e._e(), i("div", { key: s._uniqueId, staticClass: "mt-px mb-0.5" }, [i("RecipientBlockItem", { class: {
|
|
@@ -682,31 +682,33 @@ var Fe = function() {
|
|
|
682
682
|
} } }, [e._v(" " + e._s(e.$t("addFirstButton")) + " ")]) : e.compact ? e._e() : i("AddClientCallout", { attrs: { compact: !0 }, on: { add: function(s) {
|
|
683
683
|
return e.openClientModal(e.clients.length);
|
|
684
684
|
}, setClient: e.setClient } })], 2);
|
|
685
|
-
},
|
|
686
|
-
Ve,
|
|
687
|
-
Fe,
|
|
685
|
+
}, Ie = [], Oe = /* @__PURE__ */ o(
|
|
688
686
|
Ae,
|
|
687
|
+
Be,
|
|
688
|
+
Ie,
|
|
689
689
|
!1,
|
|
690
690
|
null,
|
|
691
|
-
"
|
|
691
|
+
"ae1def56",
|
|
692
692
|
null,
|
|
693
693
|
null
|
|
694
694
|
);
|
|
695
|
-
const
|
|
696
|
-
const
|
|
695
|
+
const Pe = Oe.exports;
|
|
696
|
+
const Te = {
|
|
697
697
|
name: "SendForm",
|
|
698
698
|
i18nOptions: {
|
|
699
699
|
namespaces: "sendForm",
|
|
700
|
-
messages:
|
|
700
|
+
messages: Ve
|
|
701
701
|
},
|
|
702
702
|
components: {
|
|
703
703
|
Simplebar: q,
|
|
704
|
-
BaseDatePicker:
|
|
705
|
-
RecipientBlock:
|
|
706
|
-
ErrorCallout: j
|
|
704
|
+
BaseDatePicker: I,
|
|
705
|
+
RecipientBlock: Pe,
|
|
706
|
+
ErrorCallout: j,
|
|
707
|
+
IsPremiumPreStep: K,
|
|
708
|
+
IsPremium: W
|
|
707
709
|
},
|
|
708
710
|
mixins: [
|
|
709
|
-
|
|
711
|
+
m(
|
|
710
712
|
[
|
|
711
713
|
"expiresAt",
|
|
712
714
|
"clients",
|
|
@@ -761,7 +763,7 @@ const Ie = {
|
|
|
761
763
|
};
|
|
762
764
|
},
|
|
763
765
|
computed: {
|
|
764
|
-
...
|
|
766
|
+
...g({
|
|
765
767
|
deliveryTypes: "forms/deliveryTypes",
|
|
766
768
|
isPostingDocument: "documents2/isPosting",
|
|
767
769
|
documentSenderSign: "settings/documentSenderSign",
|
|
@@ -878,7 +880,7 @@ const Ie = {
|
|
|
878
880
|
},
|
|
879
881
|
openReminders() {
|
|
880
882
|
this.useSignOrder || this.$modal.show(
|
|
881
|
-
|
|
883
|
+
pe,
|
|
882
884
|
{
|
|
883
885
|
_document: this._document,
|
|
884
886
|
setFormValue: this.setFormValue,
|
|
@@ -894,7 +896,7 @@ const Ie = {
|
|
|
894
896
|
},
|
|
895
897
|
openSendLater() {
|
|
896
898
|
this.$v.$touch(), !this.$v.$invalid && this.$modal.show(
|
|
897
|
-
|
|
899
|
+
ye,
|
|
898
900
|
{
|
|
899
901
|
_document: this._document,
|
|
900
902
|
setFormValue: this.setFormValue,
|
|
@@ -913,71 +915,79 @@ const Ie = {
|
|
|
913
915
|
(this.clients || []).forEach((t, e) => {
|
|
914
916
|
this.setFormValue({ key: `clients[${e}].answer`, value: null });
|
|
915
917
|
}), this.setFormValue({ key: "data.rejectReasons", value: [] }), this.setFormValue({ key: "status", value: "sent" });
|
|
918
|
+
},
|
|
919
|
+
shouldShowUpgradeModal({ canUseBankId: t, canUseSms: e }) {
|
|
920
|
+
var i;
|
|
921
|
+
return !!(this.smsActivated && !e || ((i = this.defaultAnswerMethod) == null ? void 0 : i.accept) === "bankId" && !t);
|
|
916
922
|
}
|
|
917
923
|
}
|
|
918
924
|
};
|
|
919
|
-
var
|
|
920
|
-
var s;
|
|
925
|
+
var Re = function() {
|
|
921
926
|
var e = this, i = e._self._c;
|
|
922
|
-
return i("
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
927
|
+
return i("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canUseBankId: s, canUseSms: n }) {
|
|
928
|
+
var a;
|
|
929
|
+
return [i("div", { staticClass: "flex flex-col h-full @container" }, [i(e.useScroll ? "Simplebar" : "div", { tag: "component", staticClass: "main-container" }, [i("div", { staticClass: "relative pt-6 px-4 pb-4 @md:px-8 @md:pb-8 @xl:px-16 @xl:pb-16" }, [i("div", { staticClass: "pb-4 text-lg font-bold" }, [e._v(" " + e._s(e.$t("title")) + " ")]), e.showName ? i("div", { staticClass: "mb-6" }, [i("div", { staticClass: "text-gray-900 text-xs font-medium pb-0.5" }, [e._v(" " + e._s(e.$t("nameLabel")) + " ")]), i("CInput", { attrs: { placeholder: e.$t("namePlaceholder"), filled: "" }, model: { value: e.name, callback: function(r) {
|
|
930
|
+
e.name = r;
|
|
931
|
+
}, expression: "name" } })], 1) : e._e(), i("div", { staticClass: "mb-6" }, [i("RecipientBlock", { attrs: { _value: {
|
|
932
|
+
clients: "clients"
|
|
933
|
+
}, _document: e._document, "set-form-value": e.setFormValue, "remove-form-value": e.removeFormValue, "default-add-sender-client": e.documentSenderSign, "is-public-form": e.isPublicForm } })], 1), e._t("default"), e.defaultAnswerMethod && e.signMethods.length > 1 ? i("div", { staticClass: "mb-8" }, [i("div", { staticClass: "block-title text-gray-900 text-xs font-medium pb-0.5" }, [e._v(" " + e._s(e.$t("signMethod.title")) + " "), i("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("signMethod.tooltip"), expression: "$t('signMethod.tooltip')" }], staticClass: "ml-px text-gray-500", attrs: { type: "info", size: "14" } })], 1), i("div", { staticClass: "cb-card-group" }, e._l(e.signMethods, function(r) {
|
|
934
|
+
return i("div", { key: r.value, staticClass: "flex border-2 border-transparent hover:bg-gray-200 hover:border-gray-300/30 cb-card", class: { checked: e.defaultAnswerMethod.accept === r.value }, on: { click: function(d) {
|
|
935
|
+
e.defaultAnswerMethod.accept !== r.value && e.setAnswerMethod(r.value);
|
|
936
|
+
} } }, [i("CRadio", { staticClass: "mr-3 pointer-events-none sign-radio", attrs: { value: e.defaultAnswerMethod.accept, "native-value": r.value, type: "secondary", size: "small" } }), i("div", { staticClass: "flex-grow" }, [i("div", { staticClass: "cb-card-title flex items-center justify-between" }, [e._v(" " + e._s(r.title) + " "), r.value === "bankId" && !s ? i("div", { staticClass: "ml-2 text-[10px] font-semibold text-white py-1 px-1.5 leading-none rounded-full bg-primary-500" }, [e._v(" Pro ")]) : e._e()]), i("div", { directives: [{ name: "show", rawName: "v-show", value: e.defaultAnswerMethod.accept === r.value, expression: "defaultAnswerMethod.accept === signMethod.value" }], staticClass: "cb-card-body" }, [e._v(" " + e._s(r.content) + " ")])])], 1);
|
|
937
|
+
}), 0)]) : e._e(), i("div", { staticClass: "grid items-center gap-2", staticStyle: { "grid-template-columns": "repeat(auto-fit, minmax(200px, 1fr))" } }, [i("div", [i("BaseDatePicker", { staticClass: "relative psuedo-input", attrs: { "custom-el": !0, direction: "end", tabindex: "0" }, model: { value: e.expiresAt, callback: function(r) {
|
|
938
|
+
e.expiresAt = r;
|
|
939
|
+
}, expression: "expiresAt" } }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("validityPeriod")))]), i("div", [e._v(e._s(e.expiresAt ? e.$formatDate(e.expiresAt) : e.$t("_common:disabled").capitalize()))]), e.expiresAt ? i("CButton", { staticClass: "absolute right-3 top-3", attrs: { icon: "x", size: "small", type: "none", pattern: "secondary" }, on: { click: function(r) {
|
|
940
|
+
r.preventDefault(), r.stopPropagation(), e.expiresAt = void 0, e._document.setDirty("expiresAt");
|
|
941
|
+
} } }) : e._e()], 1)], 1), i("CDropdown", { staticStyle: { flex: "1 0 200px" }, attrs: { disabled: !e.clients.length, "mobile-label": e.$t("sendAs"), expanded: "" } }, [i("div", { staticClass: "psuedo-input", attrs: { slot: "trigger", tabindex: "0" }, slot: "trigger" }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("sendAs")))]), i("div", { domProps: { innerHTML: e._s(e.sendTypesText) } })]), i("CDropdownItem", { attrs: { value: e.emailActivated, "close-on-click": !1, toggle: "" }, on: { click: function(r) {
|
|
942
|
+
return e.setDeliveryMethod("email", !e.emailActivated);
|
|
943
|
+
} } }, [e._v(" " + e._s(e.$t("_common:email").capitalize()) + " ")]), e.feature("sms") ? i("CDropdownItem", { attrs: { value: e.smsActivated, "close-on-click": !1, toggle: "" }, on: { click: function(r) {
|
|
944
|
+
return e.setDeliveryMethod("sms", !e.smsActivated);
|
|
945
|
+
} } }, [e._v(" " + e._s(e.$t("_common:sms")) + " "), n ? e._e() : i("div", { staticClass: "ml-2 text-[10px] font-semibold text-white py-1 px-1.5 leading-none rounded-full bg-primary-500" }, [e._v(" Pro ")])]) : e._e(), e.allowManualDelivery ? i("CDropdownItem", { attrs: { value: "", tooltip: {
|
|
946
|
+
content: e.$t("manualDeliveryTooltip")
|
|
947
|
+
} }, domProps: { textContent: e._s(e.$t("manualDelivery")) }, on: { click: () => {
|
|
948
|
+
e.setDeliveryMethod("sms", !1), e.setDeliveryMethod("email", !1), e._document.setDirty("isManualDelivery");
|
|
949
|
+
} } }) : e._e()], 1), !e.useSignOrder && !e.isManualDelivery ? i("div", { staticClass: "relative psuedo-input", attrs: { tabindex: "0" }, on: { click: e.openReminders } }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("_common:reminder_plural").capitalize()))]), i("div", [e._v(" " + e._s(e.noOfReminders ? `${e.noOfReminders} ${e.$i18n.lang === "sv" ? e.$t("_common:unitType.unit") : ""}` : e.$t("_common:disabled").capitalize()) + " ")]), e.noOfReminders ? i("CButton", { staticClass: "absolute right-3 top-3", attrs: { icon: "x", size: "small", type: "none", pattern: "secondary" }, on: { click: function(r) {
|
|
950
|
+
r.preventDefault(), r.stopPropagation(), e.reminders = [];
|
|
951
|
+
} } }) : e._e()], 1) : e._e()], 1), e.clientsAreMissingContactInfo || (a = e.$v.isManualDelivery) != null && a.$invalid ? i("ErrorCallout", { attrs: { message: e.clientsAreMissingContactInfo ? e.$t("clientsAreMissingContactInfo") : e.$t("missingDeliveryMethod"), size: "small" } }) : e._e(), e._t("content")], 2)]), i("div", { staticClass: "px-4 pb-4 @md:px-8 @xl:px-16" }, [e._t("send", function() {
|
|
952
|
+
return [i("IsPremiumPreStep", { attrs: { feature: "bankIdAndSms" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: r }) {
|
|
953
|
+
return [i("div", { staticClass: "flex" }, [e.showSave ? i("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("_common:save", { thing: e.$t("_common:document").toLowerCase() }), expression: "$t('_common:save', { thing: $t('_common:document').toLowerCase() })" }], staticClass: "w-12 mr-2", attrs: { loading: e.isPosting, type: "none", icon: "save", pattern: "secondary" }, on: { click: function(d) {
|
|
954
|
+
return e.doSaveDocument({ doSend: !1 });
|
|
955
|
+
} } }) : e._e(), e.showSchedule && !e.useSignOrder && !e.isManualDelivery ? i("CButton", { staticClass: "mr-2 w-12 @md:w-auto", staticStyle: { padding: "14px 16px", "border-radius": "8px", height: "initial", "font-size": "14px", "font-weight": "600" }, attrs: { disabled: e.isPosting || !e.clients.length, type: "none", pattern: "secondary" }, on: { click: e.openSendLater } }, [i("span", { staticClass: "!hidden @md:!block", domProps: { textContent: e._s(e.$t("scheduledTooltip")) } }), i("BaseIcon", { staticClass: "@md:!hidden", attrs: { type: "calendar", size: "16" } })], 1) : e._e(), i("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$v.$invalid ? {
|
|
956
|
+
content: e.clients.length ? e.$t("missingDeliveryMethod") : e.$t(
|
|
957
|
+
"components:account.documentForm.clients.errorMessage"
|
|
958
|
+
)
|
|
959
|
+
} : {}, expression: `
|
|
960
|
+
$v.$invalid
|
|
961
|
+
? {
|
|
962
|
+
content: !clients.length
|
|
963
|
+
? $t(
|
|
964
|
+
'components:account.documentForm.clients.errorMessage'
|
|
965
|
+
)
|
|
966
|
+
: $t('missingDeliveryMethod')
|
|
967
|
+
}
|
|
968
|
+
: {}
|
|
969
|
+
` }], staticClass: "flex-auto" }, [i("CButton", { staticStyle: { padding: "14px 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: { disabled: e.$v.$invalid, loading: e.isPosting, type: "secondary", wide: "" }, on: { click: function(d) {
|
|
970
|
+
e.shouldShowUpgradeModal({ canUseBankId: s, canUseSms: n }) ? r() : e.doSendDocument();
|
|
971
|
+
} } }, [e._v(" " + e._s(e.$t("sendButton")) + " ")])], 1)], 1)];
|
|
972
|
+
} }], null, !0) })];
|
|
973
|
+
}), e._t("footer")], 2)], 1)];
|
|
974
|
+
} }], null, !0) });
|
|
975
|
+
}, Me = [], ze = /* @__PURE__ */ o(
|
|
967
976
|
Te,
|
|
968
|
-
|
|
977
|
+
Re,
|
|
978
|
+
Me,
|
|
969
979
|
!1,
|
|
970
980
|
null,
|
|
971
|
-
"
|
|
981
|
+
"8a9d47a1",
|
|
972
982
|
null,
|
|
973
983
|
null
|
|
974
984
|
);
|
|
975
|
-
const
|
|
985
|
+
const ci = ze.exports, Ne = {
|
|
976
986
|
name: "CFormField",
|
|
977
987
|
components: {
|
|
978
988
|
CField: z
|
|
979
989
|
},
|
|
980
|
-
extends:
|
|
990
|
+
extends: G,
|
|
981
991
|
computed: {
|
|
982
992
|
type() {
|
|
983
993
|
return this.hasErrors ? "is-danger" : this.isValid ? "is-success" : null;
|
|
@@ -987,20 +997,20 @@ const li = Re.exports, Me = {
|
|
|
987
997
|
}
|
|
988
998
|
}
|
|
989
999
|
};
|
|
990
|
-
var
|
|
1000
|
+
var Ee = function() {
|
|
991
1001
|
var e = this, i = e._self._c;
|
|
992
1002
|
return i("CField", e._b({ attrs: { label: e.label, "custom-class": e.customClass, type: e.type, message: e.firstErrorMessage } }, "CField", { ...e.$attrs, ...e.$props }, !1), [e._t("default")], 2);
|
|
993
|
-
},
|
|
994
|
-
Me,
|
|
995
|
-
ze,
|
|
1003
|
+
}, Le = [], He = /* @__PURE__ */ o(
|
|
996
1004
|
Ne,
|
|
1005
|
+
Ee,
|
|
1006
|
+
Le,
|
|
997
1007
|
!1,
|
|
998
1008
|
null,
|
|
999
1009
|
null,
|
|
1000
1010
|
null,
|
|
1001
1011
|
null
|
|
1002
1012
|
);
|
|
1003
|
-
const
|
|
1013
|
+
const qe = He.exports, je = {
|
|
1004
1014
|
name: "CSkeleton",
|
|
1005
1015
|
functional: !0,
|
|
1006
1016
|
props: {
|
|
@@ -1061,23 +1071,23 @@ const Le = Ee.exports, He = {
|
|
|
1061
1071
|
i
|
|
1062
1072
|
);
|
|
1063
1073
|
}
|
|
1064
|
-
},
|
|
1065
|
-
var
|
|
1066
|
-
He,
|
|
1067
|
-
qe,
|
|
1074
|
+
}, Ke = null, We = null;
|
|
1075
|
+
var Xe = /* @__PURE__ */ o(
|
|
1068
1076
|
je,
|
|
1077
|
+
Ke,
|
|
1078
|
+
We,
|
|
1069
1079
|
!1,
|
|
1070
1080
|
null,
|
|
1071
1081
|
null,
|
|
1072
1082
|
null,
|
|
1073
1083
|
null
|
|
1074
1084
|
);
|
|
1075
|
-
const w =
|
|
1085
|
+
const w = Xe.exports, Ue = {
|
|
1076
1086
|
name: "CAutocomplete",
|
|
1077
1087
|
components: {
|
|
1078
|
-
CInput:
|
|
1088
|
+
CInput: P
|
|
1079
1089
|
},
|
|
1080
|
-
mixins: [
|
|
1090
|
+
mixins: [T],
|
|
1081
1091
|
inheritAttrs: !1,
|
|
1082
1092
|
props: {
|
|
1083
1093
|
value: [Number, String],
|
|
@@ -1230,10 +1240,10 @@ const w = Ke.exports, We = {
|
|
|
1230
1240
|
const t = this.$refs.dropdown.querySelector(".dropdown-content");
|
|
1231
1241
|
t.addEventListener("scroll", () => this.checkIfReachedTheEndOfScroll(t));
|
|
1232
1242
|
}
|
|
1233
|
-
this.appendToBody && (this.$data._bodyEl =
|
|
1243
|
+
this.appendToBody && (this.$data._bodyEl = ee(this.$refs.dropdown), this.updateAppendToBody());
|
|
1234
1244
|
},
|
|
1235
1245
|
beforeDestroy() {
|
|
1236
|
-
typeof window < "u" && (document.removeEventListener("click", this.clickedOutside), this.dropdownPosition === "auto" && window.removeEventListener("resize", this.calcDropdownInViewportVertical)), this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector(".dropdown-content") && this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll", this.checkIfReachedTheEndOfScroll), this.appendToBody &&
|
|
1246
|
+
typeof window < "u" && (document.removeEventListener("click", this.clickedOutside), this.dropdownPosition === "auto" && window.removeEventListener("resize", this.calcDropdownInViewportVertical)), this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector(".dropdown-content") && this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll", this.checkIfReachedTheEndOfScroll), this.appendToBody && te(this.$data._bodyEl);
|
|
1237
1247
|
},
|
|
1238
1248
|
methods: {
|
|
1239
1249
|
/**
|
|
@@ -1292,7 +1302,7 @@ const w = Ke.exports, We = {
|
|
|
1292
1302
|
*/
|
|
1293
1303
|
getValue(t) {
|
|
1294
1304
|
if (t !== null)
|
|
1295
|
-
return typeof this.customFormatter < "u" ? this.customFormatter(t) : typeof t == "object" ?
|
|
1305
|
+
return typeof this.customFormatter < "u" ? this.customFormatter(t) : typeof t == "object" ? ie(t, this.field) : t;
|
|
1296
1306
|
},
|
|
1297
1307
|
/**
|
|
1298
1308
|
* Check if the scroll list inside the dropdown
|
|
@@ -1325,8 +1335,8 @@ const w = Ke.exports, We = {
|
|
|
1325
1335
|
const s = this.$refs.dropdown.querySelector(".dropdown-content"), n = s.querySelectorAll("a.dropdown-item:not(.is-disabled)")[i];
|
|
1326
1336
|
if (!n)
|
|
1327
1337
|
return;
|
|
1328
|
-
const a = s.scrollTop,
|
|
1329
|
-
n.offsetTop < a ? s.scrollTop = n.offsetTop : n.offsetTop >=
|
|
1338
|
+
const a = s.scrollTop, r = s.scrollTop + s.clientHeight - n.clientHeight;
|
|
1339
|
+
n.offsetTop < a ? s.scrollTop = n.offsetTop : n.offsetTop >= r && (s.scrollTop = n.offsetTop - s.clientHeight + n.clientHeight);
|
|
1330
1340
|
} else
|
|
1331
1341
|
this.isActive = !0;
|
|
1332
1342
|
},
|
|
@@ -1359,7 +1369,7 @@ const w = Ke.exports, We = {
|
|
|
1359
1369
|
const t = this.$refs.dropdown, e = this.$refs.input.$el;
|
|
1360
1370
|
if (t && e) {
|
|
1361
1371
|
const i = this.$data._bodyEl;
|
|
1362
|
-
i.classList.forEach((
|
|
1372
|
+
i.classList.forEach((r) => i.classList.remove(r)), i.classList.add("autocomplete"), i.classList.add("control"), this.expandend && i.classList.add("is-expandend");
|
|
1363
1373
|
const s = e.getBoundingClientRect();
|
|
1364
1374
|
let n = s.top + window.scrollY;
|
|
1365
1375
|
const a = s.left + window.scrollX;
|
|
@@ -1375,7 +1385,7 @@ const w = Ke.exports, We = {
|
|
|
1375
1385
|
}
|
|
1376
1386
|
}
|
|
1377
1387
|
};
|
|
1378
|
-
var
|
|
1388
|
+
var Qe = function() {
|
|
1379
1389
|
var e = this, i = e._self._c;
|
|
1380
1390
|
return i("div", { staticClass: "autocomplete control", class: { "is-expanded": e.expanded } }, [i("CInput", e._b({ ref: "input", attrs: { size: e.size, loading: e.loading, rounded: e.rounded, icon: e.icon, "icon-right": e.newIconRight, "icon-right-clickable": e.newIconRightClickable, "icon-pack": e.iconPack, maxlength: e.maxlength, autocomplete: e.newAutocomplete, "use-html5-validation": !1, type: "text" }, on: { input: e.onInput, focus: e.focused, blur: e.onBlur, "icon-right-click": e.rightIconClick, "icon-click": (s) => e.$emit("icon-click", s) }, nativeOn: { keyup: function(s) {
|
|
1381
1391
|
if (!s.type.indexOf("key") && e._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]))
|
|
@@ -1396,21 +1406,21 @@ var Xe = function() {
|
|
|
1396
1406
|
return e.setSelected(s, void 0, a);
|
|
1397
1407
|
} } }, [e.hasDefaultSlot ? e._t("default", null, { option: s, index: n }) : i("span", [e._v(" " + e._s(e.getValue(s, !0)) + " ")])], 2);
|
|
1398
1408
|
}), e.data.length === 0 && e.hasEmptySlot ? i("div", { staticClass: "dropdown-item is-disabled" }, [e._t("empty")], 2) : e._e(), e.hasFooterSlot ? i("div", { staticClass: "dropdown-item" }, [e._t("footer")], 2) : e._e()], 2)])])], 1);
|
|
1399
|
-
},
|
|
1400
|
-
We,
|
|
1401
|
-
Xe,
|
|
1409
|
+
}, Ye = [], Ge = /* @__PURE__ */ o(
|
|
1402
1410
|
Ue,
|
|
1411
|
+
Qe,
|
|
1412
|
+
Ye,
|
|
1403
1413
|
!1,
|
|
1404
1414
|
null,
|
|
1405
1415
|
null,
|
|
1406
1416
|
null,
|
|
1407
1417
|
null
|
|
1408
1418
|
);
|
|
1409
|
-
const
|
|
1419
|
+
const Je = Ge.exports, Ze = {
|
|
1410
1420
|
name: "CRadio",
|
|
1411
1421
|
mixins: [R]
|
|
1412
1422
|
};
|
|
1413
|
-
var
|
|
1423
|
+
var et = function() {
|
|
1414
1424
|
var e = this, i = e._self._c;
|
|
1415
1425
|
return i("label", { ref: "label", staticClass: "b-radio radio", class: [`is-${e.size}`, { "is-disabled": e.disabled }], attrs: { disabled: e.disabled }, on: { click: e.focus, keydown: function(s) {
|
|
1416
1426
|
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : (s.preventDefault(), e.$refs.label.click());
|
|
@@ -1419,17 +1429,17 @@ var Je = function() {
|
|
|
1419
1429
|
}, change: function(s) {
|
|
1420
1430
|
e.computedValue = e.nativeValue;
|
|
1421
1431
|
} } }), i("span", { staticClass: "check", class: `is-${e.type}` }), i("span", { staticClass: "control-label" }, [e._t("default")], 2)]);
|
|
1422
|
-
},
|
|
1423
|
-
Ge,
|
|
1424
|
-
Je,
|
|
1432
|
+
}, tt = [], it = /* @__PURE__ */ o(
|
|
1425
1433
|
Ze,
|
|
1434
|
+
et,
|
|
1435
|
+
tt,
|
|
1426
1436
|
!1,
|
|
1427
1437
|
null,
|
|
1428
1438
|
null,
|
|
1429
1439
|
null,
|
|
1430
1440
|
null
|
|
1431
1441
|
);
|
|
1432
|
-
const x =
|
|
1442
|
+
const x = it.exports, st = {
|
|
1433
1443
|
name: "CRadioButton",
|
|
1434
1444
|
mixins: [R],
|
|
1435
1445
|
components: {
|
|
@@ -1448,7 +1458,7 @@ const x = et.exports, tt = {
|
|
|
1448
1458
|
};
|
|
1449
1459
|
}
|
|
1450
1460
|
};
|
|
1451
|
-
var
|
|
1461
|
+
var nt = function() {
|
|
1452
1462
|
var e = this, i = e._self._c;
|
|
1453
1463
|
return i("div", { staticClass: "control", class: { "is-expanded": e.expanded } }, [i("CButton", { ref: "label", staticClass: "c-radio radio button", class: [
|
|
1454
1464
|
{ "is-disabled": e.disabled, "is-focused": e.isFocused }
|
|
@@ -1463,19 +1473,19 @@ var it = function() {
|
|
|
1463
1473
|
}, change: function(s) {
|
|
1464
1474
|
e.computedValue = e.nativeValue;
|
|
1465
1475
|
} } })], 2)], 1);
|
|
1466
|
-
},
|
|
1467
|
-
tt,
|
|
1468
|
-
it,
|
|
1476
|
+
}, at = [], rt = /* @__PURE__ */ o(
|
|
1469
1477
|
st,
|
|
1478
|
+
nt,
|
|
1479
|
+
at,
|
|
1470
1480
|
!1,
|
|
1471
1481
|
null,
|
|
1472
1482
|
null,
|
|
1473
1483
|
null,
|
|
1474
1484
|
null
|
|
1475
1485
|
);
|
|
1476
|
-
const
|
|
1486
|
+
const S = rt.exports, ot = {
|
|
1477
1487
|
name: "CSelect",
|
|
1478
|
-
mixins: [
|
|
1488
|
+
mixins: [T],
|
|
1479
1489
|
inheritAttrs: !1,
|
|
1480
1490
|
props: {
|
|
1481
1491
|
value: {
|
|
@@ -1527,7 +1537,7 @@ const $ = nt.exports, at = {
|
|
|
1527
1537
|
}
|
|
1528
1538
|
}
|
|
1529
1539
|
};
|
|
1530
|
-
var
|
|
1540
|
+
var lt = function() {
|
|
1531
1541
|
var e = this, i = e._self._c;
|
|
1532
1542
|
return i("div", { staticClass: "control", class: { "is-expanded": e.expanded, "has-icons-left": e.icon } }, [i("span", { staticClass: "select", class: e.spanClasses }, [i("select", e._b({ directives: [{ name: "model", rawName: "v-model", value: e.computedValue, expression: "computedValue" }], ref: "select", class: e.selectClass, attrs: { multiple: e.multiple, size: e.nativeSize }, on: { blur: function(s) {
|
|
1533
1543
|
e.$emit("blur", s) && e.checkHtml5Validity();
|
|
@@ -1537,22 +1547,22 @@ var rt = function() {
|
|
|
1537
1547
|
var n = Array.prototype.filter.call(s.target.options, function(a) {
|
|
1538
1548
|
return a.selected;
|
|
1539
1549
|
}).map(function(a) {
|
|
1540
|
-
var
|
|
1541
|
-
return
|
|
1550
|
+
var r = "_value" in a ? a._value : a.value;
|
|
1551
|
+
return r;
|
|
1542
1552
|
});
|
|
1543
1553
|
e.computedValue = s.target.multiple ? n : n[0];
|
|
1544
1554
|
} } }, "select", e.$attrs, !1), [e.placeholder && e.computedValue == null ? i("option", { attrs: { disabled: "", hidden: "" }, domProps: { value: null } }, [e._v(" " + e._s(e.placeholder) + " ")]) : e._e(), e._t("default")], 2)])]);
|
|
1545
|
-
},
|
|
1546
|
-
at,
|
|
1547
|
-
rt,
|
|
1555
|
+
}, dt = [], ct = /* @__PURE__ */ o(
|
|
1548
1556
|
ot,
|
|
1557
|
+
lt,
|
|
1558
|
+
dt,
|
|
1549
1559
|
!1,
|
|
1550
1560
|
null,
|
|
1551
|
-
"
|
|
1561
|
+
"e419c29c",
|
|
1552
1562
|
null,
|
|
1553
1563
|
null
|
|
1554
1564
|
);
|
|
1555
|
-
const
|
|
1565
|
+
const $ = ct.exports, ut = {
|
|
1556
1566
|
name: "CSwitch",
|
|
1557
1567
|
props: {
|
|
1558
1568
|
value: [String, Number, Boolean, Function, Object, Array, Date],
|
|
@@ -1616,31 +1626,31 @@ const S = lt.exports, dt = {
|
|
|
1616
1626
|
}
|
|
1617
1627
|
}
|
|
1618
1628
|
};
|
|
1619
|
-
var
|
|
1629
|
+
var mt = function() {
|
|
1620
1630
|
var e = this, i = e._self._c;
|
|
1621
1631
|
return i("label", { ref: "label", staticClass: "switch", class: e.newClass, attrs: { disabled: e.disabled }, on: { click: e.focus, keydown: function(s) {
|
|
1622
1632
|
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : (s.preventDefault(), e.$refs.label.click());
|
|
1623
1633
|
} } }, [i("input", { directives: [{ name: "model", rawName: "v-model", value: e.computedValue, expression: "computedValue" }], ref: "input", attrs: { disabled: e.disabled, name: e.name, required: e.required, "true-value": e.trueValue, "false-value": e.falseValue, type: "checkbox" }, domProps: { value: e.nativeValue, checked: Array.isArray(e.computedValue) ? e._i(e.computedValue, e.nativeValue) > -1 : e._q(e.computedValue, e.trueValue) }, on: { click: function(s) {
|
|
1624
1634
|
s.stopPropagation();
|
|
1625
1635
|
}, change: function(s) {
|
|
1626
|
-
var n = e.computedValue, a = s.target,
|
|
1636
|
+
var n = e.computedValue, a = s.target, r = a.checked ? e.trueValue : e.falseValue;
|
|
1627
1637
|
if (Array.isArray(n)) {
|
|
1628
|
-
var
|
|
1629
|
-
a.checked ?
|
|
1638
|
+
var d = e.nativeValue, u = e._i(n, d);
|
|
1639
|
+
a.checked ? u < 0 && (e.computedValue = n.concat([d])) : u > -1 && (e.computedValue = n.slice(0, u).concat(n.slice(u + 1)));
|
|
1630
1640
|
} else
|
|
1631
|
-
e.computedValue =
|
|
1641
|
+
e.computedValue = r;
|
|
1632
1642
|
} } }), i("span", { staticClass: "check", class: [`is-${e.type}`] }), i("span", { staticClass: "control-label" }, [e._t("default")], 2)]);
|
|
1633
|
-
},
|
|
1634
|
-
dt,
|
|
1635
|
-
ct,
|
|
1643
|
+
}, pt = [], ht = /* @__PURE__ */ o(
|
|
1636
1644
|
ut,
|
|
1645
|
+
mt,
|
|
1646
|
+
pt,
|
|
1637
1647
|
!1,
|
|
1638
1648
|
null,
|
|
1639
|
-
"
|
|
1649
|
+
"74591b69",
|
|
1640
1650
|
null,
|
|
1641
1651
|
null
|
|
1642
1652
|
);
|
|
1643
|
-
const k =
|
|
1653
|
+
const k = ht.exports, ft = {
|
|
1644
1654
|
name: "CSlotComponent",
|
|
1645
1655
|
props: {
|
|
1646
1656
|
component: {
|
|
@@ -1689,10 +1699,10 @@ const k = mt.exports, pt = {
|
|
|
1689
1699
|
this.scoped ? this.component.$scopedSlots[this.name](this.props) : this.component.$slots[this.name]
|
|
1690
1700
|
);
|
|
1691
1701
|
}
|
|
1692
|
-
},
|
|
1702
|
+
}, gt = {
|
|
1693
1703
|
name: "CTabs",
|
|
1694
1704
|
components: {
|
|
1695
|
-
CSlotComponent:
|
|
1705
|
+
CSlotComponent: ft
|
|
1696
1706
|
},
|
|
1697
1707
|
props: {
|
|
1698
1708
|
value: [Number, String],
|
|
@@ -1805,7 +1815,7 @@ const k = mt.exports, pt = {
|
|
|
1805
1815
|
}
|
|
1806
1816
|
}
|
|
1807
1817
|
};
|
|
1808
|
-
var
|
|
1818
|
+
var vt = function() {
|
|
1809
1819
|
var e = this, i = e._self._c;
|
|
1810
1820
|
return i("div", { staticClass: "c-tabs", class: e.mainClasses }, [i("nav", { staticClass: "tabs", class: e.navClasses }, [i("ul", e._l(e.tabItems, function(s, n) {
|
|
1811
1821
|
return i("li", { directives: [{ name: "show", rawName: "v-show", value: s.visible, expression: "tabItem.visible" }], key: n, class: {
|
|
@@ -1817,17 +1827,17 @@ var ft = function() {
|
|
|
1817
1827
|
return e.tabClick(n);
|
|
1818
1828
|
} } }, [s.icon ? i("BaseIcon", { attrs: { size: e.size, type: s.icon } }) : e._e(), i("span", [e._v(e._s(s.label))])], 1)], 1);
|
|
1819
1829
|
}), 0)]), i("section", { staticClass: "tab-content", class: { "is-transitioning": e.isTransitioning } }, [e._t("default")], 2)]);
|
|
1820
|
-
},
|
|
1821
|
-
ht,
|
|
1822
|
-
ft,
|
|
1830
|
+
}, yt = [], _t = /* @__PURE__ */ o(
|
|
1823
1831
|
gt,
|
|
1832
|
+
vt,
|
|
1833
|
+
yt,
|
|
1824
1834
|
!1,
|
|
1825
1835
|
null,
|
|
1826
|
-
"
|
|
1836
|
+
"08518f65",
|
|
1827
1837
|
null,
|
|
1828
1838
|
null
|
|
1829
1839
|
);
|
|
1830
|
-
const D =
|
|
1840
|
+
const D = _t.exports, bt = {
|
|
1831
1841
|
name: "CTabItem",
|
|
1832
1842
|
props: {
|
|
1833
1843
|
label: String,
|
|
@@ -1905,18 +1915,18 @@ const D = vt.exports, yt = {
|
|
|
1905
1915
|
[e]
|
|
1906
1916
|
) : e;
|
|
1907
1917
|
}
|
|
1908
|
-
},
|
|
1909
|
-
var
|
|
1910
|
-
yt,
|
|
1911
|
-
_t,
|
|
1918
|
+
}, Ct = null, wt = null;
|
|
1919
|
+
var xt = /* @__PURE__ */ o(
|
|
1912
1920
|
bt,
|
|
1921
|
+
Ct,
|
|
1922
|
+
wt,
|
|
1913
1923
|
!1,
|
|
1914
1924
|
null,
|
|
1915
1925
|
null,
|
|
1916
1926
|
null,
|
|
1917
1927
|
null
|
|
1918
1928
|
);
|
|
1919
|
-
const V =
|
|
1929
|
+
const V = xt.exports, St = {
|
|
1920
1930
|
name: "CMessage",
|
|
1921
1931
|
props: {
|
|
1922
1932
|
type: {
|
|
@@ -1933,21 +1943,21 @@ const V = Ct.exports, wt = {
|
|
|
1933
1943
|
}
|
|
1934
1944
|
}
|
|
1935
1945
|
};
|
|
1936
|
-
var
|
|
1946
|
+
var $t = function(e, i) {
|
|
1937
1947
|
return e("div", { class: [i.data.class, i.data.staticClass], staticStyle: { padding: "0.75em 1em", display: "flex", "align-items": "flex-start", "border-radius": "0.6em", "background-color": "hsl(var(--gray-color-100) / 1)" }, style: { ...i.data.staticStyle } }, [e("div", { class: [
|
|
1938
1948
|
`has-background-${i.props.type}`
|
|
1939
1949
|
], staticStyle: { display: "inline-block", padding: "0.5em", "border-radius": "0.45em", "font-weight": "700", color: "white", "line-height": "1", "font-size": "12px", "margin-right": "1.25em" } }, [i._v(" " + i._s(i.props.badge || i.parent.$t("components:cling.message.tip")) + " ")]), e("div", { staticStyle: { color: "hsl(0, 0%, 25%)" } }, [i.props.text ? [i._v(" " + i._s(i.props.text) + " ")] : i._e(), i._t("default")], 2)]);
|
|
1940
|
-
},
|
|
1941
|
-
|
|
1942
|
-
xt,
|
|
1950
|
+
}, kt = [], Dt = /* @__PURE__ */ o(
|
|
1951
|
+
St,
|
|
1943
1952
|
$t,
|
|
1953
|
+
kt,
|
|
1944
1954
|
!0,
|
|
1945
1955
|
null,
|
|
1946
|
-
"
|
|
1956
|
+
"a14c1e41",
|
|
1947
1957
|
null,
|
|
1948
1958
|
null
|
|
1949
1959
|
);
|
|
1950
|
-
const F =
|
|
1960
|
+
const F = Dt.exports, Vt = {
|
|
1951
1961
|
name: "FlagIcon",
|
|
1952
1962
|
props: {
|
|
1953
1963
|
region: {
|
|
@@ -1964,15 +1974,15 @@ const F = St.exports, kt = {
|
|
|
1964
1974
|
}
|
|
1965
1975
|
},
|
|
1966
1976
|
mounted() {
|
|
1967
|
-
var a,
|
|
1968
|
-
const t = "FLAG_ICONS", e = (
|
|
1977
|
+
var a, r;
|
|
1978
|
+
const t = "FLAG_ICONS", e = (r = (a = this.$el).getRootNode) == null ? void 0 : r.call(a), s = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.head;
|
|
1969
1979
|
if (s.querySelector(`#${t}`))
|
|
1970
1980
|
return;
|
|
1971
1981
|
const n = document.createElement("link");
|
|
1972
1982
|
n.id = t, n.rel = "stylesheet", n.type = "text/css", n.href = "https://www.unpkg.com/flag-icons@6.6.6/css/flag-icons.min.css", n.media = "all", s.appendChild(n);
|
|
1973
1983
|
}
|
|
1974
1984
|
};
|
|
1975
|
-
var
|
|
1985
|
+
var Ft = function() {
|
|
1976
1986
|
var e = this, i = e._self._c;
|
|
1977
1987
|
return e.region ? i("span", { staticClass: "fi", class: [
|
|
1978
1988
|
`fi-${this.region.toLowerCase()}`,
|
|
@@ -1980,26 +1990,26 @@ var Dt = function() {
|
|
|
1980
1990
|
fis: this.isSquared
|
|
1981
1991
|
}
|
|
1982
1992
|
], attrs: { title: e.title || e.region } }) : e._e();
|
|
1983
|
-
},
|
|
1984
|
-
kt,
|
|
1985
|
-
Dt,
|
|
1993
|
+
}, At = [], Bt = /* @__PURE__ */ o(
|
|
1986
1994
|
Vt,
|
|
1995
|
+
Ft,
|
|
1996
|
+
At,
|
|
1987
1997
|
!1,
|
|
1988
1998
|
null,
|
|
1989
1999
|
null,
|
|
1990
2000
|
null,
|
|
1991
2001
|
null
|
|
1992
2002
|
);
|
|
1993
|
-
const
|
|
2003
|
+
const It = Bt.exports, Ot = {
|
|
1994
2004
|
name: "CPhoneInput",
|
|
1995
2005
|
components: {
|
|
1996
|
-
Flag:
|
|
1997
|
-
CInput:
|
|
1998
|
-
CDropdown:
|
|
1999
|
-
CDropdownItem:
|
|
2006
|
+
Flag: It,
|
|
2007
|
+
CInput: P,
|
|
2008
|
+
CDropdown: h,
|
|
2009
|
+
CDropdownItem: f,
|
|
2000
2010
|
CButton: M,
|
|
2001
2011
|
CField: z,
|
|
2002
|
-
SmartList:
|
|
2012
|
+
SmartList: se
|
|
2003
2013
|
},
|
|
2004
2014
|
props: {
|
|
2005
2015
|
value: {
|
|
@@ -2033,7 +2043,7 @@ const At = Ft.exports, Bt = {
|
|
|
2033
2043
|
},
|
|
2034
2044
|
computed: {
|
|
2035
2045
|
defaultPrefix() {
|
|
2036
|
-
return
|
|
2046
|
+
return l[this.internalRegion].callingCode;
|
|
2037
2047
|
},
|
|
2038
2048
|
currentRegion() {
|
|
2039
2049
|
return this.getRegionByCallingCode(this.prefix);
|
|
@@ -2043,21 +2053,21 @@ const At = Ft.exports, Bt = {
|
|
|
2043
2053
|
if (this.region)
|
|
2044
2054
|
return this.region;
|
|
2045
2055
|
if (this.value) {
|
|
2046
|
-
const t = (Object.keys(
|
|
2056
|
+
const t = (Object.keys(l) || []).find((e) => l[e].callingCode && this.value && this.value.startsWith(l[e].callingCode));
|
|
2047
2057
|
if (t)
|
|
2048
2058
|
return t;
|
|
2049
2059
|
}
|
|
2050
2060
|
return this.internalPrefix ? this.getRegionByCallingCode(this.internalPrefix) : this.defaultRegion;
|
|
2051
2061
|
},
|
|
2052
2062
|
set(t) {
|
|
2053
|
-
this.$emit("update:region", t), this.updateValue({ prefix:
|
|
2063
|
+
this.$emit("update:region", t), this.updateValue({ prefix: l[t].callingCode });
|
|
2054
2064
|
}
|
|
2055
2065
|
},
|
|
2056
2066
|
prefix() {
|
|
2057
2067
|
if (!this.value)
|
|
2058
2068
|
return this.internalPrefix || this.defaultPrefix;
|
|
2059
|
-
const t = (Object.keys(
|
|
2060
|
-
return t ?
|
|
2069
|
+
const t = (Object.keys(l) || []).find((e) => l[e].callingCode && this.value && this.value.startsWith(l[e].callingCode));
|
|
2070
|
+
return t ? l[t].callingCode : this.defaultPrefix;
|
|
2061
2071
|
},
|
|
2062
2072
|
phone: {
|
|
2063
2073
|
get() {
|
|
@@ -2068,12 +2078,12 @@ const At = Ft.exports, Bt = {
|
|
|
2068
2078
|
}
|
|
2069
2079
|
},
|
|
2070
2080
|
sortedRegions() {
|
|
2071
|
-
return (Object.keys(
|
|
2081
|
+
return (Object.keys(l) || []).map((t) => ({ key: t, title: `${l[t].name} (${t})`, callingCode: l[t].callingCode })).sort((t, e) => t.title.localeCompare(e.title));
|
|
2072
2082
|
}
|
|
2073
2083
|
},
|
|
2074
2084
|
methods: {
|
|
2075
2085
|
getRegionByCallingCode(t) {
|
|
2076
|
-
return t ? (Object.keys(
|
|
2086
|
+
return t ? (Object.keys(l) || []).find((i) => t === l[i].callingCode) : null;
|
|
2077
2087
|
},
|
|
2078
2088
|
updateValue({ prefix: t, phone: e }) {
|
|
2079
2089
|
const i = t !== void 0 ? t : this.prefix || "", s = e !== void 0 ? e : this.phone || "", n = `${i}${s}`;
|
|
@@ -2081,7 +2091,7 @@ const At = Ft.exports, Bt = {
|
|
|
2081
2091
|
}
|
|
2082
2092
|
}
|
|
2083
2093
|
};
|
|
2084
|
-
var
|
|
2094
|
+
var Pt = function() {
|
|
2085
2095
|
var e = this, i = e._self._c;
|
|
2086
2096
|
return i("CField", { staticClass: "has-addons", attrs: { expanded: "" } }, [i("div", { staticClass: "control" }, [i("SmartList", { attrs: { query: e.searchQuery, items: e.sortedRegions }, scopedSlots: e._u([{ key: "default", fn: function({ items: s }) {
|
|
2087
2097
|
return [i("CDropdown", { staticClass: "control", staticStyle: { height: "100%" }, attrs: { size: e.$attrs.size, disabled: e.$attrs.disabled, "menu-styling": {
|
|
@@ -2090,23 +2100,23 @@ var Ot = function() {
|
|
|
2090
2100
|
e.internalRegion = n;
|
|
2091
2101
|
}, expression: "internalRegion" } }, [i("CButton", { staticStyle: { height: "100%" }, attrs: { slot: "trigger", size: e.$attrs.size, type: "none", pattern: "secondary" }, slot: "trigger" }, [i("Flag", { staticStyle: { "margin-right": "0.35em" }, attrs: { region: e.internalRegion } }), e._v(" " + e._s(e.prefix) + " ")], 1), i("CInput", { staticStyle: { "margin-bottom": "0.25em" }, attrs: { slot: "header", placeholder: e.$t("_common:search"), filled: "" }, slot: "header", model: { value: e.searchQuery, callback: function(n) {
|
|
2092
2102
|
e.searchQuery = n;
|
|
2093
|
-
}, expression: "searchQuery" } }), e._l(s, function({ key: n, title: a, callingCode:
|
|
2094
|
-
return i("CDropdownItem", { key: n, staticClass: "truncate-text", attrs: { value: n } }, [i("Flag", { staticStyle: { "margin-right": "0.75em", flex: "0 0 auto" }, attrs: { region: n, title: a } }), i("span", { staticClass: "truncate-text" }, [e._v(" " + e._s(a) + " (" + e._s(
|
|
2103
|
+
}, expression: "searchQuery" } }), e._l(s, function({ key: n, title: a, callingCode: r }) {
|
|
2104
|
+
return i("CDropdownItem", { key: n, staticClass: "truncate-text", attrs: { value: n } }, [i("Flag", { staticStyle: { "margin-right": "0.75em", flex: "0 0 auto" }, attrs: { region: n, title: a } }), i("span", { staticClass: "truncate-text" }, [e._v(" " + e._s(a) + " (" + e._s(r) + ") ")])], 1);
|
|
2095
2105
|
})], 2)];
|
|
2096
2106
|
} }]) })], 1), i("CField", { staticClass: "control", attrs: { label: e.label, "label-position": e.labelPosition, expanded: "" } }, [i("CInput", e._b({ attrs: { size: e.$attrs.size, placeholder: e.$attrs.placeholder, type: "tel" }, model: { value: e.phone, callback: function(s) {
|
|
2097
2107
|
e.phone = s;
|
|
2098
2108
|
}, expression: "phone" } }, "CInput", { ...e.$attrs, ...e.$props }, !1))], 1)], 1);
|
|
2099
|
-
},
|
|
2100
|
-
Bt,
|
|
2109
|
+
}, Tt = [], Rt = /* @__PURE__ */ o(
|
|
2101
2110
|
Ot,
|
|
2102
|
-
|
|
2111
|
+
Pt,
|
|
2112
|
+
Tt,
|
|
2103
2113
|
!1,
|
|
2104
2114
|
null,
|
|
2105
2115
|
null,
|
|
2106
2116
|
null,
|
|
2107
2117
|
null
|
|
2108
2118
|
);
|
|
2109
|
-
const A =
|
|
2119
|
+
const A = Rt.exports, Mt = {
|
|
2110
2120
|
name: "CSliderThumb",
|
|
2111
2121
|
inheritAttrs: !1,
|
|
2112
2122
|
props: {
|
|
@@ -2205,7 +2215,7 @@ const A = Tt.exports, Pt = {
|
|
|
2205
2215
|
}
|
|
2206
2216
|
}
|
|
2207
2217
|
};
|
|
2208
|
-
var
|
|
2218
|
+
var zt = function() {
|
|
2209
2219
|
var e = this, i = e._self._c;
|
|
2210
2220
|
return i("div", { staticClass: "c-slider-thumb-wrapper", class: { "is-dragging": e.dragging }, style: e.wrapperStyle }, [i("div", e._b({ staticClass: "c-slider-thumb", attrs: { tabindex: e.disabled ? !1 : 0 }, on: { mousedown: e.onButtonDown, touchstart: e.onButtonDown, focus: e.onFocus, blur: e.onBlur, keydown: [function(s) {
|
|
2211
2221
|
return !s.type.indexOf("key") && e._k(s.keyCode, "left", 37, s.key, ["Left", "ArrowLeft"]) || "button" in s && s.button !== 0 ? null : (s.preventDefault(), e.onLeftKeyDown.apply(null, arguments));
|
|
@@ -2220,17 +2230,17 @@ var Rt = function() {
|
|
|
2220
2230
|
}, function(s) {
|
|
2221
2231
|
return !s.type.indexOf("key") && e._k(s.keyCode, "end", void 0, s.key, void 0) ? null : (s.preventDefault(), e.onEndKeyDown.apply(null, arguments));
|
|
2222
2232
|
}] } }, "div", e.$attrs, !1))]);
|
|
2223
|
-
},
|
|
2224
|
-
Pt,
|
|
2225
|
-
Rt,
|
|
2233
|
+
}, Nt = [], Et = /* @__PURE__ */ o(
|
|
2226
2234
|
Mt,
|
|
2235
|
+
zt,
|
|
2236
|
+
Nt,
|
|
2227
2237
|
!1,
|
|
2228
2238
|
null,
|
|
2229
2239
|
null,
|
|
2230
2240
|
null,
|
|
2231
2241
|
null
|
|
2232
2242
|
);
|
|
2233
|
-
const
|
|
2243
|
+
const Lt = Et.exports, Ht = {
|
|
2234
2244
|
name: "CSliderTick",
|
|
2235
2245
|
props: {
|
|
2236
2246
|
value: {
|
|
@@ -2257,24 +2267,24 @@ const Nt = zt.exports, Et = {
|
|
|
2257
2267
|
}
|
|
2258
2268
|
}
|
|
2259
2269
|
};
|
|
2260
|
-
var
|
|
2270
|
+
var qt = function() {
|
|
2261
2271
|
var e = this, i = e._self._c;
|
|
2262
2272
|
return i("div", { staticClass: "c-slider-tick", class: { "is-tick-hidden": e.hidden }, style: e.getTickStyle(e.position) }, [e.$slots.default ? i("span", { staticClass: "c-slider-tick-label" }, [e._t("default")], 2) : e._e()]);
|
|
2263
|
-
},
|
|
2264
|
-
Et,
|
|
2265
|
-
Lt,
|
|
2273
|
+
}, jt = [], Kt = /* @__PURE__ */ o(
|
|
2266
2274
|
Ht,
|
|
2275
|
+
qt,
|
|
2276
|
+
jt,
|
|
2267
2277
|
!1,
|
|
2268
2278
|
null,
|
|
2269
2279
|
null,
|
|
2270
2280
|
null,
|
|
2271
2281
|
null
|
|
2272
2282
|
);
|
|
2273
|
-
const
|
|
2283
|
+
const Wt = Kt.exports, Xt = {
|
|
2274
2284
|
name: "CSlider",
|
|
2275
2285
|
components: {
|
|
2276
|
-
CSliderThumb:
|
|
2277
|
-
CSliderTick:
|
|
2286
|
+
CSliderThumb: Lt,
|
|
2287
|
+
CSliderTick: Wt
|
|
2278
2288
|
},
|
|
2279
2289
|
props: {
|
|
2280
2290
|
value: {
|
|
@@ -2410,10 +2420,10 @@ const jt = qt.exports, Kt = {
|
|
|
2410
2420
|
if (!(this.min > this.max))
|
|
2411
2421
|
if (Array.isArray(t)) {
|
|
2412
2422
|
this.isRange = !0;
|
|
2413
|
-
const e = typeof t[0] != "number" || isNaN(t[0]) ? this.min :
|
|
2423
|
+
const e = typeof t[0] != "number" || isNaN(t[0]) ? this.min : p(t[0], this.min, this.max), i = typeof t[1] != "number" || isNaN(t[1]) ? this.max : p(t[1], this.min, this.max);
|
|
2414
2424
|
this.value1 = this.isThumbReversed ? i : e, this.value2 = this.isThumbReversed ? e : i;
|
|
2415
2425
|
} else
|
|
2416
|
-
this.isRange = !1, this.value1 = isNaN(t) ? this.min :
|
|
2426
|
+
this.isRange = !1, this.value1 = isNaN(t) ? this.min : p(t, this.min, this.max), this.value2 = null;
|
|
2417
2427
|
},
|
|
2418
2428
|
onInternalValueUpdate() {
|
|
2419
2429
|
this.isRange && (this.isThumbReversed = this.value1 > this.value2), (!this.lazy || !this.dragging) && this.emitValue("input"), this.dragging && this.emitValue("dragging");
|
|
@@ -2456,7 +2466,7 @@ const jt = qt.exports, Kt = {
|
|
|
2456
2466
|
}
|
|
2457
2467
|
}
|
|
2458
2468
|
};
|
|
2459
|
-
var
|
|
2469
|
+
var Ut = function() {
|
|
2460
2470
|
var e = this, i = e._self._c;
|
|
2461
2471
|
return i("div", { staticClass: "c-slider", class: [`is-${e.size}`, `is-${e.type}`, e.rootClasses], on: { click: e.onSliderClick } }, [i("div", { ref: "slider", staticClass: "c-slider-track" }, [i("div", { staticClass: "c-slider-fill", style: e.barStyle }), e.ticks ? e._l(e.tickValues, function(s, n) {
|
|
2462
2472
|
return i("CSliderTick", { key: n, attrs: { value: s } });
|
|
@@ -2465,22 +2475,22 @@ var Wt = function() {
|
|
|
2465
2475
|
}, expression: "value1" } }), e.isRange ? i("CSliderThumb", { ref: "button2", attrs: { type: e.newTooltipType, tooltip: e.tooltip, "custom-formatter": e.customFormatter, "aria-valuenow": e.value2, "aria-valuemin": e.min, "aria-valuemax": e.max, "aria-label": Array.isArray(e.ariaLabel) ? e.ariaLabel[1] : "", "aria-disabled": e.disabled, role: "slider", "aria-orientation": "horizontal" }, on: { dragstart: e.onDragStart, dragend: e.onDragEnd }, model: { value: e.value2, callback: function(s) {
|
|
2466
2476
|
e.value2 = s;
|
|
2467
2477
|
}, expression: "value2" } }) : e._e()], 2)]);
|
|
2468
|
-
},
|
|
2469
|
-
Kt,
|
|
2470
|
-
Wt,
|
|
2478
|
+
}, Qt = [], Yt = /* @__PURE__ */ o(
|
|
2471
2479
|
Xt,
|
|
2480
|
+
Ut,
|
|
2481
|
+
Qt,
|
|
2472
2482
|
!1,
|
|
2473
2483
|
null,
|
|
2474
2484
|
null,
|
|
2475
2485
|
null,
|
|
2476
2486
|
null
|
|
2477
2487
|
);
|
|
2478
|
-
const B =
|
|
2479
|
-
function
|
|
2480
|
-
t.component(w.name, w), t.component("CAutocomplete",
|
|
2488
|
+
const B = Yt.exports;
|
|
2489
|
+
function ui(t) {
|
|
2490
|
+
t.component(w.name, w), t.component("CAutocomplete", Je), t.component(y.name, y), t.component(x.name, x), t.component(S.name, S), t.component(h.name, h), t.component(f.name, f), t.component($.name, $), t.component(_.name, _), t.component(k.name, k), t.component(D.name, D), t.component(V.name, V), t.component("CField", qe), t.component(F.name, F), t.component(A.name, A), t.component(B.name, B);
|
|
2481
2491
|
}
|
|
2482
2492
|
export {
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2493
|
+
qe as C,
|
|
2494
|
+
ci as S,
|
|
2495
|
+
ui as i
|
|
2486
2496
|
};
|