@cling-se/widget 0.9.14 → 0.9.16

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 (130) hide show
  1. package/dist/{AddClientCallout-a6803b1d.js → AddClientCallout-1348821d.js} +5 -5
  2. package/dist/{AnswerModal-71e1ec1c.js → AnswerModal-73bfc112.js} +244 -239
  3. package/dist/{AttachmentItem-f416ae47.js → AttachmentItem-1b9e1170.js} +3 -3
  4. package/dist/{BaseDatePicker-72f5722d.js → BaseDatePicker-1e3422da.js} +1 -1
  5. package/dist/{BaseInput-431750bd.js → BaseInput-70aa2f9d.js} +1 -1
  6. package/dist/{BaseUpload-3fe41796.js → BaseUpload-27cbe3b2.js} +2 -2
  7. package/dist/{BlockMedia-f249e3b5.js → BlockMedia-0f41fb43.js} +1 -1
  8. package/dist/{CCallout-61f77d70.js → CCallout-faf80dfb.js} +2 -2
  9. package/dist/{CDropdownItem-7eff8418.js → CDropdownItem-13f6bf72.js} +1 -1
  10. package/dist/{CField-8cdc83ce.js → CField-1aa7c4ab.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-d042d835.js → CSlider.vue_vue_type_style_index_0_lang-879e8c05.js} +1 -1
  12. package/dist/{ClientAutocomplete-f81b6da6.js → ClientAutocomplete-94a42966.js} +2 -2
  13. package/dist/{ClientModal-2c757562.js → ClientModal-b3ec6c4e.js} +4 -4
  14. package/dist/{ColorPicker-da94c878.js → ColorPicker-debcfab1.js} +1 -1
  15. package/dist/{CompanyModal-d4436599.js → CompanyModal-8cf32258.js} +3 -3
  16. package/dist/{ContentWrapper-3ea6d128.js → ContentWrapper-c0a17123.js} +15 -14
  17. package/dist/{CoverBlockSettings-906d3cfe.js → CoverBlockSettings-0b289e31.js} +8 -8
  18. package/dist/{DocAnswer-a84e76db.js → DocAnswer-91248c64.js} +4 -4
  19. package/dist/{DocForm-b76ac915.js → DocForm-91ae8830.js} +31 -31
  20. package/dist/{DocFormSend-2ba64b4e.js → DocFormSend-0288bd11.js} +17 -17
  21. package/dist/{DocLinks-e85cc84a.js → DocLinks-0b74ba52.js} +2 -2
  22. package/dist/{DocModalBase-8243406e.js → DocModalBase-04a8975b.js} +1 -1
  23. package/dist/{DocPrint-8200bbb1.js → DocPrint-f4f49825.js} +1 -1
  24. package/dist/{DocReceipt-4a85a7ff.js → DocReceipt-7f49dbc7.js} +1 -1
  25. package/dist/{DocSendReminder-84862964.js → DocSendReminder-3059f0b3.js} +1 -1
  26. package/dist/{DocTextEditor-f6f5d22b.js → DocTextEditor-570f3d62.js} +1415 -1402
  27. package/dist/{DocTimeline-842bb019.js → DocTimeline-fe15c761.js} +1 -1
  28. package/dist/{DocumentClient-ccf33079.js → DocumentClient-685c2a72.js} +6 -6
  29. package/dist/{DocumentLayout-0b5138ff.js → DocumentLayout-1222a5f8.js} +3 -3
  30. package/dist/{DocumentLogotype-c3347ad9.js → DocumentLogotype-b12feaae.js} +3 -3
  31. package/dist/{EmbedInput-eef02390.js → EmbedInput-a1b00bd5.js} +2 -2
  32. package/dist/{EmbedSettings-bd64156d.js → EmbedSettings-33a765a6.js} +3 -3
  33. package/dist/{ErrorCallout-bce1d8d5.js → ErrorCallout-d7d78926.js} +1 -1
  34. package/dist/{FilePreviewModal-7835083e.js → FilePreviewModal-877e5aaa.js} +5 -5
  35. package/dist/{HeaderSettings-fa02c3b4.js → HeaderSettings-1b8d8783.js} +16 -16
  36. package/dist/{ImageSelectModal-ee8c9284.js → ImageSelectModal-7e612643.js} +9 -9
  37. package/dist/{ImageUploadWrapper-fdc46e10.js → ImageUploadWrapper-2e6b3682.js} +2 -2
  38. package/dist/{Index-8a0c2725.js → Index-05492736.js} +4 -4
  39. package/dist/{Index-b9d73d15.js → Index-0d051f12.js} +25 -25
  40. package/dist/{Index-9e1a642a.js → Index-11d14c4d.js} +15 -14
  41. package/dist/{Index-110c0f5c.js → Index-2e71665d.js} +4 -4
  42. package/dist/{Index-f24190cc.js → Index-2f94216d.js} +8 -8
  43. package/dist/{Index-652d7e86.js → Index-3bfb3895.js} +1 -1
  44. package/dist/{Index-361d8f26.js → Index-3e7e4c33.js} +2 -2
  45. package/dist/{Index-0ab509d5.js → Index-4559e60b.js} +5 -5
  46. package/dist/{Index-e3cace76.js → Index-479a4f5c.js} +3 -3
  47. package/dist/{Index-8d78852a.js → Index-5003d8a4.js} +2 -2
  48. package/dist/{Index-95aaf122.js → Index-52da7dd1.js} +6 -6
  49. package/dist/{Index-77a78d15.js → Index-674572ab.js} +4 -4
  50. package/dist/{Index-f79e03bb.js → Index-6f9f3222.js} +5 -5
  51. package/dist/{Index-94f0221f.js → Index-83603328.js} +4 -4
  52. package/dist/{Index-6194280d.js → Index-83cd3513.js} +12 -11
  53. package/dist/{Index-71ee8ebd.js → Index-887a4e3b.js} +3 -3
  54. package/dist/{Index-e9b0af2d.js → Index-92444604.js} +4 -4
  55. package/dist/{Index-8890c55f.js → Index-96cc92d3.js} +16 -15
  56. package/dist/{Index-58109821.js → Index-9d7a87a2.js} +2 -2
  57. package/dist/{Index-316d9ece.js → Index-ab7ee5cf.js} +4 -4
  58. package/dist/{Index-d3426b0b.js → Index-abb05d61.js} +6 -6
  59. package/dist/{Index-a97989ac.js → Index-bf2851ea.js} +2 -2
  60. package/dist/{Index-514fb64f.js → Index-bff6cda5.js} +1 -1
  61. package/dist/{Index-7a8c5603.js → Index-c4c942a3.js} +2 -2
  62. package/dist/{Index-4409ecc5.js → Index-ca877625.js} +6 -6
  63. package/dist/{Index-4e722302.js → Index-cdd643d6.js} +8 -8
  64. package/dist/{Index-4684c65d.js → Index-d62e8abf.js} +2 -2
  65. package/dist/{Index-d1325e8f.js → Index-dff23f41.js} +4 -4
  66. package/dist/{Index-8c3e783e.js → Index-e7a49ef5.js} +4 -4
  67. package/dist/{Index-38391a79.js → Index-e87eac2e.js} +2 -2
  68. package/dist/{Index-79f82168.js → Index-edb47e7d.js} +4 -4
  69. package/dist/{Index-cea163a2.js → Index-f0ea6d6a.js} +15 -14
  70. package/dist/{Index-ff5a89f0.js → Index-f2fde02f.js} +5 -5
  71. package/dist/{Index-89588fde.js → Index-f450c453.js} +9 -9
  72. package/dist/{InputToggleRow-7fc88908.js → InputToggleRow-ff428de1.js} +1 -1
  73. package/dist/{IsPremiumPreStep-62401338.js → IsPremiumPreStep-4bc3a874.js} +197 -180
  74. package/dist/{ManualPopover-0476a776.js → ManualPopover-fdad805a.js} +1 -1
  75. package/dist/{MediaWrapper-7de4d3eb.js → MediaWrapper-10405a28.js} +3 -3
  76. package/dist/{NotBindingText-ffe487e6.js → NotBindingText-eab4529c.js} +2 -2
  77. package/dist/{PackageGroup-f0b25406.js → PackageGroup-50b4428c.js} +14 -13
  78. package/dist/{PdfTerms-91beba8c.js → PdfTerms-81256394.js} +5 -5
  79. package/dist/{PdfViewer-46d1a38c.js → PdfViewer-10150d1b.js} +3 -3
  80. package/dist/{PlainHtml-e8104d32.js → PlainHtml-57b8ec60.js} +1 -1
  81. package/dist/{PriceHeader-916cdc9a.js → PriceHeader-70427a56.js} +13 -13
  82. package/dist/{SearchApi-8efb3d0b.js → SearchApi-c81405a8.js} +2 -2
  83. package/dist/{Setup-9f28f773.js → Setup-438b2554.js} +1 -1
  84. package/dist/{TermsSettings-a709e571.js → TermsSettings-0ad9987a.js} +6 -6
  85. package/dist/{ThemeColorRow-23f560f7.js → ThemeColorRow-178c3b34.js} +3 -3
  86. package/dist/{ToggleBinding-ea12882f.js → ToggleBinding-63c41c8f.js} +3 -3
  87. package/dist/{UploadModal-b9785d42.js → UploadModal-859233e4.js} +3 -3
  88. package/dist/{VideoPlayerInput-c139e07a.js → VideoPlayerInput-73ac34db.js} +3 -3
  89. package/dist/{VideoPlayerSettings-1362d6f5.js → VideoPlayerSettings-c60fb8dc.js} +4 -4
  90. package/dist/{VideoSelectModal-a0501d67.js → VideoSelectModal-5358f138.js} +8 -8
  91. package/dist/{answerDocumentMixin-e448478a.js → answerDocumentMixin-69b88088.js} +3 -3
  92. package/dist/{cssMode-a748df72.js → cssMode-59194949.js} +7 -7
  93. package/dist/dom-d4731032.js +68 -0
  94. package/dist/{focusDrawerMixin-3d6dccd3.js → focusDrawerMixin-188ef585.js} +1 -1
  95. package/dist/{formComponentsInstall-23e4be0a.js → formComponentsInstall-12195b8b.js} +12 -12
  96. package/dist/{formValidationMixin-75ac30a4.js → formValidationMixin-e54b71c9.js} +2 -2
  97. package/dist/{freemarker2-e5d901d6.js → freemarker2-3008b375.js} +7 -7
  98. package/dist/{handlebars-bb947f49.js → handlebars-fa9ab08d.js} +7 -7
  99. package/dist/{html-83e08e1c.js → html-d5653fb5.js} +7 -7
  100. package/dist/{htmlMode-c6ffd393.js → htmlMode-788d6ef2.js} +7 -7
  101. package/dist/{image-5f9f36b5.js → image-4270bed4.js} +1 -1
  102. package/dist/{index-58bfded8.js → index-0265dfbd.js} +4 -4
  103. package/dist/{index-f0521a5f.js → index-79df8dcf.js} +5 -5
  104. package/dist/{index-0e4e6529.js → index-bed8fb27.js} +1 -1
  105. package/dist/{index-468da570.js → index-c48b4b2a.js} +2 -2
  106. package/dist/{index-e6a04cef.js → index-cd29b3be.js} +11 -10
  107. package/dist/{index-a65761df.js → index-df5fd2b2.js} +1 -1
  108. package/dist/index.es.js +2 -2
  109. package/dist/index.umd.js +431 -431
  110. package/dist/{javascript-f784800f.js → javascript-553c3953.js} +8 -8
  111. package/dist/{jsonMode-9fcd41c5.js → jsonMode-c7ab0d1f.js} +7 -7
  112. package/dist/{liquid-7433cbb8.js → liquid-9e71ef49.js} +7 -7
  113. package/dist/{main-27338bdb.js → main-9e6f1eed.js} +16 -16
  114. package/dist/{mapFormMixin-08858c9b.js → mapFormMixin-afafb1fa.js} +1 -1
  115. package/dist/{publicSenderState-555493ea.js → publicSenderState-994a5c48.js} +1 -1
  116. package/dist/{python-1f5cdaaf.js → python-c3ceee79.js} +7 -7
  117. package/dist/{razor-c6de0365.js → razor-5c5d60a9.js} +7 -7
  118. package/dist/{simplebar.min-4701bd2d.js → simplebar.min-2c8e9500.js} +1 -1
  119. package/dist/style.css +1 -1
  120. package/dist/{template-4a9f537a.js → template-35be25a1.js} +1 -1
  121. package/dist/{throttle-c9487ab5.js → throttle-0e8ac006.js} +2 -2
  122. package/dist/{tinycolor-bf607154.js → tinycolor-e0dc7ddf.js} +1 -1
  123. package/dist/{tippy.esm-b5d60518.js → tippy.esm-112598e3.js} +5 -5
  124. package/dist/{tsMode-6d5d0e5e.js → tsMode-26e458da.js} +7 -7
  125. package/dist/{typescript-8e88020b.js → typescript-152aeb18.js} +7 -7
  126. package/dist/{utils-86f144bc.js → utils-3acdacf6.js} +1 -1
  127. package/dist/{vuedraggable.umd-66db3099.js → vuedraggable.umd-9543559a.js} +1 -1
  128. package/dist/{xml-95bc7065.js → xml-9806bd44.js} +7 -7
  129. package/package.json +1 -1
  130. package/dist/dom-068d1a7b.js +0 -59
