@cling-se/widget 0.13.5 → 0.14.2

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 (125) hide show
  1. package/dist/{AddClientCallout-P8T0R-6B.js → AddClientCallout-BP2ip0A4.js} +3 -3
  2. package/dist/{AnswerModal-BF-ZUpQ9.js → AnswerModal-C8i3ldB_.js} +4 -4
  3. package/dist/{AttachmentItem-DEC6rjGE.js → AttachmentItem-BrvrAMae.js} +2 -2
  4. package/dist/{BaseDatePicker-2uhuySby.js → BaseDatePicker-BSkAllLg.js} +556 -556
  5. package/dist/{BaseUpload-D1OS-EZ-.js → BaseUpload-J2v3G0-q.js} +14 -14
  6. package/dist/{BlockMedia-BFBeRtJx.js → BlockMedia-CAgKbN_k.js} +21 -17
  7. package/dist/{CCallout-CsQMsFZO.js → CCallout-D5Nk5DgN.js} +2 -2
  8. package/dist/CCurrencyDropdown-CGYQfYSD.js +246 -0
  9. package/dist/{CDropdownItem-BeK9wNHJ.js → CDropdownItem-DGES8E6l.js} +7 -5
  10. package/dist/{CField-TsZhnNrK.js → CFormField-CE4rV3cr.js} +66 -39
  11. package/dist/{CPhoneFormat-DPYhElZw.js → CPhoneFormat-DXPrTit9.js} +1 -1
  12. package/dist/CPriceInput-CYsf1n6T.js +112 -0
  13. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +1 -0
  14. package/dist/{ClientAutocomplete-Ch2Z-VNr.js → ClientAutocomplete-DPgOfPg1.js} +2 -2
  15. package/dist/{ClientModal-rdb9TsyH.js → ClientModal-Dznh8Vvn.js} +44 -36
  16. package/dist/{ColorPicker-2gfbU60o.js → ColorPicker-CWQEE8VR.js} +1 -1
  17. package/dist/{CompanyModal-CNeySxNi.js → CompanyModal-CeZ3GgLu.js} +4 -4
  18. package/dist/{ContentWrapper-D27J_sCS.js → ContentWrapper-DW7VHTdA.js} +8 -8
  19. package/dist/{CoverBlockSettings-BfdJKrsq.js → CoverBlockSettings-DNSdXFgF.js} +5 -5
  20. package/dist/{DocAnswer-CyHASkhm.js → DocAnswer-CPttkKAJ.js} +2 -2
  21. package/dist/{DocDetails-8bM9dBxm.js → DocDetails-BCwWW_kM.js} +7 -7
  22. package/dist/{DocForm-CumvOHwl.js → DocForm-BPjC08Ic.js} +41 -39
  23. package/dist/{DocFormSend-CdoZy_Q2.js → DocFormSend-BaC8IJCu.js} +2 -2
  24. package/dist/{DocLinks-BJPADuvd.js → DocLinks-DN-S8MY_.js} +2 -2
  25. package/dist/{DocModalBase-Cd3zXvH_.js → DocModalBase-bFJp0T2Y.js} +1 -1
  26. package/dist/{DocPrint-Be4l2pra.js → DocPrint-Ci7Jyh-C.js} +20 -19
  27. package/dist/{DocReceipt-DmFjo26V.js → DocReceipt-BYlXr6eS.js} +6 -6
  28. package/dist/{DocSendReminder-CVxh_c7u.js → DocSendReminder-DFx4934a.js} +1 -1
  29. package/dist/{DocTextEditor-2jhWmmN2.js → DocTextEditor-idQMnlIF.js} +1086 -1057
  30. package/dist/{DocTimeline-Dvn690cI.js → DocTimeline-ZmGSVRUB.js} +1 -1
  31. package/dist/{DocumentClient-D3ESmMk1.js → DocumentClient-DTRlyvLO.js} +5 -5
  32. package/dist/{DocumentLayout-0-y6ChW3.js → DocumentLayout-BJAyNjNa.js} +9 -5
  33. package/dist/{DocumentLogotype-CHWEVOFb.js → DocumentLogotype-pDJRc6Hj.js} +3 -3
  34. package/dist/{DocumentVoided-CoJ6YorU.js → DocumentVoided-DfKewfe4.js} +1 -1
  35. package/dist/{EmbedInput-CGQJdLBd.js → EmbedInput-7hLNsnEV.js} +2 -2
  36. package/dist/{EmbedSettings-DRfM7EkF.js → EmbedSettings-CpL24RhA.js} +2 -2
  37. package/dist/{ErrorCallout-pRwrsMwI.js → ErrorCallout-CdJCe67q.js} +1 -1
  38. package/dist/{FilePreviewModal-4hJnwqeM.js → FilePreviewModal-B7qT3I7F.js} +2 -2
  39. package/dist/{Flag-CH9jX9p6.js → Flag-DwW19zju.js} +1 -1
  40. package/dist/{HeaderSettings-DESkxus6.js → HeaderSettings-C8SuuAwv.js} +7 -7
  41. package/dist/{ImageSelectModal-BczBg7pO.js → ImageSelectModal-CAOh3YHc.js} +3 -3
  42. package/dist/{ImageUploadWrapper-B7F5UzSa.js → ImageUploadWrapper-21yldsj9.js} +2 -2
  43. package/dist/{Index-Dj7XQrCX.js → Index-B0BgYtWI.js} +5 -5
  44. package/dist/{Index-DLX_14JW.js → Index-BC1AhlQ9.js} +6 -6
  45. package/dist/{Index-B77mpvaJ.js → Index-BZi6r2UN.js} +8 -8
  46. package/dist/{Index-CPXWFvtI.js → Index-BsD09y_2.js} +6 -6
  47. package/dist/{Index-DpZ0FVkb.js → Index-Bu9SdKLP.js} +1 -1
  48. package/dist/{Index-DRdhlnQI.js → Index-BvsqZh2A.js} +4 -4
  49. package/dist/{Index-Cb7AYMdp.js → Index-Bz4qd9uO.js} +5 -5
  50. package/dist/{Index-BkDT09xK.js → Index-C--GiPc1.js} +5 -5
  51. package/dist/{Index-D_21EWlr.js → Index-CC7qF0br.js} +4 -4
  52. package/dist/{Index-CgugegyD.js → Index-CGxOvTF4.js} +590 -694
  53. package/dist/{Index-C8Eykyfr.js → Index-CI7_ktvb.js} +5 -5
  54. package/dist/{Index-D_XxQTHL.js → Index-COJZmxkX.js} +4 -4
  55. package/dist/{Index-BztAYqwZ.js → Index-CObEQ6G-.js} +3 -3
  56. package/dist/{Index-Lwrlj4Uo.js → Index-CP2bsXd-.js} +11 -13
  57. package/dist/{Index-DM8XS-Lc.js → Index-CSvZBLnp.js} +3 -3
  58. package/dist/{Index-xVss9bbv.js → Index-Ci-hGBbC.js} +4 -4
  59. package/dist/{Index-CUYcsakk.js → Index-Ckzq1cEJ.js} +22 -18
  60. package/dist/{Index-euXfMzGE.js → Index-CoIh5y2F.js} +4 -4
  61. package/dist/{Index-Cs1C7d8_.js → Index-Couda8BX.js} +2 -2
  62. package/dist/{Index-BSApSN3a.js → Index-CvXt3dm6.js} +24 -24
  63. package/dist/{Index-CwOwQrDd.js → Index-D95MNzAZ.js} +4 -4
  64. package/dist/{Index-CRjdza18.js → Index-DB5EG4EI.js} +32 -30
  65. package/dist/{Index-COFOq65C.js → Index-DDvRihXA.js} +3 -3
  66. package/dist/{Index-BOIBgNgp.js → Index-DIAntwBs.js} +2 -2
  67. package/dist/{Index-BCBBrdDY.js → Index-DUdJNcDT.js} +4 -4
  68. package/dist/{Index-DAuSARq4.js → Index-DfANvO5d.js} +5 -5
  69. package/dist/{Index-DLwJlsSV.js → Index-Ds1Jv5Mr.js} +6 -6
  70. package/dist/{Index-CBRWEkz3.js → Index-FIWsRGmh.js} +12 -7
  71. package/dist/{Index-DXovv3-e.js → Index-M3b7S4YX.js} +4 -4
  72. package/dist/{Index-McJQllNy.js → Index-NoN1_539.js} +7 -7
  73. package/dist/{Index-BBWCdaFx.js → Index-UGFm4yxI.js} +14 -32
  74. package/dist/{Index-Dk7qSZaZ.js → Index-aCBe0dXx.js} +2 -2
  75. package/dist/{Index-BSizncA1.js → Index-kJFtpJEP.js} +2 -2
  76. package/dist/{Index-DxT6UrU3.js → Index-rQKoLISX.js} +2 -2
  77. package/dist/{InputToggleRow-BjSD0lth.js → InputToggleRow-Ct8rvqAF.js} +1 -1
  78. package/dist/{ManualPopover-CIouE65j.js → ManualPopover-B0vp9ydC.js} +1 -1
  79. package/dist/{MediaWrapper-DK2fsQP7.js → MediaWrapper-hmofOPLv.js} +3 -3
  80. package/dist/{NotBindingText-D1IUYEiC.js → NotBindingText-COpJPwHe.js} +2 -2
  81. package/dist/{PackageGroup-BImsltc7.js → PackageGroup-BdtslJL-.js} +5 -5
  82. package/dist/{PdfTerms-BzBvvuT6.js → PdfTerms-EDStBDhn.js} +2 -2
  83. package/dist/PdfViewer-D1_Roqu2.js +374 -0
  84. package/dist/{PlainHtml-J_nR1ibV.js → PlainHtml-C3JPvt4o.js} +1 -1
  85. package/dist/{PriceHeader-BZeaKOTy.js → PriceHeader-BdfozyN8.js} +7 -7
  86. package/dist/{SearchApi-Du-Lqo7R.js → SearchApi-CQtYh98a.js} +2 -2
  87. package/dist/{Setup-CtSIo_xU.js → Setup-DHHMT6xu.js} +1 -1
  88. package/dist/{CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-B85IuuQS.js → SmartList-BXeRj5NC.js} +1 -1
  89. package/dist/{TermsSettings-DDHrUB_S.js → TermsSettings-D1tDAu-r.js} +3 -3
  90. package/dist/{ThemeColorRow-BiRPYyj_.js → ThemeColorRow-HUN-QPY_.js} +3 -3
  91. package/dist/{ToggleBinding-Cvd9I0Dw.js → ToggleBinding-CRoVM6Nw.js} +3 -3
  92. package/dist/{UploadModal-ByJeM98S.js → UploadModal-BD3pIiPT.js} +2 -2
  93. package/dist/{VideoPlayerInput-C1PiFaBo.js → VideoPlayerInput-QFJfPoCf.js} +3 -3
  94. package/dist/{VideoPlayerSettings-C9vt7Twd.js → VideoPlayerSettings-CGq--niu.js} +2 -2
  95. package/dist/{VideoSelectModal-cEDZv03c.js → VideoSelectModal-B61rBqdH.js} +3 -3
  96. package/dist/{answerDocumentMixin-QbMot2bf.js → answerDocumentMixin-DiONfM1s.js} +3 -3
  97. package/dist/{debounce-CaZBFRFZ.js → debounce-BIchuVwa.js} +11 -11
  98. package/dist/dom-CJxkno7i.js +91 -0
  99. package/dist/{focusDrawerMixin-D-mqPE02.js → focusDrawerMixin-CzvgKsOZ.js} +1 -1
  100. package/dist/{formComponentsInstall-BdhIOhq5.js → formComponentsInstall-EQLbqYqI.js} +201 -231
  101. package/dist/{formDrawerState-CcDRv2mi.js → formDrawerState-CiKGHdNH.js} +1 -1
  102. package/dist/{formValidationMixin-sp3Q6-ER.js → formValidationMixin-5BVcxu38.js} +2 -2
  103. package/dist/{index-CJTuXpCD.js → index-BYTRIZIz.js} +1 -1
  104. package/dist/{index-DEWMCZz4.js → index-Be__C37A.js} +1 -1
  105. package/dist/{index-DuCwf2mg.js → index-CUydiL8B.js} +16 -16
  106. package/dist/{index-BjZuADtN.js → index-DH6SCEKQ.js} +13 -13
  107. package/dist/{index-BWmMho6V.js → index-gtVGRKIX.js} +9 -9
  108. package/dist/{index-BABEaO8N.js → index-tNIrTnCx.js} +35 -35
  109. package/dist/index.es.js +3 -3
  110. package/dist/index.umd.js +134 -142
  111. package/dist/{main-DQ6SH_E_.js → main-Bp2qcma0.js} +4209 -4198
  112. package/dist/{mapFormMixin-2SoyKxW2.js → mapFormMixin-Ce3_WIKw.js} +1 -1
  113. package/dist/omit-21u5fFMx.js +31 -0
  114. package/dist/{publicSenderState-CKGe1ejF.js → publicSenderState-BcN9kJJr.js} +1 -1
  115. package/dist/style.css +2 -2
  116. package/dist/{throttle-BeZ_TpQb.js → throttle-CfPxqhW_.js} +2 -2
  117. package/dist/{tinycolor-C3JU9Hqu.js → tinycolor-DNK6zGoq.js} +1 -1
  118. package/dist/tippy.esm-B5TcTBWX.js +1799 -0
  119. package/dist/{utils-D2JfcR6v.js → utils-GzwJPAEe.js} +1 -1
  120. package/dist/{omit-BjdTqooP.js → vuedraggable.umd-2pmrPYml.js} +497 -525
  121. package/package.json +1 -1
  122. package/dist/BaseInput-BtgFVDxx.js +0 -364
  123. package/dist/PdfViewer-Dq0Mc-WC.js +0 -247
  124. package/dist/dom-CPYqHOIw.js +0 -69
  125. package/dist/tippy.esm-DowQrfWM.js +0 -2039
