@cling-se/widget 0.9.3 → 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.
Files changed (145) hide show
  1. package/dist/{AddClientCallout-746899d9.js → AddClientCallout-e4e9874f.js} +5 -5
  2. package/dist/{AnswerModal-fdfea0f8.js → AnswerModal-acd3b9c0.js} +248 -248
  3. package/dist/{AttachmentItem-5671c64d.js → AttachmentItem-34e91526.js} +8 -8
  4. package/dist/{BaseDatePicker-a9240306.js → BaseDatePicker-581297bc.js} +43 -43
  5. package/dist/{BaseInput-d3c3688b.js → BaseInput-29d88150.js} +1 -1
  6. package/dist/{BaseUpload-8e7a2b72.js → BaseUpload-84d3b68b.js} +27 -26
  7. package/dist/{BlockMedia-b613a2a4.js → BlockMedia-319932b8.js} +1 -1
  8. package/dist/{CCallout-e9ff903a.js → CCallout-88ae9c08.js} +6 -6
  9. package/dist/{CDropdownItem-05d84f95.js → CDropdownItem-d46bf062.js} +76 -75
  10. package/dist/{CField-cd4dcae9.js → CField-be05883b.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-383db616.js → CSlider.vue_vue_type_style_index_0_lang-df4c839e.js} +1 -1
  12. package/dist/{ClientAutocomplete-421a2216.js → ClientAutocomplete-68f76bfc.js} +4 -4
  13. package/dist/{ClientModal-11341b1c.js → ClientModal-73086005.js} +16 -16
  14. package/dist/{ColorPicker-f90939b5.js → ColorPicker-11ee76f0.js} +2 -2
  15. package/dist/{CompanyModal-2bfd21b8.js → CompanyModal-0fec4480.js} +8 -8
  16. package/dist/{ContentWrapper-4aae35b2.js → ContentWrapper-fba78b6f.js} +19 -19
  17. package/dist/{CoverBlockSettings-1f917be3.js → CoverBlockSettings-7ffa15b1.js} +19 -19
  18. package/dist/{DocForm-0891c6b2.js → DocForm-e56b3a0c.js} +1208 -832
  19. package/dist/{DocFormSend-2b35999d.js → DocFormSend-cdc4eaf8.js} +14 -14
  20. package/dist/{DocModalBase-225e2f2d.js → DocModalBase-e473b946.js} +4 -4
  21. package/dist/DocPrint-6d8b1f14.js +222 -0
  22. package/dist/{DocReceipt-1391c17a.js → DocReceipt-c8a543f8.js} +1 -1
  23. package/dist/{DocSendReminder-c488842d.js → DocSendReminder-70effa09.js} +1 -1
  24. package/dist/{DocTextEditor-2538e1ab.js → DocTextEditor-cce51e7c.js} +19 -19
  25. package/dist/{DocTimeline-69ada0de.js → DocTimeline-c2cbd773.js} +11 -11
  26. package/dist/{DocumentClient-74b8f25b.js → DocumentClient-611c8c1c.js} +8 -6
  27. package/dist/{formValidationMixin-df38771c.js → DocumentLayout-86c367d1.js} +1617 -1709
  28. package/dist/{DocumentLogotype-e89b53fb.js → DocumentLogotype-441a9fdb.js} +3 -3
  29. package/dist/{EmbedInput-b7fefe5e.js → EmbedInput-a5938c25.js} +2 -2
  30. package/dist/{EmbedSettings-4957252f.js → EmbedSettings-141ab53c.js} +10 -10
  31. package/dist/ErrorCallout-7dea37df.js +30 -0
  32. package/dist/{FilePreviewModal-75693619.js → FilePreviewModal-875fd8c9.js} +8 -7
  33. package/dist/{HeaderSettings-9b69eada.js → HeaderSettings-0364b6df.js} +29 -29
  34. package/dist/{ImageSelectModal-94d4dc7f.js → ImageSelectModal-2d3a69db.js} +11 -11
  35. package/dist/{ImageUploadWrapper-a144b042.js → ImageUploadWrapper-7c70045f.js} +4 -4
  36. package/dist/{Index-023c3119.js → Index-006a27da.js} +10 -10
  37. package/dist/{Index-ec8d534f.js → Index-0313a553.js} +2 -2
  38. package/dist/{Index-4563d3fa.js → Index-06bd31c3.js} +26 -26
  39. package/dist/Index-07ae23ce.js +54 -0
  40. package/dist/{Index-62936c19.js → Index-0f4c9eb4.js} +34 -34
  41. package/dist/{Index-3dff19dd.js → Index-1e0cf88a.js} +10 -9
  42. package/dist/{Index-37a9183b.js → Index-1fc54467.js} +4 -4
  43. package/dist/{Index-abb8c6e4.js → Index-205dd368.js} +14 -14
  44. package/dist/{Index-b7def77a.js → Index-245f88ff.js} +10 -10
  45. package/dist/{Index-9a243eb8.js → Index-28bdb859.js} +2 -2
  46. package/dist/{Index-90492f19.js → Index-2a0c06b1.js} +3 -3
  47. package/dist/{Index-2cb8fa22.js → Index-3d84a32c.js} +9 -9
  48. package/dist/{Index-9ffe9766.js → Index-418c517f.js} +4 -4
  49. package/dist/{Index-f9b5f03c.js → Index-5196628a.js} +27 -27
  50. package/dist/{Index-dbe97658.js → Index-532b8844.js} +2 -2
  51. package/dist/{Index-96f39afc.js → Index-53348c92.js} +4 -4
  52. package/dist/{Index-cec7d4f1.js → Index-54962a1e.js} +15 -15
  53. package/dist/{Index-a37beb03.js → Index-5de564da.js} +2 -2
  54. package/dist/{Index-d68a28da.js → Index-6f957f7e.js} +15 -15
  55. package/dist/{Index-304c45be.js → Index-710d1132.js} +8 -8
  56. package/dist/{Index-a86ea774.js → Index-7a2f20fd.js} +9 -9
  57. package/dist/{Index-693005f0.js → Index-818ef607.js} +4 -4
  58. package/dist/Index-875e7805.js +79 -0
  59. package/dist/{Index-f453850f.js → Index-889b6a45.js} +18 -19
  60. package/dist/{Index-a554b58c.js → Index-8975cd1e.js} +4 -4
  61. package/dist/{Index-97d1f2f3.js → Index-affdb14c.js} +11 -10
  62. package/dist/{Index-3ee2e944.js → Index-b80ab22f.js} +2 -2
  63. package/dist/{Index-53da7be8.js → Index-ba48e68b.js} +8 -8
  64. package/dist/{Index-35387450.js → Index-beb43a1a.js} +95 -95
  65. package/dist/{Index-00ef9241.js → Index-c746dc64.js} +13 -13
  66. package/dist/{Index-1bafafca.js → Index-cf54ef50.js} +2 -2
  67. package/dist/{Index-4440fe3d.js → Index-dbf5c34c.js} +4 -4
  68. package/dist/{Index-bcc478b3.js → Index-fa01557d.js} +12 -12
  69. package/dist/{Index-78f13416.js → Index-ff60354c.js} +7 -7
  70. package/dist/{InputToggleRow-68320d9f.js → InputToggleRow-c520bed9.js} +5 -5
  71. package/dist/IsPremiumPreStep-d4739d6a.js +2443 -0
  72. package/dist/{MediaWrapper-c50879c2.js → MediaWrapper-722723f7.js} +3 -3
  73. package/dist/{NotBindingText-8f2d9244.js → NotBindingText-613399b6.js} +2 -2
  74. package/dist/{PackageGroup-2c49e99b.js → PackageGroup-1085c76c.js} +56 -56
  75. package/dist/{PdfTerms-94153a5f.js → PdfTerms-f98a6f75.js} +8 -7
  76. package/dist/{PdfViewer-701ad40e.js → PdfViewer-096bbf00.js} +5 -4
  77. package/dist/{PlainHtml-04a6d7f9.js → PlainHtml-752bc8d6.js} +1 -1
  78. package/dist/PriceHeader-e25df5eb.js +337 -0
  79. package/dist/{SearchApi-ffe5b697.js → SearchApi-20629627.js} +2 -2
  80. package/dist/{TermsSettings-b1bf19e9.js → TermsSettings-4cc4a9ee.js} +11 -11
  81. package/dist/{ThemeColorRow-913497f6.js → ThemeColorRow-c292abc6.js} +3 -3
  82. package/dist/{ToggleBinding-6518935d.js → ToggleBinding-406175fb.js} +3 -3
  83. package/dist/{UploadModal-3c399d25.js → UploadModal-0cbd0c8f.js} +16 -16
  84. package/dist/{VideoPlayerInput-b54845a4.js → VideoPlayerInput-d7b5fe4b.js} +3 -3
  85. package/dist/{VideoPlayerSettings-496e9e79.js → VideoPlayerSettings-51c75143.js} +12 -12
  86. package/dist/VideoSelectModal-e34cde4b.js +111 -0
  87. package/dist/{answerDocumentMixin-0e5e4dbb.js → answerDocumentMixin-574c5304.js} +3 -3
  88. package/dist/assets/article-options-10291.png +0 -0
  89. package/dist/assets/bg-base-13048.png +0 -0
  90. package/dist/assets/bg-pro-81076.png +0 -0
  91. package/dist/assets/bg-start-20630.png +0 -0
  92. package/dist/assets/blank-10674.png +0 -0
  93. package/dist/assets/block-options-17322.png +0 -0
  94. package/dist/assets/columnGallery.image-24825.png +0 -0
  95. package/dist/assets/doc-send-94456.png +0 -0
  96. package/dist/assets/drag-block-17194.png +0 -0
  97. package/dist/assets/headerCircularGradient.image-13878.png +0 -0
  98. package/dist/assets/roiCalculator.image-14704.png +0 -0
  99. package/dist/assets/text-bubble-53861.png +0 -0
  100. package/dist/{cssMode-c0865919.js → cssMode-eda08630.js} +19 -15
  101. package/dist/dom-068d1a7b.js +59 -0
  102. package/dist/{focusDrawerMixin-298861bc.js → focusDrawerMixin-72f8dd7a.js} +1 -1
  103. package/dist/{formComponentsInstall-1be6791d.js → formComponentsInstall-3f1c6477.js} +40 -40
  104. package/dist/formValidationMixin-d4e84872.js +49 -0
  105. package/dist/{freemarker2-85dde97c.js → freemarker2-42cdfba5.js} +23 -19
  106. package/dist/{handlebars-6aa1e52b.js → handlebars-b4515777.js} +15 -11
  107. package/dist/{html-f0c735cd.js → html-ea5d1845.js} +18 -14
  108. package/dist/{htmlMode-7b3bd7c9.js → htmlMode-1cc3531d.js} +23 -19
  109. package/dist/{index-1ef6f423.js → index-07377b76.js} +45 -45
  110. package/dist/index-676b9274.js +17 -0
  111. package/dist/{index-431938de.js → index-762349d7.js} +7 -7
  112. package/dist/{index-30808a2c.js → index-7adda710.js} +31 -31
  113. package/dist/index.es.js +8 -8
  114. package/dist/index.umd.js +537 -533
  115. package/dist/{javascript-9c54ad9e.js → javascript-185ef2e0.js} +15 -11
  116. package/dist/{jsonMode-1d1176fa.js → jsonMode-59ea4e99.js} +23 -19
  117. package/dist/{liquid-0738c73d.js → liquid-517f2a7c.js} +18 -14
  118. package/dist/{main-2d9b8259.js → main-95207159.js} +15376 -12887
  119. package/dist/{mapFormMixin-308bbdab.js → mapFormMixin-a245a297.js} +1 -1
  120. package/dist/{publicSenderState-9eecb11f.js → publicSenderState-bea5980b.js} +1 -1
  121. package/dist/{python-588c9e64.js → python-eb6703d8.js} +15 -11
  122. package/dist/{razor-fbaa1d21.js → razor-4c5b7deb.js} +22 -18
  123. package/dist/simplebar.min-97b539d6.js +71 -0
  124. package/dist/style.css +2 -2
  125. package/dist/template-b3af7583.js +528 -0
  126. package/dist/{throttle-d7bed81a.js → throttle-a0ce8f66.js} +2 -2
  127. package/dist/{tinycolor-ef496244.js → tinycolor-65e7dc2e.js} +1 -1
  128. package/dist/{FormInputRow-09d450e3.js → tippy.esm-3c111ba9.js} +285 -285
  129. package/dist/{tsMode-c1de8e10.js → tsMode-a4a0e653.js} +19 -15
  130. package/dist/{typescript-737827aa.js → typescript-aeab7849.js} +15 -11
  131. package/dist/{utils-69c41ae9.js → utils-580c7144.js} +1 -1
  132. package/dist/{vuedraggable.umd-67b8cddf.js → vuedraggable.umd-2c22e5f8.js} +41 -41
  133. package/dist/{xml-30e811a1.js → xml-098907e6.js} +18 -14
  134. package/package.json +3 -2
  135. package/stats.html +1 -1
  136. package/vite-plugin-library-asset-external/index.js +134 -0
  137. package/dist/ErrorCallout-42e45ec0.js +0 -30
  138. package/dist/Index-42e26b46.js +0 -79
  139. package/dist/Index-f2b66b79.js +0 -47
  140. package/dist/IsPremiumPreStep-0c7032a3.js +0 -1919
  141. package/dist/PriceHeader-7f92d5a7.js +0 -336
  142. package/dist/VideoSelectModal-3a566398.js +0 -111
  143. package/dist/index-6d08eac3.js +0 -14
  144. package/dist/simplebar.min-75960401.js +0 -2429
  145. package/dist/template-b877debf.js +0 -526
