@cling-se/widget 0.9.4 → 0.9.5
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-d472aa84.js → AddClientCallout-e4e9874f.js} +5 -5
- package/dist/{AnswerModal-06487437.js → AnswerModal-acd3b9c0.js} +248 -248
- package/dist/{AttachmentItem-d98488ee.js → AttachmentItem-34e91526.js} +8 -8
- package/dist/{BaseDatePicker-8c098701.js → BaseDatePicker-581297bc.js} +43 -43
- package/dist/{BaseInput-2723d613.js → BaseInput-29d88150.js} +1 -1
- package/dist/{BaseUpload-996d74b3.js → BaseUpload-84d3b68b.js} +3 -3
- package/dist/{BlockMedia-00907fb6.js → BlockMedia-319932b8.js} +1 -1
- package/dist/{CCallout-ffa95028.js → CCallout-88ae9c08.js} +6 -6
- package/dist/{CDropdownItem-74672842.js → CDropdownItem-d46bf062.js} +76 -75
- package/dist/{CField-06dd50f1.js → CField-be05883b.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js → CSlider.vue_vue_type_style_index_0_lang-df4c839e.js} +1 -1
- package/dist/{ClientAutocomplete-f65643dd.js → ClientAutocomplete-68f76bfc.js} +4 -4
- package/dist/{ClientModal-d276aabd.js → ClientModal-73086005.js} +16 -16
- package/dist/{ColorPicker-4f6b70af.js → ColorPicker-11ee76f0.js} +2 -2
- package/dist/{CompanyModal-30c54ce3.js → CompanyModal-0fec4480.js} +8 -8
- package/dist/{ContentWrapper-d5653fef.js → ContentWrapper-fba78b6f.js} +19 -19
- package/dist/{CoverBlockSettings-2335f3a8.js → CoverBlockSettings-7ffa15b1.js} +19 -19
- package/dist/{DocForm-9ca24de4.js → DocForm-e56b3a0c.js} +1190 -819
- package/dist/{DocFormSend-d0c6fa1d.js → DocFormSend-cdc4eaf8.js} +14 -14
- package/dist/{DocModalBase-f4915a62.js → DocModalBase-e473b946.js} +4 -4
- package/dist/DocPrint-6d8b1f14.js +222 -0
- package/dist/{DocReceipt-d192000e.js → DocReceipt-c8a543f8.js} +1 -1
- package/dist/{DocSendReminder-06d5b34c.js → DocSendReminder-70effa09.js} +1 -1
- package/dist/{DocTextEditor-c6d1df3c.js → DocTextEditor-cce51e7c.js} +19 -19
- package/dist/{DocTimeline-b4c20f93.js → DocTimeline-c2cbd773.js} +11 -11
- package/dist/{DocumentClient-c2319f00.js → DocumentClient-611c8c1c.js} +8 -6
- package/dist/{formValidationMixin-4920ab53.js → DocumentLayout-86c367d1.js} +1617 -1709
- package/dist/{DocumentLogotype-1efd1ce9.js → DocumentLogotype-441a9fdb.js} +3 -3
- package/dist/{EmbedInput-654c0477.js → EmbedInput-a5938c25.js} +2 -2
- package/dist/{EmbedSettings-b81ec734.js → EmbedSettings-141ab53c.js} +10 -10
- package/dist/ErrorCallout-7dea37df.js +30 -0
- package/dist/{FilePreviewModal-895bd1bd.js → FilePreviewModal-875fd8c9.js} +8 -7
- package/dist/{HeaderSettings-c6dac755.js → HeaderSettings-0364b6df.js} +29 -29
- package/dist/{ImageSelectModal-7cece54e.js → ImageSelectModal-2d3a69db.js} +11 -11
- package/dist/{ImageUploadWrapper-53afd31d.js → ImageUploadWrapper-7c70045f.js} +3 -3
- package/dist/{Index-f935c492.js → Index-006a27da.js} +10 -10
- package/dist/{Index-6ef78b7a.js → Index-0313a553.js} +2 -2
- package/dist/{Index-9aaf8b90.js → Index-06bd31c3.js} +26 -26
- package/dist/Index-07ae23ce.js +54 -0
- package/dist/{Index-7443e91c.js → Index-0f4c9eb4.js} +34 -34
- package/dist/{Index-c4de05aa.js → Index-1e0cf88a.js} +10 -9
- package/dist/{Index-d45a1eff.js → Index-1fc54467.js} +4 -4
- package/dist/{Index-e749f6f1.js → Index-205dd368.js} +14 -14
- package/dist/{Index-34c84bab.js → Index-245f88ff.js} +10 -10
- package/dist/{Index-d8879ca9.js → Index-28bdb859.js} +2 -2
- package/dist/{Index-60fc8a6e.js → Index-2a0c06b1.js} +3 -3
- package/dist/{Index-63805642.js → Index-3d84a32c.js} +9 -9
- package/dist/{Index-66c8cbfa.js → Index-418c517f.js} +4 -4
- package/dist/{Index-e45a0c32.js → Index-5196628a.js} +27 -27
- package/dist/{Index-61f7dc92.js → Index-532b8844.js} +2 -2
- package/dist/{Index-b14d0f03.js → Index-53348c92.js} +4 -4
- package/dist/{Index-9233cc83.js → Index-54962a1e.js} +15 -15
- package/dist/{Index-701f0d05.js → Index-5de564da.js} +2 -2
- package/dist/{Index-c67218ce.js → Index-6f957f7e.js} +15 -15
- package/dist/{Index-98e8bb86.js → Index-710d1132.js} +8 -8
- package/dist/{Index-8bca2d87.js → Index-7a2f20fd.js} +9 -9
- package/dist/{Index-1d361d01.js → Index-818ef607.js} +4 -4
- package/dist/Index-875e7805.js +79 -0
- package/dist/{Index-82574a41.js → Index-889b6a45.js} +18 -19
- package/dist/{Index-82b5de12.js → Index-8975cd1e.js} +4 -4
- package/dist/{Index-1a7e98d7.js → Index-affdb14c.js} +11 -10
- package/dist/{Index-01c63c88.js → Index-b80ab22f.js} +2 -2
- package/dist/{Index-5e35f4a2.js → Index-ba48e68b.js} +8 -8
- package/dist/{Index-caf5cf44.js → Index-beb43a1a.js} +94 -94
- package/dist/{Index-b15cfd62.js → Index-c746dc64.js} +13 -13
- package/dist/{Index-2535f58f.js → Index-cf54ef50.js} +2 -2
- package/dist/{Index-c7e68382.js → Index-dbf5c34c.js} +4 -4
- package/dist/{Index-5cc51230.js → Index-fa01557d.js} +12 -12
- package/dist/{Index-cd76b120.js → Index-ff60354c.js} +7 -7
- package/dist/{InputToggleRow-9d8a7da4.js → InputToggleRow-c520bed9.js} +5 -5
- package/dist/IsPremiumPreStep-d4739d6a.js +2443 -0
- package/dist/{MediaWrapper-d4a4b66f.js → MediaWrapper-722723f7.js} +3 -3
- package/dist/{NotBindingText-b199006c.js → NotBindingText-613399b6.js} +2 -2
- package/dist/{PackageGroup-37ac99b1.js → PackageGroup-1085c76c.js} +56 -56
- package/dist/{PdfTerms-8b52bb6e.js → PdfTerms-f98a6f75.js} +8 -7
- package/dist/{PdfViewer-38bd8439.js → PdfViewer-096bbf00.js} +5 -4
- package/dist/{PlainHtml-9174cbf6.js → PlainHtml-752bc8d6.js} +1 -1
- package/dist/PriceHeader-e25df5eb.js +337 -0
- package/dist/{SearchApi-2e286be6.js → SearchApi-20629627.js} +2 -2
- package/dist/{TermsSettings-c74eec79.js → TermsSettings-4cc4a9ee.js} +11 -11
- package/dist/{ThemeColorRow-3558367b.js → ThemeColorRow-c292abc6.js} +3 -3
- package/dist/{ToggleBinding-6c9c1ac3.js → ToggleBinding-406175fb.js} +3 -3
- package/dist/{UploadModal-6d0abd77.js → UploadModal-0cbd0c8f.js} +16 -16
- package/dist/{VideoPlayerInput-77cd86aa.js → VideoPlayerInput-d7b5fe4b.js} +3 -3
- package/dist/{VideoPlayerSettings-b7eb781c.js → VideoPlayerSettings-51c75143.js} +12 -12
- package/dist/VideoSelectModal-e34cde4b.js +111 -0
- package/dist/{answerDocumentMixin-66023e62.js → answerDocumentMixin-574c5304.js} +3 -3
- package/dist/assets/article-options-10291.png +0 -0
- package/dist/assets/bg-base-13048.png +0 -0
- package/dist/assets/bg-pro-81076.png +0 -0
- package/dist/assets/bg-start-20630.png +0 -0
- package/dist/assets/blank-10674.png +0 -0
- package/dist/assets/block-options-17322.png +0 -0
- package/dist/assets/columnGallery.image-24825.png +0 -0
- package/dist/assets/doc-send-94456.png +0 -0
- package/dist/assets/drag-block-17194.png +0 -0
- package/dist/assets/headerCircularGradient.image-13878.png +0 -0
- package/dist/assets/roiCalculator.image-14704.png +0 -0
- package/dist/assets/text-bubble-53861.png +0 -0
- package/dist/{cssMode-8552fc56.js → cssMode-eda08630.js} +19 -15
- package/dist/dom-068d1a7b.js +59 -0
- package/dist/{focusDrawerMixin-67462262.js → focusDrawerMixin-72f8dd7a.js} +1 -1
- package/dist/{formComponentsInstall-ad9c2a83.js → formComponentsInstall-3f1c6477.js} +40 -40
- package/dist/formValidationMixin-d4e84872.js +49 -0
- package/dist/{freemarker2-7e10a65d.js → freemarker2-42cdfba5.js} +23 -19
- package/dist/{handlebars-8045bfa8.js → handlebars-b4515777.js} +15 -11
- package/dist/{html-8afcb633.js → html-ea5d1845.js} +18 -14
- package/dist/{htmlMode-1a2d1b48.js → htmlMode-1cc3531d.js} +23 -19
- package/dist/{index-f805bfce.js → index-07377b76.js} +45 -45
- package/dist/index-676b9274.js +17 -0
- package/dist/{index-bf93d7c2.js → index-762349d7.js} +7 -7
- package/dist/{index-3d6d7a03.js → index-7adda710.js} +31 -31
- package/dist/index.es.js +8 -8
- package/dist/index.umd.js +537 -533
- package/dist/{javascript-dad5561e.js → javascript-185ef2e0.js} +15 -11
- package/dist/{jsonMode-ce09245f.js → jsonMode-59ea4e99.js} +23 -19
- package/dist/{liquid-05247459.js → liquid-517f2a7c.js} +18 -14
- package/dist/{main-04025a56.js → main-95207159.js} +15380 -12891
- package/dist/{mapFormMixin-8d073f99.js → mapFormMixin-a245a297.js} +1 -1
- package/dist/{publicSenderState-97108de1.js → publicSenderState-bea5980b.js} +1 -1
- package/dist/{python-3f3513c5.js → python-eb6703d8.js} +15 -11
- package/dist/{razor-1f3e9c4e.js → razor-4c5b7deb.js} +22 -18
- package/dist/simplebar.min-97b539d6.js +71 -0
- package/dist/style.css +2 -2
- package/dist/template-b3af7583.js +528 -0
- package/dist/{throttle-a2c1f34d.js → throttle-a0ce8f66.js} +2 -2
- package/dist/{tinycolor-88fa380f.js → tinycolor-65e7dc2e.js} +1 -1
- package/dist/{FormInputRow-9819eb71.js → tippy.esm-3c111ba9.js} +285 -285
- package/dist/{tsMode-4c026047.js → tsMode-a4a0e653.js} +19 -15
- package/dist/{typescript-baf56f67.js → typescript-aeab7849.js} +15 -11
- package/dist/{utils-6670dea6.js → utils-580c7144.js} +1 -1
- package/dist/{vuedraggable.umd-d7138234.js → vuedraggable.umd-2c22e5f8.js} +41 -41
- package/dist/{xml-ffc6146a.js → xml-098907e6.js} +18 -14
- package/package.json +3 -2
- package/stats.html +1 -1
- package/vite-plugin-library-asset-external/index.js +134 -0
- package/dist/ErrorCallout-60d0b3ab.js +0 -30
- package/dist/Index-b020a80c.js +0 -47
- package/dist/Index-e80f5f9c.js +0 -79
- package/dist/IsPremiumPreStep-3a087524.js +0 -1919
- package/dist/PriceHeader-e357afe9.js +0 -336
- package/dist/VideoSelectModal-d2299552.js +0 -111
- package/dist/index-c48c5eb4.js +0 -14
- package/dist/simplebar.min-3af55aab.js +0 -2429
- package/dist/template-42a1d852.js +0 -526
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as nt } from "./anime.es-e284c852.js";
|
|
2
|
-
import {
|
|
2
|
+
import { af as St, h as Ct, n as ot, ag as Tt, E as ft, ah as Ft, ai as kt, aj as It, g as xt } from "./main-95207159.js";
|
|
3
3
|
import { a as Mt } from "./vuex.esm-4a0fff7c.js";
|
|
4
|
-
import { m as dt } from "./mapFormMixin-
|
|
5
|
-
import { C as Rt } from "./CField-
|
|
4
|
+
import { m as dt } from "./mapFormMixin-a245a297.js";
|
|
5
|
+
import { C as Rt } from "./CField-be05883b.js";
|
|
6
6
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
7
7
|
const Dt = () => {
|
|
8
|
-
const
|
|
9
|
-
return
|
|
8
|
+
const v = window.location.host.split(".");
|
|
9
|
+
return v && v[0];
|
|
10
10
|
}, $t = Dt() === "fortnox";
|
|
11
11
|
const Ut = [
|
|
12
12
|
"enjoyedExperience",
|
|
@@ -38,37 +38,37 @@ const Ut = [
|
|
|
38
38
|
};
|
|
39
39
|
},
|
|
40
40
|
methods: {
|
|
41
|
-
async submitFeedback({ type:
|
|
41
|
+
async submitFeedback({ type: v, data: r }) {
|
|
42
42
|
if (!this.demo && !this.publicId)
|
|
43
43
|
throw Error("Missing param publicId");
|
|
44
|
-
if (!
|
|
44
|
+
if (!v)
|
|
45
45
|
throw Error("Missing param type");
|
|
46
|
-
if (!Ut.includes(
|
|
46
|
+
if (!Ut.includes(v))
|
|
47
47
|
throw Error("Invalid feedback type");
|
|
48
48
|
if (!r)
|
|
49
49
|
throw Error("Missing param data");
|
|
50
50
|
let n = "positive";
|
|
51
51
|
try {
|
|
52
|
-
this.demo || St.feedback(this.publicId, { type:
|
|
52
|
+
this.demo || St.feedback(this.publicId, { type: v, data: r }), v === "enjoyedExperience" && !r.value && (n = "negative"), v === "whatToImprove" && (n = "negative.success"), $t && n !== "negative" && (n = "custom");
|
|
53
53
|
} catch (g) {
|
|
54
54
|
Ct(g, { showMessage: !1 });
|
|
55
55
|
} finally {
|
|
56
56
|
this.goTo(n);
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
async goTo(
|
|
60
|
-
if (this.$emit("page",
|
|
59
|
+
async goTo(v) {
|
|
60
|
+
if (this.$emit("page", v), v === "positive" || v === "negative") {
|
|
61
61
|
this.$refs.start.style.opacity = 0, this.page = "intermediate", setTimeout(() => {
|
|
62
|
-
this.page =
|
|
62
|
+
this.page = v;
|
|
63
63
|
}, 2e3);
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
this.page =
|
|
66
|
+
this.page = v;
|
|
67
67
|
},
|
|
68
68
|
startAnimation() {
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
targets:
|
|
69
|
+
const v = this.$refs.feedbackBg;
|
|
70
|
+
v.gradOneXPos = 0, v.gradOneYPos = 0, v.gradTwoXPos = 80, v.gradTwoYPos = 20, v.gradThreeXPos = 20, v.gradThreeYPos = 80, v.gradFourXPos = 80, v.gradFourYPos = 80, nt({
|
|
71
|
+
targets: v,
|
|
72
72
|
duration: 12e3,
|
|
73
73
|
direction: "alternate",
|
|
74
74
|
easing: "linear",
|
|
@@ -82,14 +82,14 @@ const Ut = [
|
|
|
82
82
|
gradFourXPos: [85, 80, 75, 70, 95],
|
|
83
83
|
gradFourYPos: [90, 100, 120, 100, 85],
|
|
84
84
|
update() {
|
|
85
|
-
|
|
85
|
+
v.style.setProperty("--gradOneXPos", `${v.gradOneXPos}%`), v.style.setProperty("--gradOneYPos", `${v.gradOneYPos}%`), v.style.setProperty("--gradTwoXPos", `${v.gradTwoXPos}%`), v.style.setProperty("--gradTwoYPos", `${v.gradTwoYPos}%`), v.style.setProperty("--gradThreeXPos", `${v.gradThreeXPos}%`), v.style.setProperty("--gradThreeYPos", `${v.gradThreeYPos}%`), v.style.setProperty("--gradFourXPos", `${v.gradFourXPos}%`), v.style.setProperty("--gradFourYPos", `${v.gradFourYPos}%`);
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
},
|
|
89
89
|
// animations
|
|
90
|
-
leave(
|
|
90
|
+
leave(v, r) {
|
|
91
91
|
nt({
|
|
92
|
-
targets:
|
|
92
|
+
targets: v,
|
|
93
93
|
// height: 0,
|
|
94
94
|
// opacity: [1, 0],
|
|
95
95
|
opacity: 0,
|
|
@@ -98,9 +98,9 @@ const Ut = [
|
|
|
98
98
|
complete: r
|
|
99
99
|
});
|
|
100
100
|
},
|
|
101
|
-
enter(
|
|
101
|
+
enter(v, r) {
|
|
102
102
|
nt({
|
|
103
|
-
targets:
|
|
103
|
+
targets: v,
|
|
104
104
|
delay: this.page === "intermediate" ? 250 : 0,
|
|
105
105
|
duration: 500,
|
|
106
106
|
opacity: [0, 1],
|
|
@@ -112,9 +112,9 @@ const Ut = [
|
|
|
112
112
|
};
|
|
113
113
|
var Nt = function() {
|
|
114
114
|
var r = this, n = r._self._c;
|
|
115
|
-
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 w-full", staticStyle: { transition: "opacity 250ms" } }, [n("div", { staticStyle: { "padding-bottom": "1.
|
|
115
|
+
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 w-full", 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) {
|
|
116
116
|
return r.submitFeedback({ type: "enjoyedExperience", data: { value: !1 } });
|
|
117
|
-
} } }, [r._v(r._s(r._document.$t("answerFeedback.start.no")))]), n("CButton", { staticClass: "feedback-btn", staticStyle: { "margin-left": "0.
|
|
117
|
+
} } }, [r._v(r._s(r._document.$t("answerFeedback.start.no")))]), n("CButton", { staticClass: "feedback-btn", staticStyle: { "margin-left": "calc(0.75 * var(--rem))" }, attrs: { "icon-left": "thumbsup", size: "small", pattern: "secondary" }, on: { click: function(g) {
|
|
118
118
|
return r.submitFeedback({ type: "enjoyedExperience", data: { value: !0 } });
|
|
119
119
|
} } }, [r._v(r._s(r._document.$t("answerFeedback.start.yes")))])], 1)]) : r.page === "intermediate" ? n("div", { key: "intermediate", staticStyle: { height: "100%", display: "flex", "flex-direction": "column" } }, [n("div", { staticStyle: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "center", "align-items": "center" } }, [n("div", { staticClass: "f-title", domProps: { textContent: r._s(r._document.$t("answerFeedback.intermediate.title")) } })])]) : r.page === "positive" ? n("div", { key: "positive", staticStyle: { height: "100%", display: "flex", "flex-direction": "column" } }, [n("div", { staticStyle: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "center", "align-items": "center" } }, [n("div", { staticClass: "f-title", domProps: { textContent: r._s(r._document.$t("answerFeedback.yes.title")) } }), n("div", { domProps: { textContent: r._s(r._document.$t("answerFeedback.yes.text")) } })]), n("CButton", { staticClass: "a-btn", staticStyle: { "margin-bottom": "0.5em" }, attrs: { type: "secondary", wide: "", tag: "a", href: "/register?utm_source=document&utm_medium=feedback-modal&utm_campaign=signup&utm_content=positive-exp", target: "_blank" }, domProps: { textContent: r._s(r._document.$t("answerFeedback.yes.action")) } }), n("CButton", { staticClass: "a-btn", attrs: { wide: "", tag: "a", href: `https://${r.$t("_common:brand.domain")}?utm_source=document&utm_medium=feedback-modal&utm_campaign=learn-more&utm_content=positive-exp`, target: "_blank" }, domProps: { textContent: r._s(r._document.$t("answerFeedback.yes.secondary")) } })], 1) : r.page === "negative" ? n("div", { key: "negative", staticStyle: { height: "100%", display: "flex", "flex-direction": "column" } }, [n("div", { staticStyle: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "center", "align-items": "center" } }, [n("div", { staticClass: "f-title", domProps: { textContent: r._s(r._document.$t("answerFeedback.no.start.title")) } }), n("div", { domProps: { textContent: r._s(r._document.$t("answerFeedback.no.start.text")) } }), n("CInput", { staticClass: "input-style", staticStyle: { margin: "2em 0" }, attrs: { placeholder: r._document.$t("answerFeedback.no.start.placeholder"), type: "textarea" }, model: { value: r.whatToImprove, callback: function(g) {
|
|
120
120
|
r.whatToImprove = g;
|
|
@@ -131,7 +131,7 @@ var Nt = function() {
|
|
|
131
131
|
Ot,
|
|
132
132
|
!1,
|
|
133
133
|
null,
|
|
134
|
-
"
|
|
134
|
+
"373d50dd",
|
|
135
135
|
null,
|
|
136
136
|
null
|
|
137
137
|
);
|
|
@@ -205,14 +205,14 @@ class Wt {
|
|
|
205
205
|
this._et.removeEventListener(r, n, g);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
function Ht(
|
|
208
|
+
function Ht(v, r = 250) {
|
|
209
209
|
let n = 0, g = null, l, f, d;
|
|
210
210
|
const c = () => {
|
|
211
|
-
n = Date.now(), g = null, l =
|
|
211
|
+
n = Date.now(), g = null, l = v.apply(f, d), g || (f = null, d = []);
|
|
212
212
|
};
|
|
213
213
|
return function(...s) {
|
|
214
214
|
const h = Date.now(), a = r - (h - n);
|
|
215
|
-
return f = this, d = s, a <= 0 || a > r ? (g && (clearTimeout(g), g = null), n = h, l =
|
|
215
|
+
return f = this, d = s, a <= 0 || a > r ? (g && (clearTimeout(g), g = null), n = h, l = v.apply(f, d), g || (f = null, d = [])) : g || (g = window.setTimeout(c, a)), l;
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
218
|
let jt = class Et extends Wt {
|
|
@@ -434,7 +434,7 @@ const Vt = {
|
|
|
434
434
|
type: {
|
|
435
435
|
type: String,
|
|
436
436
|
default: "text",
|
|
437
|
-
validator: (
|
|
437
|
+
validator: (v) => ["text", "draw"].includes(v)
|
|
438
438
|
},
|
|
439
439
|
text: {
|
|
440
440
|
type: String,
|
|
@@ -493,15 +493,15 @@ const Vt = {
|
|
|
493
493
|
type() {
|
|
494
494
|
this.initType();
|
|
495
495
|
},
|
|
496
|
-
text(
|
|
497
|
-
this.drawText(
|
|
496
|
+
text(v) {
|
|
497
|
+
this.drawText(v);
|
|
498
498
|
}
|
|
499
499
|
},
|
|
500
500
|
mounted() {
|
|
501
|
-
const { options:
|
|
501
|
+
const { options: v, defaultOptions: r } = this, n = this.$refs.signaturePadCanvas;
|
|
502
502
|
this.signaturePad = new Gt(n, {
|
|
503
503
|
...r,
|
|
504
|
-
...
|
|
504
|
+
...v
|
|
505
505
|
}), this.onResizeHandler = this.resizeCanvas.bind(this), window.addEventListener("resize", this.onResizeHandler, !1), Object.keys(this.signEvents).forEach((g) => {
|
|
506
506
|
this.signaturePad.addEventListener(g, () => {
|
|
507
507
|
this.signEvents[g]();
|
|
@@ -516,19 +516,19 @@ const Vt = {
|
|
|
516
516
|
this.type === "draw" ? this.openSignaturePad() : this.lockSignaturePad();
|
|
517
517
|
},
|
|
518
518
|
resizeCanvas() {
|
|
519
|
-
const
|
|
520
|
-
if (
|
|
519
|
+
const v = this.$refs.signaturePadCanvas, r = Math.max(window.devicePixelRatio || 1, 1);
|
|
520
|
+
if (v.width = v.offsetWidth * r, v.height = v.offsetHeight * r, v.getContext("2d").scale(r, r), this.signaturePad.clear(), this.signatureData = "", this.type === "draw") {
|
|
521
521
|
const n = this.signaturePad.toData();
|
|
522
522
|
n != null && n.length && this.signaturePad.fromData(n);
|
|
523
523
|
} else
|
|
524
524
|
this.type === "text" && this.drawText(this.text);
|
|
525
525
|
},
|
|
526
|
-
saveSignature(
|
|
526
|
+
saveSignature(v = {}) {
|
|
527
527
|
const {
|
|
528
528
|
type: r = "image/png",
|
|
529
529
|
trim: n = !0,
|
|
530
530
|
encoderOptions: g
|
|
531
|
-
} =
|
|
531
|
+
} = v || {}, l = { isEmpty: !1, data: void 0 };
|
|
532
532
|
if (!this.validTypes.includes(r)) {
|
|
533
533
|
const f = this.validTypes.join(", ");
|
|
534
534
|
throw new Error(`The Image type is incorrect! We only support ${f} types.`);
|
|
@@ -546,28 +546,28 @@ const Vt = {
|
|
|
546
546
|
};
|
|
547
547
|
},
|
|
548
548
|
undoSignature() {
|
|
549
|
-
const { signaturePad:
|
|
550
|
-
r &&
|
|
549
|
+
const { signaturePad: v } = this, r = v.toData();
|
|
550
|
+
r && v.fromData(r.slice(0, -1));
|
|
551
551
|
},
|
|
552
|
-
drawText(
|
|
553
|
-
this.signaturePad.fromText(
|
|
552
|
+
drawText(v) {
|
|
553
|
+
this.signaturePad.fromText(v, {
|
|
554
554
|
font: '40px "Nothing You Could Do"',
|
|
555
555
|
x: 10,
|
|
556
556
|
y: 100
|
|
557
557
|
});
|
|
558
558
|
},
|
|
559
559
|
// Extend of module methods
|
|
560
|
-
fromText(...
|
|
561
|
-
return this.signaturePad.fromText(...
|
|
560
|
+
fromText(...v) {
|
|
561
|
+
return this.signaturePad.fromText(...v);
|
|
562
562
|
},
|
|
563
|
-
fromDataURL(...
|
|
564
|
-
return this.signaturePad.fromDataURL(...
|
|
563
|
+
fromDataURL(...v) {
|
|
564
|
+
return this.signaturePad.fromDataURL(...v);
|
|
565
565
|
},
|
|
566
|
-
fromData(...
|
|
567
|
-
return this.signaturePad.fromData(...
|
|
566
|
+
fromData(...v) {
|
|
567
|
+
return this.signaturePad.fromData(...v);
|
|
568
568
|
},
|
|
569
|
-
toData(...
|
|
570
|
-
return this.signaturePad.toData(...
|
|
569
|
+
toData(...v) {
|
|
570
|
+
return this.signaturePad.toData(...v);
|
|
571
571
|
},
|
|
572
572
|
lockSignaturePad() {
|
|
573
573
|
return this.signaturePad.off();
|
|
@@ -581,9 +581,9 @@ const Vt = {
|
|
|
581
581
|
clearSignature() {
|
|
582
582
|
return this.signaturePad.clear();
|
|
583
583
|
},
|
|
584
|
-
trimCanvas(
|
|
584
|
+
trimCanvas(v) {
|
|
585
585
|
const r = document.createElement("canvas"), n = r.getContext("2d");
|
|
586
|
-
r.width =
|
|
586
|
+
r.width = v.width, r.height = v.height, n.drawImage(v, 0, 0);
|
|
587
587
|
let g = r.width, l = r.height;
|
|
588
588
|
const f = { x: [], y: [] }, d = n.getImageData(0, 0, r.width, r.height);
|
|
589
589
|
let c = 0;
|
|
@@ -597,9 +597,9 @@ const Vt = {
|
|
|
597
597
|
return r.height = l, n.putImageData(s, 0, 0), r;
|
|
598
598
|
}
|
|
599
599
|
},
|
|
600
|
-
render(
|
|
600
|
+
render(v) {
|
|
601
601
|
const { width: r, height: n, customStyle: g } = this;
|
|
602
|
-
return
|
|
602
|
+
return v(
|
|
603
603
|
"div",
|
|
604
604
|
{
|
|
605
605
|
style: {
|
|
@@ -609,7 +609,7 @@ const Vt = {
|
|
|
609
609
|
}
|
|
610
610
|
},
|
|
611
611
|
[
|
|
612
|
-
|
|
612
|
+
v("canvas", {
|
|
613
613
|
style: {
|
|
614
614
|
width: "100%",
|
|
615
615
|
height: "100%"
|
|
@@ -653,8 +653,8 @@ const qt = {
|
|
|
653
653
|
};
|
|
654
654
|
},
|
|
655
655
|
watch: {
|
|
656
|
-
mode(
|
|
657
|
-
this.reset(), this.$refs.signaturePad &&
|
|
656
|
+
mode(v) {
|
|
657
|
+
this.reset(), this.$refs.signaturePad && v === "text" && this.focusName();
|
|
658
658
|
},
|
|
659
659
|
text() {
|
|
660
660
|
this.$refs.signaturePad && this.$nextTick(() => {
|
|
@@ -663,8 +663,8 @@ const qt = {
|
|
|
663
663
|
},
|
|
664
664
|
isEmpty: {
|
|
665
665
|
immediate: !0,
|
|
666
|
-
handler(
|
|
667
|
-
this.$emit("invalid",
|
|
666
|
+
handler(v) {
|
|
667
|
+
this.$emit("invalid", v);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
},
|
|
@@ -679,17 +679,17 @@ const qt = {
|
|
|
679
679
|
this.$refs.signaturePad && (this.mode === "text" && this.text ? this.text = this.text.slice(0, this.text.length - 1) : this.$refs.signaturePad.undoSignature(), this.isEmpty = this.$refs.signaturePad.isEmpty());
|
|
680
680
|
},
|
|
681
681
|
getSignatureData() {
|
|
682
|
-
let
|
|
683
|
-
this.mode === "draw" && (
|
|
684
|
-
const { isEmpty: r, data: n } = this.$refs.signaturePad ? this.$refs.signaturePad.saveSignature(
|
|
682
|
+
let v = { type: "image/png", trim: !0 };
|
|
683
|
+
this.mode === "draw" && (v = { type: "image/svg+xml", trim: !1 });
|
|
684
|
+
const { isEmpty: r, data: n } = this.$refs.signaturePad ? this.$refs.signaturePad.saveSignature(v) : {};
|
|
685
685
|
if (r || !n)
|
|
686
686
|
throw Error("Missing signatureData");
|
|
687
687
|
return n;
|
|
688
688
|
},
|
|
689
|
-
async submit({ answer:
|
|
689
|
+
async submit({ answer: v }) {
|
|
690
690
|
if (!this.demo) {
|
|
691
691
|
const r = this.getSignatureData();
|
|
692
|
-
await
|
|
692
|
+
await v({ body: { isAccepted: !0, signatureDataURL: r } });
|
|
693
693
|
}
|
|
694
694
|
this.$emit("complete");
|
|
695
695
|
},
|
|
@@ -736,12 +736,12 @@ const re = ee.exports;
|
|
|
736
736
|
function pt() {
|
|
737
737
|
throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs");
|
|
738
738
|
}
|
|
739
|
-
function ne(
|
|
740
|
-
return r = { exports: {} },
|
|
739
|
+
function ne(v, r) {
|
|
740
|
+
return r = { exports: {} }, v(r, r.exports), r.exports;
|
|
741
741
|
}
|
|
742
|
-
var _t = ne(function(
|
|
742
|
+
var _t = ne(function(v, r) {
|
|
743
743
|
(function(n) {
|
|
744
|
-
|
|
744
|
+
v.exports = n();
|
|
745
745
|
})(function() {
|
|
746
746
|
return function() {
|
|
747
747
|
function n(g, l, f) {
|
|
@@ -1600,9 +1600,9 @@ Make sure your charset is UTF-8`
|
|
|
1600
1600
|
return L(R, D, $);
|
|
1601
1601
|
}
|
|
1602
1602
|
function L(D, $, U) {
|
|
1603
|
-
for (var R = d.getSymbolTotalCodewords($), O = x.getTotalCodewordsCount($, U), z = R - O, N = x.getBlocksCount($, U), Y = R % N, j = N - Y, et = Math.floor(R / N), X = Math.floor(z / N),
|
|
1604
|
-
var ct = rt < j ? X :
|
|
1605
|
-
it[rt] =
|
|
1603
|
+
for (var R = d.getSymbolTotalCodewords($), O = x.getTotalCodewordsCount($, U), z = R - O, N = x.getBlocksCount($, U), Y = R % N, j = N - Y, et = Math.floor(R / N), X = Math.floor(z / N), vt = X + 1, J = et - X, q = new b(J), at = 0, it = new Array(N), st = new Array(N), ut = 0, yt = f.from(D.buffer), rt = 0; rt < N; rt++) {
|
|
1604
|
+
var ct = rt < j ? X : vt;
|
|
1605
|
+
it[rt] = yt.slice(at, at + ct), st[rt] = q.encode(it[rt]), at += ct, ut = Math.max(ut, ct);
|
|
1606
1606
|
}
|
|
1607
1607
|
var lt = f.alloc(R), ht = 0, tt, Q;
|
|
1608
1608
|
for (tt = 0; tt < ut; tt++)
|
|
@@ -2433,9 +2433,9 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2433
2433
|
var u = o.valueOf && o.valueOf();
|
|
2434
2434
|
if (u != null && u !== o)
|
|
2435
2435
|
return a.from(u, t, e);
|
|
2436
|
-
var
|
|
2437
|
-
if (
|
|
2438
|
-
return
|
|
2436
|
+
var y = T(o);
|
|
2437
|
+
if (y)
|
|
2438
|
+
return y;
|
|
2439
2439
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof o[Symbol.toPrimitive] == "function")
|
|
2440
2440
|
return a.from(
|
|
2441
2441
|
o[Symbol.toPrimitive]("string"),
|
|
@@ -2472,8 +2472,8 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2472
2472
|
function F(o, t) {
|
|
2473
2473
|
if ((typeof t != "string" || t === "") && (t = "utf8"), !a.isEncoding(t))
|
|
2474
2474
|
throw new TypeError("Unknown encoding: " + t);
|
|
2475
|
-
var e = _(o, t) | 0, u = h(e),
|
|
2476
|
-
return
|
|
2475
|
+
var e = _(o, t) | 0, u = h(e), y = u.write(o, t);
|
|
2476
|
+
return y !== e && (u = u.slice(0, y)), u;
|
|
2477
2477
|
}
|
|
2478
2478
|
function M(o) {
|
|
2479
2479
|
for (var t = o.length < 0 ? 0 : I(o.length) | 0, e = h(t), u = 0; u < t; u += 1)
|
|
@@ -2515,12 +2515,12 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2515
2515
|
);
|
|
2516
2516
|
if (t === e)
|
|
2517
2517
|
return 0;
|
|
2518
|
-
for (var u = t.length,
|
|
2518
|
+
for (var u = t.length, y = e.length, P = 0, B = Math.min(u, y); P < B; ++P)
|
|
2519
2519
|
if (t[P] !== e[P]) {
|
|
2520
|
-
u = t[P],
|
|
2520
|
+
u = t[P], y = e[P];
|
|
2521
2521
|
break;
|
|
2522
2522
|
}
|
|
2523
|
-
return u <
|
|
2523
|
+
return u < y ? -1 : y < u ? 1 : 0;
|
|
2524
2524
|
}, a.isEncoding = function(t) {
|
|
2525
2525
|
switch (String(t).toLowerCase()) {
|
|
2526
2526
|
case "hex":
|
|
@@ -2547,14 +2547,14 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2547
2547
|
if (e === void 0)
|
|
2548
2548
|
for (e = 0, u = 0; u < t.length; ++u)
|
|
2549
2549
|
e += t[u].length;
|
|
2550
|
-
var
|
|
2550
|
+
var y = a.allocUnsafe(e), P = 0;
|
|
2551
2551
|
for (u = 0; u < t.length; ++u) {
|
|
2552
2552
|
var B = t[u];
|
|
2553
2553
|
if (Q(B, Uint8Array) && (B = a.from(B)), !a.isBuffer(B))
|
|
2554
2554
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
2555
|
-
B.copy(
|
|
2555
|
+
B.copy(y, P), P += B.length;
|
|
2556
2556
|
}
|
|
2557
|
-
return
|
|
2557
|
+
return y;
|
|
2558
2558
|
};
|
|
2559
2559
|
function _(o, t) {
|
|
2560
2560
|
if (a.isBuffer(o))
|
|
@@ -2568,7 +2568,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2568
2568
|
var e = o.length, u = arguments.length > 2 && arguments[2] === !0;
|
|
2569
2569
|
if (!u && e === 0)
|
|
2570
2570
|
return 0;
|
|
2571
|
-
for (var
|
|
2571
|
+
for (var y = !1; ; )
|
|
2572
2572
|
switch (t) {
|
|
2573
2573
|
case "ascii":
|
|
2574
2574
|
case "latin1":
|
|
@@ -2587,9 +2587,9 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2587
2587
|
case "base64":
|
|
2588
2588
|
return ht(o).length;
|
|
2589
2589
|
default:
|
|
2590
|
-
if (
|
|
2590
|
+
if (y)
|
|
2591
2591
|
return u ? -1 : rt(o).length;
|
|
2592
|
-
t = ("" + t).toLowerCase(),
|
|
2592
|
+
t = ("" + t).toLowerCase(), y = !0;
|
|
2593
2593
|
}
|
|
2594
2594
|
}
|
|
2595
2595
|
a.byteLength = _;
|
|
@@ -2615,7 +2615,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2615
2615
|
case "ucs-2":
|
|
2616
2616
|
case "utf16le":
|
|
2617
2617
|
case "utf-16le":
|
|
2618
|
-
return
|
|
2618
|
+
return vt(this, t, e);
|
|
2619
2619
|
default:
|
|
2620
2620
|
if (u)
|
|
2621
2621
|
throw new TypeError("Unknown encoding: " + o);
|
|
@@ -2658,47 +2658,47 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2658
2658
|
}, a.prototype.inspect = function() {
|
|
2659
2659
|
var t = "", e = l.INSPECT_MAX_BYTES;
|
|
2660
2660
|
return t = this.toString("hex", 0, e).replace(/(.{2})/g, "$1 ").trim(), this.length > e && (t += " ... "), "<Buffer " + t + ">";
|
|
2661
|
-
}, c && (a.prototype[c] = a.prototype.inspect), a.prototype.compare = function(t, e, u,
|
|
2661
|
+
}, c && (a.prototype[c] = a.prototype.inspect), a.prototype.compare = function(t, e, u, y, P) {
|
|
2662
2662
|
if (Q(t, Uint8Array) && (t = a.from(t, t.offset, t.byteLength)), !a.isBuffer(t))
|
|
2663
2663
|
throw new TypeError(
|
|
2664
2664
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof t
|
|
2665
2665
|
);
|
|
2666
|
-
if (e === void 0 && (e = 0), u === void 0 && (u = t ? t.length : 0),
|
|
2666
|
+
if (e === void 0 && (e = 0), u === void 0 && (u = t ? t.length : 0), y === void 0 && (y = 0), P === void 0 && (P = this.length), e < 0 || u > t.length || y < 0 || P > this.length)
|
|
2667
2667
|
throw new RangeError("out of range index");
|
|
2668
|
-
if (
|
|
2668
|
+
if (y >= P && e >= u)
|
|
2669
2669
|
return 0;
|
|
2670
|
-
if (
|
|
2670
|
+
if (y >= P)
|
|
2671
2671
|
return -1;
|
|
2672
2672
|
if (e >= u)
|
|
2673
2673
|
return 1;
|
|
2674
|
-
if (e >>>= 0, u >>>= 0,
|
|
2674
|
+
if (e >>>= 0, u >>>= 0, y >>>= 0, P >>>= 0, this === t)
|
|
2675
2675
|
return 0;
|
|
2676
|
-
for (var B = P -
|
|
2676
|
+
for (var B = P - y, H = u - e, G = Math.min(B, H), V = this.slice(y, P), Z = t.slice(e, u), K = 0; K < G; ++K)
|
|
2677
2677
|
if (V[K] !== Z[K]) {
|
|
2678
2678
|
B = V[K], H = Z[K];
|
|
2679
2679
|
break;
|
|
2680
2680
|
}
|
|
2681
2681
|
return B < H ? -1 : H < B ? 1 : 0;
|
|
2682
2682
|
};
|
|
2683
|
-
function E(o, t, e, u,
|
|
2683
|
+
function E(o, t, e, u, y) {
|
|
2684
2684
|
if (o.length === 0)
|
|
2685
2685
|
return -1;
|
|
2686
|
-
if (typeof e == "string" ? (u = e, e = 0) : e > 2147483647 ? e = 2147483647 : e < -2147483648 && (e = -2147483648), e = +e, wt(e) && (e =
|
|
2687
|
-
if (
|
|
2686
|
+
if (typeof e == "string" ? (u = e, e = 0) : e > 2147483647 ? e = 2147483647 : e < -2147483648 && (e = -2147483648), e = +e, wt(e) && (e = y ? 0 : o.length - 1), e < 0 && (e = o.length + e), e >= o.length) {
|
|
2687
|
+
if (y)
|
|
2688
2688
|
return -1;
|
|
2689
2689
|
e = o.length - 1;
|
|
2690
2690
|
} else if (e < 0)
|
|
2691
|
-
if (
|
|
2691
|
+
if (y)
|
|
2692
2692
|
e = 0;
|
|
2693
2693
|
else
|
|
2694
2694
|
return -1;
|
|
2695
2695
|
if (typeof t == "string" && (t = a.from(t, u)), a.isBuffer(t))
|
|
2696
|
-
return t.length === 0 ? -1 : A(o, t, e, u,
|
|
2696
|
+
return t.length === 0 ? -1 : A(o, t, e, u, y);
|
|
2697
2697
|
if (typeof t == "number")
|
|
2698
|
-
return t = t & 255, typeof Uint8Array.prototype.indexOf == "function" ?
|
|
2698
|
+
return t = t & 255, typeof Uint8Array.prototype.indexOf == "function" ? y ? Uint8Array.prototype.indexOf.call(o, t, e) : Uint8Array.prototype.lastIndexOf.call(o, t, e) : A(o, [t], e, u, y);
|
|
2699
2699
|
throw new TypeError("val must be string, number or Buffer");
|
|
2700
2700
|
}
|
|
2701
|
-
function A(o, t, e, u,
|
|
2701
|
+
function A(o, t, e, u, y) {
|
|
2702
2702
|
var P = 1, B = o.length, H = t.length;
|
|
2703
2703
|
if (u !== void 0 && (u = String(u).toLowerCase(), u === "ucs2" || u === "ucs-2" || u === "utf16le" || u === "utf-16le")) {
|
|
2704
2704
|
if (o.length < 2 || t.length < 2)
|
|
@@ -2709,7 +2709,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2709
2709
|
return P === 1 ? Pt[Bt] : Pt.readUInt16BE(Bt * P);
|
|
2710
2710
|
}
|
|
2711
2711
|
var V;
|
|
2712
|
-
if (
|
|
2712
|
+
if (y) {
|
|
2713
2713
|
var Z = -1;
|
|
2714
2714
|
for (V = e; V < B; V++)
|
|
2715
2715
|
if (G(o, V) === G(t, Z === -1 ? 0 : V - Z)) {
|
|
@@ -2738,8 +2738,8 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2738
2738
|
};
|
|
2739
2739
|
function L(o, t, e, u) {
|
|
2740
2740
|
e = Number(e) || 0;
|
|
2741
|
-
var
|
|
2742
|
-
u ? (u = Number(u), u >
|
|
2741
|
+
var y = o.length - e;
|
|
2742
|
+
u ? (u = Number(u), u > y && (u = y)) : u = y;
|
|
2743
2743
|
var P = t.length;
|
|
2744
2744
|
u > P / 2 && (u = P / 2);
|
|
2745
2745
|
for (var B = 0; B < u; ++B) {
|
|
@@ -2765,13 +2765,13 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2765
2765
|
function R(o, t, e, u) {
|
|
2766
2766
|
return tt(lt(t, o.length - e), o, e, u);
|
|
2767
2767
|
}
|
|
2768
|
-
a.prototype.write = function(t, e, u,
|
|
2768
|
+
a.prototype.write = function(t, e, u, y) {
|
|
2769
2769
|
if (e === void 0)
|
|
2770
|
-
|
|
2770
|
+
y = "utf8", u = this.length, e = 0;
|
|
2771
2771
|
else if (u === void 0 && typeof e == "string")
|
|
2772
|
-
|
|
2772
|
+
y = e, u = this.length, e = 0;
|
|
2773
2773
|
else if (isFinite(e))
|
|
2774
|
-
e = e >>> 0, isFinite(u) ? (u = u >>> 0,
|
|
2774
|
+
e = e >>> 0, isFinite(u) ? (u = u >>> 0, y === void 0 && (y = "utf8")) : (y = u, u = void 0);
|
|
2775
2775
|
else
|
|
2776
2776
|
throw new Error(
|
|
2777
2777
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
@@ -2779,9 +2779,9 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2779
2779
|
var P = this.length - e;
|
|
2780
2780
|
if ((u === void 0 || u > P) && (u = P), t.length > 0 && (u < 0 || e < 0) || e > this.length)
|
|
2781
2781
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
2782
|
-
|
|
2782
|
+
y || (y = "utf8");
|
|
2783
2783
|
for (var B = !1; ; )
|
|
2784
|
-
switch (
|
|
2784
|
+
switch (y) {
|
|
2785
2785
|
case "hex":
|
|
2786
2786
|
return L(this, t, e, u);
|
|
2787
2787
|
case "utf8":
|
|
@@ -2801,8 +2801,8 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2801
2801
|
return R(this, t, e, u);
|
|
2802
2802
|
default:
|
|
2803
2803
|
if (B)
|
|
2804
|
-
throw new TypeError("Unknown encoding: " +
|
|
2805
|
-
|
|
2804
|
+
throw new TypeError("Unknown encoding: " + y);
|
|
2805
|
+
y = ("" + y).toLowerCase(), B = !0;
|
|
2806
2806
|
}
|
|
2807
2807
|
}, a.prototype.toJSON = function() {
|
|
2808
2808
|
return {
|
|
@@ -2815,25 +2815,25 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2815
2815
|
}
|
|
2816
2816
|
function z(o, t, e) {
|
|
2817
2817
|
e = Math.min(o.length, e);
|
|
2818
|
-
for (var u = [],
|
|
2819
|
-
var P = o[
|
|
2820
|
-
if (
|
|
2818
|
+
for (var u = [], y = t; y < e; ) {
|
|
2819
|
+
var P = o[y], B = null, H = P > 239 ? 4 : P > 223 ? 3 : P > 191 ? 2 : 1;
|
|
2820
|
+
if (y + H <= e) {
|
|
2821
2821
|
var G, V, Z, K;
|
|
2822
2822
|
switch (H) {
|
|
2823
2823
|
case 1:
|
|
2824
2824
|
P < 128 && (B = P);
|
|
2825
2825
|
break;
|
|
2826
2826
|
case 2:
|
|
2827
|
-
G = o[
|
|
2827
|
+
G = o[y + 1], (G & 192) === 128 && (K = (P & 31) << 6 | G & 63, K > 127 && (B = K));
|
|
2828
2828
|
break;
|
|
2829
2829
|
case 3:
|
|
2830
|
-
G = o[
|
|
2830
|
+
G = o[y + 1], V = o[y + 2], (G & 192) === 128 && (V & 192) === 128 && (K = (P & 15) << 12 | (G & 63) << 6 | V & 63, K > 2047 && (K < 55296 || K > 57343) && (B = K));
|
|
2831
2831
|
break;
|
|
2832
2832
|
case 4:
|
|
2833
|
-
G = o[
|
|
2833
|
+
G = o[y + 1], V = o[y + 2], Z = o[y + 3], (G & 192) === 128 && (V & 192) === 128 && (Z & 192) === 128 && (K = (P & 15) << 18 | (G & 63) << 12 | (V & 63) << 6 | Z & 63, K > 65535 && K < 1114112 && (B = K));
|
|
2834
2834
|
}
|
|
2835
2835
|
}
|
|
2836
|
-
B === null ? (B = 65533, H = 1) : B > 65535 && (B -= 65536, u.push(B >>> 10 & 1023 | 55296), B = 56320 | B & 1023), u.push(B),
|
|
2836
|
+
B === null ? (B = 65533, H = 1) : B > 65535 && (B -= 65536, u.push(B >>> 10 & 1023 | 55296), B = 56320 | B & 1023), u.push(B), y += H;
|
|
2837
2837
|
}
|
|
2838
2838
|
return Y(u);
|
|
2839
2839
|
}
|
|
@@ -2852,34 +2852,34 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2852
2852
|
function j(o, t, e) {
|
|
2853
2853
|
var u = "";
|
|
2854
2854
|
e = Math.min(o.length, e);
|
|
2855
|
-
for (var
|
|
2856
|
-
u += String.fromCharCode(o[
|
|
2855
|
+
for (var y = t; y < e; ++y)
|
|
2856
|
+
u += String.fromCharCode(o[y] & 127);
|
|
2857
2857
|
return u;
|
|
2858
2858
|
}
|
|
2859
2859
|
function et(o, t, e) {
|
|
2860
2860
|
var u = "";
|
|
2861
2861
|
e = Math.min(o.length, e);
|
|
2862
|
-
for (var
|
|
2863
|
-
u += String.fromCharCode(o[
|
|
2862
|
+
for (var y = t; y < e; ++y)
|
|
2863
|
+
u += String.fromCharCode(o[y]);
|
|
2864
2864
|
return u;
|
|
2865
2865
|
}
|
|
2866
2866
|
function X(o, t, e) {
|
|
2867
2867
|
var u = o.length;
|
|
2868
2868
|
(!t || t < 0) && (t = 0), (!e || e < 0 || e > u) && (e = u);
|
|
2869
|
-
for (var
|
|
2870
|
-
|
|
2871
|
-
return
|
|
2869
|
+
for (var y = "", P = t; P < e; ++P)
|
|
2870
|
+
y += At[o[P]];
|
|
2871
|
+
return y;
|
|
2872
2872
|
}
|
|
2873
|
-
function
|
|
2874
|
-
for (var u = o.slice(t, e),
|
|
2875
|
-
|
|
2876
|
-
return
|
|
2873
|
+
function vt(o, t, e) {
|
|
2874
|
+
for (var u = o.slice(t, e), y = "", P = 0; P < u.length; P += 2)
|
|
2875
|
+
y += String.fromCharCode(u[P] + u[P + 1] * 256);
|
|
2876
|
+
return y;
|
|
2877
2877
|
}
|
|
2878
2878
|
a.prototype.slice = function(t, e) {
|
|
2879
2879
|
var u = this.length;
|
|
2880
2880
|
t = ~~t, e = e === void 0 ? u : ~~e, t < 0 ? (t += u, t < 0 && (t = 0)) : t > u && (t = u), e < 0 ? (e += u, e < 0 && (e = 0)) : e > u && (e = u), e < t && (e = t);
|
|
2881
|
-
var
|
|
2882
|
-
return Object.setPrototypeOf(
|
|
2881
|
+
var y = this.subarray(t, e);
|
|
2882
|
+
return Object.setPrototypeOf(y, a.prototype), y;
|
|
2883
2883
|
};
|
|
2884
2884
|
function J(o, t, e) {
|
|
2885
2885
|
if (o % 1 !== 0 || o < 0)
|
|
@@ -2889,14 +2889,14 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2889
2889
|
}
|
|
2890
2890
|
a.prototype.readUIntLE = function(t, e, u) {
|
|
2891
2891
|
t = t >>> 0, e = e >>> 0, u || J(t, e, this.length);
|
|
2892
|
-
for (var
|
|
2893
|
-
|
|
2894
|
-
return
|
|
2892
|
+
for (var y = this[t], P = 1, B = 0; ++B < e && (P *= 256); )
|
|
2893
|
+
y += this[t + B] * P;
|
|
2894
|
+
return y;
|
|
2895
2895
|
}, a.prototype.readUIntBE = function(t, e, u) {
|
|
2896
2896
|
t = t >>> 0, e = e >>> 0, u || J(t, e, this.length);
|
|
2897
|
-
for (var
|
|
2898
|
-
|
|
2899
|
-
return
|
|
2897
|
+
for (var y = this[t + --e], P = 1; e > 0 && (P *= 256); )
|
|
2898
|
+
y += this[t + --e] * P;
|
|
2899
|
+
return y;
|
|
2900
2900
|
}, a.prototype.readUInt8 = function(t, e) {
|
|
2901
2901
|
return t = t >>> 0, e || J(t, 1, this.length), this[t];
|
|
2902
2902
|
}, a.prototype.readUInt16LE = function(t, e) {
|
|
@@ -2909,13 +2909,13 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2909
2909
|
return t = t >>> 0, e || J(t, 4, this.length), this[t] * 16777216 + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]);
|
|
2910
2910
|
}, a.prototype.readIntLE = function(t, e, u) {
|
|
2911
2911
|
t = t >>> 0, e = e >>> 0, u || J(t, e, this.length);
|
|
2912
|
-
for (var
|
|
2913
|
-
|
|
2914
|
-
return P *= 128,
|
|
2912
|
+
for (var y = this[t], P = 1, B = 0; ++B < e && (P *= 256); )
|
|
2913
|
+
y += this[t + B] * P;
|
|
2914
|
+
return P *= 128, y >= P && (y -= Math.pow(2, 8 * e)), y;
|
|
2915
2915
|
}, a.prototype.readIntBE = function(t, e, u) {
|
|
2916
2916
|
t = t >>> 0, e = e >>> 0, u || J(t, e, this.length);
|
|
2917
|
-
for (var
|
|
2918
|
-
B += this[t + --
|
|
2917
|
+
for (var y = e, P = 1, B = this[t + --y]; y > 0 && (P *= 256); )
|
|
2918
|
+
B += this[t + --y] * P;
|
|
2919
2919
|
return P *= 128, B >= P && (B -= Math.pow(2, 8 * e)), B;
|
|
2920
2920
|
}, a.prototype.readInt8 = function(t, e) {
|
|
2921
2921
|
return t = t >>> 0, e || J(t, 1, this.length), this[t] & 128 ? (255 - this[t] + 1) * -1 : this[t];
|
|
@@ -2940,16 +2940,16 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2940
2940
|
}, a.prototype.readDoubleBE = function(t, e) {
|
|
2941
2941
|
return t = t >>> 0, e || J(t, 8, this.length), d.read(this, t, !1, 52, 8);
|
|
2942
2942
|
};
|
|
2943
|
-
function q(o, t, e, u,
|
|
2943
|
+
function q(o, t, e, u, y, P) {
|
|
2944
2944
|
if (!a.isBuffer(o))
|
|
2945
2945
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
2946
|
-
if (t >
|
|
2946
|
+
if (t > y || t < P)
|
|
2947
2947
|
throw new RangeError('"value" argument is out of bounds');
|
|
2948
2948
|
if (e + u > o.length)
|
|
2949
2949
|
throw new RangeError("Index out of range");
|
|
2950
2950
|
}
|
|
2951
|
-
a.prototype.writeUIntLE = function(t, e, u,
|
|
2952
|
-
if (t = +t, e = e >>> 0, u = u >>> 0, !
|
|
2951
|
+
a.prototype.writeUIntLE = function(t, e, u, y) {
|
|
2952
|
+
if (t = +t, e = e >>> 0, u = u >>> 0, !y) {
|
|
2953
2953
|
var P = Math.pow(2, 8 * u) - 1;
|
|
2954
2954
|
q(this, t, e, u, P, 0);
|
|
2955
2955
|
}
|
|
@@ -2957,8 +2957,8 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2957
2957
|
for (this[e] = t & 255; ++H < u && (B *= 256); )
|
|
2958
2958
|
this[e + H] = t / B & 255;
|
|
2959
2959
|
return e + u;
|
|
2960
|
-
}, a.prototype.writeUIntBE = function(t, e, u,
|
|
2961
|
-
if (t = +t, e = e >>> 0, u = u >>> 0, !
|
|
2960
|
+
}, a.prototype.writeUIntBE = function(t, e, u, y) {
|
|
2961
|
+
if (t = +t, e = e >>> 0, u = u >>> 0, !y) {
|
|
2962
2962
|
var P = Math.pow(2, 8 * u) - 1;
|
|
2963
2963
|
q(this, t, e, u, P, 0);
|
|
2964
2964
|
}
|
|
@@ -2976,8 +2976,8 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2976
2976
|
return t = +t, e = e >>> 0, u || q(this, t, e, 4, 4294967295, 0), this[e + 3] = t >>> 24, this[e + 2] = t >>> 16, this[e + 1] = t >>> 8, this[e] = t & 255, e + 4;
|
|
2977
2977
|
}, a.prototype.writeUInt32BE = function(t, e, u) {
|
|
2978
2978
|
return t = +t, e = e >>> 0, u || q(this, t, e, 4, 4294967295, 0), this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = t & 255, e + 4;
|
|
2979
|
-
}, a.prototype.writeIntLE = function(t, e, u,
|
|
2980
|
-
if (t = +t, e = e >>> 0, !
|
|
2979
|
+
}, a.prototype.writeIntLE = function(t, e, u, y) {
|
|
2980
|
+
if (t = +t, e = e >>> 0, !y) {
|
|
2981
2981
|
var P = Math.pow(2, 8 * u - 1);
|
|
2982
2982
|
q(this, t, e, u, P - 1, -P);
|
|
2983
2983
|
}
|
|
@@ -2985,8 +2985,8 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
2985
2985
|
for (this[e] = t & 255; ++B < u && (H *= 256); )
|
|
2986
2986
|
t < 0 && G === 0 && this[e + B - 1] !== 0 && (G = 1), this[e + B] = (t / H >> 0) - G & 255;
|
|
2987
2987
|
return e + u;
|
|
2988
|
-
}, a.prototype.writeIntBE = function(t, e, u,
|
|
2989
|
-
if (t = +t, e = e >>> 0, !
|
|
2988
|
+
}, a.prototype.writeIntBE = function(t, e, u, y) {
|
|
2989
|
+
if (t = +t, e = e >>> 0, !y) {
|
|
2990
2990
|
var P = Math.pow(2, 8 * u - 1);
|
|
2991
2991
|
q(this, t, e, u, P - 1, -P);
|
|
2992
2992
|
}
|
|
@@ -3005,61 +3005,61 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
3005
3005
|
}, a.prototype.writeInt32BE = function(t, e, u) {
|
|
3006
3006
|
return t = +t, e = e >>> 0, u || q(this, t, e, 4, 2147483647, -2147483648), t < 0 && (t = 4294967295 + t + 1), this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = t & 255, e + 4;
|
|
3007
3007
|
};
|
|
3008
|
-
function at(o, t, e, u,
|
|
3008
|
+
function at(o, t, e, u, y, P) {
|
|
3009
3009
|
if (e + u > o.length)
|
|
3010
3010
|
throw new RangeError("Index out of range");
|
|
3011
3011
|
if (e < 0)
|
|
3012
3012
|
throw new RangeError("Index out of range");
|
|
3013
3013
|
}
|
|
3014
|
-
function it(o, t, e, u,
|
|
3015
|
-
return t = +t, e = e >>> 0,
|
|
3014
|
+
function it(o, t, e, u, y) {
|
|
3015
|
+
return t = +t, e = e >>> 0, y || at(o, t, e, 4), d.write(o, t, e, u, 23, 4), e + 4;
|
|
3016
3016
|
}
|
|
3017
3017
|
a.prototype.writeFloatLE = function(t, e, u) {
|
|
3018
3018
|
return it(this, t, e, !0, u);
|
|
3019
3019
|
}, a.prototype.writeFloatBE = function(t, e, u) {
|
|
3020
3020
|
return it(this, t, e, !1, u);
|
|
3021
3021
|
};
|
|
3022
|
-
function st(o, t, e, u,
|
|
3023
|
-
return t = +t, e = e >>> 0,
|
|
3022
|
+
function st(o, t, e, u, y) {
|
|
3023
|
+
return t = +t, e = e >>> 0, y || at(o, t, e, 8), d.write(o, t, e, u, 52, 8), e + 8;
|
|
3024
3024
|
}
|
|
3025
3025
|
a.prototype.writeDoubleLE = function(t, e, u) {
|
|
3026
3026
|
return st(this, t, e, !0, u);
|
|
3027
3027
|
}, a.prototype.writeDoubleBE = function(t, e, u) {
|
|
3028
3028
|
return st(this, t, e, !1, u);
|
|
3029
|
-
}, a.prototype.copy = function(t, e, u,
|
|
3029
|
+
}, a.prototype.copy = function(t, e, u, y) {
|
|
3030
3030
|
if (!a.isBuffer(t))
|
|
3031
3031
|
throw new TypeError("argument should be a Buffer");
|
|
3032
|
-
if (u || (u = 0), !
|
|
3032
|
+
if (u || (u = 0), !y && y !== 0 && (y = this.length), e >= t.length && (e = t.length), e || (e = 0), y > 0 && y < u && (y = u), y === u || t.length === 0 || this.length === 0)
|
|
3033
3033
|
return 0;
|
|
3034
3034
|
if (e < 0)
|
|
3035
3035
|
throw new RangeError("targetStart out of bounds");
|
|
3036
3036
|
if (u < 0 || u >= this.length)
|
|
3037
3037
|
throw new RangeError("Index out of range");
|
|
3038
|
-
if (
|
|
3038
|
+
if (y < 0)
|
|
3039
3039
|
throw new RangeError("sourceEnd out of bounds");
|
|
3040
|
-
|
|
3041
|
-
var P =
|
|
3040
|
+
y > this.length && (y = this.length), t.length - e < y - u && (y = t.length - e + u);
|
|
3041
|
+
var P = y - u;
|
|
3042
3042
|
if (this === t && typeof Uint8Array.prototype.copyWithin == "function")
|
|
3043
|
-
this.copyWithin(e, u,
|
|
3044
|
-
else if (this === t && u < e && e <
|
|
3043
|
+
this.copyWithin(e, u, y);
|
|
3044
|
+
else if (this === t && u < e && e < y)
|
|
3045
3045
|
for (var B = P - 1; B >= 0; --B)
|
|
3046
3046
|
t[B + e] = this[B + u];
|
|
3047
3047
|
else
|
|
3048
3048
|
Uint8Array.prototype.set.call(
|
|
3049
3049
|
t,
|
|
3050
|
-
this.subarray(u,
|
|
3050
|
+
this.subarray(u, y),
|
|
3051
3051
|
e
|
|
3052
3052
|
);
|
|
3053
3053
|
return P;
|
|
3054
|
-
}, a.prototype.fill = function(t, e, u,
|
|
3054
|
+
}, a.prototype.fill = function(t, e, u, y) {
|
|
3055
3055
|
if (typeof t == "string") {
|
|
3056
|
-
if (typeof e == "string" ? (
|
|
3056
|
+
if (typeof e == "string" ? (y = e, e = 0, u = this.length) : typeof u == "string" && (y = u, u = this.length), y !== void 0 && typeof y != "string")
|
|
3057
3057
|
throw new TypeError("encoding must be a string");
|
|
3058
|
-
if (typeof
|
|
3059
|
-
throw new TypeError("Unknown encoding: " +
|
|
3058
|
+
if (typeof y == "string" && !a.isEncoding(y))
|
|
3059
|
+
throw new TypeError("Unknown encoding: " + y);
|
|
3060
3060
|
if (t.length === 1) {
|
|
3061
3061
|
var P = t.charCodeAt(0);
|
|
3062
|
-
(
|
|
3062
|
+
(y === "utf8" && P < 128 || y === "latin1") && (t = P);
|
|
3063
3063
|
}
|
|
3064
3064
|
} else
|
|
3065
3065
|
typeof t == "number" ? t = t & 255 : typeof t == "boolean" && (t = Number(t));
|
|
@@ -3073,7 +3073,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
3073
3073
|
for (B = e; B < u; ++B)
|
|
3074
3074
|
this[B] = t;
|
|
3075
3075
|
else {
|
|
3076
|
-
var H = a.isBuffer(t) ? t : a.from(t,
|
|
3076
|
+
var H = a.isBuffer(t) ? t : a.from(t, y), G = H.length;
|
|
3077
3077
|
if (G === 0)
|
|
3078
3078
|
throw new TypeError('The value "' + t + '" is invalid for argument "value"');
|
|
3079
3079
|
for (B = 0; B < u - e; ++B)
|
|
@@ -3082,7 +3082,7 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
3082
3082
|
return this;
|
|
3083
3083
|
};
|
|
3084
3084
|
var ut = /[^+/0-9A-Za-z-_]/g;
|
|
3085
|
-
function
|
|
3085
|
+
function yt(o) {
|
|
3086
3086
|
if (o = o.split("=")[0], o = o.trim().replace(ut, ""), o.length < 2)
|
|
3087
3087
|
return "";
|
|
3088
3088
|
for (; o.length % 4 !== 0; )
|
|
@@ -3091,9 +3091,9 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
3091
3091
|
}
|
|
3092
3092
|
function rt(o, t) {
|
|
3093
3093
|
t = t || 1 / 0;
|
|
3094
|
-
for (var e, u = o.length,
|
|
3094
|
+
for (var e, u = o.length, y = null, P = [], B = 0; B < u; ++B) {
|
|
3095
3095
|
if (e = o.charCodeAt(B), e > 55295 && e < 57344) {
|
|
3096
|
-
if (!
|
|
3096
|
+
if (!y) {
|
|
3097
3097
|
if (e > 56319) {
|
|
3098
3098
|
(t -= 3) > -1 && P.push(239, 191, 189);
|
|
3099
3099
|
continue;
|
|
@@ -3101,17 +3101,17 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
3101
3101
|
(t -= 3) > -1 && P.push(239, 191, 189);
|
|
3102
3102
|
continue;
|
|
3103
3103
|
}
|
|
3104
|
-
|
|
3104
|
+
y = e;
|
|
3105
3105
|
continue;
|
|
3106
3106
|
}
|
|
3107
3107
|
if (e < 56320) {
|
|
3108
|
-
(t -= 3) > -1 && P.push(239, 191, 189),
|
|
3108
|
+
(t -= 3) > -1 && P.push(239, 191, 189), y = e;
|
|
3109
3109
|
continue;
|
|
3110
3110
|
}
|
|
3111
|
-
e = (
|
|
3111
|
+
e = (y - 55296 << 10 | e - 56320) + 65536;
|
|
3112
3112
|
} else
|
|
3113
|
-
|
|
3114
|
-
if (
|
|
3113
|
+
y && (t -= 3) > -1 && P.push(239, 191, 189);
|
|
3114
|
+
if (y = null, e < 128) {
|
|
3115
3115
|
if ((t -= 1) < 0)
|
|
3116
3116
|
break;
|
|
3117
3117
|
P.push(e);
|
|
@@ -3150,17 +3150,17 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
3150
3150
|
return t;
|
|
3151
3151
|
}
|
|
3152
3152
|
function lt(o, t) {
|
|
3153
|
-
for (var e, u,
|
|
3154
|
-
e = o.charCodeAt(B), u = e >> 8,
|
|
3153
|
+
for (var e, u, y, P = [], B = 0; B < o.length && !((t -= 2) < 0); ++B)
|
|
3154
|
+
e = o.charCodeAt(B), u = e >> 8, y = e % 256, P.push(y), P.push(u);
|
|
3155
3155
|
return P;
|
|
3156
3156
|
}
|
|
3157
3157
|
function ht(o) {
|
|
3158
|
-
return f.toByteArray(
|
|
3158
|
+
return f.toByteArray(yt(o));
|
|
3159
3159
|
}
|
|
3160
3160
|
function tt(o, t, e, u) {
|
|
3161
|
-
for (var
|
|
3162
|
-
t[
|
|
3163
|
-
return
|
|
3161
|
+
for (var y = 0; y < u && !(y + e >= t.length || y >= o.length); ++y)
|
|
3162
|
+
t[y + e] = o[y];
|
|
3163
|
+
return y;
|
|
3164
3164
|
}
|
|
3165
3165
|
function Q(o, t) {
|
|
3166
3166
|
return o instanceof t || o != null && o.constructor != null && o.constructor.name != null && o.constructor.name === t.name;
|
|
@@ -3170,8 +3170,8 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
3170
3170
|
}
|
|
3171
3171
|
var At = function() {
|
|
3172
3172
|
for (var o = "0123456789abcdef", t = new Array(256), e = 0; e < 16; ++e)
|
|
3173
|
-
for (var u = e * 16,
|
|
3174
|
-
t[u +
|
|
3173
|
+
for (var u = e * 16, y = 0; y < 16; ++y)
|
|
3174
|
+
t[u + y] = o[e] + o[y];
|
|
3175
3175
|
return t;
|
|
3176
3176
|
}();
|
|
3177
3177
|
}, { "base64-js": 29, ieee754: 32 }], 31: [function(n, g, l) {
|
|
@@ -3327,11 +3327,11 @@ Minimum version required to store current data is: ` + Y + `.
|
|
|
3327
3327
|
this.generate();
|
|
3328
3328
|
}
|
|
3329
3329
|
};
|
|
3330
|
-
function ae(
|
|
3330
|
+
function ae(v) {
|
|
3331
3331
|
window.history.replaceState({}, "", window.location.href);
|
|
3332
3332
|
let r = "";
|
|
3333
3333
|
const n = (navigator == null ? void 0 : navigator.userAgent) || "";
|
|
3334
|
-
return n.match("CriOS") ? r = "googlechromes://" : n.match("FxiOS") ? r = "firefox://" : n.match("GSA") && (r = "googleapp://open-url?url="), r + encodeURIComponent(`${window.location.href}#${
|
|
3334
|
+
return n.match("CriOS") ? r = "googlechromes://" : n.match("FxiOS") ? r = "firefox://" : n.match("GSA") && (r = "googleapp://open-url?url="), r + encodeURIComponent(`${window.location.href}#${v}`);
|
|
3335
3335
|
}
|
|
3336
3336
|
const oe = {
|
|
3337
3337
|
name: "BankIdAnswer",
|
|
@@ -3359,42 +3359,42 @@ const oe = {
|
|
|
3359
3359
|
},
|
|
3360
3360
|
computed: {
|
|
3361
3361
|
viewText() {
|
|
3362
|
-
const
|
|
3362
|
+
const v = (r) => this._document.$t(`answerModal.bankId.component.viewText.${r}`);
|
|
3363
3363
|
return {
|
|
3364
3364
|
new: {
|
|
3365
|
-
title:
|
|
3366
|
-
text:
|
|
3367
|
-
spinnerText:
|
|
3365
|
+
title: v("new.title"),
|
|
3366
|
+
text: v("new.text"),
|
|
3367
|
+
spinnerText: v("new.spinnerText")
|
|
3368
3368
|
},
|
|
3369
3369
|
waiting: {
|
|
3370
|
-
title:
|
|
3371
|
-
text:
|
|
3372
|
-
spinnerText:
|
|
3370
|
+
title: v("waiting.title"),
|
|
3371
|
+
text: v("waiting.text"),
|
|
3372
|
+
spinnerText: v("waiting.spinnerText")
|
|
3373
3373
|
},
|
|
3374
3374
|
signing: {
|
|
3375
|
-
title:
|
|
3376
|
-
text:
|
|
3377
|
-
spinnerText:
|
|
3375
|
+
title: v("signing.title"),
|
|
3376
|
+
text: v("signing.text"),
|
|
3377
|
+
spinnerText: v("signing.spinnerText")
|
|
3378
3378
|
},
|
|
3379
3379
|
error: {
|
|
3380
|
-
title:
|
|
3381
|
-
text:
|
|
3380
|
+
title: v("error.title"),
|
|
3381
|
+
text: v("error.text")
|
|
3382
3382
|
},
|
|
3383
3383
|
canceled: {
|
|
3384
|
-
title:
|
|
3385
|
-
text:
|
|
3384
|
+
title: v("canceled.title"),
|
|
3385
|
+
text: v("canceled.text")
|
|
3386
3386
|
}
|
|
3387
3387
|
};
|
|
3388
3388
|
}
|
|
3389
3389
|
},
|
|
3390
3390
|
watch: {
|
|
3391
|
-
isLoading(
|
|
3392
|
-
this.$emit("loading",
|
|
3391
|
+
isLoading(v) {
|
|
3392
|
+
this.$emit("loading", v);
|
|
3393
3393
|
},
|
|
3394
3394
|
$route: {
|
|
3395
3395
|
immediate: !0,
|
|
3396
|
-
handler(
|
|
3397
|
-
|
|
3396
|
+
handler(v) {
|
|
3397
|
+
v != null && v.hash && this.resumePolling(v.hash.slice(1));
|
|
3398
3398
|
}
|
|
3399
3399
|
}
|
|
3400
3400
|
},
|
|
@@ -3405,13 +3405,13 @@ const oe = {
|
|
|
3405
3405
|
this.signInterval && this.stopPolling();
|
|
3406
3406
|
},
|
|
3407
3407
|
methods: {
|
|
3408
|
-
async submit({ answer:
|
|
3408
|
+
async submit({ answer: v }) {
|
|
3409
3409
|
try {
|
|
3410
3410
|
if (this.isLoading = !0, this.demo) {
|
|
3411
3411
|
this.view = "new", await ft(1e3), this.view = "waiting", await ft(1e3), this.view = "signing", await ft(1e3), this.onComplete();
|
|
3412
3412
|
return;
|
|
3413
3413
|
}
|
|
3414
|
-
const { id: r, autoStartToken: n, qrCodeData: g } = await
|
|
3414
|
+
const { id: r, autoStartToken: n, qrCodeData: g } = await v({ body: { isAccepted: !0 } });
|
|
3415
3415
|
n && (this.autoStartToken = n), g && (this.qrCode = g), this.signAnswerId = r, this.startPolling(), this.isMobile && this.triggerAutoStart();
|
|
3416
3416
|
return;
|
|
3417
3417
|
} catch (r) {
|
|
@@ -3422,10 +3422,10 @@ const oe = {
|
|
|
3422
3422
|
if (!this.signAnswerId)
|
|
3423
3423
|
throw Error("Missing signAnswerId");
|
|
3424
3424
|
try {
|
|
3425
|
-
const { data:
|
|
3426
|
-
|
|
3427
|
-
} catch (
|
|
3428
|
-
this.onError(
|
|
3425
|
+
const { data: v } = await Ft.get(this.signAnswerId);
|
|
3426
|
+
v.qrCodeData && (this.qrCode = v.qrCodeData), v.status === "completed" ? this.onComplete() : v.status === "canceled" ? this.onCanceled() : this.view = v.status;
|
|
3427
|
+
} catch (v) {
|
|
3428
|
+
this.onError(v);
|
|
3429
3429
|
}
|
|
3430
3430
|
},
|
|
3431
3431
|
async startPolling() {
|
|
@@ -3442,12 +3442,12 @@ const oe = {
|
|
|
3442
3442
|
onCanceled() {
|
|
3443
3443
|
this.stopPolling(), this.view = "canceled", this.errorMessage = this._document.$t("answerModal.bankId.component.signingInterrupted");
|
|
3444
3444
|
},
|
|
3445
|
-
onError(
|
|
3445
|
+
onError(v) {
|
|
3446
3446
|
var n, g;
|
|
3447
|
-
if (this.stopPolling(),
|
|
3448
|
-
throw
|
|
3447
|
+
if (this.stopPolling(), v.httpStatusCode === 409)
|
|
3448
|
+
throw v;
|
|
3449
3449
|
this.$emit("error"), this.view = "error";
|
|
3450
|
-
const r = (g = (n =
|
|
3450
|
+
const r = (g = (n = v.response) == null ? void 0 : n.data) == null ? void 0 : g.errorCode;
|
|
3451
3451
|
switch (r) {
|
|
3452
3452
|
case 9001:
|
|
3453
3453
|
case 9002:
|
|
@@ -3456,30 +3456,30 @@ const oe = {
|
|
|
3456
3456
|
case 9005:
|
|
3457
3457
|
case 9006:
|
|
3458
3458
|
case 9007:
|
|
3459
|
-
kt.warn(
|
|
3459
|
+
kt.warn(v);
|
|
3460
3460
|
break;
|
|
3461
3461
|
case 9009:
|
|
3462
3462
|
this.$emit("complete");
|
|
3463
3463
|
break;
|
|
3464
3464
|
default:
|
|
3465
|
-
Ct(
|
|
3465
|
+
Ct(v, { showMessage: !1 });
|
|
3466
3466
|
}
|
|
3467
3467
|
this.errorMessage = this.$i18n.te(`errors:${r}`) && this._document.$t(`answerModal.bankId.component.errors.${r}`) || this._document.$t("answerModal.bankId.component.defaultError");
|
|
3468
3468
|
},
|
|
3469
|
-
resumePolling(
|
|
3470
|
-
this.view = "signing", this.signAnswerId =
|
|
3469
|
+
resumePolling(v) {
|
|
3470
|
+
this.view = "signing", this.signAnswerId = v, this.startPolling();
|
|
3471
3471
|
const r = new URL(window.location.href);
|
|
3472
3472
|
r.search = "", r.hash = "", window.history.replaceState({}, "", r.href);
|
|
3473
3473
|
},
|
|
3474
3474
|
triggerAutoStart() {
|
|
3475
3475
|
if (!this.autoStartToken)
|
|
3476
3476
|
return;
|
|
3477
|
-
let
|
|
3477
|
+
let v = "bankid://", r = "null";
|
|
3478
3478
|
if (this.isMobile) {
|
|
3479
3479
|
const g = It(), l = (navigator == null ? void 0 : navigator.userAgent) || (navigator == null ? void 0 : navigator.vendor) || (window == null ? void 0 : window.opera), f = g === "iOS" && (/Version\/[\d\.]+.*Safari/.test(l) || /GSA/.test(l)), d = g === "Android" && /Version\/[\d\.]+.*Chrome/.test(l);
|
|
3480
|
-
(f || d) && (
|
|
3480
|
+
(f || d) && (v = "https://app.bankid.com"), g === "iOS" && (r = ae(this.signAnswerId));
|
|
3481
3481
|
}
|
|
3482
|
-
const n = `${
|
|
3482
|
+
const n = `${v}/?autostarttoken=${this.autoStartToken}&redirect=${r}`;
|
|
3483
3483
|
this.isMobile ? document.location = n : document.getElementById("autoStartFrame").src = n;
|
|
3484
3484
|
}
|
|
3485
3485
|
}
|
|
@@ -3493,7 +3493,7 @@ var se = function() {
|
|
|
3493
3493
|
color: { dark: "#000000" }
|
|
3494
3494
|
} } }) : r._e()] : r._e(), n("Animation", { staticClass: "w-full" }, [n("div", { key: "a", staticClass: "text-sm text-gray-500 pt-4 min-h-[20px]", domProps: { textContent: r._s((g = r.viewText[r.view]) == null ? void 0 : g.spinnerText) } }), !r.isMobile && ["new", "waiting"].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"].includes(r.view) ? r._e() : n("div", [n("transition", { attrs: { name: "pop-in" } }, [n("div", { staticClass: "bankid-popup", on: { click: () => {
|
|
3495
3495
|
r.view = "form", r.isLoading = !1;
|
|
3496
|
-
} } }, [n("div", { staticClass: "flex flex-col items-center justify-center", staticStyle: { "background-color": "#183e4f", padding: "2.
|
|
3496
|
+
} } }, [n("div", { staticClass: "flex flex-col items-center justify-center", staticStyle: { "background-color": "#183e4f", padding: "calc(2.5 * var(--rem)) calc(3 * var(--rem)) calc(2 * 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 w-full text-center", staticStyle: { padding: "calc(3 * var(--rem)) calc(2 * 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) {
|
|
3497
3497
|
r.view = "form";
|
|
3498
3498
|
} } }, [r._v(" " + r._s(r._document.$t("tryAgain")) + " ")])] : r._e()], 2)])])], 1)], 2);
|
|
3499
3499
|
}, ue = [], ce = /* @__PURE__ */ ot(
|
|
@@ -3502,7 +3502,7 @@ var se = function() {
|
|
|
3502
3502
|
ue,
|
|
3503
3503
|
!1,
|
|
3504
3504
|
null,
|
|
3505
|
-
"
|
|
3505
|
+
"96231edf",
|
|
3506
3506
|
null,
|
|
3507
3507
|
null
|
|
3508
3508
|
);
|
|
@@ -3522,20 +3522,20 @@ const he = {
|
|
|
3522
3522
|
};
|
|
3523
3523
|
},
|
|
3524
3524
|
methods: {
|
|
3525
|
-
async submit({ update:
|
|
3525
|
+
async submit({ update: v, answer: r }) {
|
|
3526
3526
|
const n = [];
|
|
3527
3527
|
this.rejectReason && n.push({
|
|
3528
3528
|
key: "unclear-other",
|
|
3529
3529
|
category: "misc",
|
|
3530
3530
|
description: this.rejectReason,
|
|
3531
3531
|
sentAt: this._document.lastSentAt
|
|
3532
|
-
}), this.demo || (await
|
|
3532
|
+
}), this.demo || (await v({ body: { "data.rejectReasons": n } }), await r({ body: { isAccepted: !1 } })), this.$emit("complete");
|
|
3533
3533
|
}
|
|
3534
3534
|
}
|
|
3535
3535
|
};
|
|
3536
3536
|
var fe = function() {
|
|
3537
3537
|
var r = this, n = r._self._c;
|
|
3538
|
-
return n("CInput", { staticStyle: { "margin-bottom": "1.
|
|
3538
|
+
return n("CInput", { staticStyle: { "margin-bottom": "calc(1.5 * var(--rem))" }, attrs: { placeholder: r._document.$t("answerModal.decline.component.inputPlaceholder"), type: "textarea", filled: "", "custom-class": "decline-input" }, model: { value: r.rejectReason, callback: function(g) {
|
|
3539
3539
|
r.rejectReason = g;
|
|
3540
3540
|
}, expression: "rejectReason" } });
|
|
3541
3541
|
}, de = [], ge = /* @__PURE__ */ ot(
|
|
@@ -3597,22 +3597,22 @@ const me = {
|
|
|
3597
3597
|
return this._document.isPreview && !this.isSender;
|
|
3598
3598
|
},
|
|
3599
3599
|
signee() {
|
|
3600
|
-
var
|
|
3600
|
+
var v, r;
|
|
3601
3601
|
return this.isSender ? this._document.senderClient : this._document.isPreview ? {
|
|
3602
3602
|
socialNo: "198710126130",
|
|
3603
3603
|
email: "richard@piedpier.com",
|
|
3604
3604
|
name: "Richard Hendricks",
|
|
3605
3605
|
answerMethod: {
|
|
3606
|
-
accept: (r = (
|
|
3606
|
+
accept: (r = (v = this._document.data) == null ? void 0 : v.defaultAnswerMethod) == null ? void 0 : r.accept
|
|
3607
3607
|
}
|
|
3608
3608
|
} : this._document.viewer;
|
|
3609
3609
|
},
|
|
3610
3610
|
answerMethod() {
|
|
3611
|
-
var
|
|
3612
|
-
return (
|
|
3611
|
+
var v;
|
|
3612
|
+
return (v = this.signee.answerMethod) == null ? void 0 : v.accept;
|
|
3613
3613
|
},
|
|
3614
3614
|
successStrings() {
|
|
3615
|
-
const
|
|
3615
|
+
const v = this.signee.email ? this._document.$t(`answerModal.${this.answerType}.success.text`, { email: this.signee.email }) : this._document.$t(`answerModal.${this.answerType}.success.textFallback`), r = this.signee.email ? this._document.$t("answerModal.successTextSingle", { email: this.signee.email }) : this._document.$t("answerModal.successTextFallbackSingle"), n = this._document.remainingSignatures === 0 ? r : v;
|
|
3616
3616
|
return {
|
|
3617
3617
|
title: this._document.$t(`answerModal.${this.answerType}.success.title`),
|
|
3618
3618
|
text: n
|
|
@@ -3635,16 +3635,16 @@ const me = {
|
|
|
3635
3635
|
if (!this.isPosting) {
|
|
3636
3636
|
this.isPosting = !0;
|
|
3637
3637
|
try {
|
|
3638
|
-
const { submit:
|
|
3639
|
-
if (typeof
|
|
3638
|
+
const { submit: v } = this.$refs.answerComponent;
|
|
3639
|
+
if (typeof v != "function")
|
|
3640
3640
|
throw Error("Missing answer type submit method");
|
|
3641
|
-
await
|
|
3641
|
+
await v({
|
|
3642
3642
|
update: (r) => this.putCurrentDoc({ includeChanges: !0, ...r }),
|
|
3643
3643
|
answer: this.answerCurrentDoc,
|
|
3644
3644
|
...this.isSender ? this.senderActions : null
|
|
3645
3645
|
});
|
|
3646
|
-
} catch (
|
|
3647
|
-
this.isPosting = !1,
|
|
3646
|
+
} catch (v) {
|
|
3647
|
+
this.isPosting = !1, v.httpStatusCode === 409 ? this.page = "versionError" : Ct(v);
|
|
3648
3648
|
}
|
|
3649
3649
|
}
|
|
3650
3650
|
},
|
|
@@ -3661,9 +3661,9 @@ const me = {
|
|
|
3661
3661
|
setFixedHeight() {
|
|
3662
3662
|
this.$el.style.minHeight = `${this.$el.offsetHeight}px`;
|
|
3663
3663
|
},
|
|
3664
|
-
minimizeHeight(
|
|
3664
|
+
minimizeHeight(v, r) {
|
|
3665
3665
|
nt({
|
|
3666
|
-
targets:
|
|
3666
|
+
targets: v,
|
|
3667
3667
|
height: 0,
|
|
3668
3668
|
flexGrow: [1, 0],
|
|
3669
3669
|
opacity: [1, 0],
|
|
@@ -3678,9 +3678,9 @@ const me = {
|
|
|
3678
3678
|
easing: "easeOutQuint"
|
|
3679
3679
|
});
|
|
3680
3680
|
},
|
|
3681
|
-
enterAnim(
|
|
3681
|
+
enterAnim(v, r) {
|
|
3682
3682
|
nt({
|
|
3683
|
-
targets:
|
|
3683
|
+
targets: v.querySelectorAll(".stagger-anim"),
|
|
3684
3684
|
opacity: [0, 1],
|
|
3685
3685
|
delay: nt.stagger(180, { start: 800 }),
|
|
3686
3686
|
duration: 340,
|
|
@@ -3688,9 +3688,9 @@ const me = {
|
|
|
3688
3688
|
complete: r
|
|
3689
3689
|
});
|
|
3690
3690
|
},
|
|
3691
|
-
leaveAnim(
|
|
3692
|
-
|
|
3693
|
-
targets:
|
|
3691
|
+
leaveAnim(v, r) {
|
|
3692
|
+
v.style.position = "absolute", nt({
|
|
3693
|
+
targets: v.querySelectorAll(".stagger-anim"),
|
|
3694
3694
|
opacity: 0,
|
|
3695
3695
|
delay: nt.stagger(200),
|
|
3696
3696
|
duration: 200,
|
|
@@ -3700,7 +3700,7 @@ const me = {
|
|
|
3700
3700
|
}
|
|
3701
3701
|
}
|
|
3702
3702
|
};
|
|
3703
|
-
var
|
|
3703
|
+
var ve = function() {
|
|
3704
3704
|
var g;
|
|
3705
3705
|
var r = this, n = r._self._c;
|
|
3706
3706
|
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("portal", { key: "previewChip", attrs: { to: "modal" } }, [n("transition", { attrs: { name: "fade-in", appear: "" } }, [r.isDemo ? n("div", { staticClass: "preview-chip" }, [n("span", { domProps: { textContent: r._s(r.$t("previewMode")) } })]) : r._e()])], 1), 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) {
|
|
@@ -3709,16 +3709,16 @@ var ye = function() {
|
|
|
3709
3709
|
r.actionInvalid = l;
|
|
3710
3710
|
}, loading: function(l) {
|
|
3711
3711
|
r.isPosting = l;
|
|
3712
|
-
}, 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 flex-grow w-full 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 flex-col flex-grow w-full", staticStyle: { height: "100%" } }, [n("transition", { attrs: { css: !1 }, on: { leave: r.minimizeHeight } }, [r.isFeedbackInitiated ? r._e() : n("div", { staticClass: "flex flex-col items-center justify-center flex-grow w-full", staticStyle: { overflow: "hidden" } }, [n("div", { staticClass: "flex flex-col items-center justify-center w-full root-padding", staticStyle: { height: "100%" } }, [n("div", { staticClass: "a-title stagger-anim", staticStyle: { padding: "2.
|
|
3712
|
+
}, 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 flex-grow w-full 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 flex-col flex-grow w-full", staticStyle: { height: "100%" } }, [n("transition", { attrs: { css: !1 }, on: { leave: r.minimizeHeight } }, [r.isFeedbackInitiated ? r._e() : n("div", { staticClass: "flex flex-col items-center justify-center flex-grow w-full", staticStyle: { overflow: "hidden" } }, [n("div", { staticClass: "flex flex-col items-center justify-center w-full root-padding", 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, demo: r.isDemo, _document: r._document }, on: { page: () => r.isFeedbackInitiated = !0, close: function(l) {
|
|
3713
3713
|
return r.$emit("close");
|
|
3714
3714
|
} } })], 1) : r.page === "versionError" ? n("div", { key: "versionError", staticClass: "flex flex-col items-center justify-center flex-grow text-center root-padding" }, [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);
|
|
3715
|
-
},
|
|
3715
|
+
}, ye = [], we = /* @__PURE__ */ ot(
|
|
3716
3716
|
me,
|
|
3717
|
-
ye,
|
|
3718
3717
|
ve,
|
|
3718
|
+
ye,
|
|
3719
3719
|
!1,
|
|
3720
3720
|
null,
|
|
3721
|
-
"
|
|
3721
|
+
"b5240b4a",
|
|
3722
3722
|
null,
|
|
3723
3723
|
null
|
|
3724
3724
|
);
|