@@ -0,0 +1,112 @@
1
+ import { C as s } from "./CCurrencyDropdown-CGYQfYSD.js";
2
+ import { n as i, q as u, r as a } from "./main-Bp2qcma0.js";
3
+ const l = {
4
+ name: "CPriceInput",
5
+ components: {
6
+ CInput: u,
7
+ CCurrencyDropdown: s
8
+ },
9
+ props: {
10
+ value: {
11
+ type: Number,
12
+ default: 0
13
+ },
14
+ currency: {
15
+ type: String,
16
+ required: !0
17
+ },
18
+ priceType: {
19
+ type: String,
20
+ default: "fixed",
21
+ validator: (t) => ["fixed", "markup", "openAcc", "approx"].includes(t)
22
+ },
23
+ unitLabel: {
24
+ type: String,
25
+ default: ""
26
+ },
27
+ isIncVat: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ // Vat in percentage
32
+ vat: {
33
+ type: Number,
34
+ default: null
35
+ }
36
+ },
37
+ data() {
38
+ return {
39
+ isCurrencyDropdownOpen: !1
40
+ };
41
+ },
42
+ computed: {
43
+ internalValue: {
44
+ get() {
45
+ if (!Number.isNaN(parseFloat(this.value)) && Number.isFinite(this.value)) {
46
+ if (!this.value && !this.showZero)
47
+ return "";
48
+ let t = this.value;
49
+ return this.isIncVat && (t *= (100 + this.vat) / 100), Math.round(t) / 100;
50
+ }
51
+ return this.value;
52
+ },
53
+ set(t) {
54
+ let e = t;
55
+ e = t * 100, this.isIncVat && (e /= (100 + this.vat) / 100), e = Math.round(e), this.$emit("input", e);
56
+ }
57
+ },
58
+ internalCurrency: {
59
+ get() {
60
+ return this.currency;
61
+ },
62
+ set(t) {
63
+ this.$emit("update:currency", t);
64
+ }
65
+ },
66
+ suffixValue() {
67
+ const t = a(this.internalCurrency);
68
+ switch (this.priceType) {
69
+ case "openAcc":
70
+ return `${t}/${this.unitLabel || this.$t("_common:unitType.unit")}`;
71
+ case "markup":
72
+ return "%";
73
+ default:
74
+ return t;
75
+ }
76
+ },
77
+ showCurrencyDropdown() {
78
+ return !["markup"].includes(this.priceType);
79
+ },
80
+ eventListeners() {
81
+ return { ...this.$listeners, onInput: () => ({}), input: () => ({}) };
82
+ }
83
+ },
84
+ methods: {
85
+ focus() {
86
+ this.$refs.priceInput && typeof this.$refs.priceInput.focus == "function" && this.$refs.priceInput.focus();
87
+ }
88
+ }
89
+ };
90
+ var o = function() {
91
+ var e = this, r = e._self._c;
92
+ return r("CInput", e._g(e._b({ key: e.internalCurrency + e.priceType, ref: "priceInput", style: e.isCurrencyDropdownOpen && { zIndex: 99 }, attrs: { size: e.$attrs.size, placeholder: e.$attrs.placeholder, type: "number" }, model: { value: e.internalValue, callback: function(n) {
93
+ e.internalValue = n;
94
+ }, expression: "internalValue" } }, "CInput", { ...e.$attrs, ...e.$props }, !1), e.eventListeners), [e.$slots.prefix ? r("div", { attrs: { slot: "prefix" }, slot: "prefix" }, [e._t("prefix")], 2) : e._e(), e.$slots.suffix ? r("div", { attrs: { slot: "suffix" }, slot: "suffix" }, [e._t("suffix")], 2) : r("template", { slot: "suffix" }, [e.showCurrencyDropdown ? r("CCurrencyDropdown", { on: { "active-change": function(n) {
95
+ e.isCurrencyDropdownOpen = n;
96
+ } }, scopedSlots: e._u([{ key: "default", fn: function({ selectedValue: n }) {
97
+ return [r("CButton", { staticClass: "is-thinner", staticStyle: { "padding-left": "0.5em", "padding-right": "0.5em", "border-radius": "0.25em" }, attrs: { size: e.$attrs.size, type: "none", pattern: "tertiary" } }, [e._v(" " + e._s(n) + " ")])];
98
+ } }], null, !1, 1723986040), model: { value: e.internalCurrency, callback: function(n) {
99
+ e.internalCurrency = n;
100
+ }, expression: "internalCurrency" } }) : r("div", [e._v(e._s(e.suffixValue))])], 1)], 2);
101
+ }, p = [], c = /* @__PURE__ */ i(
102
+ l,
103
+ o,
104
+ p,
105
+ !1,
106
+ null,
107
+ null
108
+ );
109
+ const y = c.exports;
110
+ export {
111
+ y as C
112
+ };
@@ -1,5 +1,5 @@
1
- import { S as o } from "./SearchApi-Du-Lqo7R.js";
2
- import { n as l, v as c } from "./main-DQ6SH_E_.js";
1
+ import { S as o } from "./SearchApi-CQtYh98a.js";
2
+ import { n as l, y as c } from "./main-Bp2qcma0.js";
3
3
  const i = {
4
4
  i18nOptions: {
5
5
  namespaces: "components",
@@ -1,8 +1,9 @@
1
- import { C as v } from "./ClientAutocomplete-Ch2Z-VNr.js";
2
- import { A as u, W as y, I as C, n as p, d as b, c as _, b as d, g as c, X as $, v as w } from "./main-DQ6SH_E_.js";
3
- import { w as f } from "./CDropdownItem-BeK9wNHJ.js";
4
- import { v as r } from "./index-BABEaO8N.js";
1
+ import { C as v } from "./ClientAutocomplete-DPgOfPg1.js";
2
+ import { E as p, a9 as y, I as C, n as u, b as l, d as b, c as _, g as c, aa as $, y as w } from "./main-Bp2qcma0.js";
3
+ import { w as f } from "./CDropdownItem-DGES8E6l.js";
4
+ import { v as r } from "./index-tNIrTnCx.js";
5
5
  import { m as g, b as x, a as k } from "./vuex.esm-DKGl8mcw.js";
6
+ import { o as S } from "./omit-21u5fFMx.js";
6
7
  function h(a) {
7
8
  if (typeof a > "u")
8
9
  throw Error("Missing param inputParam");
@@ -19,7 +20,7 @@ function m(a) {
19
20
  let e = a.replace(/ /g, "");
20
21
  return e = e.replace(/-/g, ""), !h(e) || (e = [e.slice(0, 6), "-", e.slice(6)].join(""), !e.match(/^(\d{6})-(\d{4})$/)) ? !1 : e;
21
22
  }
22
- function l(a) {
23
+ function d(a) {
23
24
  if (typeof a > "u" || a === null || a === "")
24
25
  return !1;
25
26
  let e = a.trim().replace(/[^0-9]+/g, "");
@@ -34,7 +35,7 @@ function l(a) {
34
35
  }
35
36
  return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(e.substring(0, 4), 10) < 16 ? !1 : h(e.substring(2)) ? e : !1;
36
37
  }
37
- const S = {
38
+ const N = {
38
39
  sv: {
39
40
  title: "Mottagare",
40
41
  updateButton: "Spara mottagare",
@@ -149,14 +150,14 @@ const S = {
149
150
  }
150
151
  }
151
152
  }
152
- }, { mapFields: N } = u({
153
+ }, { mapFields: I } = p({
153
154
  getterType: "forms/getField",
154
155
  mutationType: "forms/updateField"
155
- }), I = {
156
+ }), F = {
156
157
  name: "FormClient",
157
158
  i18nOptions: {
158
159
  namespaces: "formClient",
159
- messages: S
160
+ messages: N
160
161
  },
161
162
  components: {
162
163
  ClientAutocomplete: v,
@@ -194,6 +195,10 @@ const S = {
194
195
  type: Object,
195
196
  default: null
196
197
  },
198
+ signOptions: {
199
+ type: Array,
200
+ default: () => []
201
+ },
197
202
  isPublicForm: {
198
203
  type: Boolean,
199
204
  default: !1
@@ -209,7 +214,7 @@ const S = {
209
214
  ].some((e) => !!e) ? {
210
215
  orgNo: {
211
216
  personalNumber(e) {
212
- return !this.validateOrgNo || !e ? !0 : this.isIndivid ? l(e) : m(e) || l(e);
217
+ return !this.validateOrgNo || !e ? !0 : this.isIndivid ? d(e) : m(e) || d(e);
213
218
  }
214
219
  },
215
220
  reference: {
@@ -237,7 +242,7 @@ const S = {
237
242
  };
238
243
  },
239
244
  computed: {
240
- ...N({
245
+ ...I({
241
246
  id: "endCustomer.id",
242
247
  type: "endCustomer.customerType",
243
248
  name: "endCustomer.name",
@@ -286,7 +291,7 @@ const S = {
286
291
  return this.realOrgNo;
287
292
  },
288
293
  set(a) {
289
- const e = this.isIndivid ? l(a) : m(a) || l(a);
294
+ const e = this.isIndivid ? d(a) : m(a) || d(a);
290
295
  return this.validateOrgNo && e ? (this.realOrgNo = e, !0) : (this.realOrgNo = a, !0);
291
296
  }
292
297
  },
@@ -308,7 +313,7 @@ const S = {
308
313
  }
309
314
  }
310
315
  };
311
- var F = function() {
316
+ var z = function() {
312
317
  var e = this, t = e._self._c;
313
318
  return t("div", { staticClass: "form-client" }, [e.simpleForm ? t("form", { on: { submit: function(i) {
314
319
  return i.preventDefault(), e.validateForm.apply(null, arguments);
@@ -382,11 +387,7 @@ var F = function() {
382
387
  } }, on: { click: function(n) {
383
388
  return e.$emit("update:document-role", i);
384
389
  } } }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`_common:documentRole.${i}.description`)))]), t("div", { staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`_common:documentRole.${i}.label`)) + " ")])])]);
385
- })], 2)], 1) : e._e(), e.answerMethod ? t("div", { staticClass: "dropdown-field-wrapper" }, [t("div", { staticClass: "my-1 text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("_common:signMethod.title")) + " ")]), t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" } }, [t("CButton", { staticClass: "is-left", attrs: { slot: "trigger", "dropdown-icon": !0, type: "none", pattern: "secondary", wide: "" }, slot: "trigger" }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`signMethod.${e.answerMethod.accept}.title`)))]), t("div", { staticClass: "truncate", staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`signMethod.${e.answerMethod.accept}.content`)) + " ")])])]), e._l([
386
- ...!e.isPublicForm && e.feature("bankId") ? ["bankId"] : [],
387
- "signature",
388
- "inPerson"
389
- ], function(i) {
390
+ })], 2)], 1) : e._e(), e.answerMethod ? t("div", { staticClass: "dropdown-field-wrapper" }, [t("div", { staticClass: "my-1 text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("_common:signMethod.title")) + " ")]), t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" } }, [t("CButton", { staticClass: "is-left", attrs: { slot: "trigger", "dropdown-icon": !0, type: "none", pattern: "secondary", wide: "" }, slot: "trigger" }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`signMethod.${e.answerMethod.accept}.title`)))]), t("div", { staticClass: "truncate", staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`signMethod.${e.answerMethod.accept}.content`)) + " ")])])]), e._l(e.signOptions, function(i) {
390
391
  return t("CDropdownItem", { key: i, on: { click: function(n) {
391
392
  return e.$emit("update:answer-method", {
392
393
  ...e.answerMethod,
@@ -394,18 +395,18 @@ var F = function() {
394
395
  });
395
396
  } } }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`signMethod.${i}.title`)))]), t("div", { staticClass: "max-w-[calc(12_*_var(--rem))] truncate", staticStyle: { "font-size": "12px", opacity: "0.7", "text-wrap": "wrap" } }, [e._v(" " + e._s(e.$t(`signMethod.${i}.content`)) + " ")])])]);
