@cling-se/widget 0.12.2 → 0.12.3

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