@cling-se/widget 0.15.2 → 0.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/README.md +43 -43
  2. package/dist/{AddClientCallout-CSxN7XFh.js → AddClientCallout-CrZF5j7A.js} +15 -13
  3. package/dist/{AnswerModal-DEwMlsT8.js → AnswerModal-C3r9vyki.js} +71 -71
  4. package/dist/{AttachmentItem-R7YMKqQ2.js → AttachmentItem-BVXrxCnv.js} +20 -13
  5. package/dist/{BaseDatePicker-Bd1maWgF.js → BaseDatePicker-DxL2l3QC.js} +561 -557
  6. package/dist/{BaseUpload-C9Jd1JBo.js → BaseUpload-B7259IaQ.js} +3 -3
  7. package/dist/{BlockMedia-CUCZYVdZ.js → BlockMedia-BSKtZMwa.js} +2 -2
  8. package/dist/{CCallout-_k7FPbsE.js → CCallout-BNvM6gNJ.js} +4 -5
  9. package/dist/{CCurrencyDropdown-DejfeYVY.js → CCurrencyDropdown-xmqmb8gW.js} +24 -20
  10. package/dist/{CDropdownItem-b6ZzOnv-.js → CDropdownItem-DiLisSei.js} +139 -37
  11. package/dist/{CFormField-BjGICSv5.js → CFormField-DcZVdj3a.js} +3 -4
  12. package/dist/{CPhoneFormat-Bf2fgYtr.js → CPhoneFormat-BeYxRN0i.js} +1 -1
  13. package/dist/CPhoneInput-UzZkxbC6.js +138 -0
  14. package/dist/{CPriceInput-myrETXfz.js → CPriceInput-C2y_3PM7.js} +20 -16
  15. package/dist/CSelect-BmP1UsQA.js +91 -0
  16. package/dist/CSkeleton-BNbft-NE.js +55 -0
  17. package/dist/ClientAutocomplete-BnredOme.js +438 -0
  18. package/dist/{ClientModal-DSmFJ9bu.js → ClientModal-DNcf4APF.js} +92 -51
  19. package/dist/{ColorPicker-B1MJicqo.js → ColorPicker-BupC4jvI.js} +2 -2
  20. package/dist/{CompanyModal-BXs3aAYm.js → CompanyModal-Bh8mEHE1.js} +25 -19
  21. package/dist/{ContentWrapper-BKWZy4Bp.js → ContentWrapper-Bs3nrJda.js} +63 -55
  22. package/dist/CoverBlockSettings-WYZsCdky.js +659 -0
  23. package/dist/{DocAnswer-CaoTYUNh.js → DocAnswer--FfsnnTB.js} +2 -2
  24. package/dist/{DocDetails-C9EEpNg2.js → DocDetails-Ce7bj-qO.js} +43 -39
  25. package/dist/{DocForm-Dww8Ust9.js → DocForm-FR_Vlq_C.js} +801 -755
  26. package/dist/{DocFormSend-DKAqaT50.js → DocFormSend-DcSv3JNg.js} +18 -15
  27. package/dist/{DocLinks-DFUO03dk.js → DocLinks-Bvhc62aJ.js} +2 -2
  28. package/dist/{DocModalBase-QZosNhiK.js → DocModalBase-DkfUBRi3.js} +2 -2
  29. package/dist/{DocPrint--T278pDE.js → DocPrint-BrKY6rOy.js} +3 -3
  30. package/dist/{DocReceipt-CPg45_I7.js → DocReceipt-oGrM6t_k.js} +29 -22
  31. package/dist/{DocSendReminder-DQAaiUrs.js → DocSendReminder-veEC_yHK.js} +19 -16
  32. package/dist/{DocTextEditor-CM1f8eMD.js → DocTextEditor-CNRwxPEx.js} +72 -70
  33. package/dist/{DocTimeline-Ce0OZgGP.js → DocTimeline-e2Xf_QZ7.js} +38 -34
  34. package/dist/{DocumentClient-DHU-Rg3r.js → DocumentClient-Dx4Uyxkh.js} +5 -5
  35. package/dist/{DocumentLayout-GYCBw2F_.js → DocumentLayout-DmjmsTcx.js} +1506 -1538
  36. package/dist/{DocumentLogotype-Cilc0ElE.js → DocumentLogotype-ddYHM9wn.js} +25 -20
  37. package/dist/{DocumentVoided-BH8pkv85.js → DocumentVoided-WCk7XuxH.js} +1 -1
  38. package/dist/{EmbedInput-lMSVQSey.js → EmbedInput-CMueXdFs.js} +25 -21
  39. package/dist/{EmbedSettings-D65Y2AZL.js → EmbedSettings-BRuLCWr0.js} +13 -11
  40. package/dist/{ErrorCallout-BBNHzuhf.js → ErrorCallout-CDtZceLU.js} +6 -6
  41. package/dist/{FilePreviewModal-iPIuaIor.js → FilePreviewModal-BzAUuY58.js} +3 -3
  42. package/dist/Flag-DkJgyDQK.js +46 -0
  43. package/dist/{HeaderSettings-WKUIBCfF.js → HeaderSettings-CoKK5Mbt.js} +159 -110
  44. package/dist/{ImageSelectModal-BTMFM3o9.js → ImageSelectModal-De64vGSr.js} +15 -13
  45. package/dist/{ImageUploadWrapper-BaLjUZF5.js → ImageUploadWrapper-CE6KTze0.js} +3 -3
  46. package/dist/{Index-DS1PwlDq.js → Index-50KxppUS.js} +4 -4
  47. package/dist/{Index-DJeZiYxr.js → Index-B7vVIRFn.js} +7 -7
  48. package/dist/{Index-ivhPuQy5.js → Index-BUQ75xOU.js} +6 -6
  49. package/dist/{Index-BUEXgHEE.js → Index-BVKCCkQY.js} +57 -50
  50. package/dist/{Index-BBTn35Kj.js → Index-BiGT3iEX.js} +21 -17
  51. package/dist/{Index-B-UWz1IM.js → Index-BoDKKVvL.js} +4 -4
  52. package/dist/{Index-DrSgVUyo.js → Index-BotY9nbP.js} +2 -2
  53. package/dist/{Index-B-YqdbQX.js → Index-BwaJW9CY.js} +3 -3
  54. package/dist/{Index-BepvyGqo.js → Index-ByqCyUgx.js} +9 -9
  55. package/dist/{Index-Bsv15ctO.js → Index-C7pge7E9.js} +23 -21
  56. package/dist/{Index-CEaZgZqg.js → Index-CBRJ-AZi.js} +2 -2
  57. package/dist/{Index-GrrsUUz1.js → Index-CFQMtx5w.js} +5 -5
  58. package/dist/{Index-CtQo0b8t.js → Index-CJKyHWiO.js} +15 -15
  59. package/dist/{Index-Dv1fkHWQ.js → Index-CK_5l1kP.js} +2 -2
  60. package/dist/{Index-BVt3pj58.js → Index-CLc_11Bc.js} +276 -232
  61. package/dist/{Index-cPIqnY80.js → Index-CTokKHJA.js} +5 -5
  62. package/dist/Index-Cf45UGbc.js +28 -0
  63. package/dist/{Index-B51tj7qY.js → Index-CfLPq-yA.js} +5 -5
  64. package/dist/{Index-B_ta4yT_.js → Index-Ci7y3O0G.js} +7 -7
  65. package/dist/{Index-ZKkQzVOj.js → Index-CmV8oF4Q.js} +4 -4
  66. package/dist/{Index-C6tGNKAk.js → Index-CoRuYEYW.js} +5 -5
  67. package/dist/Index-CtKNyVUB.js +56 -0
  68. package/dist/{Index-rL3fz1Ew.js → Index-DCf6_Zd2.js} +2 -2
  69. package/dist/{Index-CEHhYmLe.js → Index-DGdlZzVO.js} +7 -7
  70. package/dist/{Index-B5XaBVyJ.js → Index-DbKB8sTh.js} +18 -12
  71. package/dist/{Index-9PMrT3eB.js → Index-DgBOq2MJ.js} +3 -3
  72. package/dist/{Index-BBOJRRgx.js → Index-DvNxOHHu.js} +6 -6
  73. package/dist/{Index-DS7xellB.js → Index-M2Mce2_m.js} +124 -123
  74. package/dist/{Index-2PGn8Pnv.js → Index-QMkjG7hk.js} +4 -4
  75. package/dist/{Index-oKRUWCcJ.js → Index-QmX5pv-V.js} +17 -15
  76. package/dist/{Index-0aZtDWyk.js → Index-h5xDFYM9.js} +4 -4
  77. package/dist/{Index-CtZMlBfK.js → Index-hkGYloih.js} +5 -5
  78. package/dist/{Index-DK3b6Cv-.js → Index-q3gLm4b1.js} +6 -6
  79. package/dist/{Index-BQ3kapHk.js → Index-sqI1TF7Z.js} +2 -2
  80. package/dist/{InputToggleRow-CJF0vwk3.js → InputToggleRow-DLFIMIdx.js} +2 -2
  81. package/dist/{ManualPopover-CEF7LMpn.js → ManualPopover-Cf8DotlW.js} +13 -11
  82. package/dist/{MediaWrapper-CM6vWCoZ.js → MediaWrapper-BgWmA3kS.js} +3 -3
  83. package/dist/{NotBindingText-Cee9yA0M.js → NotBindingText-DhsHxvkX.js} +2 -2
  84. package/dist/{PackageGroup-CFXogKPM.js → PackageGroup-EbOSxv69.js} +26 -20
  85. package/dist/PdfTerms-im6uTd5E.js +31 -0
  86. package/dist/{PdfViewer-Cd0Jm2VB.js → PdfViewer-DY0rcZjo.js} +22 -22
  87. package/dist/{PlainHtml-CucWAcOU.js → PlainHtml-o031pfp-.js} +1 -1
  88. package/dist/{PriceHeader-DdMZUaq5.js → PriceHeader-NdFa0Sqs.js} +15 -15
  89. package/dist/{SearchApi-knNqVduO.js → SearchApi-Bw5E9IPj.js} +2 -2
  90. package/dist/SendForm-BDY5VDkS.js +1023 -0
  91. package/dist/{Setup-7HIAWuiK.js → Setup-BsYqPmOm.js} +1 -1
  92. package/dist/{SmartList-cSmGbybV.js → SmartList-CP2wHig-.js} +1 -1
  93. package/dist/{TermsSettings-CAB-08E3.js → TermsSettings-CUlSayCJ.js} +20 -13
  94. package/dist/{ThemeColorRow-DxcMvBGq.js → ThemeColorRow-D3fav4Sl.js} +14 -12
  95. package/dist/ToggleBinding-B715OVl2.js +42 -0
  96. package/dist/{UploadModal-CvoSMExA.js → UploadModal-THDJ-UNp.js} +6 -6
  97. package/dist/{VideoPlayerInput-X5baUH3q.js → VideoPlayerInput-Cm3KoRnR.js} +15 -11
  98. package/dist/{VideoPlayerSettings-DsIvpufB.js → VideoPlayerSettings-BFAjczuw.js} +3 -3
  99. package/dist/VideoSelectModal-CzO8EMg9.js +104 -0
  100. package/dist/{answerDocumentMixin-B8HB1WAX.js → answerDocumentMixin-D12xJRhx.js} +3 -3
  101. package/dist/{debounce-B2lqFJg2.js → debounce-DLiv1sQX.js} +16 -16
  102. package/dist/{focusDrawerMixin-B2djM7ql.js → focusDrawerMixin-khaScuSu.js} +1 -1
  103. package/dist/{formDrawerState-CchCpZRc.js → formDrawerState-CJ6kjaD_.js} +1 -1
  104. package/dist/{formValidationMixin-Dz9Mabvi.js → formValidationMixin-Bri1WflH.js} +1 -1
  105. package/dist/{index-Dk6sZCYv.js → index-B0Zu30kF.js} +2 -2
  106. package/dist/{index-twnaU4rC.js → index-C1Ngv-v3.js} +1 -1
  107. package/dist/{index-BCrDgR_4.js → index-CMT3coT-.js} +785 -2001
  108. package/dist/{index-H1Kx9sJM.js → index-DJOUQneq.js} +42 -38
  109. package/dist/{index-BaGtbWcA.js → index-DLa3QER7.js} +18 -17
  110. package/dist/{index-kV9OZ5y0.js → index-Dygy9XlG.js} +1 -1
  111. package/dist/index.es.js +10 -10
  112. package/dist/index.umd.js +179 -175
  113. package/dist/{main-CerYX9PA.js → main-U22_wtg0.js} +13008 -11358
  114. package/dist/{mapFormMixin-Hj1Y7rVt.js → mapFormMixin-BZf4RJIE.js} +1 -1
  115. package/dist/omit-RBXmF_Fo.js +31 -0
  116. package/dist/{publicSenderState-t7Gu53cA.js → publicSenderState-DKuvxj4_.js} +1 -1
  117. package/dist/regions-BdZt9Srn.js +1250 -0
  118. package/dist/simplebar.min-Bnrne5ZK.js +71 -0
  119. package/dist/style.css +2 -2
  120. package/dist/{throttle-B8hI9bkk.js → throttle-Fkuqk26x.js} +2 -2
  121. package/dist/{tinycolor-BaK26Ky-.js → tinycolor-BZ8wGctU.js} +1 -1
  122. package/dist/{tippy.esm-BuWRbveV.js → tippy.esm-BJe845c1.js} +246 -240
  123. package/dist/{utils-Pmm0DT8o.js → utils-BOWVR87A.js} +1 -1
  124. package/dist/{vuedraggable.umd-Besz6Tlv.js → vuedraggable.umd-CJL8TWxZ.js} +1 -1
  125. package/package.json +2 -11
  126. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  127. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  128. package/dist/ClientAutocomplete-DyXQEfcS.js +0 -78
  129. package/dist/CoverBlockSettings-7Ivt9zN0.js +0 -275
  130. package/dist/Flag-CwnrA4SV.js +0 -114
  131. package/dist/Index-B0pgh8nR.js +0 -21
  132. package/dist/Index-Ccx9wHcb.js +0 -52
  133. package/dist/PdfTerms-ChtDfzne.js +0 -36
  134. package/dist/ToggleBinding-CTTYdrkp.js +0 -38
  135. package/dist/VideoSelectModal-VMcSU3bM.js +0 -100
  136. package/dist/formComponentsInstall-CdjgjI6y.js +0 -2495
  137. package/dist/omit-DGBewD2h.js +0 -31