396
397
  })], 2)], 1) : e._e()]) : e._e(), t("div", { staticStyle: { "margin-top": "calc(3 * var(--rem))" } }, [t("CButton", { staticStyle: { padding: "16px", "border-radius": "8px", height: "100%", "font-size": "14px", "font-weight": "600", "box-shadow": "0 2px 4px -1px rgba(0, 0, 0, 0.1)" }, attrs: { loading: e.isPosting, type: "secondary", wide: "" }, on: { click: e.validateForm } }, [e._v(e._s(e.$t("updateButton")))])], 1)], 1)]);
397
- }, z = [], M = /* @__PURE__ */ p(
398
- I,
398
+ }, M = [], O = /* @__PURE__ */ u(
399
399
  F,
400
400
  z,
401
+ M,
401
402
  !1,
402
403
  null,
403
- "59306239"
404
+ "f3679544"
404
405
  );
405
- const R = M.exports, { mapFields: O } = u({
406
+ const R = O.exports, { mapFields: q } = p({
406
407
  getterType: "forms/getField",
407
408
  mutationType: "forms/updateField"
408
- }), q = {
409
+ }), A = {
409
410
  name: "ClientModal",
410
411
  i18nOptions: {
411
412
  namespaces: "clientModal",
@@ -457,6 +458,10 @@ const R = M.exports, { mapFields: O } = u({
457
458
  type: Boolean,
458
459
  default: !1
459
460
  },
461
+ signOptions: {
462
+ type: Array,
463
+ default: () => ["signature", "inPerson"]
464
+ },
460
465
  setFormValue: {
461
466
  type: Function,
462
467
  required: !0
@@ -472,11 +477,13 @@ const R = M.exports, { mapFields: O } = u({
472
477
  }
473
478
  },
474
479
  data() {
475
- return {
480
+ var e;
481
+ let a = l(this.formData, "data.defaultAnswerMethod.accept") || "signature";
482
+ return (e = this.signOptions) != null && e.length && !this.signOptions.includes(a) && ([a] = this.signOptions), {
476
483
  storedNewClient: {
477
484
  documentRole: "signee",
478
485
  answerMethod: {
479
- accept: "signature",
486
+ accept: a,
480
487
  deny: "button"
481
488
  }
482
489
  },
@@ -486,7 +493,7 @@ const R = M.exports, { mapFields: O } = u({
486
493
  };
487
494
  },
488
495
  computed: {
489
- ...O({
496
+ ...q({
490
497
  endCustomer: "endCustomer"
491
498
  }),
492
499
  ...x("forms", {
@@ -501,12 +508,12 @@ const R = M.exports, { mapFields: O } = u({
501
508
  return !!(this.feature("bankId") || this.isPublicForm && b[_.brand].defaultRegion === "SE");
502
509
  },
503
510
  existsOnDocument() {
504
- return !!d(this.formData, `clients[${this.documentClientIndex}]`);
511
+ return !!l(this.formData, `clients[${this.documentClientIndex}]`);
505
512
  }
506
513
  },
507
514
  created() {
508
515
  this.forceExpand && (this.showMore = !0);
509
- const a = d(
516
+ const a = l(
510
517
  this.formData,
511
518
  `clients[${this.documentClientIndex}]`,
512
519
  {}
@@ -525,6 +532,7 @@ const R = M.exports, { mapFields: O } = u({
525
532
  saveClient: c.FORM_SUBMIT_ENDCUSTOMER,
526
533
  showMessage: c.SHOW_MESSAGE
527
534
  }),
535
+ omit: S,
528
536
  loadForm(a = {}) {
529
537
  this.storedNewClient = Object.assign(this.storedNewClient, a), this.endCustomer = $({
530
538
  type: this.defaultClientType(),
@@ -533,7 +541,7 @@ const R = M.exports, { mapFields: O } = u({
533
541
  },
534
542
  async onSave() {
535
543
  this.isLoading = !0;
536
- let a = d(this.endCustomer, "id");
544
+ let a = l(this.endCustomer, "id");
537
545
  if (!this.isPublicForm) {
538
546
  let e = !1;
539
547
  this.endCustomer && (this.endCustomer.id ? this.can("endCustomers", "modify", this.endCustomer.id) && (e = !0) : this.can("endCustomers", "create") && (e = !0)), e && (a = await this.saveClient());
@@ -586,11 +594,11 @@ const R = M.exports, { mapFields: O } = u({
586
594
  }
587
595
  }
588
596
  };
589
- var A = function() {
597
+ var D = function() {
590
598
  var e = this, t = e._self._c;
591
599
  return t("div", { staticClass: "font-primary fixed inset-0 z-[1000] grid place-items-center overflow-auto bg-black bg-opacity-10 max-sm:block max-sm:min-h-full max-sm:w-full max-sm:overflow-auto sm:py-4", on: { "&click": function(i) {
592
600
  return i.target !== i.currentTarget ? null : e.close.apply(null, arguments);
593
- } } }, [t("div", { staticClass: "max-sm:h-initial relative mx-auto flex flex-col items-center rounded-xl bg-white p-10 text-lg max-sm:min-h-full max-sm:w-full max-sm:rounded-none max-sm:pt-16" }, [t("CButton", { staticClass: "z-2 absolute right-4 top-4", class: e.showMore ? "" : "sm:!hidden", attrs: { pattern: "tertiary", type: "none", circle: "", icon: "x" }, on: { click: e.close } }), t("FormClient", { staticClass: "max-w-full p-0", class: [e.showMore ? "w-[520px]" : "w-[360px]"], attrs: { "search-enabled": !0, "require-reference": !1, "simple-form": !e.showMore, "input-focus-on-mount": e.inputFocusOnMount, "document-role": e.storedNewClient.documentRole, "answer-method": e.storedNewClient.answerMethod, "validate-org-no": e.validateOrgNo, "is-public-form": e.isPublicForm }, on: { "update:documentRole": function(i) {
601
+ } } }, [t("div", { staticClass: "max-sm:h-initial relative mx-auto flex flex-col items-center rounded-xl bg-white p-10 text-lg max-sm:min-h-full max-sm:w-full max-sm:rounded-none max-sm:pt-16" }, [t("CButton", { staticClass: "z-2 absolute right-4 top-4", class: e.showMore ? "" : "sm:!hidden", attrs: { pattern: "tertiary", type: "none", circle: "", icon: "x" }, on: { click: e.close } }), t("FormClient", { staticClass: "max-w-full p-0", class: [e.showMore ? "w-[520px]" : "w-[360px]"], attrs: { "search-enabled": !0, "require-reference": !1, "simple-form": !e.showMore, "input-focus-on-mount": e.inputFocusOnMount, "document-role": e.storedNewClient.documentRole, "answer-method": e.storedNewClient.answerMethod, "sign-options": e.signOptions, "validate-org-no": e.validateOrgNo, "is-public-form": e.isPublicForm }, on: { "update:documentRole": function(i) {
594
602
  return e.$set(e.storedNewClient, "documentRole", i);
595
603
  }, "update:document-role": function(i) {
596
604
  return e.$set(e.storedNewClient, "documentRole", i);
@@ -599,19 +607,19 @@ var A = function() {
599
607
  }, "update:answer-method": function(i) {
600
608
  return e.$set(e.storedNewClient, "answerMethod", i);
601
609
  }, setClient: function(i) {
602
- return e.loadForm(i);
610
+ e.loadForm(e.omit(i, ["answerMethod"]));
603
611
  }, submit: e.onSave, "show-more": function(i) {
604
612
  e.showMore = !0;
605
613
  } } }), e.existsOnDocument && e.mq === "sm" ? t("CButton", { staticClass: "mt-4 text-sm", attrs: { type: "danger", pattern: "secondary", wide: "" }, on: { click: e.removeClient } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")]) : e._e()], 1)]);
606
- }, D = [], B = /* @__PURE__ */ p(
607
- q,
614
+ }, B = [], E = /* @__PURE__ */ u(
608
615
  A,
609
616
  D,
617
+ B,
610
618
  !1,
611
619
  null,
612
620
  null
613
621
  );
614
- const L = B.exports;
622
+ const U = E.exports;
615
623
  export {
616
- L as default
624
+ U as default
617
625
  };
@@ -1,4 +1,4 @@
1
- import { Y as ht, n as bt } from "./main-DQ6SH_E_.js";
1
+ import { a5 as ht, n as bt } from "./main-Bp2qcma0.js";
2
2
  var vt = { exports: {} };
3
3
  (function(gt, Ct) {
4
4
  (function(c, i) {
@@ -1,8 +1,8 @@
1
- import { w as r } from "./CDropdownItem-BeK9wNHJ.js";
2
- import { A as l, g as s, n as c } from "./main-DQ6SH_E_.js";
3
- import { v as o } from "./index-BABEaO8N.js";
1
+ import { w as r } from "./CDropdownItem-DGES8E6l.js";
2
+ import { E as l, g as s, n as c } from "./main-Bp2qcma0.js";
3
+ import { v as o } from "./index-tNIrTnCx.js";
4
4
  import { m as p, b as n, a as d } from "./vuex.esm-DKGl8mcw.js";
5
- import { s as m, a as u } from "./publicSenderState-CKGe1ejF.js";
5
+ import { s as m, a as u } from "./publicSenderState-BcN9kJJr.js";
6
6
  const { mapFields: f } = l({
7
7
  getterType: "forms/getField",
8
8
  mutationType: "forms/updateField"
@@ -1,8 +1,8 @@
1
- import { m as n } from "./mapFormMixin-2SoyKxW2.js";
2
- import { B as l } from "./BlockMedia-BFBeRtJx.js";
3
- import { t as r } from "./tinycolor-C3JU9Hqu.js";
4
- import { T as i } from "./DocTextEditor-2jhWmmN2.js";
5
- import { n as s, Z as c, w as u, y as m, x as p } from "./main-DQ6SH_E_.js";
1
+ import { m as n } from "./mapFormMixin-Ce3_WIKw.js";
2
+ import { B as l } from "./BlockMedia-CAgKbN_k.js";
3
+ import { t as r } from "./tinycolor-DNK6zGoq.js";
4
+ import { T as i } from "./DocTextEditor-idQMnlIF.js";
5
+ import { n as s, ab as c, z as u, B as m, A as p } from "./main-Bp2qcma0.js";
6
6
  import { i as d } from "./i18nMessages-Chz_lxGG.js";
7
7
  const _ = {
8
8
  name: "StaticComboLayout",
@@ -33,7 +33,7 @@ const h = y.exports, v = {
33
33
  messages: d
34
34
  },
35
35
  components: {
36
- DocumentLogotype: () => import("./DocumentLogotype-CHWEVOFb.js"),
36
+ DocumentLogotype: () => import("./DocumentLogotype-pDJRc6Hj.js"),
37
37
  StaticComboLayout: h,
38
38
  TextEditor: i
39
39
  },
@@ -177,7 +177,7 @@ var S = function() {
177
177
  null,
178
178
  "3dfe0998"
179
179
  );
180
- const j = L.exports;
180
+ const z = L.exports;
181
181
  export {
182
- j as default
182
+ z as default
183
183
  };
@@ -1,6 +1,6 @@
1
- import { m as d } from "./mapFormMixin-2SoyKxW2.js";
2
- import { T as l } from "./ThemeColorRow-BiRPYyj_.js";
3
- import { n as s, M as p, E as u } from "./main-DQ6SH_E_.js";
1
+ import { m as d } from "./mapFormMixin-Ce3_WIKw.js";
2
+ import { T as l } from "./ThemeColorRow-HUN-QPY_.js";
3
+ import { n as s, P as p, H as u } from "./main-Bp2qcma0.js";
4
4
  const m = (i, e, t, o) => Math.atan2(i - t, e - o) * (180 / Math.PI) * -1 + 180, v = {
5
5
  name: "DegreePicker",
6
6
  props: {
@@ -135,8 +135,8 @@ var C = function() {
135
135
  "e22a6b42"
136
136
  );
137
137
  const $ = w.exports, x = {
138
- image: () => import("./ImageSelectModal-BczBg7pO.js"),
139
- video: () => import("./VideoSelectModal-cEDZv03c.js")
138
+ image: () => import("./ImageSelectModal-CAOh3YHc.js"),
139
+ video: () => import("./VideoSelectModal-B61rBqdH.js")
140
140
  }, S = {
141
141
  name: "CoverBlockSettings",
142
142
  i18nOptions: {
@@ -1,5 +1,5 @@
1
- import r from "./AnswerModal-BF-ZUpQ9.js";
2
- import { n as o } from "./main-DQ6SH_E_.js";
1
+ import r from "./AnswerModal-C8i3ldB_.js";
2
+ import { n as o } from "./main-Bp2qcma0.js";
3
3
  const t = {
4
4
  components: {
5
5
  AnswerModal: r
@@ -1,7 +1,7 @@
1
- import { D as f } from "./DocumentVoided-CoJ6YorU.js";
2
- import { C as g, a as h, w } from "./CDropdownItem-BeK9wNHJ.js";
3
- import { n as r, a3 as $, b as x, a4 as y, a5 as b, a6 as C } from "./main-DQ6SH_E_.js";
4
- import { C as S } from "./CPhoneFormat-DPYhElZw.js";
1
+ import { D as f } from "./DocumentVoided-DfKewfe4.js";
2
+ import { C as g, a as h, w } from "./CDropdownItem-DGES8E6l.js";
3
+ import { n as r, ag as $, b as x, ah as y, ai as b, aj as C } from "./main-Bp2qcma0.js";
4
+ import { C as S } from "./CPhoneFormat-DXPrTit9.js";
5
5
  const D = {
6
6
  name: "PublicDocumentEvents",
7
7
  props: {
@@ -144,7 +144,7 @@ var R = function() {
144
144
  }), t("div", { staticClass: "flex w-full flex-col", staticStyle: { "font-size": "14px", "align-items": "baseline" } }, [e.recipient.email ? t("a", { attrs: { href: `mailto:${e.recipient.email}`, target: "_blank" } }, [e._v(" " + e._s(e.recipient.email) + " ")]) : e._e(), e.recipient.cellphone ? t("CPhoneFormat", { attrs: { phone: e.recipient.cellphone, region: e.recipient.cellphoneRegion }, scopedSlots: e._u([{ key: "default", fn: function({ formattedValue: i }) {
145
145
  return t("a", { attrs: { href: `tel:${e.recipient.cellphone}` } }, [e._v(" " + e._s(i) + " ")]);
146
146
  } }], null, !1, 2469850174) }) : e._e()], 1)], 2), t("div", { staticStyle: { "background-color": "hsl(0, 0%, 94%)", padding: "0.75em 0.75em", "font-weight": "500", "font-size": "13px", "line-height": "1", color: "hsl(0, 0%, 40%)", position: "relative" } }, [t("div", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.recipient.documentRole}.label`)) + " ")]), t("div", { staticStyle: { position: "absolute", right: "1em", top: "0px", transform: "translate(0, -50%)" } }, [t("v-popover", { attrs: { "popover-inner-class": "signee-popover", trigger: "hover", placement: "bottom-end" } }, [e.recipient.documentRole === "signee" ? t("div", { staticStyle: { padding: "5px 0.75em", background: "hsl(0, 0%, 60%)", "border-radius": "4px", "font-size": "13px", color: "hsl(0, 0%, 100%)", cursor: "default", display: "inline-flex", "align-items": "center" } }, [t("CIcon", { staticStyle: { "margin-right": "0.5ch" }, attrs: { size: 15, type: "info", "stroke-width": "2" } }), e.recipient.answer && e.recipient.answer.didAccept ? [e._v(" " + e._s(e.$t("_common:approved").capitalize()) + " ")] : e.recipient.answer ? [e._v(" " + e._s(e.$t("_common:denied").capitalize()) + " ")] : [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.waitingForAnswer")) + " ")]], 2) : e._e(), t("div", { staticStyle: { padding: "0" }, attrs: { slot: "popover" }, slot: "popover" }, [t("div", { staticStyle: { padding: "1em 1.5em" } }, [e.recipient.answer && e.recipient.answer.didAccept ? [e.recipient.answer.signatureDataURL ? t("div", { staticStyle: { "padding-bottom": "0.5em" } }, [t("div", { staticClass: "has-text-grey", staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("_common:signature").capitalize()) + " ")]), t("img", { staticStyle: { width: "80%" }, attrs: { src: e.recipient.answer.signatureDataURL } })]) : t("div", { staticStyle: { "font-size": "13px", "padding-top": "3px" } }, [e.get(e.recipient, "answerMethod.accept") === "bankId" ? [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.recipient.signedBankId")) + " ")]), t("div", [e._v(e._s(e.recipient.answer.response.name))]), t("div", [e._v(e._s(e.recipient.socialNo))])] : e.get(e.recipient, "answerMethod.accept") === "login" ? t("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.recipient.verifiedLogin")) + " ")]) : e._e()], 2)] : e.recipient.answer ? t("div", [e._v(" " + e._s(e.$t("_common:denied").capitalize()) + " ")]) : t("div", [e._v(" " + e._s(e.$t("pendingAnswer")) + " ")])], 2), e.recipient.answer ? t("div", { staticStyle: { padding: "8px 1.5em", "border-top": "1px solid hsl(0deg 0% 88%)", "background-color": "hsl(0deg 0% 95%)", "font-size": "13px", color: "hsl(0, 0%, 35%)", "font-weight": "500" } }, [e.recipient.answer.didAnswerAt ? t("div", [t("div", [e._v(" " + e._s(e.$t("_common:date").capitalize()) + ": " + e._s(e.$formatDate(e.recipient.answer.didAnswerAt, "P")) + " ")]), t("div", [e._v(" " + e._s(e.$t("_common:time").capitalize()) + ": " + e._s(e.$formatDate(e.recipient.answer.didAnswerAt, "p")) + " ")])]) : e._e(), e.recipient.answer.ip ? t("div", [e._v(" IP: " + e._s(e.recipient.answer.ip) + " ")]) : e._e(), e.recipient.answer.browser ? t("div", [e._v(" Browser: " + e._s(e.getBrowserString(e.recipient.answer)) + " ")]) : e._e()]) : e._e()])])], 1)])]);
147
- }, L = [], I = /* @__PURE__ */ r(
147
+ }, L = [], j = /* @__PURE__ */ r(
148
148
  A,
149
149
  R,
150
150
  L,
@@ -152,11 +152,11 @@ var R = function() {
152
152
  null,
153
153
  "eee5c92d"
154
154
  );
155
- const j = I.exports, q = {
155
+ const I = j.exports, q = {
156
156
  name: "DocumentDetails",
157
157
  components: {
158
158
  PublicDocumentEvents: F,
159
- PublicRecipientItem: j,
159
+ PublicRecipientItem: I,
160
160
  CDropdown: g,
161
161
  CDropdownItem: h
162
162
  },