@cling-se/widget 0.12.1 → 0.12.3
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-9a08f2ce.js → AddClientCallout-751ed5aa.js} +7 -7
- package/dist/{AnswerModal-50c8347c.js → AnswerModal-581cee38.js} +128 -169
- package/dist/{AttachmentItem-9bd7dbfb.js → AttachmentItem-811ac040.js} +6 -6
- package/dist/{BaseDatePicker-01dfa5b2.js → BaseDatePicker-95f61f10.js} +2 -2
- package/dist/{BaseInput-39893fdd.js → BaseInput-2316a974.js} +1 -1
- package/dist/{BaseUpload-d8b864b3.js → BaseUpload-bf946607.js} +2 -2
- package/dist/{BlockMedia-5812545c.js → BlockMedia-a2018340.js} +1 -1
- package/dist/{CCallout-3bfbca46.js → CCallout-25a66bee.js} +4 -4
- package/dist/{CDropdownItem-4e64b91f.js → CDropdownItem-46ef817a.js} +2 -2
- package/dist/{CField-5dbb89e1.js → CField-d83a443d.js} +1 -1
- package/dist/{CPhoneFormat-c0be2b4f.js → CPhoneFormat-195e1576.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-0e241327.js → CSlider.vue_vue_type_style_index_0_lang-1bfafbea.js} +1 -1
- package/dist/{ClientAutocomplete-debd7fb5.js → ClientAutocomplete-5f619f92.js} +2 -2
- package/dist/{ClientModal-b2b26491.js → ClientModal-72bc0977.js} +11 -11
- package/dist/{ColorPicker-554004b4.js → ColorPicker-b815929f.js} +2 -2
- package/dist/{CompanyModal-2e0706de.js → CompanyModal-0ea79ac1.js} +3 -3
- package/dist/{ContentWrapper-78c03285.js → ContentWrapper-c7e2a8f2.js} +19 -19
- package/dist/{CoverBlockSettings-a10af3d7.js → CoverBlockSettings-b42b5f8a.js} +17 -17
- package/dist/{DocAnswer-dbb8d156.js → DocAnswer-0a2cd242.js} +4 -4
- package/dist/{DocDetails-60cd0e54.js → DocDetails-a06afb2b.js} +29 -29
- package/dist/{DocForm-e452f0cd.js → DocForm-ab0c0845.js} +88 -85
- package/dist/{DocFormSend-2be90d32.js → DocFormSend-315100bf.js} +19 -19
- package/dist/{DocLinks-1d6bf0d6.js → DocLinks-0667287d.js} +2 -2
- package/dist/{DocModalBase-af969452.js → DocModalBase-b7819a9e.js} +7 -7
- package/dist/{DocPrint-62066899.js → DocPrint-d79f92b7.js} +13 -13
- package/dist/{DocReceipt-2d26b906.js → DocReceipt-34fb36ed.js} +7 -7
- package/dist/{DocSendReminder-d0bd58b6.js → DocSendReminder-eb36b1ae.js} +6 -6
- package/dist/{DocTextEditor-6a7d926d.js → DocTextEditor-7b551ddf.js} +16 -16
- package/dist/{DocTimeline-da4ad72b.js → DocTimeline-3422972c.js} +4 -4
- package/dist/{DocumentClient-40b9d019.js → DocumentClient-a13c009e.js} +7 -7
- package/dist/{DocumentLayout-b33f7eca.js → DocumentLayout-4ef4eb0c.js} +6 -6
- package/dist/{DocumentLogotype-7ee57f11.js → DocumentLogotype-d0a0f8dc.js} +9 -9
- package/dist/{DocumentVoided-0b031bd6.js → DocumentVoided-e99fe2b3.js} +2 -2
- package/dist/{EmbedInput-0c1b25a5.js → EmbedInput-84cbb26b.js} +2 -2
- package/dist/{EmbedSettings-4e11febb.js → EmbedSettings-03092756.js} +3 -3
- package/dist/{ErrorCallout-2ca69cec.js → ErrorCallout-5207a92e.js} +1 -1
- package/dist/{FilePreviewModal-318cd4e6.js → FilePreviewModal-f811bc63.js} +8 -8
- package/dist/{Flag-e27c8311.js → Flag-4e6e51fe.js} +1 -1
- package/dist/{HeaderSettings-ccffab13.js → HeaderSettings-35726563.js} +24 -24
- package/dist/{ImageSelectModal-b33e02f0.js → ImageSelectModal-6143f099.js} +8 -8
- package/dist/{ImageUploadWrapper-2958e38a.js → ImageUploadWrapper-299c58fe.js} +5 -5
- package/dist/{Index-ca5d5938.js → Index-0623b53d.js} +6 -6
- package/dist/{Index-6c850deb.js → Index-09486dc6.js} +2 -2
- package/dist/{Index-e4b6c044.js → Index-16a1a69c.js} +6 -6
- package/dist/{Index-fe86d6ed.js → Index-189c8b44.js} +4 -4
- package/dist/{Index-52048bd8.js → Index-1fe7f785.js} +4 -4
- package/dist/{Index-e5d8ace1.js → Index-2e1f9e1b.js} +4 -4
- package/dist/{Index-86295fa6.js → Index-3e5de61c.js} +7 -7
- package/dist/{Index-c0ba3ccf.js → Index-3f027683.js} +5 -5
- package/dist/{Index-321c45b2.js → Index-47059b84.js} +1 -1
- package/dist/{Index-8c8da99b.js → Index-538e57e9.js} +6 -6
- package/dist/{Index-8415c404.js → Index-539d4217.js} +4 -4
- package/dist/{Index-a156fa7b.js → Index-55922e6a.js} +2 -2
- package/dist/{Index-57ff2c4d.js → Index-63683f50.js} +14 -14
- package/dist/{Index-63d1c186.js → Index-728ec7d7.js} +6 -6
- package/dist/{Index-a28b89d6.js → Index-72e44ff5.js} +4 -4
- package/dist/{Index-cd9016c9.js → Index-7353209e.js} +6 -6
- package/dist/{Index-352290be.js → Index-775c3d2f.js} +2 -2
- package/dist/{Index-3aa7ab5a.js → Index-805d2fc2.js} +9 -9
- package/dist/{Index-a4be2350.js → Index-91b55567.js} +2 -2
- package/dist/{Index-f9dce241.js → Index-98ab8892.js} +10 -10
- package/dist/{Index-56ef7197.js → Index-9c98f176.js} +7 -7
- package/dist/{Index-21bf7267.js → Index-b8e2e1b8.js} +3 -3
- package/dist/{Index-0b42facb.js → Index-ba6b2169.js} +4 -4
- package/dist/{Index-d91e72e4.js → Index-bbfc58aa.js} +4 -4
- package/dist/{Index-9359fe90.js → Index-c1f31c24.js} +2 -2
- package/dist/{Index-25438497.js → Index-c7c41ec0.js} +2 -2
- package/dist/{Index-e423aff0.js → Index-caa773f2.js} +9 -9
- package/dist/{Index-ad8b2d21.js → Index-cdeffca2.js} +41 -41
- package/dist/{Index-dd365704.js → Index-cfa5b251.js} +19 -19
- package/dist/{Index-03c094df.js → Index-e99b0408.js} +5 -5
- package/dist/{Index-1189a031.js → Index-f21adb8b.js} +1 -1
- package/dist/{Index-df1b0ce1.js → Index-f7a41581.js} +9 -9
- package/dist/{Index-7fc7f137.js → Index-f97205f6.js} +4 -4
- package/dist/{Index-29366cec.js → Index-fb3d4460.js} +24 -24
- package/dist/{InputToggleRow-73b2eb3e.js → InputToggleRow-9eae9950.js} +6 -6
- package/dist/{IsPremiumPreStep-3409b0b1.js → IsPremiumPreStep-b4094114.js} +27 -27
- package/dist/{ManualPopover-aabff26d.js → ManualPopover-279c34d7.js} +1 -1
- package/dist/{MediaWrapper-f69bd386.js → MediaWrapper-28900be4.js} +3 -3
- package/dist/{NotBindingText-297c0757.js → NotBindingText-03ed1896.js} +2 -2
- package/dist/{PackageGroup-c8b0ea48.js → PackageGroup-a09157ce.js} +20 -20
- package/dist/{PdfTerms-23875b7a.js → PdfTerms-40cf2e44.js} +5 -5
- package/dist/{PdfViewer-bb3115a5.js → PdfViewer-022d9820.js} +4 -4
- package/dist/{PlainHtml-084a2060.js → PlainHtml-816cdcfd.js} +1 -1
- package/dist/{PriceHeader-3e081e28.js → PriceHeader-c5d1c5a5.js} +37 -37
- package/dist/{SearchApi-54afc953.js → SearchApi-2cf7a417.js} +2 -2
- package/dist/{Setup-6fc1e279.js → Setup-f675b31a.js} +2 -2
- package/dist/{TermsSettings-d08a2850.js → TermsSettings-4865f58c.js} +7 -7
- package/dist/{ThemeColorRow-06cba9a4.js → ThemeColorRow-88778196.js} +4 -4
- package/dist/{ToggleBinding-ef903ffb.js → ToggleBinding-664e9183.js} +3 -3
- package/dist/{UploadModal-b1000887.js → UploadModal-9de4a0c5.js} +8 -8
- package/dist/{VideoPlayerInput-d457e93f.js → VideoPlayerInput-a6db7b6f.js} +3 -3
- package/dist/{VideoPlayerSettings-6d3e4247.js → VideoPlayerSettings-bb6e5389.js} +4 -4
- package/dist/{VideoSelectModal-cd78d125.js → VideoSelectModal-5476aa27.js} +15 -15
- package/dist/answerDocumentMixin-564758ae.js +51 -0
- package/dist/{debounce-c329e921.js → debounce-fb89e666.js} +1 -1
- package/dist/{focusDrawerMixin-a2d32b5e.js → focusDrawerMixin-9822a344.js} +1 -1
- package/dist/{formComponentsInstall-bc0a5a0c.js → formComponentsInstall-cd69ac70.js} +41 -41
- package/dist/{formDrawerState-e755d0ef.js → formDrawerState-889851ba.js} +1 -1
- package/dist/{formValidationMixin-64e2fd25.js → formValidationMixin-de96de9e.js} +1 -1
- package/dist/{i18nMessages-45c6bfd6.js → i18nMessages-6b279c15.js} +4 -2
- package/dist/{index-3ad3f370.js → index-286fbf2e.js} +1 -1
- package/dist/{index-fbb0197d.js → index-28cc6cae.js} +13 -13
- package/dist/{index-a8e0d9a4.js → index-39b8ba31.js} +3 -3
- package/dist/{index-252c1b85.js → index-67306b4a.js} +14 -14
- package/dist/{index-4edd6331.js → index-6c4051cc.js} +1 -1
- package/dist/{index-7cae1b9c.js → index-e9650c8b.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +141 -141
- package/dist/{main-83016097.js → main-1ef64f74.js} +6108 -6309
- package/dist/{mapFormMixin-3946f304.js → mapFormMixin-37d8b2ce.js} +1 -1
- package/dist/{publicSenderState-c8c8dd01.js → publicSenderState-ed17e82f.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{throttle-79d7f6e6.js → throttle-4a44697d.js} +2 -2
- package/dist/{tinycolor-dbe7bbc8.js → tinycolor-6fefbbd2.js} +1 -1
- package/dist/{tippy.esm-46a552eb.js → tippy.esm-cddf5c5a.js} +6 -6
- package/dist/{utils-bbbf8074.js → utils-ebaac977.js} +1 -1
- package/dist/{vuedraggable.umd-344678d6.js → vuedraggable.umd-fcf03933.js} +1 -1
- package/package.json +2 -2
- package/dist/answerDocumentMixin-93535108.js +0 -54
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as nt } from "./anime.es-e284c852.js";
|
|
2
|
-
import { aq as Tt, h as
|
|
2
|
+
import { aq as Tt, h as Et, n as ot, ar as Ft, as as kt, at as It, au as Mt, g as wt, e as Bt, J as St } from "./main-1ef64f74.js";
|
|
3
3
|
import { a as Rt } from "./vuex.esm-4a0fff7c.js";
|
|
4
|
-
import { m as
|
|
5
|
-
import { C as
|
|
4
|
+
import { m as ft } from "./mapFormMixin-37d8b2ce.js";
|
|
5
|
+
import { C as $t } from "./CField-d83a443d.js";
|
|
6
6
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
7
|
-
const
|
|
7
|
+
const Dt = () => {
|
|
8
8
|
const m = window.location.host.split(".");
|
|
9
9
|
return m && m[0];
|
|
10
|
-
}, Ut =
|
|
10
|
+
}, Ut = Dt() === "fortnox";
|
|
11
11
|
const Lt = [
|
|
12
12
|
"enjoyedExperience",
|
|
13
13
|
// boolean value
|
|
@@ -18,14 +18,9 @@ const Lt = [
|
|
|
18
18
|
publicId: {
|
|
19
19
|
type: String,
|
|
20
20
|
default: ""
|
|
21
|
-
// Not required allows for demo without a real client
|
|
22
|
-
},
|
|
23
|
-
demo: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: !1
|
|
26
21
|
}
|
|
27
22
|
},
|
|
28
|
-
mixins: [
|
|
23
|
+
mixins: [ft([])],
|
|
29
24
|
created() {
|
|
30
25
|
this.$nextTick(() => {
|
|
31
26
|
this.startAnimation();
|
|
@@ -39,7 +34,7 @@ const Lt = [
|
|
|
39
34
|
},
|
|
40
35
|
methods: {
|
|
41
36
|
async submitFeedback({ type: m, data: r }) {
|
|
42
|
-
if (!this.
|
|
37
|
+
if (!this.publicId)
|
|
43
38
|
throw Error("Missing param publicId");
|
|
44
39
|
if (!m)
|
|
45
40
|
throw Error("Missing param type");
|
|
@@ -49,9 +44,9 @@ const Lt = [
|
|
|
49
44
|
throw Error("Missing param data");
|
|
50
45
|
let n = "positive";
|
|
51
46
|
try {
|
|
52
|
-
|
|
47
|
+
Tt.feedback(this.publicId, { type: m, data: r }), m === "enjoyedExperience" && !r.value && (n = "negative"), m === "whatToImprove" && (n = "negative.success"), Ut && n !== "negative" && (n = "custom");
|
|
53
48
|
} catch (g) {
|
|
54
|
-
|
|
49
|
+
Et(g, { showMessage: !1 });
|
|
55
50
|
} finally {
|
|
56
51
|
this.goTo(n);
|
|
57
52
|
}
|
|
@@ -136,7 +131,7 @@ const Lt = [
|
|
|
136
131
|
};
|
|
137
132
|
var Ot = function() {
|
|
138
133
|
var r = this, n = r._self._c;
|
|
139
|
-
return n("div", { staticClass: "f-feedback" }, [n("div", { ref: "feedbackBg", staticClass: "f-bg" }), n("div", { staticClass: "f-container" }, [n("transition", { attrs: { css: !1, mode: "out-in" }, on: { enter: r.enter, leave: r.leave } }, [r.page === "start" ? n("div", { key: "start", ref: "start", staticClass: "flex flex-col items-center justify-center
|
|
134
|
+
return n("div", { staticClass: "f-feedback" }, [n("div", { ref: "feedbackBg", staticClass: "f-bg" }), n("div", { staticClass: "f-container" }, [n("transition", { attrs: { css: !1, mode: "out-in" }, on: { enter: r.enter, leave: r.leave } }, [r.page === "start" ? n("div", { key: "start", ref: "start", staticClass: "flex w-full flex-col items-center justify-center", staticStyle: { transition: "opacity 250ms" } }, [n("div", { staticStyle: { "padding-bottom": "calc(1.5 * var(--rem))", "font-size": "14px", "font-weight": "500" }, domProps: { textContent: r._s(r._document.$t("answerFeedback.start.title")) } }), n("div", [n("CButton", { staticClass: "feedback-btn", attrs: { "icon-left": "thumbsdown", size: "small", pattern: "secondary" }, on: { click: function(g) {
|
|
140
135
|
return r.submitFeedback({
|
|
141
136
|
type: "enjoyedExperience",
|
|
142
137
|
data: { value: !1 }
|
|
@@ -168,7 +163,7 @@ var Ot = function() {
|
|
|
168
163
|
zt,
|
|
169
164
|
!1,
|
|
170
165
|
null,
|
|
171
|
-
"
|
|
166
|
+
"67b518b8",
|
|
172
167
|
null,
|
|
173
168
|
null
|
|
174
169
|
);
|
|
@@ -177,7 +172,7 @@ const Wt = Yt.exports;
|
|
|
177
172
|
* Signature Pad v4.0.10 | https://github.com/szimek/signature_pad
|
|
178
173
|
* (c) 2022 Szymon Nowak | Released under the MIT license
|
|
179
174
|
*/
|
|
180
|
-
class
|
|
175
|
+
class pt {
|
|
181
176
|
constructor(r, n, g, l) {
|
|
182
177
|
if (isNaN(r) || isNaN(n))
|
|
183
178
|
throw new Error(`Point is invalid: (${r}, ${n})`);
|
|
@@ -193,19 +188,19 @@ class mt {
|
|
|
193
188
|
return this.time !== r.time ? this.distanceTo(r) / (this.time - r.time) : 0;
|
|
194
189
|
}
|
|
195
190
|
}
|
|
196
|
-
class
|
|
191
|
+
class Ct {
|
|
197
192
|
constructor(r, n, g, l, f, d) {
|
|
198
193
|
this.startPoint = r, this.control2 = n, this.control1 = g, this.endPoint = l, this.startWidth = f, this.endWidth = d;
|
|
199
194
|
}
|
|
200
195
|
static fromPoints(r, n) {
|
|
201
196
|
const g = this.calculateControlPoints(r[0], r[1], r[2]).c2, l = this.calculateControlPoints(r[1], r[2], r[3]).c1;
|
|
202
|
-
return new
|
|
197
|
+
return new Ct(r[1], g, l, r[2], n.start, n.end);
|
|
203
198
|
}
|
|
204
199
|
static calculateControlPoints(r, n, g) {
|
|
205
200
|
const l = r.x - n.x, f = r.y - n.y, d = n.x - g.x, c = n.y - g.y, i = { x: (r.x + n.x) / 2, y: (r.y + n.y) / 2 }, s = { x: (n.x + g.x) / 2, y: (n.y + g.y) / 2 }, h = Math.sqrt(l * l + f * f), a = Math.sqrt(d * d + c * c), w = i.x - s.x, x = i.y - s.y, b = a / (h + a), A = { x: s.x + w * b, y: s.y + x * b }, F = n.x - A.x, M = n.y - A.y;
|
|
206
201
|
return {
|
|
207
|
-
c1: new
|
|
208
|
-
c2: new
|
|
202
|
+
c1: new pt(i.x + F, i.y + M),
|
|
203
|
+
c2: new pt(s.x + F, s.y + M)
|
|
209
204
|
};
|
|
210
205
|
}
|
|
211
206
|
length() {
|
|
@@ -252,7 +247,7 @@ function jt(m, r = 250) {
|
|
|
252
247
|
return f = this, d = s, a <= 0 || a > r ? (g && (clearTimeout(g), g = null), n = h, l = m.apply(f, d), g || (f = null, d = [])) : g || (g = window.setTimeout(c, a)), l;
|
|
253
248
|
};
|
|
254
249
|
}
|
|
255
|
-
let Gt = class
|
|
250
|
+
let Gt = class _t extends Ht {
|
|
256
251
|
constructor(r, n = {}) {
|
|
257
252
|
super(), this.canvas = r, this._handleMouseDown = (g) => {
|
|
258
253
|
g.buttons === 1 && (this._drawningStroke = !0, this._strokeBegin(g));
|
|
@@ -281,7 +276,7 @@ let Gt = class Et extends Ht {
|
|
|
281
276
|
this._drawningStroke && (g.preventDefault(), this._strokeMoveUpdate(g));
|
|
282
277
|
}, this._handlePointerEnd = (g) => {
|
|
283
278
|
this._drawningStroke && (g.preventDefault(), this._drawningStroke = !1, this._strokeEnd(g));
|
|
284
|
-
}, this.velocityFilterWeight = n.velocityFilterWeight || 0.7, this.minWidth = n.minWidth || 0.5, this.maxWidth = n.maxWidth || 2.5, this.throttle = "throttle" in n ? n.throttle : 16, this.minDistance = "minDistance" in n ? n.minDistance : 5, this.dotSize = n.dotSize || 0, this.penColor = n.penColor || "black", this.backgroundColor = n.backgroundColor || "rgba(0,0,0,0)", this._strokeMoveUpdate = this.throttle ? jt(
|
|
279
|
+
}, this.velocityFilterWeight = n.velocityFilterWeight || 0.7, this.minWidth = n.minWidth || 0.5, this.maxWidth = n.maxWidth || 2.5, this.throttle = "throttle" in n ? n.throttle : 16, this.minDistance = "minDistance" in n ? n.minDistance : 5, this.dotSize = n.dotSize || 0, this.penColor = n.penColor || "black", this.backgroundColor = n.backgroundColor || "rgba(0,0,0,0)", this._strokeMoveUpdate = this.throttle ? jt(_t.prototype._strokeUpdate, this.throttle) : _t.prototype._strokeUpdate, this._ctx = r.getContext("2d"), this.clear(), this.on();
|
|
285
280
|
}
|
|
286
281
|
clear() {
|
|
287
282
|
const { _ctx: r, canvas: n } = this;
|
|
@@ -371,13 +366,13 @@ let Gt = class Et extends Ht {
|
|
|
371
366
|
}
|
|
372
367
|
_createPoint(r, n, g) {
|
|
373
368
|
const l = this.canvas.getBoundingClientRect();
|
|
374
|
-
return new
|
|
369
|
+
return new pt(r - l.left, n - l.top, g, (/* @__PURE__ */ new Date()).getTime());
|
|
375
370
|
}
|
|
376
371
|
_addPoint(r, n) {
|
|
377
372
|
const { _lastPoints: g } = this;
|
|
378
373
|
if (g.push(r), g.length > 2) {
|
|
379
374
|
g.length === 3 && g.unshift(g[0]);
|
|
380
|
-
const l = this._calculateCurveWidths(g[1], g[2], n), f =
|
|
375
|
+
const l = this._calculateCurveWidths(g[1], g[2], n), f = Ct.fromPoints(g, l);
|
|
381
376
|
return g.shift(), f;
|
|
382
377
|
}
|
|
383
378
|
return null;
|
|
@@ -419,7 +414,7 @@ let Gt = class Et extends Ht {
|
|
|
419
414
|
const { points: f } = l, d = this._getPointGroupOptions(l);
|
|
420
415
|
if (f.length > 1)
|
|
421
416
|
for (let c = 0; c < f.length; c += 1) {
|
|
422
|
-
const i = f[c], s = new
|
|
417
|
+
const i = f[c], s = new pt(i.x, i.y, i.pressure, i.time);
|
|
423
418
|
c === 0 && this._reset(d);
|
|
424
419
|
const h = this._addPoint(s, d);
|
|
425
420
|
h && n(h, d);
|
|
@@ -685,16 +680,10 @@ const te = [
|
|
|
685
680
|
], ee = {
|
|
686
681
|
name: "SignatureAnswer",
|
|
687
682
|
components: {
|
|
688
|
-
CField:
|
|
683
|
+
CField: $t,
|
|
689
684
|
SignaturePad: qt
|
|
690
685
|
},
|
|
691
|
-
|
|
692
|
-
demo: {
|
|
693
|
-
type: Boolean,
|
|
694
|
-
default: !1
|
|
695
|
-
}
|
|
696
|
-
},
|
|
697
|
-
mixins: [dt([])],
|
|
686
|
+
mixins: [ft([])],
|
|
698
687
|
data() {
|
|
699
688
|
return {
|
|
700
689
|
mode: "text",
|
|
@@ -741,11 +730,8 @@ const te = [
|
|
|
741
730
|
return n;
|
|
742
731
|
},
|
|
743
732
|
async submit({ answer: m }) {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
await m({ body: { isAccepted: !0, signatureDataURL: r } });
|
|
747
|
-
}
|
|
748
|
-
this.$emit("complete");
|
|
733
|
+
const r = this.getSignatureData();
|
|
734
|
+
await m({ body: { isAccepted: !0, signatureDataURL: r } }), this.$emit("complete");
|
|
749
735
|
},
|
|
750
736
|
focusName() {
|
|
751
737
|
this.$nextTick(
|
|
@@ -756,7 +742,7 @@ const te = [
|
|
|
756
742
|
};
|
|
757
743
|
var re = function() {
|
|
758
744
|
var r = this, n = r._self._c;
|
|
759
|
-
return n("div", { staticStyle: { "text-align": "left" } }, [n("div", { staticClass: "flex items-center justify-between
|
|
745
|
+
return n("div", { staticStyle: { "text-align": "left" } }, [n("div", { staticClass: "flex w-full items-center justify-between", staticStyle: { "font-size": "16px", "padding-bottom": "1em", "font-weight": "500", color: "hsl(0, 0%, 11%)" } }, [n("div", [r._v(r._s(r._document.$t("answerModal.signature.component.subTitle")))]), n("div", { staticClass: "sign-toggle" }, [n("div", { staticClass: "sign-toggle-button", class: { active: r.mode === "text" }, on: { click: function(g) {
|
|
760
746
|
r.mode = "text";
|
|
761
747
|
} } }, [r._v(" " + r._s(r._document.$t("answerModal.signature.component.text.tab")) + " ")]), n("div", { staticClass: "sign-toggle-button", class: { active: r.mode === "draw" }, on: { click: function(g) {
|
|
762
748
|
r.mode = "draw";
|
|
@@ -768,14 +754,14 @@ var re = function() {
|
|
|
768
754
|
endStroke: () => {
|
|
769
755
|
r.isEmpty = r.$refs.signaturePad ? r.$refs.signaturePad.isEmpty() : !0;
|
|
770
756
|
}
|
|
771
|
-
} } })], 1), n("div", { directives: [{ name: "show", rawName: "v-show", value: r.mode === "draw", expression: "mode === 'draw'" }], staticClass: "flex justify-end
|
|
757
|
+
} } })], 1), n("div", { directives: [{ name: "show", rawName: "v-show", value: r.mode === "draw", expression: "mode === 'draw'" }], staticClass: "flex w-full justify-end" }, [n("CButton", { attrs: { disabled: r.isEmpty, type: "text", size: "small", pattern: "tertiary", circle: "", icon: "trash" }, on: { click: r.reset } }), n("CButton", { attrs: { disabled: r.isEmpty, type: "text", size: "small", pattern: "tertiary", circle: "", icon: "rotate-left" }, on: { click: r.undo } })], 1), n("div", { staticClass: "text-center", staticStyle: { "font-size": "12px", color: "hsl(0, 0%, 45%)", "padding-top": "10px" } }, [r._v(" " + r._s(r._document.$t("answerModal.signature.component.terms")) + " ")])], 1);
|
|
772
758
|
}, ne = [], ie = /* @__PURE__ */ ot(
|
|
773
759
|
ee,
|
|
774
760
|
re,
|
|
775
761
|
ne,
|
|
776
762
|
!1,
|
|
777
763
|
null,
|
|
778
|
-
"
|
|
764
|
+
"8e2ef7ac",
|
|
779
765
|
null,
|
|
780
766
|
null
|
|
781
767
|
);
|
|
@@ -789,13 +775,13 @@ const ae = ie.exports;
|
|
|
789
775
|
*
|
|
790
776
|
* Date: 2020-01-18T06:04:33.222Z
|
|
791
777
|
*/
|
|
792
|
-
function
|
|
778
|
+
function gt() {
|
|
793
779
|
throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs");
|
|
794
780
|
}
|
|
795
781
|
function oe(m, r) {
|
|
796
782
|
return r = { exports: {} }, m(r, r.exports), r.exports;
|
|
797
783
|
}
|
|
798
|
-
var
|
|
784
|
+
var xt = oe(function(m, r) {
|
|
799
785
|
(function(n) {
|
|
800
786
|
m.exports = n();
|
|
801
787
|
})(function() {
|
|
@@ -804,7 +790,7 @@ var _t = oe(function(m, r) {
|
|
|
804
790
|
function d(s, h) {
|
|
805
791
|
if (!l[s]) {
|
|
806
792
|
if (!g[s]) {
|
|
807
|
-
var a = typeof
|
|
793
|
+
var a = typeof gt == "function" && gt;
|
|
808
794
|
if (!h && a)
|
|
809
795
|
return a(s, !0);
|
|
810
796
|
if (c)
|
|
@@ -820,7 +806,7 @@ var _t = oe(function(m, r) {
|
|
|
820
806
|
}
|
|
821
807
|
return l[s].exports;
|
|
822
808
|
}
|
|
823
|
-
for (var c = typeof
|
|
809
|
+
for (var c = typeof gt == "function" && gt, i = 0; i < f.length; i++)
|
|
824
810
|
d(f[i]);
|
|
825
811
|
return d;
|
|
826
812
|
}
|
|
@@ -1600,42 +1586,42 @@ Make sure your charset is UTF-8`
|
|
|
1600
1586
|
};
|
|
1601
1587
|
}, { "../utils/buffer": 28, "./galois-field": 11 }], 17: [function(n, g, l) {
|
|
1602
1588
|
var f = n("../utils/buffer"), d = n("./utils"), c = n("./error-correction-level"), i = n("./bit-buffer"), s = n("./bit-matrix"), h = n("./alignment-pattern"), a = n("./finder-pattern"), w = n("./mask-pattern"), x = n("./error-correction-code"), b = n("./reed-solomon-encoder"), A = n("./version"), F = n("./format-info"), M = n("./mode"), C = n("./segments"), T = n("isarray");
|
|
1603
|
-
function I(D
|
|
1604
|
-
for (var U =
|
|
1589
|
+
function I($, D) {
|
|
1590
|
+
for (var U = $.size, R = a.getPositions(D), O = 0; O < R.length; O++)
|
|
1605
1591
|
for (var z = R[O][0], N = R[O][1], Y = -1; Y <= 7; Y++)
|
|
1606
1592
|
if (!(z + Y <= -1 || U <= z + Y))
|
|
1607
1593
|
for (var j = -1; j <= 7; j++)
|
|
1608
|
-
N + j <= -1 || U <= N + j || (Y >= 0 && Y <= 6 && (j === 0 || j === 6) || j >= 0 && j <= 6 && (Y === 0 || Y === 6) || Y >= 2 && Y <= 4 && j >= 2 && j <= 4 ?
|
|
1594
|
+
N + j <= -1 || U <= N + j || (Y >= 0 && Y <= 6 && (j === 0 || j === 6) || j >= 0 && j <= 6 && (Y === 0 || Y === 6) || Y >= 2 && Y <= 4 && j >= 2 && j <= 4 ? $.set(z + Y, N + j, !0, !0) : $.set(z + Y, N + j, !1, !0));
|
|
1609
1595
|
}
|
|
1610
|
-
function k(
|
|
1611
|
-
for (var
|
|
1596
|
+
function k($) {
|
|
1597
|
+
for (var D = $.size, U = 8; U < D - 8; U++) {
|
|
1612
1598
|
var R = U % 2 === 0;
|
|
1613
|
-
|
|
1599
|
+
$.set(U, 6, R, !0), $.set(6, U, R, !0);
|
|
1614
1600
|
}
|
|
1615
1601
|
}
|
|
1616
|
-
function _(D
|
|
1617
|
-
for (var U = h.getPositions(
|
|
1602
|
+
function _($, D) {
|
|
1603
|
+
for (var U = h.getPositions(D), R = 0; R < U.length; R++)
|
|
1618
1604
|
for (var O = U[R][0], z = U[R][1], N = -2; N <= 2; N++)
|
|
1619
1605
|
for (var Y = -2; Y <= 2; Y++)
|
|
1620
|
-
N === -2 || N === 2 || Y === -2 || Y === 2 || N === 0 && Y === 0 ?
|
|
1606
|
+
N === -2 || N === 2 || Y === -2 || Y === 2 || N === 0 && Y === 0 ? $.set(O + N, z + Y, !0, !0) : $.set(O + N, z + Y, !1, !0);
|
|
1621
1607
|
}
|
|
1622
|
-
function v(D
|
|
1623
|
-
for (var U =
|
|
1624
|
-
O = Math.floor(Y / 3), z = Y % 3 + U - 8 - 3, N = (R >> Y & 1) === 1,
|
|
1608
|
+
function v($, D) {
|
|
1609
|
+
for (var U = $.size, R = A.getEncodedBits(D), O, z, N, Y = 0; Y < 18; Y++)
|
|
1610
|
+
O = Math.floor(Y / 3), z = Y % 3 + U - 8 - 3, N = (R >> Y & 1) === 1, $.set(O, z, N, !0), $.set(z, O, N, !0);
|
|
1625
1611
|
}
|
|
1626
|
-
function p(D,
|
|
1627
|
-
var R =
|
|
1612
|
+
function p($, D, U) {
|
|
1613
|
+
var R = $.size, O = F.getEncodedBits(D, U), z, N;
|
|
1628
1614
|
for (z = 0; z < 15; z++)
|
|
1629
|
-
N = (O >> z & 1) === 1, z < 6 ?
|
|
1630
|
-
|
|
1615
|
+
N = (O >> z & 1) === 1, z < 6 ? $.set(z, 8, N, !0) : z < 8 ? $.set(z + 1, 8, N, !0) : $.set(R - 15 + z, 8, N, !0), z < 8 ? $.set(8, R - z - 1, N, !0) : z < 9 ? $.set(8, 15 - z - 1 + 1, N, !0) : $.set(8, 15 - z - 1, N, !0);
|
|
1616
|
+
$.set(R - 8, 8, 1, !0);
|
|
1631
1617
|
}
|
|
1632
|
-
function E(D
|
|
1633
|
-
for (var U =
|
|
1618
|
+
function E($, D) {
|
|
1619
|
+
for (var U = $.size, R = -1, O = U - 1, z = 7, N = 0, Y = U - 1; Y > 0; Y -= 2)
|
|
1634
1620
|
for (Y === 6 && Y--; ; ) {
|
|
1635
1621
|
for (var j = 0; j < 2; j++)
|
|
1636
|
-
if (
|
|
1622
|
+
if (!$.isReserved(O, Y - j)) {
|
|
1637
1623
|
var et = !1;
|
|
1638
|
-
N <
|
|
1624
|
+
N < D.length && (et = (D[N] >>> z & 1) === 1), $.set(O, Y - j, et), z--, z === -1 && (N++, z = 7);
|
|
1639
1625
|
}
|
|
1640
1626
|
if (O += R, O < 0 || U <= O) {
|
|
1641
1627
|
O -= R, R = -R;
|
|
@@ -1643,22 +1629,22 @@ Make sure your charset is UTF-8`
|
|
|
1643
1629
|
}
|
|
1644
1630
|
}
|
|
1645
1631
|
}
|
|
1646
|
-
function S(D,
|
|
1632
|
+
function S($, D, U) {
|
|
1647
1633
|
var R = new i();
|
|
1648
1634
|
U.forEach(function(et) {
|
|
1649
|
-
R.put(et.mode.bit, 4), R.put(et.getLength(), M.getCharCountIndicator(et.mode,
|
|
1635
|
+
R.put(et.mode.bit, 4), R.put(et.getLength(), M.getCharCountIndicator(et.mode, $)), et.write(R);
|
|
1650
1636
|
});
|
|
1651
|
-
var O = d.getSymbolTotalCodewords(
|
|
1637
|
+
var O = d.getSymbolTotalCodewords($), z = x.getTotalCodewordsCount($, D), N = (O - z) * 8;
|
|
1652
1638
|
for (R.getLengthInBits() + 4 <= N && R.put(0, 4); R.getLengthInBits() % 8 !== 0; )
|
|
1653
1639
|
R.putBit(0);
|
|
1654
1640
|
for (var Y = (N - R.getLengthInBits()) / 8, j = 0; j < Y; j++)
|
|
1655
1641
|
R.put(j % 2 ? 17 : 236, 8);
|
|
1656
|
-
return L(R, D
|
|
1642
|
+
return L(R, $, D);
|
|
1657
1643
|
}
|
|
1658
|
-
function L(D,
|
|
1659
|
-
for (var R = d.getSymbolTotalCodewords(
|
|
1660
|
-
var ct = rt < j ? X :
|
|
1661
|
-
it[rt] =
|
|
1644
|
+
function L($, D, U) {
|
|
1645
|
+
for (var R = d.getSymbolTotalCodewords(D), O = x.getTotalCodewordsCount(D, U), z = R - O, N = x.getBlocksCount(D, U), Y = R % N, j = N - Y, et = Math.floor(R / N), X = Math.floor(z / N), mt = X + 1, K = et - X, q = new b(K), at = 0, it = new Array(N), st = new Array(N), ut = 0, vt = f.from($.buffer), rt = 0; rt < N; rt++) {
|
|
1646
|
+
var ct = rt < j ? X : mt;
|
|
1647
|
+
it[rt] = vt.slice(at, at + ct), st[rt] = q.encode(it[rt]), at += ct, ut = Math.max(ut, ct);
|
|
1662
1648
|
}
|
|
1663
1649
|
var lt = f.alloc(R), ht = 0, tt, Q;
|
|
1664
1650
|
for (tt = 0; tt < ut; tt++)
|
|
@@ -1669,20 +1655,20 @@ Make sure your charset is UTF-8`
|
|
|
1669
1655
|
lt[ht++] = st[Q][tt];
|
|
1670
1656
|
return lt;
|
|
1671
1657
|
}
|
|
1672
|
-
function W(D,
|
|
1658
|
+
function W($, D, U, R) {
|
|
1673
1659
|
var O;
|
|
1674
|
-
if (T(
|
|
1675
|
-
O = C.fromArray(
|
|
1676
|
-
else if (typeof
|
|
1677
|
-
var z =
|
|
1660
|
+
if (T($))
|
|
1661
|
+
O = C.fromArray($);
|
|
1662
|
+
else if (typeof $ == "string") {
|
|
1663
|
+
var z = D;
|
|
1678
1664
|
if (!z) {
|
|
1679
|
-
var N = C.rawSplit(
|
|
1665
|
+
var N = C.rawSplit($);
|
|
1680
1666
|
z = A.getBestVersionForData(
|
|
1681
1667
|
N,
|
|
1682
1668
|
U
|
|
1683
1669
|
);
|
|
1684
1670
|
}
|
|
1685
|
-
O = C.fromString(
|
|
1671
|
+
O = C.fromString($, z || 40);
|
|
1686
1672
|
} else
|
|
1687
1673
|
throw new Error("Invalid data");
|
|
1688
1674
|
var Y = A.getBestVersionForData(
|
|
@@ -1691,32 +1677,32 @@ Make sure your charset is UTF-8`
|
|
|
1691
1677
|
);
|
|
1692
1678
|
if (!Y)
|
|
1693
1679
|
throw new Error("The amount of data is too big to be stored in a QR Code");
|
|
1694
|
-
if (
|
|
1695
|
-
|
|
1696
|
-
else if (
|
|
1680
|
+
if (!D)
|
|
1681
|
+
D = Y;
|
|
1682
|
+
else if (D < Y)
|
|
1697
1683
|
throw new Error(
|
|
1698
1684
|
`
|
|
1699
1685
|
The chosen QR Code version cannot contain this amount of data.
|
|
1700
1686
|
Minimum version required to store current data is: ` + Y + `.
|
|
1701
1687
|
`
|
|
1702
1688
|
);
|
|
1703
|
-
var j = S(
|
|
1704
|
-
return I(X,
|
|
1689
|
+
var j = S(D, U, O), et = d.getSymbolSize(D), X = new s(et);
|
|
1690
|
+
return I(X, D), k(X), _(X, D), p(X, U, 0), D >= 7 && v(X, D), E(X, j), isNaN(R) && (R = w.getBestMask(
|
|
1705
1691
|
X,
|
|
1706
1692
|
p.bind(null, X, U)
|
|
1707
1693
|
)), w.applyMask(R, X), p(X, U, R), {
|
|
1708
1694
|
modules: X,
|
|
1709
|
-
version:
|
|
1695
|
+
version: D,
|
|
1710
1696
|
errorCorrectionLevel: U,
|
|
1711
1697
|
maskPattern: R,
|
|
1712
1698
|
segments: O
|
|
1713
1699
|
};
|
|
1714
1700
|
}
|
|
1715
|
-
l.create = function(
|
|
1716
|
-
if (typeof
|
|
1701
|
+
l.create = function(D, U) {
|
|
1702
|
+
if (typeof D > "u" || D === "")
|
|
1717
1703
|
throw new Error("No input text");
|
|
1718
1704
|
var R = c.M, O, z;
|
|
1719
|
-
return typeof U < "u" && (R = c.from(U.errorCorrectionLevel, c.M), O = A.from(U.version), z = w.from(U.maskPattern), U.toSJISFunc && d.setToSJISFunction(U.toSJISFunc)), W(
|
|
1705
|
+
return typeof U < "u" && (R = c.from(U.errorCorrectionLevel, c.M), O = A.from(U.version), z = w.from(U.maskPattern), U.toSJISFunc && d.setToSJISFunction(U.toSJISFunc)), W(D, O, R, z);
|
|
1720
1706
|
};
|
|
1721
1707
|
}, { "../utils/buffer": 28, "./alignment-pattern": 2, "./bit-buffer": 4, "./bit-matrix": 5, "./error-correction-code": 7, "./error-correction-level": 8, "./finder-pattern": 9, "./format-info": 10, "./mask-pattern": 13, "./mode": 14, "./reed-solomon-encoder": 18, "./segments": 20, "./utils": 21, "./version": 23, isarray: 33 }], 18: [function(n, g, l) {
|
|
1722
1708
|
var f = n("../utils/buffer"), d = n("./polynomial"), c = n("buffer").Buffer;
|
|
@@ -1829,12 +1815,12 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
1829
1815
|
}
|
|
1830
1816
|
function T(k, _) {
|
|
1831
1817
|
for (var v = {}, p = { start: {} }, E = ["start"], S = 0; S < k.length; S++) {
|
|
1832
|
-
for (var L = k[S], W = [],
|
|
1833
|
-
var
|
|
1834
|
-
W.push(U), v[U] = { node:
|
|
1818
|
+
for (var L = k[S], W = [], $ = 0; $ < L.length; $++) {
|
|
1819
|
+
var D = L[$], U = "" + S + $;
|
|
1820
|
+
W.push(U), v[U] = { node: D, lastCount: 0 }, p[U] = {};
|
|
1835
1821
|
for (var R = 0; R < E.length; R++) {
|
|
1836
1822
|
var O = E[R];
|
|
1837
|
-
v[O] && v[O].node.mode ===
|
|
1823
|
+
v[O] && v[O].node.mode === D.mode ? (p[O][U] = F(v[O].lastCount + D.length, D.mode) - F(v[O].lastCount, D.mode), v[O].lastCount += D.length) : (v[O] && (v[O].lastCount = D.length), p[O][U] = F(D.length, D.mode) + 4 + f.getCharCountIndicator(D.mode, _));
|
|
1838
1824
|
}
|
|
1839
1825
|
}
|
|
1840
1826
|
E = W;
|
|
@@ -1864,8 +1850,8 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
1864
1850
|
return typeof p == "string" ? v.push(I(p, null)) : p.data && v.push(I(p.data, p.mode)), v;
|
|
1865
1851
|
}, []);
|
|
1866
1852
|
}, l.fromString = function(_, v) {
|
|
1867
|
-
for (var p = A(_, a.isKanjiModeEnabled()), E = C(p), S = T(E, v), L = w.find_path(S.map, "start", "end"), W = [],
|
|
1868
|
-
W.push(S.table[L[
|
|
1853
|
+
for (var p = A(_, a.isKanjiModeEnabled()), E = C(p), S = T(E, v), L = w.find_path(S.map, "start", "end"), W = [], $ = 1; $ < L.length - 1; $++)
|
|
1854
|
+
W.push(S.table[L[$]].node);
|
|
1869
1855
|
return l.fromArray(M(W));
|
|
1870
1856
|
}, l.rawSplit = function(_) {
|
|
1871
1857
|
return l.fromArray(
|
|
@@ -2341,9 +2327,9 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2341
2327
|
for (L = p; L < E; ++L)
|
|
2342
2328
|
this[L] = v;
|
|
2343
2329
|
else {
|
|
2344
|
-
var W = i.isBuffer(v) ? v : new i(v),
|
|
2330
|
+
var W = i.isBuffer(v) ? v : new i(v), $ = W.length;
|
|
2345
2331
|
for (L = 0; L < E - p; ++L)
|
|
2346
|
-
this[L + p] = W[L %
|
|
2332
|
+
this[L + p] = W[L % $];
|
|
2347
2333
|
}
|
|
2348
2334
|
return this;
|
|
2349
2335
|
}, i.concat = function(v, p) {
|
|
@@ -2550,7 +2536,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2550
2536
|
return e.length === 0 || o.copy(e, 0, 0, t), e;
|
|
2551
2537
|
}
|
|
2552
2538
|
if (o.length !== void 0)
|
|
2553
|
-
return typeof o.length != "number" ||
|
|
2539
|
+
return typeof o.length != "number" || yt(o.length) ? h(0) : M(o);
|
|
2554
2540
|
if (o.type === "Buffer" && Array.isArray(o.data))
|
|
2555
2541
|
return M(o.data);
|
|
2556
2542
|
}
|
|
@@ -2671,7 +2657,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2671
2657
|
case "ucs-2":
|
|
2672
2658
|
case "utf16le":
|
|
2673
2659
|
case "utf-16le":
|
|
2674
|
-
return
|
|
2660
|
+
return mt(this, t, e);
|
|
2675
2661
|
default:
|
|
2676
2662
|
if (u)
|
|
2677
2663
|
throw new TypeError("Unknown encoding: " + o);
|
|
@@ -2739,7 +2725,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2739
2725
|
function E(o, t, e, u, y) {
|
|
2740
2726
|
if (o.length === 0)
|
|
2741
2727
|
return -1;
|
|
2742
|
-
if (typeof e == "string" ? (u = e, e = 0) : e > 2147483647 ? e = 2147483647 : e < -2147483648 && (e = -2147483648), e = +e,
|
|
2728
|
+
if (typeof e == "string" ? (u = e, e = 0) : e > 2147483647 ? e = 2147483647 : e < -2147483648 && (e = -2147483648), e = +e, yt(e) && (e = y ? 0 : o.length - 1), e < 0 && (e = o.length + e), e >= o.length) {
|
|
2743
2729
|
if (y)
|
|
2744
2730
|
return -1;
|
|
2745
2731
|
e = o.length - 1;
|
|
@@ -2761,8 +2747,8 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2761
2747
|
return -1;
|
|
2762
2748
|
P = 2, B /= 2, H /= 2, e /= 2;
|
|
2763
2749
|
}
|
|
2764
|
-
function G(
|
|
2765
|
-
return P === 1 ? Pt
|
|
2750
|
+
function G(bt, Pt) {
|
|
2751
|
+
return P === 1 ? bt[Pt] : bt.readUInt16BE(Pt * P);
|
|
2766
2752
|
}
|
|
2767
2753
|
var V;
|
|
2768
2754
|
if (y) {
|
|
@@ -2775,8 +2761,8 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2775
2761
|
Z !== -1 && (V -= V - Z), Z = -1;
|
|
2776
2762
|
} else
|
|
2777
2763
|
for (e + H > B && (e = B - H), V = e; V >= 0; V--) {
|
|
2778
|
-
for (var J = !0,
|
|
2779
|
-
if (G(o, V +
|
|
2764
|
+
for (var J = !0, dt = 0; dt < H; dt++)
|
|
2765
|
+
if (G(o, V + dt) !== G(t, dt)) {
|
|
2780
2766
|
J = !1;
|
|
2781
2767
|
break;
|
|
2782
2768
|
}
|
|
@@ -2800,7 +2786,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2800
2786
|
u > P / 2 && (u = P / 2);
|
|
2801
2787
|
for (var B = 0; B < u; ++B) {
|
|
2802
2788
|
var H = parseInt(t.substr(B * 2, 2), 16);
|
|
2803
|
-
if (
|
|
2789
|
+
if (yt(H))
|
|
2804
2790
|
return B;
|
|
2805
2791
|
o[e + B] = H;
|
|
2806
2792
|
}
|
|
@@ -2809,11 +2795,11 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2809
2795
|
function W(o, t, e, u) {
|
|
2810
2796
|
return tt(rt(t, o.length - e), o, e, u);
|
|
2811
2797
|
}
|
|
2812
|
-
function
|
|
2798
|
+
function $(o, t, e, u) {
|
|
2813
2799
|
return tt(ct(t), o, e, u);
|
|
2814
2800
|
}
|
|
2815
|
-
function
|
|
2816
|
-
return
|
|
2801
|
+
function D(o, t, e, u) {
|
|
2802
|
+
return $(o, t, e, u);
|
|
2817
2803
|
}
|
|
2818
2804
|
function U(o, t, e, u) {
|
|
2819
2805
|
return tt(ht(t), o, e, u);
|
|
@@ -2844,10 +2830,10 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2844
2830
|
case "utf-8":
|
|
2845
2831
|
return W(this, t, e, u);
|
|
2846
2832
|
case "ascii":
|
|
2847
|
-
return
|
|
2833
|
+
return $(this, t, e, u);
|
|
2848
2834
|
case "latin1":
|
|
2849
2835
|
case "binary":
|
|
2850
|
-
return
|
|
2836
|
+
return D(this, t, e, u);
|
|
2851
2837
|
case "base64":
|
|
2852
2838
|
return U(this, t, e, u);
|
|
2853
2839
|
case "ucs2":
|
|
@@ -2926,7 +2912,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2926
2912
|
y += At[o[P]];
|
|
2927
2913
|
return y;
|
|
2928
2914
|
}
|
|
2929
|
-
function
|
|
2915
|
+
function mt(o, t, e) {
|
|
2930
2916
|
for (var u = o.slice(t, e), y = "", P = 0; P < u.length; P += 2)
|
|
2931
2917
|
y += String.fromCharCode(u[P] + u[P + 1] * 256);
|
|
2932
2918
|
return y;
|
|
@@ -3138,7 +3124,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
3138
3124
|
return this;
|
|
3139
3125
|
};
|
|
3140
3126
|
var ut = /[^+/0-9A-Za-z-_]/g;
|
|
3141
|
-
function
|
|
3127
|
+
function vt(o) {
|
|
3142
3128
|
if (o = o.split("=")[0], o = o.trim().replace(ut, ""), o.length < 2)
|
|
3143
3129
|
return "";
|
|
3144
3130
|
for (; o.length % 4 !== 0; )
|
|
@@ -3211,7 +3197,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
3211
3197
|
return P;
|
|
3212
3198
|
}
|
|
3213
3199
|
function ht(o) {
|
|
3214
|
-
return f.toByteArray(
|
|
3200
|
+
return f.toByteArray(vt(o));
|
|
3215
3201
|
}
|
|
3216
3202
|
function tt(o, t, e, u) {
|
|
3217
3203
|
for (var y = 0; y < u && !(y + e >= t.length || y >= o.length); ++y)
|
|
@@ -3221,7 +3207,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
3221
3207
|
function Q(o, t) {
|
|
3222
3208
|
return o instanceof t || o != null && o.constructor != null && o.constructor.name != null && o.constructor.name === t.name;
|
|
3223
3209
|
}
|
|
3224
|
-
function
|
|
3210
|
+
function yt(o) {
|
|
3225
3211
|
return o !== o;
|
|
3226
3212
|
}
|
|
3227
3213
|
var At = function() {
|
|
@@ -3365,14 +3351,14 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
3365
3351
|
*/
|
|
3366
3352
|
generate: function() {
|
|
3367
3353
|
var r = this, n = this.options, g = this.tag, l = String(this.value);
|
|
3368
|
-
g === "canvas" ?
|
|
3354
|
+
g === "canvas" ? xt.toCanvas(this.$el, l, n, function(f) {
|
|
3369
3355
|
if (f)
|
|
3370
3356
|
throw f;
|
|
3371
|
-
}) : g === "img" ?
|
|
3357
|
+
}) : g === "img" ? xt.toDataURL(l, n, function(f, d) {
|
|
3372
3358
|
if (f)
|
|
3373
3359
|
throw f;
|
|
3374
3360
|
r.$el.src = d;
|
|
3375
|
-
}) :
|
|
3361
|
+
}) : xt.toString(l, n, function(f, d) {
|
|
3376
3362
|
if (f)
|
|
3377
3363
|
throw f;
|
|
3378
3364
|
r.$el.innerHTML = d;
|
|
@@ -3394,13 +3380,7 @@ const ce = {
|
|
|
3394
3380
|
components: {
|
|
3395
3381
|
QrCode: se
|
|
3396
3382
|
},
|
|
3397
|
-
mixins: [
|
|
3398
|
-
props: {
|
|
3399
|
-
demo: {
|
|
3400
|
-
type: Boolean,
|
|
3401
|
-
default: !1
|
|
3402
|
-
}
|
|
3403
|
-
},
|
|
3383
|
+
mixins: [ft([])],
|
|
3404
3384
|
data() {
|
|
3405
3385
|
return {
|
|
3406
3386
|
signAnswerId: null,
|
|
@@ -3468,10 +3448,7 @@ const ce = {
|
|
|
3468
3448
|
methods: {
|
|
3469
3449
|
async submit({ answer: m }) {
|
|
3470
3450
|
try {
|
|
3471
|
-
|
|
3472
|
-
this.view = "new", await ft(1e3), this.view = "waiting", await ft(1e3), this.view = "signing", await ft(1e3), this.onComplete();
|
|
3473
|
-
return;
|
|
3474
|
-
}
|
|
3451
|
+
this.isLoading = !0;
|
|
3475
3452
|
const { id: r, autoStartToken: n, qrCodeData: g } = await m({
|
|
3476
3453
|
body: { isAccepted: !0 }
|
|
3477
3454
|
});
|
|
@@ -3527,7 +3504,7 @@ const ce = {
|
|
|
3527
3504
|
this.$emit("complete");
|
|
3528
3505
|
break;
|
|
3529
3506
|
default:
|
|
3530
|
-
|
|
3507
|
+
Et(m, { showMessage: !1 });
|
|
3531
3508
|
}
|
|
3532
3509
|
this.errorMessage = this.$i18n.te(`errors:${r}`) && this._document.$t(`answerModal.bankId.component.errors.${r}`) || this._document.$t("answerModal.bankId.component.defaultError");
|
|
3533
3510
|
},
|
|
@@ -3552,13 +3529,13 @@ const ce = {
|
|
|
3552
3529
|
var le = function() {
|
|
3553
3530
|
var g;
|
|
3554
3531
|
var r = this, n = r._self._c;
|
|
3555
|
-
return n("div", { staticClass: "flex flex-col items-center
|
|
3532
|
+
return n("div", { staticClass: "-my-4 flex flex-col items-center" }, [n("iframe", { staticClass: "hidden", attrs: { id: "autoStartFrame", height: "0", width: "0" } }), ["form", "signing", "error", "canceled"].includes(r.view) ? n("div", { staticClass: "flex h-[250px] w-[250px] items-center justify-center rounded-xl bg-gray-100" }, [n("BaseIcon", { staticClass: "text-gray-500", attrs: { type: "bankId", size: "50" } })], 1) : r._e(), ["new", "waiting", "started"].includes(r.view) ? [r.qrCode ? n("QrCode", { attrs: { value: r.qrCode, options: {
|
|
3556
3533
|
width: 250,
|
|
3557
3534
|
errorCorrectionLevel: "L",
|
|
3558
3535
|
color: { dark: "#000000" }
|
|
3559
|
-
} } }) : r._e()] : r._e(), n("Animation", { staticClass: "w-full" }, [n("div", { key: "a", staticClass: "text-sm text-gray-500
|
|
3536
|
+
} } }) : r._e()] : r._e(), n("Animation", { staticClass: "w-full" }, [n("div", { key: "a", staticClass: "min-h-[20px] pt-4 text-sm text-gray-500", domProps: { textContent: r._s((g = r.viewText[r.view]) == null ? void 0 : g.spinnerText) } }), !r.isMobile && ["new", "waiting", "started"].includes(r.view) ? n("CButton", { key: "b", staticClass: "mt-4", attrs: { type: "none", pattern: "secondary", size: "small" }, on: { click: r.triggerAutoStart } }, [r._v(" " + r._s(r._document.$t("answerModal.bankId.component.startOnThisDevice")) + " ")]) : r._e()], 1), ["form", "new", "waiting", "started"].includes(r.view) ? r._e() : n("div", [n("transition", { attrs: { name: "pop-in" } }, [n("div", { staticClass: "bankid-popup", on: { click: () => {
|
|
3560
3537
|
r.view = "form", r.isLoading = !1;
|
|
3561
|
-
} } }, [n("div", { staticClass: "flex flex-col items-center justify-center", staticStyle: { "background-color": "#183e4f", padding: "calc(2.5 * var(--rem)) calc(3 * var(--rem))" } }, [n("BaseIcon", { staticClass: "text-white", attrs: { type: "bankId", size: "34" } }), n("div", { staticClass: "pt-4 text-sm font-medium text-white opacity-75", domProps: { textContent: r._s(r.viewText[r.view].text) } })], 1), n("div", { staticClass: "flex flex-col items-center justify-center
|
|
3538
|
+
} } }, [n("div", { staticClass: "flex flex-col items-center justify-center", staticStyle: { "background-color": "#183e4f", padding: "calc(2.5 * var(--rem)) calc(3 * var(--rem))" } }, [n("BaseIcon", { staticClass: "text-white", attrs: { type: "bankId", size: "34" } }), n("div", { staticClass: "pt-4 text-sm font-medium text-white opacity-75", domProps: { textContent: r._s(r.viewText[r.view].text) } })], 1), n("div", { staticClass: "flex w-full flex-col items-center justify-center text-center", staticStyle: { padding: "calc(3 * var(--rem)) calc(2 * var(--rem))" } }, [r.view === "signing" ? [n("div", { staticClass: "spinner" }), n("div", { staticClass: "pt-8 text-gray-500", domProps: { textContent: r._s(r.viewText[r.view].spinnerText) } })] : ["error", "canceled"].includes(r.view) ? [n("BaseIcon", { staticClass: "mb-2.5 text-gray-400", attrs: { type: "error", size: "22" } }), n("div", { staticStyle: { "font-size": "14px" }, domProps: { textContent: r._s(r.errorMessage) } }), n("CButton", { staticStyle: { "margin-top": "calc(2.5 * var(--rem))", padding: "1em", height: "initial" }, attrs: { loading: r.isLoading, type: "none", pattern: "secondary", size: "small" }, on: { click: function(l) {
|
|
3562
3539
|
r.view = "form";
|
|
3563
3540
|
} } }, [r._v(" " + r._s(r._document.$t("tryAgain")) + " ")])] : r._e()], 2)])])], 1)], 2);
|
|
3564
3541
|
}, he = [], fe = /* @__PURE__ */ ot(
|
|
@@ -3567,20 +3544,14 @@ var le = function() {
|
|
|
3567
3544
|
he,
|
|
3568
3545
|
!1,
|
|
3569
3546
|
null,
|
|
3570
|
-
"
|
|
3547
|
+
"73b8e23a",
|
|
3571
3548
|
null,
|
|
3572
3549
|
null
|
|
3573
3550
|
);
|
|
3574
3551
|
const de = fe.exports;
|
|
3575
3552
|
const ge = {
|
|
3576
3553
|
name: "DenyAnswer",
|
|
3577
|
-
|
|
3578
|
-
demo: {
|
|
3579
|
-
type: Boolean,
|
|
3580
|
-
default: !1
|
|
3581
|
-
}
|
|
3582
|
-
},
|
|
3583
|
-
mixins: [dt([])],
|
|
3554
|
+
mixins: [ft([])],
|
|
3584
3555
|
data() {
|
|
3585
3556
|
return {
|
|
3586
3557
|
rejectReason: ""
|
|
@@ -3594,7 +3565,7 @@ const ge = {
|
|
|
3594
3565
|
category: "misc",
|
|
3595
3566
|
description: this.rejectReason,
|
|
3596
3567
|
sentAt: this._document.lastSentAt
|
|
3597
|
-
}),
|
|
3568
|
+
}), await m({ body: { "data.rejectReasons": n } }), await r({ body: { isAccepted: !1 } }), this.$emit("complete");
|
|
3598
3569
|
}
|
|
3599
3570
|
}
|
|
3600
3571
|
};
|
|
@@ -3621,7 +3592,7 @@ const we = {
|
|
|
3621
3592
|
BankId: de,
|
|
3622
3593
|
Deny: ye
|
|
3623
3594
|
},
|
|
3624
|
-
mixins: [
|
|
3595
|
+
mixins: [ft([])],
|
|
3625
3596
|
i18nOptions: {
|
|
3626
3597
|
namespaces: "temporary",
|
|
3627
3598
|
messages: {
|
|
@@ -3657,20 +3628,8 @@ const we = {
|
|
|
3657
3628
|
answerType() {
|
|
3658
3629
|
return this.mode === "decline" ? "decline" : this.answerMethod === "bankId" ? "bankId" : "signature";
|
|
3659
3630
|
},
|
|
3660
|
-
// Note preview is true during sender sign
|
|
3661
|
-
isDemo() {
|
|
3662
|
-
return this._document.isPreview && !this.isSender;
|
|
3663
|
-
},
|
|
3664
3631
|
signee() {
|
|
3665
|
-
|
|
3666
|
-
return this.isSender ? this._document.senderClient : this._document.isPreview ? {
|
|
3667
|
-
socialNo: "198710126130",
|
|
3668
|
-
email: "richard@piedpier.com",
|
|
3669
|
-
name: "Richard Hendricks",
|
|
3670
|
-
answerMethod: {
|
|
3671
|
-
accept: (r = (m = this._document.data) == null ? void 0 : m.defaultAnswerMethod) == null ? void 0 : r.accept
|
|
3672
|
-
}
|
|
3673
|
-
} : this._document.viewer;
|
|
3632
|
+
return this.isSender ? this._document.senderClient : this._document.viewer;
|
|
3674
3633
|
},
|
|
3675
3634
|
answerMethod() {
|
|
3676
3635
|
var m;
|
|
@@ -3697,9 +3656,9 @@ const we = {
|
|
|
3697
3656
|
},
|
|
3698
3657
|
methods: {
|
|
3699
3658
|
...Rt({
|
|
3700
|
-
answerCurrentDoc:
|
|
3701
|
-
putCurrentDoc:
|
|
3702
|
-
reloadCurrentDocument:
|
|
3659
|
+
answerCurrentDoc: wt.ANSWER_CURRENT_PUBLIC_DOCUMENT,
|
|
3660
|
+
putCurrentDoc: wt.PUT_CURRENT_PUBLIC_DOCUMENT,
|
|
3661
|
+
reloadCurrentDocument: wt.RELOAD_CURRENT_DOCUMENT
|
|
3703
3662
|
}),
|
|
3704
3663
|
async onSubmit() {
|
|
3705
3664
|
this.setFixedHeight(), await this.submit();
|
|
@@ -3717,7 +3676,7 @@ const we = {
|
|
|
3717
3676
|
...this.isSender ? this.senderActions : null
|
|
3718
3677
|
});
|
|
3719
3678
|
} catch (m) {
|
|
3720
|
-
this.isPosting = !1, m.httpStatusCode === 409 ? this.page = "versionError" :
|
|
3679
|
+
this.isPosting = !1, m.httpStatusCode === 409 ? this.page = "versionError" : Et(m);
|
|
3721
3680
|
}
|
|
3722
3681
|
}
|
|
3723
3682
|
},
|
|
@@ -3727,18 +3686,18 @@ const we = {
|
|
|
3727
3686
|
this.$emit("close"), await this.senderActions.send();
|
|
3728
3687
|
return;
|
|
3729
3688
|
}
|
|
3730
|
-
|
|
3689
|
+
this.mode === "accept" && this.answerMethod === "bankId" ? this.reloadCurrentDocument().then(
|
|
3731
3690
|
() => {
|
|
3732
3691
|
var n, g;
|
|
3733
|
-
return
|
|
3692
|
+
return Bt.trigger("document:answer", {
|
|
3734
3693
|
id: (n = this._document) == null ? void 0 : n.id,
|
|
3735
3694
|
...(g = this.signee) == null ? void 0 : g.answer
|
|
3736
3695
|
});
|
|
3737
3696
|
}
|
|
3738
|
-
) :
|
|
3697
|
+
) : Bt.trigger("document:answer", {
|
|
3739
3698
|
id: (m = this._document) == null ? void 0 : m.id,
|
|
3740
3699
|
...(r = this.signee) == null ? void 0 : r.answer
|
|
3741
|
-
}), await
|
|
3700
|
+
}), await St(800), this.page = "intermediate", await St(2e3), this.page = "success", this.isPosting = !1;
|
|
3742
3701
|
},
|
|
3743
3702
|
reload() {
|
|
3744
3703
|
window.location.reload();
|
|
@@ -3788,22 +3747,22 @@ const we = {
|
|
|
3788
3747
|
var xe = function() {
|
|
3789
3748
|
var g;
|
|
3790
3749
|
var r = this, n = r._self._c;
|
|
3791
|
-
return n("transition-group", { staticClass: "a-root font-inter", attrs: { tag: "div", css: !1, mode: "out-in" }, on: { enter: r.enterAnim, leave: r.leaveAnim } }, [n("
|
|
3750
|
+
return n("transition-group", { staticClass: "a-root font-inter", attrs: { tag: "div", css: !1, mode: "out-in" }, on: { enter: r.enterAnim, leave: r.leaveAnim } }, [n("CButton", { key: "btn", staticStyle: { position: "absolute", right: "20px", top: "20px", "z-index": "9", color: "hsl(0, 0%, 45%)" }, attrs: { icon: "x", circle: "" }, on: { click: function(l) {
|
|
3792
3751
|
r.$parent.$emit("cancel"), r.$emit("close");
|
|
3793
|
-
} } }), r.page === "start" ? n("div", { key: "start", staticClass: "flex-grow
|
|
3752
|
+
} } }), r.page === "start" ? n("div", { key: "start", staticClass: "root-padding flex-grow" }, [n("div", { staticClass: "stagger-anim", staticStyle: { "padding-bottom": "40px" } }, [n("div", { staticClass: "a-title", domProps: { textContent: r._s(r._document.$t(`answerModal.${r.answerType}.start.title`)) } }), n("div", { staticStyle: { color: "hsl(0, 0%, 40%)" }, domProps: { textContent: r._s(r._document.$t(`answerModal.${r.answerType}.start.text`)) } })]), n(r.answerComponentName, { ref: "answerComponent", tag: "component", staticClass: "stagger-anim", attrs: { _document: r._document, signee: r.signee }, on: { invalid: function(l) {
|
|
3794
3753
|
r.actionInvalid = l;
|
|
3795
3754
|
}, loading: function(l) {
|
|
3796
3755
|
r.isPosting = l;
|
|
3797
|
-
}, complete: r.onComplete } }), n("div", { staticClass: "stagger-anim", staticStyle: { "padding-top": "3em" } }, [n("CButton", { staticClass: "a-btn", attrs: { loading: r.isPosting, disabled: r.actionInvalid, type: r.mode === "decline" ? "none" : "secondary", icon: r.answerType === "bankId" ? "bankId" : "" }, on: { click: r.onSubmit } }, [r._v(" " + r._s(r._document.$t(`answerModal.${r.answerType}.start.action`)) + " ")])], 1)], 1) : r.page === "intermediate" ? n("div", { key: "intermediate", staticClass: "flex flex-col items-center justify-center
|
|
3756
|
+
}, complete: r.onComplete } }), n("div", { staticClass: "stagger-anim", staticStyle: { "padding-top": "3em" } }, [n("CButton", { staticClass: "a-btn", attrs: { loading: r.isPosting, disabled: r.actionInvalid, type: r.mode === "decline" ? "none" : "secondary", icon: r.answerType === "bankId" ? "bankId" : "" }, on: { click: r.onSubmit } }, [r._v(" " + r._s(r._document.$t(`answerModal.${r.answerType}.start.action`)) + " ")])], 1)], 1) : r.page === "intermediate" ? n("div", { key: "intermediate", staticClass: "flex w-full flex-grow flex-col items-center justify-center text-center", staticStyle: { height: "100%" } }, [n("div", { staticClass: "a-title stagger-anim", domProps: { textContent: r._s(r._document.$t("answerModal.answerSuccess")) } })]) : r.page === "success" ? n("div", { key: "success", staticClass: "flex w-full flex-grow flex-col", staticStyle: { height: "100%" } }, [n("transition", { attrs: { css: !1 }, on: { leave: r.minimizeHeight } }, [r.isFeedbackInitiated ? r._e() : n("div", { staticClass: "flex w-full flex-grow flex-col items-center justify-center", staticStyle: { overflow: "hidden" } }, [n("div", { staticClass: "root-padding flex w-full flex-col items-center justify-center", staticStyle: { height: "100%" } }, [n("div", { staticClass: "a-title stagger-anim", staticStyle: { padding: "calc(2.5 * var(--rem)) 0 calc(2 * var(--rem))" } }, [n("div", { domProps: { textContent: r._s(r.successStrings.title) } })]), n("div", { staticClass: "stagger-anim", domProps: { textContent: r._s(r.successStrings.text) } })])])]), n("Feedback", { ref: "feedback", staticClass: "stagger-anim", staticStyle: { flex: "0 0", overflow: "hidden", "min-height": "200px" }, attrs: { "public-id": (g = r._document.viewer) == null ? void 0 : g.publicDocumentId, _document: r._document }, on: { page: () => r.isFeedbackInitiated = !0, close: function(l) {
|
|
3798
3757
|
return r.$emit("close");
|
|
3799
|
-
} } })], 1) : r.page === "versionError" ? n("div", { key: "versionError", staticClass: "flex flex-col items-center justify-center
|
|
3758
|
+
} } })], 1) : r.page === "versionError" ? n("div", { key: "versionError", staticClass: "root-padding flex flex-grow flex-col items-center justify-center text-center" }, [n("div", { staticClass: "stagger-anim" }, [n("div", { staticClass: "flex items-center justify-center", staticStyle: { padding: "20px 0" } }, [n("div", { staticClass: "flex items-center justify-center", staticStyle: { width: "52px", height: "52px", "border-radius": "50%" } }, [n("BaseIcon", { attrs: { size: 30, type: "error" } })], 1)]), n("div", { staticClass: "a-title", domProps: { textContent: r._s(r._document.$t(`answerModal.versionError.${r.mode}.title`)) } }), n("div", { domProps: { textContent: r._s(r._document.$t("answerModal.versionError.text")) } })]), n("div", { staticClass: "stagger-anim", staticStyle: { "padding-top": "3em" } }, [n("CButton", { staticClass: "a-btn", attrs: { loading: r.isPosting, type: "none" }, on: { click: r.reload } }, [r._v(" " + r._s(r._document.$t("answerModal.versionError.btn")) + " ")])], 1)]) : r._e()], 1);
|
|
3800
3759
|
}, _e = [], Ee = /* @__PURE__ */ ot(
|
|
3801
3760
|
we,
|
|
3802
3761
|
xe,
|
|
3803
3762
|
_e,
|
|
3804
3763
|
!1,
|
|
3805
3764
|
null,
|
|
3806
|
-
"
|
|
3765
|
+
"36fefc91",
|
|
3807
3766
|
null,
|
|
3808
3767
|
null
|
|
3809
3768
|
);
|