@@ -1,12 +1,12 @@
1
1
  import { a as nt } from "./anime.es-e284c852.js";
2
- import { ah as At, h as Ct, n as ot, ai as Tt, G as ft, aj as Ft, ak as kt, al as It, g as xt } from "./main-27338bdb.js";
2
+ import { ah as At, h as Ct, n as ot, ai as Tt, G as ft, aj as Ft, ak as kt, al as It, g as xt } from "./main-9e6f1eed.js";
3
3
  import { a as Mt } from "./vuex.esm-4a0fff7c.js";
4
- import { m as dt } from "./mapFormMixin-08858c9b.js";
5
- import { C as Rt } from "./CField-8cdc83ce.js";
4
+ import { m as dt } from "./mapFormMixin-afafb1fa.js";
5
+ import { C as Rt } from "./CField-1aa7c4ab.js";
6
6
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
7
7
  const Dt = () => {
8
- const v = window.location.host.split(".");
9
- return v && v[0];
8
+ const m = window.location.host.split(".");
9
+ return m && m[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: v, data: r }) {
41
+ async submitFeedback({ type: m, data: r }) {
42
42
  if (!this.demo && !this.publicId)
43
43
  throw Error("Missing param publicId");
44
- if (!v)
44
+ if (!m)
45
45
  throw Error("Missing param type");
46
- if (!Ut.includes(v))
46
+ if (!Ut.includes(m))
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 || At.feedback(this.publicId, { type: v, data: r }), v === "enjoyedExperience" && !r.value && (n = "negative"), v === "whatToImprove" && (n = "negative.success"), $t && n !== "negative" && (n = "custom");
52
+ this.demo || At.feedback(this.publicId, { type: m, data: r }), m === "enjoyedExperience" && !r.value && (n = "negative"), m === "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(v) {
60
- if (this.$emit("page", v), v === "positive" || v === "negative") {
59
+ async goTo(m) {
60
+ if (this.$emit("page", m), m === "positive" || m === "negative") {
61
61
  this.$refs.start.style.opacity = 0, this.page = "intermediate", setTimeout(() => {
62
- this.page = v;
62
+ this.page = m;
63
63
  }, 2e3);
64
64
  return;
65
65
  }
66
- this.page = v;
66
+ this.page = m;
67
67
  },
68
68
  startAnimation() {
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,
69
+ const m = this.$refs.feedbackBg;
70
+ m.gradOneXPos = 0, m.gradOneYPos = 0, m.gradTwoXPos = 80, m.gradTwoYPos = 20, m.gradThreeXPos = 20, m.gradThreeYPos = 80, m.gradFourXPos = 80, m.gradFourYPos = 80, nt({
71
+ targets: m,
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
- 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}%`);
85
+ m.style.setProperty("--gradOneXPos", `${m.gradOneXPos}%`), m.style.setProperty("--gradOneYPos", `${m.gradOneYPos}%`), m.style.setProperty("--gradTwoXPos", `${m.gradTwoXPos}%`), m.style.setProperty("--gradTwoYPos", `${m.gradTwoYPos}%`), m.style.setProperty("--gradThreeXPos", `${m.gradThreeXPos}%`), m.style.setProperty("--gradThreeYPos", `${m.gradThreeYPos}%`), m.style.setProperty("--gradFourXPos", `${m.gradFourXPos}%`), m.style.setProperty("--gradFourYPos", `${m.gradFourYPos}%`);
86
86
  }
87
87
  });
88
88
  },
89
89
  // animations
90
- leave(v, r) {
90
+ leave(m, r) {
91
91
  nt({
92
- targets: v,
92
+ targets: m,
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(v, r) {
101
+ enter(m, r) {
102
102
  nt({
103
- targets: v,
103
+ targets: m,
104
104
  delay: this.page === "intermediate" ? 250 : 0,
105
105
  duration: 500,
106
106
  opacity: [0, 1],
@@ -205,14 +205,14 @@ class Wt {
205
205
  this._et.removeEventListener(r, n, g);
206
206
  }
207
207
  }
208
- function Ht(v, r = 250) {
208
+ function Ht(m, r = 250) {
209
209
  let n = 0, g = null, l, f, d;
210
210
  const c = () => {
211
- n = Date.now(), g = null, l = v.apply(f, d), g || (f = null, d = []);
211
+ n = Date.now(), g = null, l = m.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 = v.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 = m.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: (v) => ["text", "draw"].includes(v)
437
+ validator: (m) => ["text", "draw"].includes(m)
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(v) {
497
- this.drawText(v);
496
+ text(m) {
497
+ this.drawText(m);
498
498
  }
499
499
  },
500
500
  mounted() {
501
- const { options: v, defaultOptions: r } = this, n = this.$refs.signaturePadCanvas;
501
+ const { options: m, defaultOptions: r } = this, n = this.$refs.signaturePadCanvas;
502
502
  this.signaturePad = new Gt(n, {
503
503
  ...r,
504
- ...v
504
+ ...m
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 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") {
519
+ const m = this.$refs.signaturePadCanvas, r = Math.max(window.devicePixelRatio || 1, 1);
520
+ if (m.width = m.offsetWidth * r, m.height = m.offsetHeight * r, m.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(v = {}) {
526
+ saveSignature(m = {}) {
527
527
  const {
528
528
  type: r = "image/png",
529
529
  trim: n = !0,
530
530
  encoderOptions: g
531
- } = v || {}, l = { isEmpty: !1, data: void 0 };
531
+ } = m || {}, 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: v } = this, r = v.toData();
550
- r && v.fromData(r.slice(0, -1));
549
+ const { signaturePad: m } = this, r = m.toData();
550
+ r && m.fromData(r.slice(0, -1));
551
551
  },
552
- drawText(v) {
553
- this.signaturePad.fromText(v, {
552
+ drawText(m) {
553
+ this.signaturePad.fromText(m, {
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(...v) {
561
- return this.signaturePad.fromText(...v);
560
+ fromText(...m) {
561
+ return this.signaturePad.fromText(...m);
562
562
  },
563
- fromDataURL(...v) {
564
- return this.signaturePad.fromDataURL(...v);
563
+ fromDataURL(...m) {
564
+ return this.signaturePad.fromDataURL(...m);
565
565
  },
566
- fromData(...v) {
567
- return this.signaturePad.fromData(...v);
566
+ fromData(...m) {
567
+ return this.signaturePad.fromData(...m);
568
568
  },
569
- toData(...v) {
570
- return this.signaturePad.toData(...v);
569
+ toData(...m) {
570
+ return this.signaturePad.toData(...m);
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(v) {
584
+ trimCanvas(m) {
585
585
  const r = document.createElement("canvas"), n = r.getContext("2d");
586
- r.width = v.width, r.height = v.height, n.drawImage(v, 0, 0);
586
+ r.width = m.width, r.height = m.height, n.drawImage(m, 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(v) {
600
+ render(m) {
601
601
  const { width: r, height: n, customStyle: g } = this;
602
- return v(
602
+ return m(
603
603
  "div",
604
604
  {
605
605
  style: {
@@ -609,7 +609,7 @@ const Vt = {
609
609
  }
610
610
  },
611
611
  [
612
- v("canvas", {
612
+ m("canvas", {
613
613
  style: {
614
614
  width: "100%",
615
615
  height: "100%"
@@ -631,9 +631,9 @@ var Xt = /* @__PURE__ */ ot(
631
631
  null
632
632
  );
633
633
  const Qt = Xt.exports;
634
- function qt({ rel: v, href: r, crossorigin: n = !1 }) {
634
+ function qt({ rel: m, href: r, crossorigin: n = !1 }) {
635
635
  const g = document.createElement("link");
636
- g.rel = v, g.href = r, g.crossorigin = n, document.head.appendChild(g);
636
+ g.rel = m, g.href = r, g.crossorigin = n, document.head.appendChild(g);
637
637
  }
638
638
  const Zt = [
639
639
  { rel: "preconnect", href: "https://fonts.googleapis.com" },
@@ -661,8 +661,8 @@ const Zt = [
661
661
  };
662
662
  },
663
663
  watch: {
664
- mode(v) {
665
- this.reset(), this.$refs.signaturePad && v === "text" && this.focusName();
664
+ mode(m) {
665
+ this.reset(), this.$refs.signaturePad && m === "text" && this.focusName();
666
666
  },
667
667
  text() {
668
668
  this.$refs.signaturePad && this.$nextTick(() => {
@@ -671,8 +671,8 @@ const Zt = [
671
671
  },
672
672
  isEmpty: {
673
673
  immediate: !0,
674
- handler(v) {
675
- this.$emit("invalid", v);
674
+ handler(m) {
675
+ this.$emit("invalid", m);
676
676
  }
677
677
  }
678
678
  },
@@ -690,17 +690,17 @@ const Zt = [
690
690
  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());
691
691
  },
692
692
  getSignatureData() {
693
- let v = { type: "image/png", trim: !0 };
694
- this.mode === "draw" && (v = { type: "image/svg+xml", trim: !1 });
695
- const { isEmpty: r, data: n } = this.$refs.signaturePad ? this.$refs.signaturePad.saveSignature(v) : {};
693
+ let m = { type: "image/png", trim: !0 };
694
+ this.mode === "draw" && (m = { type: "image/svg+xml", trim: !1 });
695
+ const { isEmpty: r, data: n } = this.$refs.signaturePad ? this.$refs.signaturePad.saveSignature(m) : {};
696
696
  if (r || !n)
697
697
  throw Error("Missing signatureData");
698
698
  return n;
699
699
  },
700
- async submit({ answer: v }) {
700
+ async submit({ answer: m }) {
701
701
  if (!this.demo) {
702
702
  const r = this.getSignatureData();
703
- await v({ body: { isAccepted: !0, signatureDataURL: r } });
703
+ await m({ body: { isAccepted: !0, signatureDataURL: r } });
704
704
  }
705
705
  this.$emit("complete");
706
706
  },
@@ -747,12 +747,12 @@ const ie = ne.exports;
747
747
  function pt() {
748
748
  throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs");
749
749
  }
750
- function ae(v, r) {
751
- return r = { exports: {} }, v(r, r.exports), r.exports;
750
+ function ae(m, r) {
751
+ return r = { exports: {} }, m(r, r.exports), r.exports;
752
752
  }
753
- var _t = ae(function(v, r) {
753
+ var _t = ae(function(m, r) {
754
754
  (function(n) {
755
- v.exports = n();
755
+ m.exports = n();
756
756
  })(function() {
757
757
  return function() {
758
758
  function n(g, l, f) {
@@ -1574,7 +1574,7 @@ Make sure your charset is UTF-8`
1574
1574
  for (var Y = -2; Y <= 2; Y++)
1575
1575
  N === -2 || N === 2 || Y === -2 || Y === 2 || N === 0 && Y === 0 ? D.set(O + N, z + Y, !0, !0) : D.set(O + N, z + Y, !1, !0);
1576
1576
  }
1577
- function m(D, $) {
1577
+ function v(D, $) {
1578
1578
  for (var U = D.size, R = A.getEncodedBits($), O, z, N, Y = 0; Y < 18; Y++)
1579
1579
  O = Math.floor(Y / 3), z = Y % 3 + U - 8 - 3, N = (R >> Y & 1) === 1, D.set(O, z, N, !0), D.set(z, O, N, !0);
1580
1580
  }
@@ -1656,7 +1656,7 @@ Minimum version required to store current data is: ` + Y + `.
1656
1656
  `
1657
1657
  );
1658
1658
  var j = S($, U, O), et = d.getSymbolSize($), X = new s(et);
1659
- return I(X, $), k(X), _(X, $), p(X, U, 0), $ >= 7 && m(X, $), E(X, j), isNaN(R) && (R = w.getBestMask(
1659
+ return I(X, $), k(X), _(X, $), p(X, U, 0), $ >= 7 && v(X, $), E(X, j), isNaN(R) && (R = w.getBestMask(
1660
1660
  X,
1661
1661
  p.bind(null, X, U)
1662
1662
  )), w.applyMask(R, X), p(X, U, R), {
@@ -1709,8 +1709,8 @@ Minimum version required to store current data is: ` + Y + `.
1709
1709
  function x(k) {
1710
1710
  return unescape(encodeURIComponent(k)).length;
1711
1711
  }
1712
- function b(k, _, m) {
1713
- for (var p = [], E; (E = k.exec(m)) !== null; )
1712
+ function b(k, _, v) {
1713
+ for (var p = [], E; (E = k.exec(v)) !== null; )
1714
1714
  p.push({
1715
1715
  data: E[0],
1716
1716
  index: E.index,
@@ -1720,9 +1720,9 @@ Minimum version required to store current data is: ` + Y + `.
1720
1720
  return p;
1721
1721
  }
1722
1722
  function A(k) {
1723
- var _ = b(h.NUMERIC, f.NUMERIC, k), m = b(h.ALPHANUMERIC, f.ALPHANUMERIC, k), p, E;
1723
+ var _ = b(h.NUMERIC, f.NUMERIC, k), v = b(h.ALPHANUMERIC, f.ALPHANUMERIC, k), p, E;
1724
1724
  a.isKanjiModeEnabled() ? (p = b(h.BYTE, f.BYTE, k), E = b(h.KANJI, f.KANJI, k)) : (p = b(h.BYTE_KANJI, f.BYTE, k), E = []);
1725
- var S = _.concat(m, p, E);
1725
+ var S = _.concat(v, p, E);
1726
1726
  return S.sort(function(L, W) {
1727
1727
  return L.index - W.index;
1728
1728
  }).map(function(L) {
@@ -1746,14 +1746,14 @@ Minimum version required to store current data is: ` + Y + `.
1746
1746
  }
1747
1747
  }
1748
1748
  function M(k) {
1749
- return k.reduce(function(_, m) {
1749
+ return k.reduce(function(_, v) {
1750
1750
  var p = _.length - 1 >= 0 ? _[_.length - 1] : null;
1751
- return p && p.mode === m.mode ? (_[_.length - 1].data += m.data, _) : (_.push(m), _);
1751
+ return p && p.mode === v.mode ? (_[_.length - 1].data += v.data, _) : (_.push(v), _);
1752
1752
  }, []);
1753
1753
  }
1754
1754
  function C(k) {
1755
- for (var _ = [], m = 0; m < k.length; m++) {
1756
- var p = k[m];
1755
+ for (var _ = [], v = 0; v < k.length; v++) {
1756
+ var p = k[v];
1757
1757
  switch (p.mode) {
1758
1758
  case f.NUMERIC:
1759
1759
  _.push([
@@ -1783,27 +1783,27 @@ Minimum version required to store current data is: ` + Y + `.
1783
1783
  return _;
1784
1784
  }
1785
1785
  function T(k, _) {
1786
- for (var m = {}, p = { start: {} }, E = ["start"], S = 0; S < k.length; S++) {
1786
+ for (var v = {}, p = { start: {} }, E = ["start"], S = 0; S < k.length; S++) {
1787
1787
  for (var L = k[S], W = [], D = 0; D < L.length; D++) {
1788
1788
  var $ = L[D], U = "" + S + D;
1789
- W.push(U), m[U] = { node: $, lastCount: 0 }, p[U] = {};
1789
+ W.push(U), v[U] = { node: $, lastCount: 0 }, p[U] = {};
1790
1790
  for (var R = 0; R < E.length; R++) {
1791
1791
  var O = E[R];
1792
- m[O] && m[O].node.mode === $.mode ? (p[O][U] = F(m[O].lastCount + $.length, $.mode) - F(m[O].lastCount, $.mode), m[O].lastCount += $.length) : (m[O] && (m[O].lastCount = $.length), p[O][U] = F($.length, $.mode) + 4 + f.getCharCountIndicator($.mode, _));
1792
+ v[O] && v[O].node.mode === $.mode ? (p[O][U] = F(v[O].lastCount + $.length, $.mode) - F(v[O].lastCount, $.mode), v[O].lastCount += $.length) : (v[O] && (v[O].lastCount = $.length), p[O][U] = F($.length, $.mode) + 4 + f.getCharCountIndicator($.mode, _));
1793
1793
  }
1794
1794
  }
1795
1795
  E = W;
1796
1796
  }
1797
1797
  for (R = 0; R < E.length; R++)
1798
1798
  p[E[R]].end = 0;
1799
- return { map: p, table: m };
1799
+ return { map: p, table: v };
1800
1800
  }
1801
1801
  function I(k, _) {
1802
- var m, p = f.getBestModeForData(k);
1803
- if (m = f.from(_, p), m !== f.BYTE && m.bit < p.bit)
1804
- throw new Error('"' + k + '" cannot be encoded with mode ' + f.toString(m) + `.
1802
+ var v, p = f.getBestModeForData(k);
1803
+ if (v = f.from(_, p), v !== f.BYTE && v.bit < p.bit)
1804
+ throw new Error('"' + k + '" cannot be encoded with mode ' + f.toString(v) + `.
1805
1805
  Suggested mode is: ` + f.toString(p));
1806
- switch (m === f.KANJI && !a.isKanjiModeEnabled() && (m = f.BYTE), m) {
1806
+ switch (v === f.KANJI && !a.isKanjiModeEnabled() && (v = f.BYTE), v) {
1807
1807
  case f.NUMERIC:
1808
1808
  return new d(k);
1809
1809
  case f.ALPHANUMERIC:
@@ -1815,11 +1815,11 @@ Minimum version required to store current data is: ` + Y + `.
1815
1815
  }
1816
1816
  }
1817
1817
  l.fromArray = function(_) {
1818
- return _.reduce(function(m, p) {
1819
- return typeof p == "string" ? m.push(I(p, null)) : p.data && m.push(I(p.data, p.mode)), m;
1818
+ return _.reduce(function(v, p) {
1819
+ return typeof p == "string" ? v.push(I(p, null)) : p.data && v.push(I(p.data, p.mode)), v;
1820
1820
  }, []);
1821
- }, l.fromString = function(_, m) {
1822
- for (var p = A(_, a.isKanjiModeEnabled()), E = C(p), S = T(E, m), L = w.find_path(S.map, "start", "end"), W = [], D = 1; D < L.length - 1; D++)
1821
+ }, l.fromString = function(_, v) {
1822
+ for (var p = A(_, a.isKanjiModeEnabled()), E = C(p), S = T(E, v), L = w.find_path(S.map, "start", "end"), W = [], D = 1; D < L.length - 1; D++)
1823
1823
  W.push(S.table[L[D]].node);
1824
1824
  return l.fromArray(M(W));
1825
1825
  }, l.rawSplit = function(_) {
@@ -1927,10 +1927,10 @@ Minimum version required to store current data is: ` + Y + `.
1927
1927
  if (!s.isValid(C))
1928
1928
  throw new Error("Invalid QR Code version");
1929
1929
  typeof I > "u" && (I = i.BYTE);
1930
- var k = f.getSymbolTotalCodewords(C), _ = d.getTotalCodewordsCount(C, T), m = (k - _) * 8;
1930
+ var k = f.getSymbolTotalCodewords(C), _ = d.getTotalCodewordsCount(C, T), v = (k - _) * 8;
1931
1931
  if (I === i.MIXED)
1932
- return m;
1933
- var p = m - b(I, C);
1932
+ return v;
1933
+ var p = v - b(I, C);
1934
1934
  switch (I) {
1935
1935
  case i.NUMERIC:
1936
1936
  return Math.floor(p / 10 * 3);
@@ -2100,8 +2100,8 @@ Minimum version required to store current data is: ` + Y + `.
2100
2100
  }
2101
2101
  i.TYPED_ARRAY_SUPPORT = d();
2102
2102
  var c = i.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
2103
- function i(_, m, p) {
2104
- return !i.TYPED_ARRAY_SUPPORT && !(this instanceof i) ? new i(_, m, p) : typeof _ == "number" ? w(this, _) : k(this, _, m, p);
2103
+ function i(_, v, p) {
2104
+ return !i.TYPED_ARRAY_SUPPORT && !(this instanceof i) ? new i(_, v, p) : typeof _ == "number" ? w(this, _) : k(this, _, v, p);
2105
2105
  }
2106
2106
  i.TYPED_ARRAY_SUPPORT && (i.prototype.__proto__ = Uint8Array.prototype, i.__proto__ = Uint8Array, typeof Symbol < "u" && Symbol.species && i[Symbol.species] === i && Object.defineProperty(i, Symbol.species, {
2107
2107
  value: null,
@@ -2117,82 +2117,82 @@ Minimum version required to store current data is: ` + Y + `.
2117
2117
  function h(_) {
2118
2118
  return _ !== _;
2119
2119
  }
2120
- function a(_, m) {
2120
+ function a(_, v) {
2121
2121
  var p;
2122
- return i.TYPED_ARRAY_SUPPORT ? (p = new Uint8Array(m), p.__proto__ = i.prototype) : (p = _, p === null && (p = new i(m)), p.length = m), p;
2122
+ return i.TYPED_ARRAY_SUPPORT ? (p = new Uint8Array(v), p.__proto__ = i.prototype) : (p = _, p === null && (p = new i(v)), p.length = v), p;
2123
2123
  }
2124
- function w(_, m) {
2125
- var p = a(_, m < 0 ? 0 : s(m) | 0);
2124
+ function w(_, v) {
2125
+ var p = a(_, v < 0 ? 0 : s(v) | 0);
2126
2126
  if (!i.TYPED_ARRAY_SUPPORT)
2127
- for (var E = 0; E < m; ++E)
2127
+ for (var E = 0; E < v; ++E)
2128
2128
  p[E] = 0;
2129
2129
  return p;
2130
2130
  }
2131
- function x(_, m) {
2132
- var p = C(m) | 0, E = a(_, p), S = E.write(m);
2131
+ function x(_, v) {
2132
+ var p = C(v) | 0, E = a(_, p), S = E.write(v);
2133
2133
  return S !== p && (E = E.slice(0, S)), E;
2134
2134
  }
2135
- function b(_, m) {
2136
- for (var p = m.length < 0 ? 0 : s(m.length) | 0, E = a(_, p), S = 0; S < p; S += 1)
2137
- E[S] = m[S] & 255;
2135
+ function b(_, v) {
2136
+ for (var p = v.length < 0 ? 0 : s(v.length) | 0, E = a(_, p), S = 0; S < p; S += 1)
2137
+ E[S] = v[S] & 255;
2138
2138
  return E;
2139
2139
  }
2140
- function A(_, m, p, E) {
2141
- if (p < 0 || m.byteLength < p)
2140
+ function A(_, v, p, E) {
2141
+ if (p < 0 || v.byteLength < p)
2142
2142
  throw new RangeError("'offset' is out of bounds");
2143
- if (m.byteLength < p + (E || 0))
2143
+ if (v.byteLength < p + (E || 0))
2144
2144
  throw new RangeError("'length' is out of bounds");
2145
2145
  var S;
2146
- return p === void 0 && E === void 0 ? S = new Uint8Array(m) : E === void 0 ? S = new Uint8Array(m, p) : S = new Uint8Array(m, p, E), i.TYPED_ARRAY_SUPPORT ? S.__proto__ = i.prototype : S = b(_, S), S;
2146
+ return p === void 0 && E === void 0 ? S = new Uint8Array(v) : E === void 0 ? S = new Uint8Array(v, p) : S = new Uint8Array(v, p, E), i.TYPED_ARRAY_SUPPORT ? S.__proto__ = i.prototype : S = b(_, S), S;
2147
2147
  }
2148
- function F(_, m) {
2149
- if (i.isBuffer(m)) {
2150
- var p = s(m.length) | 0, E = a(_, p);
2151
- return E.length === 0 || m.copy(E, 0, 0, p), E;
2148
+ function F(_, v) {
2149
+ if (i.isBuffer(v)) {
2150
+ var p = s(v.length) | 0, E = a(_, p);
2151
+ return E.length === 0 || v.copy(E, 0, 0, p), E;
2152
2152
  }
2153
- if (m) {
2154
- if (typeof ArrayBuffer < "u" && m.buffer instanceof ArrayBuffer || "length" in m)
2155
- return typeof m.length != "number" || h(m.length) ? a(_, 0) : b(_, m);
2156
- if (m.type === "Buffer" && Array.isArray(m.data))
2157
- return b(_, m.data);
2153
+ if (v) {
2154
+ if (typeof ArrayBuffer < "u" && v.buffer instanceof ArrayBuffer || "length" in v)
2155
+ return typeof v.length != "number" || h(v.length) ? a(_, 0) : b(_, v);
2156
+ if (v.type === "Buffer" && Array.isArray(v.data))
2157
+ return b(_, v.data);
2158
2158
  }
2159
2159
  throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
2160
2160
  }
2161
- function M(_, m) {
2162
- m = m || 1 / 0;
2161
+ function M(_, v) {
2162
+ v = v || 1 / 0;
2163
2163
  for (var p, E = _.length, S = null, L = [], W = 0; W < E; ++W) {
2164
2164
  if (p = _.charCodeAt(W), p > 55295 && p < 57344) {
2165
2165
  if (!S) {
2166
2166
  if (p > 56319) {
2167
- (m -= 3) > -1 && L.push(239, 191, 189);
2167
+ (v -= 3) > -1 && L.push(239, 191, 189);
2168
2168
  continue;
2169
2169
  } else if (W + 1 === E) {
2170
- (m -= 3) > -1 && L.push(239, 191, 189);
2170
+ (v -= 3) > -1 && L.push(239, 191, 189);
2171
2171
  continue;
2172
2172
  }
2173
2173
  S = p;
2174
2174
  continue;
2175
2175
  }
2176
2176
  if (p < 56320) {
2177
- (m -= 3) > -1 && L.push(239, 191, 189), S = p;
2177
+ (v -= 3) > -1 && L.push(239, 191, 189), S = p;
2178
2178
  continue;
2179
2179
  }
2180
2180
  p = (S - 55296 << 10 | p - 56320) + 65536;
2181
2181
  } else
2182
- S && (m -= 3) > -1 && L.push(239, 191, 189);
2182
+ S && (v -= 3) > -1 && L.push(239, 191, 189);
2183
2183
  if (S = null, p < 128) {
2184
- if ((m -= 1) < 0)
2184
+ if ((v -= 1) < 0)
2185
2185
  break;
2186
2186
  L.push(p);
2187
2187
  } else if (p < 2048) {
2188
- if ((m -= 2) < 0)
2188
+ if ((v -= 2) < 0)
2189
2189
  break;
2190
2190
  L.push(
2191
2191
  p >> 6 | 192,
2192
2192
  p & 63 | 128
2193
2193
  );
2194
2194
  } else if (p < 65536) {
2195
- if ((m -= 3) < 0)
2195
+ if ((v -= 3) < 0)
2196
2196
  break;
2197
2197
  L.push(
2198
2198
  p >> 12 | 224,
@@ -2200,7 +2200,7 @@ Minimum version required to store current data is: ` + Y + `.
2200
2200
  p & 63 | 128
2201
2201
  );
2202
2202
  } else if (p < 1114112) {
2203
- if ((m -= 4) < 0)
2203
+ if ((v -= 4) < 0)
2204
2204
  break;
2205
2205
  L.push(
2206
2206
  p >> 18 | 240,
@@ -2219,43 +2219,43 @@ Minimum version required to store current data is: ` + Y + `.
2219
2219
  if (typeof ArrayBuffer < "u" && typeof ArrayBuffer.isView == "function" && (ArrayBuffer.isView(_) || _ instanceof ArrayBuffer))
2220
2220
  return _.byteLength;
2221
2221
  typeof _ != "string" && (_ = "" + _);
2222
- var m = _.length;
2223
- return m === 0 ? 0 : M(_).length;
2222
+ var v = _.length;
2223
+ return v === 0 ? 0 : M(_).length;
2224
2224
  }
2225
- function T(_, m, p, E) {
2226
- for (var S = 0; S < E && !(S + p >= m.length || S >= _.length); ++S)
2227
- m[S + p] = _[S];
2225
+ function T(_, v, p, E) {
2226
+ for (var S = 0; S < E && !(S + p >= v.length || S >= _.length); ++S)
2227
+ v[S + p] = _[S];
2228
2228
  return S;
2229
2229
  }
2230
- function I(_, m, p, E) {
2231
- return T(M(m, _.length - p), _, p, E);
2230
+ function I(_, v, p, E) {
2231
+ return T(M(v, _.length - p), _, p, E);
2232
2232
  }
2233
- function k(_, m, p, E) {
2234
- if (typeof m == "number")
2233
+ function k(_, v, p, E) {
2234
+ if (typeof v == "number")
2235
2235
  throw new TypeError('"value" argument must not be a number');
2236
- return typeof ArrayBuffer < "u" && m instanceof ArrayBuffer ? A(_, m, p, E) : typeof m == "string" ? x(_, m) : F(_, m);
2236
+ return typeof ArrayBuffer < "u" && v instanceof ArrayBuffer ? A(_, v, p, E) : typeof v == "string" ? x(_, v) : F(_, v);
2237
2237
  }
2238
- i.prototype.write = function(m, p, E) {
2238
+ i.prototype.write = function(v, p, E) {
2239
2239
  p === void 0 ? (E = this.length, p = 0) : E === void 0 && typeof p == "string" ? (E = this.length, p = 0) : isFinite(p) && (p = p | 0, isFinite(E) ? E = E | 0 : E = void 0);
2240
2240
  var S = this.length - p;
2241
- if ((E === void 0 || E > S) && (E = S), m.length > 0 && (E < 0 || p < 0) || p > this.length)
2241
+ if ((E === void 0 || E > S) && (E = S), v.length > 0 && (E < 0 || p < 0) || p > this.length)
2242
2242
  throw new RangeError("Attempt to write outside buffer bounds");
2243
- return I(this, m, p, E);
2244
- }, i.prototype.slice = function(m, p) {
2243
+ return I(this, v, p, E);
2244
+ }, i.prototype.slice = function(v, p) {
2245
2245
  var E = this.length;
2246
- m = ~~m, p = p === void 0 ? E : ~~p, m < 0 ? (m += E, m < 0 && (m = 0)) : m > E && (m = E), p < 0 ? (p += E, p < 0 && (p = 0)) : p > E && (p = E), p < m && (p = m);
2246
+ v = ~~v, p = p === void 0 ? E : ~~p, v < 0 ? (v += E, v < 0 && (v = 0)) : v > E && (v = E), p < 0 ? (p += E, p < 0 && (p = 0)) : p > E && (p = E), p < v && (p = v);
2247
2247
  var S;
2248
2248
  if (i.TYPED_ARRAY_SUPPORT)
2249
- S = this.subarray(m, p), S.__proto__ = i.prototype;
2249
+ S = this.subarray(v, p), S.__proto__ = i.prototype;
2250
2250
  else {
2251
- var L = p - m;
2251
+ var L = p - v;
2252
2252
  S = new i(L, void 0);
2253
2253
  for (var W = 0; W < L; ++W)
2254
- S[W] = this[W + m];
2254
+ S[W] = this[W + v];
2255
2255
  }
2256
2256
  return S;
2257
- }, i.prototype.copy = function(m, p, E, S) {
2258
- if (E || (E = 0), !S && S !== 0 && (S = this.length), p >= m.length && (p = m.length), p || (p = 0), S > 0 && S < E && (S = E), S === E || m.length === 0 || this.length === 0)
2257
+ }, i.prototype.copy = function(v, p, E, S) {
2258
+ if (E || (E = 0), !S && S !== 0 && (S = this.length), p >= v.length && (p = v.length), p || (p = 0), S > 0 && S < E && (S = E), S === E || v.length === 0 || this.length === 0)
2259
2259
  return 0;
2260
2260
  if (p < 0)
2261
2261
  throw new RangeError("targetStart out of bounds");
@@ -2263,66 +2263,66 @@ Minimum version required to store current data is: ` + Y + `.
2263
2263
  throw new RangeError("sourceStart out of bounds");
2264
2264
  if (S < 0)
2265
2265
  throw new RangeError("sourceEnd out of bounds");
2266
- S > this.length && (S = this.length), m.length - p < S - E && (S = m.length - p + E);
2266
+ S > this.length && (S = this.length), v.length - p < S - E && (S = v.length - p + E);
2267
2267
  var L = S - E, W;
2268
- if (this === m && E < p && p < S)
2268
+ if (this === v && E < p && p < S)
2269
2269
  for (W = L - 1; W >= 0; --W)
2270
- m[W + p] = this[W + E];
2270
+ v[W + p] = this[W + E];
2271
2271
  else if (L < 1e3 || !i.TYPED_ARRAY_SUPPORT)
2272
2272
  for (W = 0; W < L; ++W)
2273
- m[W + p] = this[W + E];
2273
+ v[W + p] = this[W + E];
2274
2274
  else
2275
2275
  Uint8Array.prototype.set.call(
2276
- m,
2276
+ v,
2277
2277
  this.subarray(E, E + L),
2278
2278
  p
2279
2279
  );
2280
2280
  return L;
2281
- }, i.prototype.fill = function(m, p, E) {
2282
- if (typeof m == "string") {
2283
- if (typeof p == "string" ? (p = 0, E = this.length) : typeof E == "string" && (E = this.length), m.length === 1) {
2284
- var S = m.charCodeAt(0);
2285
- S < 256 && (m = S);
2281
+ }, i.prototype.fill = function(v, p, E) {
2282
+ if (typeof v == "string") {
2283
+ if (typeof p == "string" ? (p = 0, E = this.length) : typeof E == "string" && (E = this.length), v.length === 1) {
2284
+ var S = v.charCodeAt(0);
2285
+ S < 256 && (v = S);
2286
2286
  }
2287
2287
  } else
2288
- typeof m == "number" && (m = m & 255);
2288
+ typeof v == "number" && (v = v & 255);
2289
2289
  if (p < 0 || this.length < p || this.length < E)
2290
2290
  throw new RangeError("Out of range index");
2291
2291
  if (E <= p)
2292
2292
  return this;
2293
- p = p >>> 0, E = E === void 0 ? this.length : E >>> 0, m || (m = 0);
2293
+ p = p >>> 0, E = E === void 0 ? this.length : E >>> 0, v || (v = 0);
2294
2294
  var L;
2295
- if (typeof m == "number")
2295
+ if (typeof v == "number")
2296
2296
  for (L = p; L < E; ++L)
2297
- this[L] = m;
2297
+ this[L] = v;
2298
2298
  else {
2299
- var W = i.isBuffer(m) ? m : new i(m), D = W.length;
2299
+ var W = i.isBuffer(v) ? v : new i(v), D = W.length;
2300
2300
  for (L = 0; L < E - p; ++L)
2301
2301
  this[L + p] = W[L % D];
2302
2302
  }
2303
2303
  return this;
2304
- }, i.concat = function(m, p) {
2305
- if (!f(m))
2304
+ }, i.concat = function(v, p) {
2305
+ if (!f(v))
2306
2306
  throw new TypeError('"list" argument must be an Array of Buffers');
2307
- if (m.length === 0)
2307
+ if (v.length === 0)
2308
2308
  return a(null, 0);
2309
2309
  var E;
2310
2310
  if (p === void 0)
2311
- for (p = 0, E = 0; E < m.length; ++E)
2312
- p += m[E].length;
2311
+ for (p = 0, E = 0; E < v.length; ++E)
2312
+ p += v[E].length;
2313
2313
  var S = w(null, p), L = 0;
2314
- for (E = 0; E < m.length; ++E) {
2315
- var W = m[E];
2314
+ for (E = 0; E < v.length; ++E) {
2315
+ var W = v[E];
2316
2316
  if (!i.isBuffer(W))
2317
2317
  throw new TypeError('"list" argument must be an Array of Buffers');
2318
2318
  W.copy(S, L), L += W.length;
2319
2319
  }
2320
2320
  return S;
2321
- }, i.byteLength = C, i.prototype._isBuffer = !0, i.isBuffer = function(m) {
2322
- return !!(m != null && m._isBuffer);
2321
+ }, i.byteLength = C, i.prototype._isBuffer = !0, i.isBuffer = function(v) {
2322
+ return !!(v != null && v._isBuffer);
2323
2323
  }, g.exports.alloc = function(_) {
2324
- var m = new i(_);
2325
- return m.fill(0), m;
2324
+ var v = new i(_);
2325
+ return v.fill(0), v;
2326
2326
  }, g.exports.from = function(_) {
2327
2327
  return new i(_);
2328
2328
  };
@@ -2348,25 +2348,25 @@ Minimum version required to store current data is: ` + Y + `.
2348
2348
  return (T + I) * 3 / 4 - I;
2349
2349
  }
2350
2350
  function b(C) {
2351
- var T, I = a(C), k = I[0], _ = I[1], m = new c(x(C, k, _)), p = 0, E = _ > 0 ? k - 4 : k, S;
2351
+ var T, I = a(C), k = I[0], _ = I[1], v = new c(x(C, k, _)), p = 0, E = _ > 0 ? k - 4 : k, S;
2352
2352
  for (S = 0; S < E; S += 4)
2353
- T = d[C.charCodeAt(S)] << 18 | d[C.charCodeAt(S + 1)] << 12 | d[C.charCodeAt(S + 2)] << 6 | d[C.charCodeAt(S + 3)], m[p++] = T >> 16 & 255, m[p++] = T >> 8 & 255, m[p++] = T & 255;
2354
- return _ === 2 && (T = d[C.charCodeAt(S)] << 2 | d[C.charCodeAt(S + 1)] >> 4, m[p++] = T & 255), _ === 1 && (T = d[C.charCodeAt(S)] << 10 | d[C.charCodeAt(S + 1)] << 4 | d[C.charCodeAt(S + 2)] >> 2, m[p++] = T >> 8 & 255, m[p++] = T & 255), m;
2353
+ T = d[C.charCodeAt(S)] << 18 | d[C.charCodeAt(S + 1)] << 12 | d[C.charCodeAt(S + 2)] << 6 | d[C.charCodeAt(S + 3)], v[p++] = T >> 16 & 255, v[p++] = T >> 8 & 255, v[p++] = T & 255;
2354
+ return _ === 2 && (T = d[C.charCodeAt(S)] << 2 | d[C.charCodeAt(S + 1)] >> 4, v[p++] = T & 255), _ === 1 && (T = d[C.charCodeAt(S)] << 10 | d[C.charCodeAt(S + 1)] << 4 | d[C.charCodeAt(S + 2)] >> 2, v[p++] = T >> 8 & 255, v[p++] = T & 255), v;
2355
2355
  }
2356
2356
  function A(C) {
2357
2357
  return f[C >> 18 & 63] + f[C >> 12 & 63] + f[C >> 6 & 63] + f[C & 63];
2358
2358
  }
2359
2359
  function F(C, T, I) {
2360
- for (var k, _ = [], m = T; m < I; m += 3)
2361
- k = (C[m] << 16 & 16711680) + (C[m + 1] << 8 & 65280) + (C[m + 2] & 255), _.push(A(k));
2360
+ for (var k, _ = [], v = T; v < I; v += 3)
2361
+ k = (C[v] << 16 & 16711680) + (C[v + 1] << 8 & 65280) + (C[v + 2] & 255), _.push(A(k));
2362
2362
  return _.join("");
2363
2363
  }
2364
2364
  function M(C) {
2365
- for (var T, I = C.length, k = I % 3, _ = [], m = 16383, p = 0, E = I - k; p < E; p += m)
2365
+ for (var T, I = C.length, k = I % 3, _ = [], v = 16383, p = 0, E = I - k; p < E; p += v)
2366
2366
  _.push(F(
2367
2367
  C,
2368
2368
  p,
2369
- p + m > E ? E : p + m
2369
+ p + v > E ? E : p + v
2370
2370
  ));
2371
2371
  return k === 1 ? (T = C[I - 1], _.push(
2372
2372
  f[T >> 2] + f[T << 4 & 63] + "=="
@@ -2604,7 +2604,7 @@ Minimum version required to store current data is: ` + Y + `.
2604
2604
  }
2605
2605
  }
2606
2606
  a.byteLength = _;
2607
- function m(o, t, e) {
2607
+ function v(o, t, e) {
2608
2608
  var u = !1;
2609
2609
  if ((t === void 0 || t < 0) && (t = 0), t > this.length || ((e === void 0 || e > this.length) && (e = this.length), e <= 0) || (e >>>= 0, t >>>= 0, e <= t))
2610
2610
  return "";
@@ -2661,7 +2661,7 @@ Minimum version required to store current data is: ` + Y + `.
2661
2661
  return this;
2662
2662
  }, a.prototype.toString = function() {
2663
2663
  var t = this.length;
2664
- return t === 0 ? "" : arguments.length === 0 ? z(this, 0, t) : m.apply(this, arguments);
2664
+ return t === 0 ? "" : arguments.length === 0 ? z(this, 0, t) : v.apply(this, arguments);
2665
2665
  }, a.prototype.toLocaleString = a.prototype.toString, a.prototype.equals = function(t) {
2666
2666
  if (!a.isBuffer(t))
2667
2667
  throw new TypeError("Argument must be a Buffer");
@@ -3338,11 +3338,11 @@ Minimum version required to store current data is: ` + Y + `.
3338
3338
  this.generate();
3339
3339
  }
3340
3340
  };
3341
- function se(v) {
3341
+ function se(m) {
3342
3342
  window.history.replaceState({}, "", window.location.href);
3343
3343
  let r = "";
3344
3344
  const n = (navigator == null ? void 0 : navigator.userAgent) || "";
3345
- 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}`);
3345
+ return n.match("CriOS") ? r = "googlechromes://" : n.match("FxiOS") ? r = "firefox://" : n.match("GSA") && (r = "googleapp://open-url?url="), r + encodeURIComponent(`${window.location.href}#${m}`);
3346
3346
  }
3347
3347
  const ue = {
3348
3348
  name: "BankIdAnswer",
@@ -3370,42 +3370,47 @@ const ue = {
3370
3370
  },
3371
3371
  computed: {
3372
3372
  viewText() {
3373
- const v = (r) => this._document.$t(`answerModal.bankId.component.viewText.${r}`);
3373
+ const m = (r) => this._document.$t(`answerModal.bankId.component.viewText.${r}`);
3374
3374
  return {
3375
3375
  new: {
3376
- title: v("new.title"),
3377
- text: v("new.text"),
3378
- spinnerText: v("new.spinnerText")
3376
+ title: m("new.title"),
3377
+ text: m("new.text"),
3378
+ spinnerText: m("new.spinnerText")
3379
3379
  },
3380
3380
  waiting: {
3381
- title: v("waiting.title"),
3382
- text: v("waiting.text"),
3383
- spinnerText: v("waiting.spinnerText")
3381
+ title: m("waiting.title"),
3382
+ text: m("waiting.text"),
3383
+ spinnerText: m("waiting.spinnerText")
3384
+ },
3385
+ started: {
3386
+ title: m("waiting.title"),
3387
+ text: m("waiting.text"),
3388
+ spinnerText: m("waiting.spinnerText")
3384
3389
  },
3385
3390
  signing: {
3386
- title: v("signing.title"),
3387
- text: v("signing.text"),
3388
- spinnerText: v("signing.spinnerText")
3391
+ title: m("signing.title"),
3392
+ text: m("signing.text"),
3393
+ spinnerText: m("signing.spinnerText")
3389
3394
  },
3390
3395
  error: {
3391
- title: v("error.title"),
3392
- text: v("error.text")
3396
+ title: m("error.title"),
3397
+ text: m("error.text")
3393
3398
  },
3394
3399
  canceled: {
3395
- title: v("canceled.title"),
3396
- text: v("canceled.text")
3400
+ title: m("canceled.title"),
3401
+ text: m("canceled.text")
3397
3402
  }
3398
3403
  };
3399
3404
  }
3400
3405
  },
3401
3406
  watch: {
3402
- isLoading(v) {
3403
- this.$emit("loading", v);
3407
+ isLoading(m) {
3408
+ this.$emit("loading", m);
3404
3409
  },
3405
3410
  $route: {
3406
3411
  immediate: !0,
3407
- handler(v) {
3408
- v != null && v.hash && this.resumePolling(v.hash.slice(1));
3412
+ handler(m) {
3413
+ m != null && m.hash && this.resumePolling(m.hash.slice(1));
3409
3414
  }
3410
3415
  }
3411
3416
  },
@@ -3416,13 +3421,13 @@ const ue = {
3416
3421
  this.signInterval && this.stopPolling();
3417
3422
  },
3418
3423
  methods: {
3419
- async submit({ answer: v }) {
3424
+ async submit({ answer: m }) {
3420
3425
  try {
3421
3426
  if (this.isLoading = !0, this.demo) {
3422
3427
  this.view = "new", await ft(1e3), this.view = "waiting", await ft(1e3), this.view = "signing", await ft(1e3), this.onComplete();
3423
3428
  return;
3424
3429
  }
3425
- const { id: r, autoStartToken: n, qrCodeData: g } = await v({ body: { isAccepted: !0 } });
3430
+ const { id: r, autoStartToken: n, qrCodeData: g } = await m({ body: { isAccepted: !0 } });
3426
3431
  n && (this.autoStartToken = n), g && (this.qrCode = g), this.signAnswerId = r, this.startPolling(), this.isMobile && this.triggerAutoStart();
3427
3432
  return;
3428
3433
  } catch (r) {
@@ -3433,10 +3438,10 @@ const ue = {
3433
3438
  if (!this.signAnswerId)
3434
3439
  throw Error("Missing signAnswerId");
3435
3440
  try {
3436
- const { data: v } = await Ft.get(this.signAnswerId);
3437
- v.qrCodeData && (this.qrCode = v.qrCodeData), v.status === "completed" ? this.onComplete() : v.status === "canceled" ? this.onCanceled() : this.view = v.status;
3438
- } catch (v) {
3439
- this.onError(v);
3441
+ const { data: m } = await Ft.get(this.signAnswerId);
3442
+ m.qrCodeData && (this.qrCode = m.qrCodeData), m.status === "completed" ? this.onComplete() : m.status === "canceled" ? this.onCanceled() : this.view = m.status;
3443
+ } catch (m) {
3444
+ this.onError(m);
3440
3445
  }
3441
3446
  },
3442
3447
  async startPolling() {
@@ -3453,12 +3458,12 @@ const ue = {
3453
3458
  onCanceled() {
3454
3459
  this.stopPolling(), this.view = "canceled", this.errorMessage = this._document.$t("answerModal.bankId.component.signingInterrupted");
3455
3460
  },
3456
- onError(v) {
3461
+ onError(m) {
3457
3462
  var n, g;
3458
- if (this.stopPolling(), v.httpStatusCode === 409)
3459
- throw v;
3463
+ if (this.stopPolling(), m.httpStatusCode === 409)
3464
+ throw m;
3460
3465
  this.$emit("error"), this.view = "error";
3461
- const r = (g = (n = v.response) == null ? void 0 : n.data) == null ? void 0 : g.errorCode;
3466
+ const r = (g = (n = m.response) == null ? void 0 : n.data) == null ? void 0 : g.errorCode;
3462
3467
  switch (r) {
3463
3468
  case 9001:
3464
3469
  case 9002:
@@ -3467,30 +3472,30 @@ const ue = {
3467
3472
  case 9005:
3468
3473
  case 9006:
3469
3474
  case 9007:
3470
- kt.warn(v);
3475
+ kt.warn(m);
3471
3476
  break;
3472
3477
  case 9009:
3473
3478
  this.$emit("complete");
3474
3479
  break;
3475
3480
  default:
3476
- Ct(v, { showMessage: !1 });
3481
+ Ct(m, { showMessage: !1 });
3477
3482
  }
3478
3483
  this.errorMessage = this.$i18n.te(`errors:${r}`) && this._document.$t(`answerModal.bankId.component.errors.${r}`) || this._document.$t("answerModal.bankId.component.defaultError");
3479
3484
  },
3480
- resumePolling(v) {
3481
- this.view = "signing", this.signAnswerId = v, this.startPolling();
3485
+ resumePolling(m) {
3486
+ this.view = "signing", this.signAnswerId = m, this.startPolling();
3482
3487
  const r = new URL(window.location.href);
3483
3488
  r.search = "", r.hash = "", window.history.replaceState({}, "", r.href);
3484
3489
  },
3485
3490
  triggerAutoStart() {
3486
3491
  if (!this.autoStartToken)
3487
3492
  return;
3488
- let v = "bankid://", r = "null";
3493
+ let m = "bankid://", r = "null";
3489
3494
  if (this.isMobile) {
3490
3495
  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);
3491
- (f || d) && (v = "https://app.bankid.com"), g === "iOS" && this.$view !== "widget" && (r = se(this.signAnswerId));
3496
+ (f || d) && (m = "https://app.bankid.com"), g === "iOS" && this.$view !== "widget" && (r = se(this.signAnswerId));
3492
3497
  }
3493
- const n = `${v}/?autostarttoken=${this.autoStartToken}&redirect=${r}`;
3498
+ const n = `${m}/?autostarttoken=${this.autoStartToken}&redirect=${r}`;
3494
3499
  this.isMobile ? document.location = n : document.getElementById("autoStartFrame").src = n;
3495
3500
  }
3496
3501
  }
@@ -3498,11 +3503,11 @@ const ue = {
3498
3503
  var ce = function() {
3499
3504
  var g;
3500
3505
  var r = this, n = r._self._c;
3501
- return n("div", { staticClass: "flex flex-col items-center -my-4" }, [n("iframe", { staticClass: "hidden", attrs: { id: "autoStartFrame", height: "0", width: "0" } }), ["form", "signing", "error", "canceled"].includes(r.view) ? n("div", { staticClass: "w-[250px] h-[250px] bg-gray-100 rounded-xl flex justify-center items-center" }, [n("BaseIcon", { staticClass: "text-gray-500", attrs: { type: "bankId", size: "50" } })], 1) : r._e(), ["new", "waiting"].includes(r.view) ? [r.qrCode ? n("QrCode", { attrs: { value: r.qrCode, options: {
3506
+ return n("div", { staticClass: "flex flex-col items-center -my-4" }, [n("iframe", { staticClass: "hidden", attrs: { id: "autoStartFrame", height: "0", width: "0" } }), ["form", "signing", "error", "canceled"].includes(r.view) ? n("div", { staticClass: "w-[250px] h-[250px] bg-gray-100 rounded-xl flex justify-center items-center" }, [n("BaseIcon", { staticClass: "text-gray-500", attrs: { type: "bankId", size: "50" } })], 1) : r._e(), ["new", "waiting", "started"].includes(r.view) ? [r.qrCode ? n("QrCode", { attrs: { value: r.qrCode, options: {
3502
3507
  width: 250,
3503
3508
  errorCorrectionLevel: "L",
3504
3509
  color: { dark: "#000000" }
3505
- } } }) : 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: () => {
3510
+ } } }) : 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", "started"].includes(r.view) ? n("CButton", { key: "b", staticClass: "mt-4", attrs: { type: "none", pattern: "secondary", size: "small" }, on: { click: r.triggerAutoStart } }, [r._v(" " + r._s(r._document.$t("answerModal.bankId.component.startOnThisDevice")) + " ")]) : r._e()], 1), ["form", "new", "waiting", "started"].includes(r.view) ? r._e() : n("div", [n("transition", { attrs: { name: "pop-in" } }, [n("div", { staticClass: "bankid-popup", on: { click: () => {
3506
3511
  r.view = "form", r.isLoading = !1;
3507
3512
  } } }, [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) {
3508
3513
  r.view = "form";
@@ -3513,7 +3518,7 @@ var ce = function() {
3513
3518
  le,
3514
3519
  !1,
3515
3520
  null,
3516
- "cdf6b1df",
3521
+ "650db10f",
3517
3522
  null,
3518
3523
  null
3519
3524
  );
@@ -3533,14 +3538,14 @@ const de = {
3533
3538
  };
3534
3539
  },
3535
3540
  methods: {
3536
- async submit({ update: v, answer: r }) {
3541
+ async submit({ update: m, answer: r }) {
3537
3542
  const n = [];
3538
3543
  this.rejectReason && n.push({
3539
3544
  key: "unclear-other",
3540
3545
  category: "misc",
3541
3546
  description: this.rejectReason,
3542
3547
  sentAt: this._document.lastSentAt
3543
- }), this.demo || (await v({ body: { "data.rejectReasons": n } }), await r({ body: { isAccepted: !1 } })), this.$emit("complete");
3548
+ }), this.demo || (await m({ body: { "data.rejectReasons": n } }), await r({ body: { isAccepted: !1 } })), this.$emit("complete");
3544
3549
  }
3545
3550
  }
3546
3551
  };
@@ -3608,22 +3613,22 @@ const ye = {
3608
3613
  return this._document.isPreview && !this.isSender;
3609
3614
  },
3610
3615
  signee() {
3611
- var v, r;
3616
+ var m, r;
3612
3617
  return this.isSender ? this._document.senderClient : this._document.isPreview ? {
3613
3618
  socialNo: "198710126130",
3614
3619
  email: "richard@piedpier.com",
3615
3620
  name: "Richard Hendricks",
3616
3621
  answerMethod: {
3617
- accept: (r = (v = this._document.data) == null ? void 0 : v.defaultAnswerMethod) == null ? void 0 : r.accept
3622
+ accept: (r = (m = this._document.data) == null ? void 0 : m.defaultAnswerMethod) == null ? void 0 : r.accept
3618
3623
  }
3619
3624
  } : this._document.viewer;
3620
3625
  },
3621
3626
  answerMethod() {
3622
- var v;
3623
- return (v = this.signee.answerMethod) == null ? void 0 : v.accept;
3627
+ var m;
3628
+ return (m = this.signee.answerMethod) == null ? void 0 : m.accept;
3624
3629
  },
3625
3630
  successStrings() {
3626
- 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;
3631
+ const m = 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 : m;
3627
3632
  return {
3628
3633
  title: this._document.$t(`answerModal.${this.answerType}.success.title`),
3629
3634
  text: n
@@ -3646,16 +3651,16 @@ const ye = {
3646
3651
  if (!this.isPosting) {
3647
3652
  this.isPosting = !0;
3648
3653
  try {
3649
- const { submit: v } = this.$refs.answerComponent;
3650
- if (typeof v != "function")
3654
+ const { submit: m } = this.$refs.answerComponent;
3655
+ if (typeof m != "function")
3651
3656
  throw Error("Missing answer type submit method");
3652
- await v({
3657
+ await m({
3653
3658
  update: (r) => this.putCurrentDoc({ includeChanges: !0, ...r }),
3654
3659
  answer: this.answerCurrentDoc,
3655
3660
  ...this.isSender ? this.senderActions : null
3656
3661
  });
3657
- } catch (v) {
3658
- this.isPosting = !1, v.httpStatusCode === 409 ? this.page = "versionError" : Ct(v);
3662
+ } catch (m) {
3663
+ this.isPosting = !1, m.httpStatusCode === 409 ? this.page = "versionError" : Ct(m);
3659
3664
  }
3660
3665
  }
3661
3666
  },
@@ -3672,9 +3677,9 @@ const ye = {
3672
3677
  setFixedHeight() {
3673
3678
  this.$el.style.minHeight = `${this.$el.offsetHeight}px`;
3674
3679
  },
3675
- minimizeHeight(v, r) {
3680
+ minimizeHeight(m, r) {
3676
3681
  nt({
3677
- targets: v,
3682
+ targets: m,
3678
3683
  height: 0,
3679
3684
  flexGrow: [1, 0],
3680
3685
  opacity: [1, 0],
@@ -3689,9 +3694,9 @@ const ye = {
3689
3694
  easing: "easeOutQuint"
3690
3695
  });
3691
3696
  },
3692
- enterAnim(v, r) {
3697
+ enterAnim(m, r) {
3693
3698
  nt({
3694
- targets: v.querySelectorAll(".stagger-anim"),
3699
+ targets: m.querySelectorAll(".stagger-anim"),
3695
3700
  opacity: [0, 1],
3696
3701
  delay: nt.stagger(180, { start: 800 }),
3697
3702
  duration: 340,
@@ -3699,9 +3704,9 @@ const ye = {
3699
3704
  complete: r
3700
3705
  });
3701
3706
  },
3702
- leaveAnim(v, r) {
3703
- v.style.position = "absolute", nt({
3704
- targets: v.querySelectorAll(".stagger-anim"),
3707
+ leaveAnim(m, r) {
3708
+ m.style.position = "absolute", nt({
3709
+ targets: m.querySelectorAll(".stagger-anim"),
3705
3710
  opacity: 0,
3706
3711
  delay: nt.stagger(200),
3707
3712
  duration: 200,