@cling-se/widget 0.14.0 → 0.14.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 (123) hide show
  1. package/dist/{AddClientCallout-C7BLDW6Y.js → AddClientCallout-DKH-LP5B.js} +3 -3
  2. package/dist/{AnswerModal-KWFteFV9.js → AnswerModal-BCbq8wc4.js} +3 -3
  3. package/dist/{AttachmentItem-CSerklBS.js → AttachmentItem-60CSZnkF.js} +2 -2
  4. package/dist/{BaseDatePicker-BOxfHGS8.js → BaseDatePicker-Cl8SnC1k.js} +481 -481
  5. package/dist/{BaseUpload-B-CktrCH.js → BaseUpload-D4FCjlhL.js} +14 -14
  6. package/dist/{BlockMedia-T4OxMb4n.js → BlockMedia-CqkwdGnE.js} +1 -1
  7. package/dist/{CCallout-yFt7TFJa.js → CCallout-BTBgU8f-.js} +2 -2
  8. package/dist/CCurrencyDropdown-CL32Mo-Y.js +246 -0
  9. package/dist/{CDropdownItem-DhEpCmQt.js → CDropdownItem-DlWtQwO6.js} +7 -5
  10. package/dist/{CFormField-DDLf5YY4.js → CFormField-BxJv-nUO.js} +1 -1
  11. package/dist/{CPhoneFormat-B88rkuf0.js → CPhoneFormat-CJ9kndtJ.js} +1 -1
  12. package/dist/CPriceInput-BpXI5X2j.js +112 -0
  13. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +1 -0
  14. package/dist/{ClientAutocomplete-DmRl3SUj.js → ClientAutocomplete-D9Dj9iBW.js} +2 -2
  15. package/dist/{ClientModal-Dn3WDhGU.js → ClientModal-JOt8NGcR.js} +48 -40
  16. package/dist/{ColorPicker-DX6JAsTn.js → ColorPicker-uPKD-Gvm.js} +1 -1
  17. package/dist/{CompanyModal-BbO2nTd5.js → CompanyModal-7bG0iIRd.js} +4 -4
  18. package/dist/{ContentWrapper-BvbmcTXK.js → ContentWrapper-B2nyZHL4.js} +6 -6
  19. package/dist/{CoverBlockSettings-C8FDwx7i.js → CoverBlockSettings-C1O_FAde.js} +5 -5
  20. package/dist/{DocAnswer-OttbybQs.js → DocAnswer-B9G-y4Px.js} +2 -2
  21. package/dist/{DocDetails-J7O26zqa.js → DocDetails-DYHxKChO.js} +7 -7
  22. package/dist/{DocForm-Bgbesq79.js → DocForm-BktEXjML.js} +54 -53
  23. package/dist/{DocFormSend-D_U3ztgw.js → DocFormSend-DM6QgUOj.js} +2 -2
  24. package/dist/{DocLinks-Dp-iQ-B_.js → DocLinks-BIGwfB3H.js} +2 -2
  25. package/dist/{DocModalBase-F-wlPg7j.js → DocModalBase-D5GdwTI7.js} +1 -1
  26. package/dist/{DocPrint-B45voy0W.js → DocPrint-HqbaIGms.js} +11 -17
  27. package/dist/{DocReceipt-jKVK5U-a.js → DocReceipt-WXo6vWyW.js} +6 -6
  28. package/dist/{DocSendReminder-BersSNb1.js → DocSendReminder-C8dNEpLg.js} +1 -1
  29. package/dist/{DocTextEditor-CYe_jWZ8.js → DocTextEditor-BfOZFDTP.js} +281 -270
  30. package/dist/{DocTimeline-yyzh51yB.js → DocTimeline-CitwS9px.js} +1 -1
  31. package/dist/{DocumentClient-CS_EVjK9.js → DocumentClient-CQ_z8ajY.js} +5 -5
  32. package/dist/{DocumentLayout-Ba121Zro.js → DocumentLayout-BA7mFfZh.js} +4 -4
  33. package/dist/{DocumentLogotype-DUVhl9xC.js → DocumentLogotype-woc_hfll.js} +3 -3
  34. package/dist/{DocumentVoided-D5ePc-a5.js → DocumentVoided-DC4FzpxG.js} +1 -1
  35. package/dist/{EmbedInput-Ds-Z-0J2.js → EmbedInput-CheqYcNr.js} +2 -2
  36. package/dist/{EmbedSettings-C8BP4YuY.js → EmbedSettings-YcwM8hJw.js} +2 -2
  37. package/dist/{ErrorCallout-B_QrRAm6.js → ErrorCallout-6pCYcx00.js} +1 -1
  38. package/dist/{FilePreviewModal-B105PxLD.js → FilePreviewModal-T8AiphqO.js} +2 -2
  39. package/dist/{Flag-hg61To9C.js → Flag-Ddm6a4Il.js} +1 -1
  40. package/dist/{HeaderSettings-DIBiJc4I.js → HeaderSettings-DHdZweJH.js} +7 -7
  41. package/dist/{ImageSelectModal-D2g42vWJ.js → ImageSelectModal-CAoBhnI8.js} +3 -3
  42. package/dist/{ImageUploadWrapper-CREUMKh3.js → ImageUploadWrapper-CNv59Lhh.js} +2 -2
  43. package/dist/{Index-YkoWXviW.js → Index-B6S9U4Z-.js} +4 -4
  44. package/dist/{Index-DVQ6ZsHz.js → Index-BHX0D5fW.js} +5 -5
  45. package/dist/{Index-7rbX01Io.js → Index-BL_7m5Ca.js} +5 -5
  46. package/dist/{Index-Dqp7TmnQ.js → Index-BXMXEUfo.js} +32 -30
  47. package/dist/{Index-DRgVg0CH.js → Index-BhVBvMu6.js} +4 -4
  48. package/dist/{Index-CYHxrllv.js → Index-Bl_SNW80.js} +4 -4
  49. package/dist/{Index-BiK7PqAm.js → Index-BsguntKl.js} +2 -2
  50. package/dist/{Index-Dy7K8KMB.js → Index-CGYjPfsf.js} +590 -694
  51. package/dist/{Index-sltQx4D3.js → Index-CKrGb3of.js} +3 -3
  52. package/dist/{Index-Bu6aOCmM.js → Index-CMNrQo5a.js} +3 -3
  53. package/dist/{Index-kAu-7TWv.js → Index-CU50Al5c.js} +10 -10
  54. package/dist/{Index-DDj3_T_m.js → Index-CdqrrZxd.js} +4 -4
  55. package/dist/{Index-D0gS476H.js → Index-CfnL9dAw.js} +4 -4
  56. package/dist/{Index-BLQwYzIX.js → Index-CuW0MYrT.js} +6 -6
  57. package/dist/{Index-BG9x90V0.js → Index-D-z8JSn6.js} +5 -5
  58. package/dist/{Index-agYFtWMw.js → Index-D8giJ_bs.js} +6 -6
  59. package/dist/{Index-02IKjPth.js → Index-DDvfqy_h.js} +3 -3
  60. package/dist/{Index-CUxvKTfn.js → Index-DQDalqZ-.js} +5 -5
  61. package/dist/{Index-8DAfMA_s.js → Index-DTIPKKkV.js} +5 -5
  62. package/dist/{Index-BUTYZCat.js → Index-DWxzUBff.js} +2 -2
  63. package/dist/{Index-CwulQoRG.js → Index-DaNGeDQw.js} +8 -8
  64. package/dist/{Index-lKo8z-71.js → Index-DfLU_AyN.js} +3 -3
  65. package/dist/{Index-bTXYCG9Y.js → Index-DkVav_I7.js} +4 -4
  66. package/dist/{Index-B8xcDVQ1.js → Index-Dxp8QAtB.js} +5 -5
  67. package/dist/{Index-CpWW7m5F.js → Index-DzjxFkcv.js} +11 -13
  68. package/dist/{Index-CL12KArA.js → Index-EwUJJWaB.js} +22 -18
  69. package/dist/{Index-BZM-FsHY.js → Index-I60qAqLl.js} +1 -1
  70. package/dist/{Index-D_MonVUx.js → Index-LfF-7lQK.js} +13 -13
  71. package/dist/{Index-BqBi-EmE.js → Index-P0_dyc2V.js} +3 -3
  72. package/dist/{Index-4NdatdH2.js → Index-RQMPSeHw.js} +6 -6
  73. package/dist/{Index-DIg77V9c.js → Index-oipNLl3Y.js} +3 -3
  74. package/dist/{Index-C56fTFO3.js → Index-sJq2Iyvt.js} +4 -4
  75. package/dist/{Index-BuDj2yrd.js → Index-uubi3NHX.js} +4 -4
  76. package/dist/{Index-DeNpUKh8.js → Index-vNj2kYZT.js} +5 -5
  77. package/dist/{InputToggleRow-C7aWJpUF.js → InputToggleRow-B2pWvVyx.js} +1 -1
  78. package/dist/{ManualPopover-CK9Xp-mo.js → ManualPopover-BI_Sf1zG.js} +1 -1
  79. package/dist/{MediaWrapper-v87wlFnj.js → MediaWrapper-eFpWxv3n.js} +3 -3
  80. package/dist/{NotBindingText-BGy3SnK3.js → NotBindingText-DA5NpePz.js} +3 -3
  81. package/dist/{PackageGroup-CrsOkWIb.js → PackageGroup-DOSijBdN.js} +8 -8
  82. package/dist/{PdfTerms-UmEmlI0Y.js → PdfTerms-Q5YuVtrJ.js} +2 -2
  83. package/dist/{PdfViewer-C6VBu4tT.js → PdfViewer-zcWl8XZT.js} +3 -3
  84. package/dist/{PlainHtml-Dsaxrq3D.js → PlainHtml-BmA83UAm.js} +1 -1
  85. package/dist/{PriceHeader-DQ615L9Q.js → PriceHeader-C14L5zgG.js} +9 -9
  86. package/dist/{SearchApi-CbWFQfoc.js → SearchApi-CGT7-jVf.js} +2 -2
  87. package/dist/{Setup-Byd-0W7U.js → Setup-RJQvZlDO.js} +1 -1
  88. package/dist/{CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-DbBb6ZId.js → SmartList-YosKRPVn.js} +1 -1
  89. package/dist/{TermsSettings-Cah7_3Ba.js → TermsSettings-C5JTv7rT.js} +3 -3
  90. package/dist/{ThemeColorRow-DqsjvQfY.js → ThemeColorRow-D-C_tm2f.js} +3 -3
  91. package/dist/{ToggleBinding-DFr6xW2B.js → ToggleBinding-KEVHHvKf.js} +3 -3
  92. package/dist/{UploadModal-jRI9ITty.js → UploadModal-DOYoWELI.js} +2 -2
  93. package/dist/{VideoPlayerInput-C5_Ft8-4.js → VideoPlayerInput-Dxb6CNk-.js} +3 -3
  94. package/dist/{VideoPlayerSettings-LZluC-Tg.js → VideoPlayerSettings-DsVN4Ix-.js} +2 -2
  95. package/dist/{VideoSelectModal-OGDq_lwv.js → VideoSelectModal-BpfzNx61.js} +3 -3
  96. package/dist/{answerDocumentMixin-D8BXcPWt.js → answerDocumentMixin-BJMGrfUs.js} +3 -3
  97. package/dist/{debounce-BQXg61RJ.js → debounce-BN83gOVd.js} +11 -11
  98. package/dist/{focusDrawerMixin-D3Pzr0P-.js → focusDrawerMixin-CawyQaGq.js} +1 -1
  99. package/dist/{formComponentsInstall-D1VBPt9o.js → formComponentsInstall-jcnyQ1zw.js} +74 -76
  100. package/dist/{formDrawerState-wG6RdIXD.js → formDrawerState-BdNohvZH.js} +1 -1
  101. package/dist/{formValidationMixin-D9qFZJf9.js → formValidationMixin-DOwgebZk.js} +1 -1
  102. package/dist/{index-BEOnzeEr.js → index-BBJIOkm_.js} +5 -5
  103. package/dist/{index-1DmXjcSN.js → index-BNq9YCWc.js} +12 -12
  104. package/dist/{index-BFnwm62-.js → index-BdhbkLLU.js} +1 -1
  105. package/dist/{index-DETqm8Jy.js → index-COf8F6CL.js} +15 -18
  106. package/dist/{index-Dnp3LAf2.js → index-D0WvZHX_.js} +1 -1
  107. package/dist/{index-M-GXl2PO.js → index-DTzZP4yq.js} +20 -20
  108. package/dist/index.es.js +3 -3
  109. package/dist/index.umd.js +135 -143
  110. package/dist/{main-CWRB9q-W.js → main-DE5THsiR.js} +4228 -4195
  111. package/dist/{mapFormMixin-BOmDynJ-.js → mapFormMixin-y2txvLw9.js} +1 -1
  112. package/dist/omit-BrsWQAtU.js +31 -0
  113. package/dist/{publicSenderState-D_VhSyXD.js → publicSenderState-BYsq95Vt.js} +1 -1
  114. package/dist/style.css +2 -2
  115. package/dist/{throttle-Bixql7MZ.js → throttle-C2srA2wa.js} +2 -2
  116. package/dist/{tinycolor-CIjZZX-6.js → tinycolor-SjV_ROuP.js} +1 -1
  117. package/dist/tippy.esm-Dj7DQppr.js +1799 -0
  118. package/dist/{utils-1ypnMuRv.js → utils-16HMuRfY.js} +1 -1
  119. package/dist/{omit-CMqxXOLn.js → vuedraggable.umd-Cd1g2Hr7.js} +526 -554
  120. package/package.json +1 -1
  121. package/tsconfig.json +2 -2
  122. package/dist/BaseInput-BDjhI5P9.js +0 -364
  123. package/dist/tippy.esm-BcAHvKwR.js +0 -2039