@@ -1,12 +1,12 @@
1
1
  import { a as nt } from "./anime.es-e284c852.js";
2
- import { aa as St, x as Ct, n as ot, ab as Tt, ac as ft, ad as Ft, ae as kt, af as It, g as xt } from "./main-2d9b8259.js";
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-308bbdab.js";
5
- import { C as Rt } from "./CField-cd4dcae9.js";
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 y = window.location.host.split(".");
9
- return y && y[0];
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: y, data: r }) {
41
+ async submitFeedback({ type: v, data: r }) {
42
42
  if (!this.demo && !this.publicId)
43
43
  throw Error("Missing param publicId");
44
- if (!y)
44
+ if (!v)
45
45
  throw Error("Missing param type");
46
- if (!Ut.includes(y))
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: y, data: r }), y === "enjoyedExperience" && !r.value && (n = "negative"), y === "whatToImprove" && (n = "negative.success"), $t && n !== "negative" && (n = "custom");
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(y) {
60
- if (this.$emit("page", y), y === "positive" || y === "negative") {
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 = y;
62
+ this.page = v;
63
63
  }, 2e3);
64
64
  return;
65
65
  }
66
- this.page = y;
66
+ this.page = v;
67
67
  },
68
68
  startAnimation() {
69
- const y = this.$refs.feedbackBg;
70
- y.gradOneXPos = 0, y.gradOneYPos = 0, y.gradTwoXPos = 80, y.gradTwoYPos = 20, y.gradThreeXPos = 20, y.gradThreeYPos = 80, y.gradFourXPos = 80, y.gradFourYPos = 80, nt({
71
- targets: y,
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
- y.style.setProperty("--gradOneXPos", `${y.gradOneXPos}%`), y.style.setProperty("--gradOneYPos", `${y.gradOneYPos}%`), y.style.setProperty("--gradTwoXPos", `${y.gradTwoXPos}%`), y.style.setProperty("--gradTwoYPos", `${y.gradTwoYPos}%`), y.style.setProperty("--gradThreeXPos", `${y.gradThreeXPos}%`), y.style.setProperty("--gradThreeYPos", `${y.gradThreeYPos}%`), y.style.setProperty("--gradFourXPos", `${y.gradFourXPos}%`), y.style.setProperty("--gradFourYPos", `${y.gradFourYPos}%`);
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(y, r) {
90
+ leave(v, r) {
91
91
  nt({
92
- targets: y,
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(y, r) {
101
+ enter(v, r) {
102
102
  nt({
103
- targets: y,
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.5rem", "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) {
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.75rem" }, attrs: { "icon-left": "thumbsup", size: "small", pattern: "secondary" }, on: { click: function(g) {
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
- "40c36708",
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(y, r = 250) {
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 = y.apply(f, d), g || (f = null, d = []);
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 = y.apply(f, d), g || (f = null, d = [])) : g || (g = window.setTimeout(c, a)), 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: (y) => ["text", "draw"].includes(y)
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(y) {
497
- this.drawText(y);
496
+ text(v) {
497
+ this.drawText(v);
498
498
  }
499
499
  },
500
500
  mounted() {
501
- const { options: y, defaultOptions: r } = this, n = this.$refs.signaturePadCanvas;
501
+ const { options: v, defaultOptions: r } = this, n = this.$refs.signaturePadCanvas;
502
502
  this.signaturePad = new Gt(n, {
503
503
  ...r,
504
- ...y
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 y = this.$refs.signaturePadCanvas, r = Math.max(window.devicePixelRatio || 1, 1);
520
- if (y.width = y.offsetWidth * r, y.height = y.offsetHeight * r, y.getContext("2d").scale(r, r), this.signaturePad.clear(), this.signatureData = "", this.type === "draw") {
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(y = {}) {
526
+ saveSignature(v = {}) {
527
527
  const {
528
528
  type: r = "image/png",
529
529
  trim: n = !0,
530
530
  encoderOptions: g
531
- } = y || {}, l = { isEmpty: !1, data: void 0 };
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: y } = this, r = y.toData();
550
- r && y.fromData(r.slice(0, -1));
549
+ const { signaturePad: v } = this, r = v.toData();
550
+ r && v.fromData(r.slice(0, -1));
551
551
  },
552
- drawText(y) {
553
- this.signaturePad.fromText(y, {
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(...y) {
561
- return this.signaturePad.fromText(...y);
560
+ fromText(...v) {
561
+ return this.signaturePad.fromText(...v);
562
562
  },
563
- fromDataURL(...y) {
564
- return this.signaturePad.fromDataURL(...y);
563
+ fromDataURL(...v) {
564
+ return this.signaturePad.fromDataURL(...v);
565
565
  },
566
- fromData(...y) {
567
- return this.signaturePad.fromData(...y);
566
+ fromData(...v) {
567
+ return this.signaturePad.fromData(...v);
568
568
  },
569
- toData(...y) {
570
- return this.signaturePad.toData(...y);
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(y) {
584
+ trimCanvas(v) {
585
585
  const r = document.createElement("canvas"), n = r.getContext("2d");
586
- r.width = y.width, r.height = y.height, n.drawImage(y, 0, 0);
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(y) {
600
+ render(v) {
601
601
  const { width: r, height: n, customStyle: g } = this;
602
- return y(
602
+ return v(
603
603
  "div",
604
604
  {
605
605
  style: {
@@ -609,7 +609,7 @@ const Vt = {
609
609
  }
610
610
  },
611
611
  [
612
- y("canvas", {
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(y) {
657
- this.reset(), this.$refs.signaturePad && y === "text" && this.focusName();
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(y) {
667
- this.$emit("invalid", y);
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 y = { type: "image/png", trim: !0 };
683
- this.mode === "draw" && (y = { type: "image/svg+xml", trim: !1 });
684
- const { isEmpty: r, data: n } = this.$refs.signaturePad ? this.$refs.signaturePad.saveSignature(y) : {};
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: y }) {
689
+ async submit({ answer: v }) {
690
690
  if (!this.demo) {
691
691
  const r = this.getSignatureData();
692
- await y({ body: { isAccepted: !0, signatureDataURL: r } });
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(y, r) {
740
- return r = { exports: {} }, y(r, r.exports), r.exports;
739
+ function ne(v, r) {
740
+ return r = { exports: {} }, v(r, r.exports), r.exports;
741
741
  }
742
- var _t = ne(function(y, r) {
742
+ var _t = ne(function(v, r) {
743
743
  (function(n) {
744
- y.exports = n();
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), yt = X + 1, J = et - X, q = new b(J), at = 0, it = new Array(N), st = new Array(N), ut = 0, vt = f.from(D.buffer), rt = 0; rt < N; rt++) {
1604
- var ct = rt < j ? X : yt;
1605
- it[rt] = vt.slice(at, at + ct), st[rt] = q.encode(it[rt]), at += ct, ut = Math.max(ut, ct);
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 v = T(o);
2437
- if (v)
2438
- return v;
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), v = u.write(o, t);
2476
- return v !== e && (u = u.slice(0, v)), u;
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, v = e.length, P = 0, B = Math.min(u, v); P < B; ++P)
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], v = e[P];
2520
+ u = t[P], y = e[P];
2521
2521
  break;
2522
2522
  }
2523
- return u < v ? -1 : v < u ? 1 : 0;
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 v = a.allocUnsafe(e), P = 0;
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(v, P), P += B.length;
2555
+ B.copy(y, P), P += B.length;
2556
2556
  }
2557
- return v;
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 v = !1; ; )
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 (v)
2590
+ if (y)
2591
2591
  return u ? -1 : rt(o).length;
2592
- t = ("" + t).toLowerCase(), v = !0;
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 yt(this, t, e);
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, v, P) {
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), v === void 0 && (v = 0), P === void 0 && (P = this.length), e < 0 || u > t.length || v < 0 || P > this.length)
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 (v >= P && e >= u)
2668
+ if (y >= P && e >= u)
2669
2669
  return 0;
2670
- if (v >= P)
2670
+ if (y >= P)
2671
2671
  return -1;
2672
2672
  if (e >= u)
2673
2673
  return 1;
2674
- if (e >>>= 0, u >>>= 0, v >>>= 0, P >>>= 0, this === t)
2674
+ if (e >>>= 0, u >>>= 0, y >>>= 0, P >>>= 0, this === t)
2675
2675
  return 0;
2676
- for (var B = P - v, H = u - e, G = Math.min(B, H), V = this.slice(v, P), Z = t.slice(e, u), K = 0; K < G; ++K)
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, v) {
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 = v ? 0 : o.length - 1), e < 0 && (e = o.length + e), e >= o.length) {
2687
- if (v)
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 (v)
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, v);
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" ? v ? Uint8Array.prototype.indexOf.call(o, t, e) : Uint8Array.prototype.lastIndexOf.call(o, t, e) : A(o, [t], e, u, v);
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, v) {
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 (v) {
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 v = o.length - e;
2742
- u ? (u = Number(u), u > v && (u = v)) : u = v;
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, v) {
2768
+ a.prototype.write = function(t, e, u, y) {
2769
2769
  if (e === void 0)
2770
- v = "utf8", u = this.length, e = 0;
2770
+ y = "utf8", u = this.length, e = 0;
2771
2771
  else if (u === void 0 && typeof e == "string")
2772
- v = e, u = this.length, e = 0;
2772
+ y = e, u = this.length, e = 0;
2773
2773
  else if (isFinite(e))
2774
- e = e >>> 0, isFinite(u) ? (u = u >>> 0, v === void 0 && (v = "utf8")) : (v = u, u = void 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
- v || (v = "utf8");
2782
+ y || (y = "utf8");
2783
2783
  for (var B = !1; ; )
2784
- switch (v) {
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: " + v);
2805
- v = ("" + v).toLowerCase(), B = !0;
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 = [], v = t; v < e; ) {
2819
- var P = o[v], B = null, H = P > 239 ? 4 : P > 223 ? 3 : P > 191 ? 2 : 1;
2820
- if (v + H <= e) {
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[v + 1], (G & 192) === 128 && (K = (P & 31) << 6 | G & 63, K > 127 && (B = K));
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[v + 1], V = o[v + 2], (G & 192) === 128 && (V & 192) === 128 && (K = (P & 15) << 12 | (G & 63) << 6 | V & 63, K > 2047 && (K < 55296 || K > 57343) && (B = K));
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[v + 1], V = o[v + 2], Z = o[v + 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));
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), v += H;
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 v = t; v < e; ++v)
2856
- u += String.fromCharCode(o[v] & 127);
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 v = t; v < e; ++v)
2863
- u += String.fromCharCode(o[v]);
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 v = "", P = t; P < e; ++P)
2870
- v += At[o[P]];
2871
- return v;
2869
+ for (var y = "", P = t; P < e; ++P)
2870
+ y += At[o[P]];
2871
+ return y;
2872
2872
  }
2873
- function yt(o, t, e) {
2874
- for (var u = o.slice(t, e), v = "", P = 0; P < u.length; P += 2)
2875
- v += String.fromCharCode(u[P] + u[P + 1] * 256);
2876
- return v;
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 v = this.subarray(t, e);
2882
- return Object.setPrototypeOf(v, a.prototype), v;
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 v = this[t], P = 1, B = 0; ++B < e && (P *= 256); )
2893
- v += this[t + B] * P;
2894
- return v;
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 v = this[t + --e], P = 1; e > 0 && (P *= 256); )
2898
- v += this[t + --e] * P;
2899
- return v;
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 v = this[t], P = 1, B = 0; ++B < e && (P *= 256); )
2913
- v += this[t + B] * P;
2914
- return P *= 128, v >= P && (v -= Math.pow(2, 8 * e)), v;
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 v = e, P = 1, B = this[t + --v]; v > 0 && (P *= 256); )
2918
- B += this[t + --v] * P;
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, v, P) {
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 > v || t < P)
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, v) {
2952
- if (t = +t, e = e >>> 0, u = u >>> 0, !v) {
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, v) {
2961
- if (t = +t, e = e >>> 0, u = u >>> 0, !v) {
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, v) {
2980
- if (t = +t, e = e >>> 0, !v) {
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, v) {
2989
- if (t = +t, e = e >>> 0, !v) {
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, v, P) {
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, v) {
3015
- return t = +t, e = e >>> 0, v || at(o, t, e, 4), d.write(o, t, e, u, 23, 4), e + 4;
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, v) {
3023
- return t = +t, e = e >>> 0, v || at(o, t, e, 8), d.write(o, t, e, u, 52, 8), e + 8;
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, v) {
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), !v && v !== 0 && (v = this.length), e >= t.length && (e = t.length), e || (e = 0), v > 0 && v < u && (v = u), v === u || t.length === 0 || this.length === 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 (v < 0)
3038
+ if (y < 0)
3039
3039
  throw new RangeError("sourceEnd out of bounds");
3040
- v > this.length && (v = this.length), t.length - e < v - u && (v = t.length - e + u);
3041
- var P = v - u;
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, v);
3044
- else if (this === t && u < e && e < v)
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, v),
3050
+ this.subarray(u, y),
3051
3051
  e
3052
3052
  );
3053
3053
  return P;
3054
- }, a.prototype.fill = function(t, e, u, v) {
3054
+ }, a.prototype.fill = function(t, e, u, y) {
3055
3055
  if (typeof t == "string") {
3056
- if (typeof e == "string" ? (v = e, e = 0, u = this.length) : typeof u == "string" && (v = u, u = this.length), v !== void 0 && typeof v != "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 v == "string" && !a.isEncoding(v))
3059
- throw new TypeError("Unknown encoding: " + v);
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
- (v === "utf8" && P < 128 || v === "latin1") && (t = P);
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, v), G = H.length;
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 vt(o) {
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, v = null, P = [], B = 0; B < u; ++B) {
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 (!v) {
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
- v = e;
3104
+ y = e;
3105
3105
  continue;
3106
3106
  }
3107
3107
  if (e < 56320) {
3108
- (t -= 3) > -1 && P.push(239, 191, 189), v = e;
3108
+ (t -= 3) > -1 && P.push(239, 191, 189), y = e;
3109
3109
  continue;
3110
3110
  }
3111
- e = (v - 55296 << 10 | e - 56320) + 65536;
3111
+ e = (y - 55296 << 10 | e - 56320) + 65536;
3112
3112
  } else
3113
- v && (t -= 3) > -1 && P.push(239, 191, 189);
3114
- if (v = null, e < 128) {
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, v, P = [], B = 0; B < o.length && !((t -= 2) < 0); ++B)
3154
- e = o.charCodeAt(B), u = e >> 8, v = e % 256, P.push(v), P.push(u);
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(vt(o));
3158
+ return f.toByteArray(yt(o));
3159
3159
  }
3160
3160
  function tt(o, t, e, u) {
3161
- for (var v = 0; v < u && !(v + e >= t.length || v >= o.length); ++v)
3162
- t[v + e] = o[v];
3163
- return v;
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, v = 0; v < 16; ++v)
3174
- t[u + v] = o[e] + o[v];
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(y) {
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}#${y}`);
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 y = (r) => this._document.$t(`answerModal.bankId.component.viewText.${r}`);
3362
+ const v = (r) => this._document.$t(`answerModal.bankId.component.viewText.${r}`);
3363
3363
  return {
3364
3364
  new: {
3365
- title: y("new.title"),
3366
- text: y("new.text"),
3367
- spinnerText: y("new.spinnerText")
3365
+ title: v("new.title"),
3366
+ text: v("new.text"),
3367
+ spinnerText: v("new.spinnerText")
3368
3368
  },
3369
3369
  waiting: {
3370
- title: y("waiting.title"),
3371
- text: y("waiting.text"),
3372
- spinnerText: y("waiting.spinnerText")
3370
+ title: v("waiting.title"),
3371
+ text: v("waiting.text"),
3372
+ spinnerText: v("waiting.spinnerText")
3373
3373
  },
3374
3374
  signing: {
3375
- title: y("signing.title"),
3376
- text: y("signing.text"),
3377
- spinnerText: y("signing.spinnerText")
3375
+ title: v("signing.title"),
3376
+ text: v("signing.text"),
3377
+ spinnerText: v("signing.spinnerText")
3378
3378
  },
3379
3379
  error: {
3380
- title: y("error.title"),
3381
- text: y("error.text")
3380
+ title: v("error.title"),
3381
+ text: v("error.text")
3382
3382
  },
3383
3383
  canceled: {
3384
- title: y("canceled.title"),
3385
- text: y("canceled.text")
3384
+ title: v("canceled.title"),
3385
+ text: v("canceled.text")
3386
3386
  }
3387
3387
  };
3388
3388
  }
3389
3389
  },
3390
3390
  watch: {
3391
- isLoading(y) {
3392
- this.$emit("loading", y);
3391
+ isLoading(v) {
3392
+ this.$emit("loading", v);
3393
3393
  },
3394
3394
  $route: {
3395
3395
  immediate: !0,
3396
- handler(y) {
3397
- y != null && y.hash && this.resumePolling(y.hash.slice(1));
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: y }) {
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 y({ body: { isAccepted: !0 } });
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: y } = await Ft.get(this.signAnswerId);
3426
- y.qrCodeData && (this.qrCode = y.qrCodeData), y.status === "completed" ? this.onComplete() : y.status === "canceled" ? this.onCanceled() : this.view = y.status;
3427
- } catch (y) {
3428
- this.onError(y);
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(y) {
3445
+ onError(v) {
3446
3446
  var n, g;
3447
- if (this.stopPolling(), y.httpStatusCode === 409)
3448
- throw y;
3447
+ if (this.stopPolling(), v.httpStatusCode === 409)
3448
+ throw v;
3449
3449
  this.$emit("error"), this.view = "error";
3450
- const r = (g = (n = y.response) == null ? void 0 : n.data) == null ? void 0 : g.errorCode;
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(y);
3459
+ kt.warn(v);
3460
3460
  break;
3461
3461
  case 9009:
3462
3462
  this.$emit("complete");
3463
3463
  break;
3464
3464
  default:
3465
- Ct(y, { showMessage: !1 });
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(y) {
3470
- this.view = "signing", this.signAnswerId = y, this.startPolling();
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 y = "bankid://", r = "null";
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) && (y = "https://app.bankid.com"), g === "iOS" && (r = ae(this.signAnswerId));
3480
+ (f || d) && (v = "https://app.bankid.com"), g === "iOS" && (r = ae(this.signAnswerId));
3481
3481
  }
3482
- const n = `${y}/?autostarttoken=${this.autoStartToken}&redirect=${r}`;
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.5rem 3rem 2rem" } }, [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: "3rem 2rem 2rem" } }, [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": "2.5rem", padding: "1em", height: "initial" }, attrs: { loading: r.isLoading, type: "none", pattern: "secondary", size: "small" }, on: { click: function(l) {
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
- "b89ee89b",
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: y, answer: r }) {
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 y({ body: { "data.rejectReasons": n } }), await r({ body: { isAccepted: !1 } })), this.$emit("complete");
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.5rem" }, attrs: { placeholder: r._document.$t("answerModal.decline.component.inputPlaceholder"), type: "textarea", filled: "", "custom-class": "decline-input" }, model: { value: r.rejectReason, callback: function(g) {
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 y, r;
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 = (y = this._document.data) == null ? void 0 : y.defaultAnswerMethod) == null ? void 0 : r.accept
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 y;
3612
- return (y = this.signee.answerMethod) == null ? void 0 : y.accept;
3611
+ var v;
3612
+ return (v = this.signee.answerMethod) == null ? void 0 : v.accept;
3613
3613
  },
3614
3614
  successStrings() {
3615
- const y = 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 : y;
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: y } = this.$refs.answerComponent;
3639
- if (typeof y != "function")
3638
+ const { submit: v } = this.$refs.answerComponent;
3639
+ if (typeof v != "function")
3640
3640
  throw Error("Missing answer type submit method");
3641
- await y({
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 (y) {
3647
- this.isPosting = !1, y.httpStatusCode === 409 ? this.page = "versionError" : Ct(y);
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(y, r) {
3664
+ minimizeHeight(v, r) {
3665
3665
  nt({
3666
- targets: y,
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(y, r) {
3681
+ enterAnim(v, r) {
3682
3682
  nt({
3683
- targets: y.querySelectorAll(".stagger-anim"),
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(y, r) {
3692
- y.style.position = "absolute", nt({
3693
- targets: y.querySelectorAll(".stagger-anim"),
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 ye = function() {
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.5rem 0 2rem" } }, [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) {
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
- }, ve = [], we = /* @__PURE__ */ ot(
3715
+ }, ye = [], we = /* @__PURE__ */ ot(
3716
3716
  me,
3717
- ye,
3718
3717
  ve,
3718
+ ye,
3719
3719
  !1,
3720
3720
  null,
3721
- "e158edf3",
3721
+ "b5240b4a",
3722
3722
  null,
3723
3723
  null
3724
3724
  );