package/README.md CHANGED
@@ -1,43 +1,43 @@
1
- # Publish to @cling-se/widget
2
-
3
- [NPM directory - @cling-se/widget](https://www.npmjs.com/package/@cling-se/widget)
4
-
5
- ### Prerequisites
6
-
7
- 1. Authenticated to NPM
8
- 2. Publishing rights to `@cling-se/widget`
9
-
10
- ### Publishing to NPM
11
-
12
- **Bumping the version**
13
-
14
- - Stand on `dev/master`. Using `dev` is fine as long as the branch is stable.
15
- - Navigate to `widget/package.json` and change version according to semantic versioning (_see table below_)
16
- - Commit and push version change to `dev/master`
17
- - Commit message: `chore(widget): bumps version to <version>`
18
-
19
- **Publishing**
20
-
21
- - Navigate to root and run "pnpm widget:publish"
22
- - If this step doesn't work due to windows paths or similar, and you're working directly in widget directory:
23
- - `pnpm build`
24
- - `pnpm publish`
25
- - If not publishing from master you will be prompted with a confirm dialog. Press yes if the dev branch is stable
26
- - Post a message in **#cling-release-notes** channel:
27
-
28
- New Cling Widget published <npmVersion>
29
- - Specify your changes in a bullet list
30
-
31
- ### Resources and definitions
32
-
33
- <!-- Definition table -->
34
- <details>
35
- <summary>Semantic versioning definitions</summary>
36
-
37
- | Version | Description |
38
- | ------- | -------------------------------------------------------------------------------------------------------------------------------------- |
39
- | MAJOR | When you make incompatible API changes. _At the time of writing we only change this if we plan on long term maintainance of a version_ |
40
- | MINOR | When you add functionality in a backwards compatible manner. |
41
- | PATCH | When you make backwards compatible bug fixes. |
42
-
43
- </details>
1
+ # Publish to @cling-se/widget
2
+
3
+ [NPM directory - @cling-se/widget](https://www.npmjs.com/package/@cling-se/widget)
4
+
5
+ ### Prerequisites
6
+
7
+ 1. Authenticated to NPM
8
+ 2. Publishing rights to `@cling-se/widget`
9
+
10
+ ### Publishing to NPM
11
+
12
+ **Bumping the version**
13
+
14
+ - Stand on `dev/master`. Using `dev` is fine as long as the branch is stable.
15
+ - Navigate to `widget/package.json` and change version according to semantic versioning (_see table below_)
16
+ - Commit and push version change to `dev/master`
17
+ - Commit message: `chore(widget): bumps version to <version>`
18
+
19
+ **Publishing**
20
+
21
+ - Navigate to root and run "pnpm widget:publish"
22
+ - If this step doesn't work due to windows paths or similar, and you're working directly in widget directory:
23
+ - `pnpm build`
24
+ - `pnpm publish`
25
+ - If not publishing from master you will be prompted with a confirm dialog. Press yes if the dev branch is stable
26
+ - Post a message in **#cling-release-notes** channel:
27
+
28
+ New Cling Widget published <npmVersion>
29
+ - Specify your changes in a bullet list
30
+
31
+ ### Resources and definitions
32
+
33
+ <!-- Definition table -->
34
+ <details>
35
+ <summary>Semantic versioning definitions</summary>
36
+
37
+ | Version | Description |
38
+ | ------- | -------------------------------------------------------------------------------------------------------------------------------------- |
39
+ | MAJOR | When you make incompatible API changes. _At the time of writing we only change this if we plan on long term maintainance of a version_ |
40
+ | MINOR | When you add functionality in a backwards compatible manner. |
41
+ | PATCH | When you make backwards compatible bug fixes. |
42
+
43
+ </details>
@@ -1,14 +1,16 @@
1
- import { m as o } from "./mapFormMixin-Hj1Y7rVt.js";
2
- import { C as s } from "./ClientAutocomplete-DyXQEfcS.js";
3
- import { n as r } from "./main-CerYX9PA.js";
4
- const a = {
1
+ import { m as o } from "./mapFormMixin-BZf4RJIE.js";
2
+ import { C as r } from "./CFormField-DcZVdj3a.js";
3
+ import { v as s, n as a } from "./main-U22_wtg0.js";
4
+ import { C as i } from "./ClientAutocomplete-BnredOme.js";
5
+ const n = {
5
6
  i18nOptions: {
6
7
  namespaces: "components",
7
8
  keyPrefix: "account.documentForm.clients"
8
9
  },
9
10
  name: "AddClientCallout",
10
11
  components: {
11
- ClientAutocomplete: s
12
+ ClientAutocomplete: i,
13
+ CField: r
12
14
  },
13
15
  mixins: [o([])],
14
16
  props: {
@@ -19,28 +21,28 @@ const a = {
19
21
  },
20
22
  computed: {
21
23
  showSearch() {
22
- return this.$view !== "widget" && !this.viewSettings.isPublicForm;
24
+ return s.value !== "widget" && !this.viewSettings.isPublicForm;
23
25
  }
24
26
  }
25
27
  };
26
- var i = function() {
28
+ var l = function() {
27
29
  var t = this, e = t._self._c;
28
30
  return e("div", { class: t.compact ? "rounded-lg border border-gray-200 p-3" : "rounded-lg border border-gray-200 bg-gray-100 p-3", style: t.compact && {
29
31
  "--stripe-1": "hsl(var(--gray-color-50))",
30
32
  "--stripe-2": "hsl(var(--gray-color-100))",
31
33
  background: "repeating-linear-gradient(45deg,var(--stripe-1),var(--stripe-1) 15px,var(--stripe-2) 15px,var(--stripe-2) 30px)"
32
- } }, [t.compact ? t._e() : e("div", { staticClass: "px-2" }, [e("div", { staticClass: "text-base font-semibold", domProps: { textContent: t._s(t.$t("title")) } }), e("div", { staticClass: "pb-6 text-gray-700", domProps: { textContent: t._s(t.$t("subTitle")) } })]), e("CField", { attrs: { grouped: "", "group-multiline": "" } }, [e("div", { staticClass: "control" }, [e("CButton", { staticClass: "is-left", attrs: { type: "secondary", size: "small", taller: "", "icon-left": "plus" }, on: { click: function(p) {
34
+ } }, [t.compact ? t._e() : e("div", { staticClass: "px-2" }, [e("div", { staticClass: "text-base font-semibold", domProps: { textContent: t._s(t.$t("title")) } }), e("div", { staticClass: "pb-6 text-gray-700", domProps: { textContent: t._s(t.$t("subTitle")) } })]), e("CField", { attrs: { grouped: "", "group-multiline": "" } }, [e("div", { staticClass: "control" }, [e("CButton", { staticClass: "is-left", attrs: { type: "secondary", size: "small", taller: "", "icon-left": "plus" }, on: { click: function(d) {
33
35
  return t.$emit("add");
34
36
  } } }, [t._v(" " + t._s(t.showSearch ? t.$t("add.new") : t.$t("_common:add", { thing: t.$t("_common:recipient") })) + " ")])], 1), t.showSearch ? [t.compact ? e("div", { staticClass: "control flex items-center text-gray-500", staticStyle: { width: "initial", "font-size": "13px" } }, [t._v(" " + t._s(t.$t("_common:or")) + " ")]) : t._e(), e("ClientAutocomplete", t._g({ staticStyle: { flex: "1 1 0" }, attrs: { "show-loading": !0, "show-empty": !0, icon: "search", "clear-on-select": "" } }, t.$listeners))] : t._e()], 2)], 1);
35
- }, n = [], l = /* @__PURE__ */ r(
36
- a,
37
- i,
37
+ }, c = [], p = /* @__PURE__ */ a(
38
38
  n,
39
+ l,
40
+ c,
39
41
  !1,
40
42
  null,
41
43
  null
42
44
  );
43
- const _ = l.exports;
45
+ const g = p.exports;
44
46
  export {
45
- _ as default
47
+ g as default
46
48
  };
@@ -1,8 +1,8 @@
1
- import { m as ft } from "./mapFormMixin-Hj1Y7rVt.js";
2
- import { ax as It, P as Tt, h as Et, ay as Mt, az as Rt, aA as $t, n as ot, aB as Dt, g as yt, e as At, N as Bt } from "./main-CerYX9PA.js";
1
+ import { m as ft } from "./mapFormMixin-BZf4RJIE.js";
2
+ import { aF as Mt, W as Tt, h as Et, aG as Rt, v as kt, aH as $t, aI as Dt, n as ot, aJ as Ut, g as yt, e as At, T as Bt } from "./main-U22_wtg0.js";
3
3
  import { a as nt } from "./anime.es-BrPTThYb.js";
4
- import { a as Ut } from "./vuex.esm-DKGl8mcw.js";
5
- import { C as Lt } from "./CFormField-BjGICSv5.js";
4
+ import { a as Lt } from "./vuex.esm-DKGl8mcw.js";
5
+ import { C as Nt } from "./CFormField-DcZVdj3a.js";
6
6
  /*!
7
7
  * vue-qrcode v1.0.2
8
8
  * https://fengyuanchen.github.io/vue-qrcode
@@ -15,10 +15,10 @@ import { C as Lt } from "./CFormField-BjGICSv5.js";
15
15
  function gt() {
16
16
  throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs");
17
17
  }
18
- function Nt(v, r) {
18
+ function Ot(v, r) {
19
19
  return r = { exports: {} }, v(r, r.exports), r.exports;
20
20
  }
21
- var xt = Nt(function(v, r) {
21
+ var xt = Ot(function(v, r) {
22
22
  (function(n) {
23
23
  v.exports = n();
24
24
  })(function() {
@@ -2146,7 +2146,7 @@ Minimum version required to store current data is: ` + Y + `.
2146
2146
  var c = o.length;
2147
2147
  (!t || t < 0) && (t = 0), (!e || e < 0 || e > c) && (e = c);
2148
2148
  for (var w = "", P = t; P < e; ++P)
2149
- w += kt[o[P]];
2149
+ w += It[o[P]];
2150
2150
  return w;
2151
2151
  }
2152
2152
  function mt(o, t, e) {
@@ -2447,7 +2447,7 @@ Minimum version required to store current data is: ` + Y + `.
2447
2447
  function wt(o) {
2448
2448
  return o !== o;
2449
2449
  }
2450
- var kt = function() {
2450
+ var It = function() {
2451
2451
  for (var o = "0123456789abcdef", t = new Array(256), e = 0; e < 16; ++e)
2452
2452
  for (var c = e * 16, w = 0; w < 16; ++w)
2453
2453
  t[c + w] = o[e] + o[w];
@@ -2547,7 +2547,7 @@ Minimum version required to store current data is: ` + Y + `.
2547
2547
  };
2548
2548
  }, {}] }, {}, [24])(24);
2549
2549
  });
2550
- }), Ot = {
2550
+ }), zt = {
2551
2551
  name: "qrcode",
2552
2552
  props: {
2553
2553
  /**
@@ -2606,7 +2606,7 @@ Minimum version required to store current data is: ` + Y + `.
2606
2606
  this.generate();
2607
2607
  }
2608
2608
  };
2609
- class zt {
2609
+ class Yt {
2610
2610
  constructor() {
2611
2611
  this._activePolls = {}, this._pollingInterval = 1e3;
2612
2612
  }
@@ -2667,18 +2667,18 @@ class zt {
2667
2667
  }
2668
2668
  let _t = null;
2669
2669
  function Ft() {
2670
- return _t || (_t = new zt()), _t;
2670
+ return _t || (_t = new Yt()), _t;
2671
2671
  }
2672
- function Yt(v) {
2672
+ function Wt(v) {
2673
2673
  window.history.replaceState({}, "", window.location.href);
2674
2674
  let r = "";
2675
2675
  const n = (navigator == null ? void 0 : navigator.userAgent) || "";
2676
2676
  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}`);
2677
2677
  }
2678
- const Wt = {
2678
+ const Ht = {
2679
2679
  name: "BankIdAnswer",
2680
2680
  components: {
2681
- QrCode: Ot
2681
+ QrCode: zt
2682
2682
  },
2683
2683
  mixins: [ft([])],
2684
2684
  props: {
@@ -2739,7 +2739,7 @@ const Wt = {
2739
2739
  }
2740
2740
  },
2741
2741
  created() {
2742
- this.isMobile = It(), this.tryResumeSigningSession();
2742
+ this.isMobile = Mt(), this.tryResumeSigningSession();
2743
2743
  },
2744
2744
  methods: {
2745
2745
  tryResumeSigningSession() {
@@ -2786,7 +2786,7 @@ const Wt = {
2786
2786
  this.clearSignState(), v.removePoll(r);
2787
2787
  };
2788
2788
  try {
2789
- const { data: u } = await Rt.get(this.signAnswerId);
2789
+ const { data: u } = await $t.get(this.signAnswerId);
2790
2790
  u.qrCodeData && (this.qrCode = u.qrCodeData), ["completed", "canceled"].includes(u.status) && g(), u.status === "completed" ? this.onComplete() : u.status === "canceled" ? this.onCanceled() : this.view = u.status;
2791
2791
  } catch (u) {
2792
2792
  this.onError(u), g();
@@ -2836,7 +2836,7 @@ const Wt = {
2836
2836
  case 9005:
2837
2837
  case 9006:
2838
2838
  case 9007:
2839
- Mt.warn(v);
2839
+ Rt.warn(v);
2840
2840
  break;
2841
2841
  case 9009:
2842
2842
  this.$emit("complete");
@@ -2851,15 +2851,15 @@ const Wt = {
2851
2851
  return;
2852
2852
  let v = "bankid://", r = "null";
2853
2853
  if (this.isMobile) {
2854
- const g = $t(), u = (navigator == null ? void 0 : navigator.userAgent) || (navigator == null ? void 0 : navigator.vendor) || (window == null ? void 0 : window.opera), h = g === "iOS" && (/Version\/[\d.]+.*Safari/.test(u) || /GSA/.test(u)), d = g === "Android" && /Version\/[\d.]+.*Chrome/.test(u);
2855
- (h || d) && (v = "https://app.bankid.com"), g === "iOS" && this.$view !== "widget" && (r = Yt(this.signAnswerId));
2854
+ const g = Dt(), u = (navigator == null ? void 0 : navigator.userAgent) || (navigator == null ? void 0 : navigator.vendor) || (window == null ? void 0 : window.opera), h = g === "iOS" && (/Version\/[\d.]+.*Safari/.test(u) || /GSA/.test(u)), d = g === "Android" && /Version\/[\d.]+.*Chrome/.test(u);
2855
+ (h || d) && (v = "https://app.bankid.com"), g === "iOS" && kt.value !== "widget" && (r = Wt(this.signAnswerId));
2856
2856
  }
2857
2857
  const n = `${v}/?autostarttoken=${this.autoStartToken}&redirect=${r}`;
2858
2858
  this.isMobile ? document.location = n : this.$refs.autoStartFrame.src = n;
2859
2859
  }
2860
2860
  }
2861
2861
  };
2862
- var Ht = function() {
2862
+ var jt = function() {
2863
2863
  var g;
2864
2864
  var r = this, n = r._self._c;
2865
2865
  return n("div", { staticClass: "-my-4 flex flex-col items-center" }, [n("iframe", { ref: "autoStartFrame", staticClass: "hidden", attrs: { 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("CIcon", { 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: {
@@ -2871,15 +2871,15 @@ var Ht = function() {
2871
2871
  } } }, [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("CIcon", { 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("CIcon", { 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(u) {
2872
2872
  r.view = "form";
2873
2873
  } } }, [r._v(" " + r._s(r._document.$t("tryAgain")) + " ")])] : r._e()], 2)])])], 1)], 2);
2874
- }, jt = [], Gt = /* @__PURE__ */ ot(
2875
- Wt,
2874
+ }, Gt = [], Kt = /* @__PURE__ */ ot(
2876
2875
  Ht,
2877
2876
  jt,
2877
+ Gt,
2878
2878
  !1,
2879
2879
  null,
2880
- "0a367679"
2880
+ "fb9cf054"
2881
2881
  );
2882
- const Kt = Gt.exports, Vt = {
2882
+ const Vt = Kt.exports, Jt = {
2883
2883
  name: "DenyAnswer",
2884
2884
  mixins: [ft([])],
2885
2885
  props: {
@@ -2905,20 +2905,20 @@ const Kt = Gt.exports, Vt = {
2905
2905
  }
2906
2906
  }
2907
2907
  };
2908
- var Jt = function() {
2908
+ var Xt = function() {
2909
2909
  var r = this, n = r._self._c;
2910
2910
  return n("div", { staticClass: "text-left" }, [n("label", [r._v(r._s(r._document.$t("answerModal.decline.component.label")))]), n("CInput", { staticStyle: { "margin-bottom": "calc(1.5 * var(--rem))" }, attrs: { type: "textarea", filled: "", "custom-class": "decline-input" }, model: { value: r.rejectReason, callback: function(g) {
2911
2911
  r.rejectReason = g;
2912
2912
  }, expression: "rejectReason" } })], 1);
2913
- }, Xt = [], Qt = /* @__PURE__ */ ot(
2914
- Vt,
2913
+ }, Qt = [], qt = /* @__PURE__ */ ot(
2915
2914
  Jt,
2916
2915
  Xt,
2916
+ Qt,
2917
2917
  !1,
2918
2918
  null,
2919
2919
  null
2920
2920
  );
2921
- const qt = Qt.exports;
2921
+ const Zt = qt.exports;
2922
2922
  /*!
2923
2923
  * Signature Pad v4.0.10 | https://github.com/szimek/signature_pad
2924
2924
  * (c) 2022 Szymon Nowak | Released under the MIT license
@@ -2970,7 +2970,7 @@ class bt {
2970
2970
  return n * (1 - r) * (1 - r) * (1 - r) + 3 * g * (1 - r) * (1 - r) * r + 3 * u * (1 - r) * r * r + h * r * r * r;
2971
2971
  }
2972
2972
  }
2973
- class Zt {
2973
+ class te {
2974
2974
  constructor() {
2975
2975
  try {
2976
2976
  this._et = new EventTarget();
@@ -2988,7 +2988,7 @@ class Zt {
2988
2988
  this._et.removeEventListener(r, n, g);
2989
2989
  }
2990
2990
  }
2991
- function te(v, r = 250) {
2991
+ function ee(v, r = 250) {
2992
2992
  let n = 0, g = null, u, h, d;
2993
2993
  const l = () => {
2994
2994
  n = Date.now(), g = null, u = v.apply(h, d), g || (h = null, d = []);
@@ -2998,7 +2998,7 @@ function te(v, r = 250) {
2998
2998
  return h = this, d = s, a <= 0 || a > r ? (g && (clearTimeout(g), g = null), n = f, u = v.apply(h, d), g || (h = null, d = [])) : g || (g = window.setTimeout(l, a)), u;
2999
2999
  };
3000
3000
  }
3001
- let ee = class Ct extends Zt {
3001
+ let re = class Ct extends te {
3002
3002
  constructor(r, n = {}) {
3003
3003
  super(), this.canvas = r, this._handleMouseDown = (g) => {
3004
3004
  g.buttons === 1 && (this._drawningStroke = !0, this._strokeBegin(g));
@@ -3027,7 +3027,7 @@ let ee = class Ct extends Zt {
3027
3027
  this._drawningStroke && (g.preventDefault(), this._strokeMoveUpdate(g));
3028
3028
  }, this._handlePointerEnd = (g) => {
3029
3029
  this._drawningStroke && (g.preventDefault(), this._drawningStroke = !1, this._strokeEnd(g));
3030
- }, 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 ? te(Ct.prototype._strokeUpdate, this.throttle) : Ct.prototype._strokeUpdate, this._ctx = r.getContext("2d"), this.clear(), this.on();
3030
+ }, 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 ? ee(Ct.prototype._strokeUpdate, this.throttle) : Ct.prototype._strokeUpdate, this._ctx = r.getContext("2d"), this.clear(), this.on();
3031
3031
  }
3032
3032
  clear() {
3033
3033
  const { _ctx: r, canvas: n } = this;
@@ -3198,7 +3198,7 @@ let ee = class Ct extends Zt {
3198
3198
  const y = s + f + "</svg>";
3199
3199
  return i + btoa(y);
3200
3200
  }
3201
- }, re = class extends ee {
3201
+ }, ne = class extends re {
3202
3202
  fromText(r, n = {}) {
3203
3203
  if (this.clear(), !r)
3204
3204
  return;
@@ -3211,7 +3211,7 @@ let ee = class Ct extends Zt {
3211
3211
  this._ctx.font = g, this._ctx.fillText(r, u, h, d), this._isEmpty = !1;
3212
3212
  }
3213
3213
  };
3214
- const ne = {
3214
+ const ie = {
3215
3215
  name: "SignaturePad",
3216
3216
  props: {
3217
3217
  type: {
@@ -3282,7 +3282,7 @@ const ne = {
3282
3282
  },
3283
3283
  mounted() {
3284
3284
  const { options: v, defaultOptions: r } = this, n = this.$refs.signaturePadCanvas;
3285
- this.signaturePad = new re(n, {
3285
+ this.signaturePad = new ne(n, {
3286
3286
  ...r,
3287
3287
  ...v
3288
3288
  }), this.onResizeHandler = this.resizeCanvas.bind(this), window.addEventListener("resize", this.onResizeHandler, !1), Object.keys(this.signEvents).forEach((g) => {
@@ -3405,32 +3405,32 @@ const ne = {
3405
3405
  ]
3406
3406
  );
3407
3407
  }
3408
- }, ie = null, ae = null;
3409
- var oe = /* @__PURE__ */ ot(
3410
- ne,
3408
+ }, ae = null, oe = null;
3409
+ var se = /* @__PURE__ */ ot(
3411
3410
  ie,
3412
3411
  ae,
3412
+ oe,
3413
3413
  !1,
3414
3414
  null,
3415
3415
  null
3416
3416
  );
3417
- const se = oe.exports;
3418
- function ue({ rel: v, href: r, crossorigin: n = !1 }) {
3417
+ const ue = se.exports;
3418
+ function ce({ rel: v, href: r, crossorigin: n = !1 }) {
3419
3419
  const g = document.createElement("link");
3420
3420
  g.rel = v, g.href = r, g.crossorigin = n, document.head.appendChild(g);
3421
3421
  }
3422
- const ce = [
3422
+ const le = [
3423
3423
  { rel: "preconnect", href: "https://fonts.googleapis.com" },
3424
3424
  { rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: !0 },
3425
3425
  {
3426
3426
  rel: "stylesheet",
3427
3427
  href: "https://fonts.googleapis.com/css2?family=Nothing+You+Could+Do&display=swap"
3428
3428
  }
3429
- ], le = {
3429
+ ], he = {
3430
3430
  name: "SignatureAnswer",
3431
3431
  components: {
3432
- CField: Lt,
3433
- SignaturePad: se
3432
+ CField: Nt,
3433
+ SignaturePad: ue
3434
3434
  },
3435
3435
  mixins: [ft([])],
3436
3436
  props: {
@@ -3464,7 +3464,7 @@ const ce = [
3464
3464
  }
3465
3465
  },
3466
3466
  created() {
3467
- ce.forEach(ue);
3467
+ le.forEach(ce);
3468
3468
  },
3469
3469
  mounted() {
3470
3470
  this.focusName();
@@ -3495,7 +3495,7 @@ const ce = [
3495
3495
  }
3496
3496
  }
3497
3497
  };
3498
- var he = function() {
3498
+ var fe = function() {
3499
3499
  var r = this, n = r._self._c;
3500
3500
  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) {
3501
3501
  r.mode = "text";
@@ -3510,23 +3510,23 @@ var he = function() {
3510
3510
  r.isEmpty = r.$refs.signaturePad ? r.$refs.signaturePad.isEmpty() : !0;
3511
3511
  }
3512
3512
  } } })], 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);
3513
- }, fe = [], de = /* @__PURE__ */ ot(
3514
- le,
3513
+ }, de = [], ge = /* @__PURE__ */ ot(
3515
3514
  he,
3516
3515
  fe,
3516
+ de,
3517
3517
  !1,
3518
3518
  null,
3519
- "388a42cf"
3519
+ "e30cd56b"
3520
3520
  );
3521
- const ge = de.exports, pe = () => {
3521
+ const pe = ge.exports, me = () => {
3522
3522
  const v = window.location.host.split(".");
3523
3523
  return v && v[0];
3524
- }, me = pe() === "fortnox", ve = [
3524
+ }, ve = me() === "fortnox", we = [
3525
3525
  "enjoyedExperience",
3526
3526
  // boolean value
3527
3527
  "whatToImprove"
3528
3528
  // string value
3529
- ], we = {
3529
+ ], ye = {
3530
3530
  mixins: [ft([])],
3531
3531
  props: {
3532
3532
  publicId: {
@@ -3542,7 +3542,7 @@ const ge = de.exports, pe = () => {
3542
3542
  },
3543
3543
  computed: {
3544
3544
  showFeedback() {
3545
- return this.$view !== "widget";
3545
+ return kt.value !== "widget";
3546
3546
  }
3547
3547
  },
3548
3548
  created() {
@@ -3556,13 +3556,13 @@ const ge = de.exports, pe = () => {
3556
3556
  throw Error("Missing param publicId");
3557
3557
  if (!v)
3558
3558
  throw Error("Missing param type");
3559
- if (!ve.includes(v))
3559
+ if (!we.includes(v))
3560
3560
  throw Error("Invalid feedback type");
3561
3561
  if (!r)
3562
3562
  throw Error("Missing param data");
3563
3563
  let n = "positive";
3564
3564
  try {
3565
- Dt.feedback(this.publicId, { type: v, data: r }), v === "enjoyedExperience" && !r.value && (n = "negative"), v === "whatToImprove" && (n = "negative.success"), me && n !== "negative" && (n = "custom");
3565
+ Ut.feedback(this.publicId, { type: v, data: r }), v === "enjoyedExperience" && !r.value && (n = "negative"), v === "whatToImprove" && (n = "negative.success"), ve && n !== "negative" && (n = "custom");
3566
3566
  } catch (g) {
3567
3567
  Et(g, { showMessage: !1 });
3568
3568
  } finally {
@@ -3647,7 +3647,7 @@ const ge = de.exports, pe = () => {
3647
3647
  }
3648
3648
  }
3649
3649
  };
3650
- var ye = function() {
3650
+ var xe = function() {
3651
3651
  var r = this, n = r._self._c;
3652
3652
  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) {
3653
3653
  return r.submitFeedback({
@@ -3675,20 +3675,20 @@ var ye = function() {
3675
3675
  } } })], 1) : r.page === "custom" ? n("div", { key: "success", staticStyle: { height: "100%", display: "flex", "flex-direction": "column" } }, [n("div", { staticStyle: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "center", "align-items": "center" } }, [n("div", { staticClass: "f-title", domProps: { textContent: r._s(r._document.$t("answerFeedback.custom.title")) } }), n("div", { domProps: { textContent: r._s(r._document.$t("answerFeedback.custom.text")) } })]), n("CButton", { staticClass: "a-btn", attrs: { type: "secondary", wide: "" }, domProps: { textContent: r._s(r._document.$t("answerFeedback.custom.action")) }, on: { click: function(g) {
3676
3676
  return r.$emit("close");
3677
3677
  } } })], 1) : r._e()])], 1)]);
3678
- }, xe = [], _e = /* @__PURE__ */ ot(
3679
- we,
3678
+ }, _e = [], Ce = /* @__PURE__ */ ot(
3680
3679
  ye,
3681
3680
  xe,
3681
+ _e,
3682
3682
  !1,
3683
3683
  null,
3684
- "99810372"
3684
+ "72836ca6"
3685
3685
  );
3686
- const Ce = _e.exports, Ee = {
3686
+ const Ee = Ce.exports, be = {
3687
3687
  components: {
3688
- Feedback: Ce,
3689
- Signature: ge,
3690
- BankId: Kt,
3691
- Deny: qt
3688
+ Feedback: Ee,
3689
+ Signature: pe,
3690
+ BankId: Vt,
3691
+ Deny: Zt
3692
3692
  },
3693
3693
  mixins: [ft([])],
3694
3694
  i18nOptions: {
@@ -3753,7 +3753,7 @@ const Ce = _e.exports, Ee = {
3753
3753
  this.calcHeight && this.$nextTick(() => this.setFixedHeight());
3754
3754
  },
3755
3755
  methods: {
3756
- ...Ut({
3756
+ ...Lt({
3757
3757
  answerCurrentDoc: yt.ANSWER_CURRENT_PUBLIC_DOCUMENT,
3758
3758
  putCurrentDoc: yt.PUT_CURRENT_PUBLIC_DOCUMENT,
3759
3759
  reloadCurrentDocument: yt.RELOAD_CURRENT_DOCUMENT
@@ -3848,7 +3848,7 @@ const Ce = _e.exports, Ee = {
3848
3848
  }
3849
3849
  }
3850
3850
  };
3851
- var be = function() {
3851
+ var Pe = function() {
3852
3852
  var g;
3853
3853
  var r = this, n = r._self._c;
3854
3854
  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", staticClass: "text-[hsl(0, 0%, 45%)] absolute right-5 top-5 z-[9]", attrs: { icon: "x", circle: "" }, on: { click: function(u) {
@@ -3860,15 +3860,15 @@ var be = function() {
3860
3860
  } } }), 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" ? "text" : "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(u) {
3861
3861
  return r.$emit("close");
3862
3862
  } } })], 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("CIcon", { 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);
3863
- }, Pe = [], Se = /* @__PURE__ */ ot(
3864
- Ee,
3863
+ }, Se = [], Te = /* @__PURE__ */ ot(
3865
3864
  be,
3866
3865
  Pe,
3866
+ Se,
3867
3867
  !1,
3868
3868
  null,
3869
- "e9b32dd5"
3869
+ "67dcb365"
3870
3870
  );
3871
- const Me = Se.exports;
3871
+ const Re = Te.exports;
3872
3872
  export {
3873
- Me as default
3873
+ Re as default
3874
3874
  };
@@ -1,9 +1,14 @@
1
- import a from "./Index-BQ3kapHk.js";
2
- import { n as i } from "./main-CerYX9PA.js";
3
- const r = {
1
+ import a from "./Index-sqI1TF7Z.js";
2
+ import { C as r, a as i } from "./CDropdownItem-DiLisSei.js";
3
+ import { C as s } from "./CFormField-DcZVdj3a.js";
4
+ import { n as o } from "./main-U22_wtg0.js";
5
+ const c = {
4
6
  name: "AttachmentsItem",
5
7
  components: {
6
- FileIcon: a
8
+ FileIcon: a,
9
+ CDropdown: r,
10
+ CDropdownItem: i,
11
+ CField: s
7
12
  },
8
13
  inject: {
9
14
  isPdf: {
@@ -35,7 +40,7 @@ const r = {
35
40
  };
36
41
  }
37
42
  };
38
- var s = function() {
43
+ var l = function() {
39
44
  var t = this, e = t._self._c;
40
45
  return e(t.isImageOrPdf && !t.isPdf ? "div" : "a", { tag: "component", staticClass: "attachment-wrapper", attrs: { href: t.attachment.url, target: "_blank", rel: "noopener" }, on: { "&mouseover": function(n) {
41
46
  t.isHover = !0;
@@ -59,20 +64,22 @@ var s = function() {
59
64
  return !n.type.indexOf("key") && t._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : n.target.blur();
60
65
  }, click: function(n) {
61
66
  n.preventDefault(), n.stopPropagation();
62
- } } }), e("CButton", { attrs: { circle: "", type: "secondary", size: "normal", icon: "check" } })], 1) : [e("div", { staticClass: "attachment-data truncate-text pointer-events-none" }, [e("div", { staticClass: "truncate-text" }, [t._v(" " + t._s(t.attachment.name) + " ")]), t.uploadProgress !== null ? e("div", { staticStyle: { display: "flex", "align-items": "center", "font-size": "calc(calc(1 * var(--rem)) - 2px)" } }, [e("CIcon", { staticClass: "spinner", attrs: { type: "loader", size: "14" } }), e("span", { staticStyle: { "padding-left": "0.25em" } }, [t._v(" " + t._s(t.uploadProgress) + "% " + t._s(t.$t("uploading")) + " ")])], 1) : t._e()]), t.canEdit ? e("CDropdown", { attrs: { position: "is-bottom-left" } }, [e("CButton", { class: { "opacity-0": !t.isHover }, attrs: { slot: "trigger", circle: "", type: "none", size: "normal", pattern: "secondary", icon: "more-vertical" }, slot: "trigger" }), e("CDropdownItem", { on: { click: function(n) {
67
+ } } }), e("CButton", { attrs: { circle: "", type: "secondary", size: "normal", icon: "check" } })], 1) : [e("div", { staticClass: "attachment-data truncate-text pointer-events-none" }, [e("div", { staticClass: "truncate-text" }, [t._v(" " + t._s(t.attachment.name) + " ")]), t.uploadProgress !== null ? e("div", { staticStyle: { display: "flex", "align-items": "center", "font-size": "calc(calc(1 * var(--rem)) - 2px)" } }, [e("CIcon", { staticClass: "spinner", attrs: { type: "loader", size: "14" } }), e("span", { staticStyle: { "padding-left": "0.25em" } }, [t._v(" " + t._s(t.uploadProgress) + "% " + t._s(t.$t("uploading")) + " ")])], 1) : t._e()]), t.canEdit ? e("CDropdown", { attrs: { position: "is-bottom-left" }, scopedSlots: t._u([{ key: "trigger", fn: function() {
68
+ return [e("CButton", { class: { "opacity-0": !t.isHover }, attrs: { circle: "", type: "none", size: "normal", pattern: "secondary", icon: "more-vertical" } })];
69
+ }, proxy: !0 }], null, !1, 1422568017) }, [e("CDropdownItem", { on: { click: function(n) {
63
70
  t.isEditing = !0, t.$nextTick(() => t.$refs.input.focus());
64
71
  } } }, [t._v(" " + t._s(t.$t("change", { thing: t.$t("name") })) + " ")]), e("CDropdownItem", { attrs: { type: "danger" }, on: { click: function(n) {
65
72
  return t.$emit("remove");
66
73
  } } }, [t._v(" " + t._s(t.$t("remove")) + " ")])], 1) : t._e()]], 2), e("div", { staticClass: "hover-wrapper" }, [e("div", { staticClass: "hover-wrapper-text" }, [e("CIcon", { attrs: { type: "eye", size: "18" } }), t._v(" " + t._s(t.$t("_common:show")) + " ")], 1)])]);
67
- }, o = [], c = /* @__PURE__ */ i(
68
- r,
69
- s,
70
- o,
74
+ }, m = [], u = /* @__PURE__ */ o(
75
+ c,
76
+ l,
77
+ m,
71
78
  !1,
72
79
  null,
73
- "455eb81b"
80
+ "d81b17eb"
74
81
  );
75
- const p = c.exports;
82
+ const _ = u.exports;
76
83
  export {
77
- p as default
84
+ _ as default
78
85
  };