@@ -1,8 +1,9 @@
1
- import { C as v } from "./ClientAutocomplete-DmRl3SUj.js";
2
- import { B as u, X as y, I as C, n as p, d as b, c as _, b as d, g as c, Y as $, w } from "./main-CWRB9q-W.js";
3
- import { w as f } from "./CDropdownItem-DhEpCmQt.js";
4
- import { v as r } from "./index-M-GXl2PO.js";
1
+ import { C as v } from "./ClientAutocomplete-D9Dj9iBW.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-DE5THsiR.js";
3
+ import { w as f } from "./CDropdownItem-DlWtQwO6.js";
4
+ import { v as r } from "./index-DTzZP4yq.js";
5
5
  import { m as g, b as x, a as k } from "./vuex.esm-DKGl8mcw.js";
6
+ import { o as N } from "./omit-BrsWQAtU.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 I = {
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: S } = 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: I
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
+ ...S({
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 M = 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);
@@ -352,9 +357,9 @@ var F = function() {
352
357
  e.reference = i;
353
358
  }, expression: "reference" } })], 1) : e._e(), e.type && !e.isIndivid && e.feature("reverseVat") && e.feature("regionSE") ? t("CField", { staticStyle: { "padding-left": "0.5em", "margin-bottom": "calc(2 * var(--rem))" } }, [t("CCheckbox", { attrs: { size: "normal" }, model: { value: e.reverseVat, callback: function(i) {
354
359
  e.reverseVat = i;
355
- }, expression: "reverseVat" } }, [e._v(" " + e._s(e.$t("_common:vat.reverseVat")) + " ")])], 1) : e._e()], 1), t("CField", { staticClass: "flex", attrs: { grouped: "" } }, [t("CField", { attrs: { validator: e.$v.email, messages: e.messages.email, label: e.$t("_common:email").capitalize(), "label-position": "inside", expanded: "" } }, [t("CInput", { ref: "email", attrs: { placeholder: e.$t("_common:email").capitalize() }, model: { value: e.email, callback: function(i) {
360
+ }, expression: "reverseVat" } }, [e._v(" " + e._s(e.$t("_common:vat.reverseVat")) + " ")])], 1) : e._e()], 1), t("CField", { staticClass: "flex", attrs: { grouped: "" } }, [t("CField", { staticClass: "flex-1", attrs: { validator: e.$v.email, messages: e.messages.email, label: e.$t("_common:email").capitalize(), "label-position": "inside", expanded: "" } }, [t("CInput", { ref: "email", attrs: { placeholder: e.$t("_common:email").capitalize() }, model: { value: e.email, callback: function(i) {
356
361
  e.email = typeof i == "string" ? i.trim() : i;
357
- }, expression: "email" } })], 1), t("CPhoneInput", { staticStyle: { "margin-bottom": "calc(1.5 * var(--rem))" }, attrs: { label: e.$t("_common:cellphone").capitalize(), placeholder: e.$t("placeholders.cellphone"), region: e.cellphoneRegion, "default-region": e.companyRegion, "label-position": "inside" }, on: { "update:region": function(i) {
362
+ }, expression: "email" } })], 1), t("CPhoneInput", { staticClass: "flex-1", staticStyle: { "margin-bottom": "calc(1.5 * var(--rem))" }, attrs: { label: e.$t("_common:cellphone").capitalize(), placeholder: e.$t("placeholders.cellphone"), region: e.cellphoneRegion, "default-region": e.companyRegion, "label-position": "inside" }, on: { "update:region": function(i) {
358
363
  e.cellphoneRegion = i;
359
364
  } }, model: { value: e.cellphone, callback: function(i) {
360
365
  e.cellphone = i;
@@ -374,19 +379,15 @@ var F = function() {
374
379
  e.workZip = i;
375
380
  }, expression: "workZip" } })], 1), t("CField", { attrs: { expanded: "" } }, [t("CInput", { ref: "workCity", attrs: { placeholder: e.$t("_common:city").capitalize(), expanded: "" }, model: { value: e.workCity, callback: function(i) {
376
381
  e.workCity = i;
377
- }, expression: "workCity" } })], 1)], 1)], 1) : e._e()]), e.documentRole || e.answerMethod ? t("CField", { staticClass: "flex pt-4", attrs: { grouped: "" } }, [e.documentRole ? t("div", { staticClass: "dropdown-field-wrapper" }, [t("div", { staticClass: "my-1 text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("_common:documentRole.title")) + " ")]), t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" } }, [t("CButton", { staticClass: "is-left", staticStyle: { width: "100%" }, attrs: { slot: "trigger", "dropdown-icon": !0, "icon-props": {
382
+ }, expression: "workCity" } })], 1)], 1)], 1) : e._e()]), e.documentRole || e.answerMethod ? t("CField", { staticClass: "flex pt-4", attrs: { grouped: "" } }, [e.documentRole ? t("div", { staticClass: "dropdown-field-wrapper flex min-w-0 flex-col" }, [t("div", { staticClass: "my-1 text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("_common:documentRole.title")) + " ")]), t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" } }, [t("CButton", { staticClass: "is-left", attrs: { slot: "trigger", "dropdown-icon": !0, "icon-props": {
378
383
  stroke: "hsl(0, 0%, 50%)"
379
- }, "icon-left": e.documentRole === "signee" ? "pen-tool" : "eye", type: "none", pattern: "secondary" }, slot: "trigger" }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.description`)) + " ")]), t("div", { staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.label`)) + " ")])])]), e._l(["signee", "recipient", "approver"], function(i) {
384
+ }, "icon-left": e.documentRole === "signee" ? "pen-tool" : "eye", type: "none", pattern: "secondary", expanded: "" }, slot: "trigger" }, [t("div", { staticClass: "py-1 leading-5" }, [t("div", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.description`)) + " ")]), t("div", { staticClass: "text-xs opacity-70" }, [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.label`)) + " ")])])]), e._l(["signee", "recipient", "approver"], function(i) {
380
385
  return t("CDropdownItem", { key: i, attrs: { "icon-left": i === "signee" ? "pen-tool" : "eye", "icon-props": {
381
386
  stroke: "hsl(0, 0%, 50%)"
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 flex min-w-0 flex-col" }, [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", expanded: "" }, slot: "trigger" }, [t("div", { staticClass: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, [t("div", [e._v(e._s(e.$t(`signMethod.${e.answerMethod.accept}.title`)))]), t("div", { staticClass: "truncate text-xs opacity-70" }, [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
+ }, z = [], O = /* @__PURE__ */ u(
399
399
  F,
400
+ M,
400
401
  z,
401
402
  !1,
402
403
  null,
403
- "59306239"
404
+ "99750061"
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: N,
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 { Z as ht, n as bt } from "./main-CWRB9q-W.js";
1
+ import { a5 as ht, n as bt } from "./main-DE5THsiR.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-DhEpCmQt.js";
2
- import { B as l, g as s, n as c } from "./main-CWRB9q-W.js";
3
- import { v as o } from "./index-M-GXl2PO.js";
1
+ import { w as r } from "./CDropdownItem-DlWtQwO6.js";
2
+ import { E as l, g as s, n as c } from "./main-DE5THsiR.js";
3
+ import { v as o } from "./index-DTzZP4yq.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-D_VhSyXD.js";
5
+ import { s as m, a as u } from "./publicSenderState-BYsq95Vt.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-BOmDynJ-.js";
2
- import { B as l } from "./BlockMedia-T4OxMb4n.js";
3
- import { t as r } from "./tinycolor-CIjZZX-6.js";
4
- import { T as i } from "./DocTextEditor-CYe_jWZ8.js";
5
- import { n as s, $ as c, x as u, z as m, y as p } from "./main-CWRB9q-W.js";
1
+ import { m as n } from "./mapFormMixin-y2txvLw9.js";
2
+ import { B as l } from "./BlockMedia-CqkwdGnE.js";
3
+ import { t as r } from "./tinycolor-SjV_ROuP.js";
4
+ import { T as i } from "./DocTextEditor-BfOZFDTP.js";
5
+ import { n as s, ab as c, z as u, B as m, A as p } from "./main-DE5THsiR.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-DUVhl9xC.js"),
36
+ DocumentLogotype: () => import("./DocumentLogotype-woc_hfll.js"),
37
37
  StaticComboLayout: h,
38
38
  TextEditor: i
39
39
  },
@@ -1,6 +1,6 @@
1
- import { m as d } from "./mapFormMixin-BOmDynJ-.js";
2
- import { T as l } from "./ThemeColorRow-DqsjvQfY.js";
3
- import { n as s, N as p, F as u } from "./main-CWRB9q-W.js";
1
+ import { m as d } from "./mapFormMixin-y2txvLw9.js";
2
+ import { T as l } from "./ThemeColorRow-D-C_tm2f.js";
3
+ import { n as s, P as p, H as u } from "./main-DE5THsiR.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-D2g42vWJ.js"),
139
- video: () => import("./VideoSelectModal-OGDq_lwv.js")
138
+ image: () => import("./ImageSelectModal-CAoBhnI8.js"),
139
+ video: () => import("./VideoSelectModal-BpfzNx61.js")
140
140
  }, S = {
141
141
  name: "CoverBlockSettings",
142
142
  i18nOptions: {
@@ -1,5 +1,5 @@
1
- import r from "./AnswerModal-KWFteFV9.js";
2
- import { n as o } from "./main-CWRB9q-W.js";
1
+ import r from "./AnswerModal-BCbq8wc4.js";
2
+ import { n as o } from "./main-DE5THsiR.js";
3
3
  const t = {
4
4
  components: {
5
5
  AnswerModal: r
@@ -1,7 +1,7 @@
1
- import { D as f } from "./DocumentVoided-D5ePc-a5.js";
2
- import { C as g, a as h, w } from "./CDropdownItem-DhEpCmQt.js";
3
- import { n as r, a4 as $, b as x, a5 as y, a6 as b, a7 as C } from "./main-CWRB9q-W.js";
4
- import { C as S } from "./CPhoneFormat-B88rkuf0.js";
1
+ import { D as f } from "./DocumentVoided-DC4FzpxG.js";
2
+ import { C as g, a as h, w } from "./CDropdownItem-DlWtQwO6.js";
3
+ import { n as r, ag as $, b as x, ah as y, ai as b, aj as C } from "./main-DE5THsiR.js";
4
+ import { C as S } from "./CPhoneFormat-CJ9kndtJ.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
  },