@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
@@ -1,9 +1,33 @@
1
- import { C as v } from "./ClientAutocomplete-DyXQEfcS.js";
2
- import { E as p, ad as y, I as C, n as u, b as l, d as b, c as _, g as c, ae as $, y as w } from "./main-CerYX9PA.js";
3
- import { w as f } from "./CDropdownItem-b6ZzOnv-.js";
4
- import { v as r } from "./index-twnaU4rC.js";
5
- import { m as g, b as x, a as k } from "./vuex.esm-DKGl8mcw.js";
6
- import { o as N } from "./omit-DGBewD2h.js";
1
+ import { C as v } from "./ClientAutocomplete-BnredOme.js";
2
+ import { n as d, ai as y, M as p, al as C, t as b, I as _, b as l, d as $, c as x, g as m, am as w, ab as k } from "./main-U22_wtg0.js";
3
+ import { C as S, a as N, w as f } from "./CDropdownItem-DiLisSei.js";
4
+ import { C as I } from "./CFormField-DcZVdj3a.js";
5
+ import { C as F } from "./CPhoneInput-UzZkxbC6.js";
6
+ import { v as r } from "./index-C1Ngv-v3.js";
7
+ import { m as g, b as M, a as R } from "./vuex.esm-DKGl8mcw.js";
8
+ import { o as z } from "./omit-RBXmF_Fo.js";
9
+ const O = {
10
+ name: "CRadio",
11
+ mixins: [y]
12
+ };
13
+ var q = function() {
14
+ var e = this, t = e._self._c;
15
+ return t("label", { ref: "label", staticClass: "b-radio radio", class: [`is-${e.size}`, { "is-disabled": e.disabled }], attrs: { disabled: e.disabled }, on: { click: e.focus, keydown: function(i) {
16
+ return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : (i.preventDefault(), e.$refs.label.click());
17
+ } } }, [t("input", { directives: [{ name: "model", rawName: "v-model", value: e.computedValue, expression: "computedValue" }], ref: "input", attrs: { disabled: e.disabled, required: e.required, name: e.name, type: "radio" }, domProps: { value: e.nativeValue, checked: e._q(e.computedValue, e.nativeValue) }, on: { click: function(i) {
18
+ i.stopPropagation();
19
+ }, change: function(i) {
20
+ e.computedValue = e.nativeValue;
21
+ } } }), t("span", { staticClass: "check", class: `is-${e.type}` }), t("span", { staticClass: "control-label" }, [e._t("default")], 2)]);
22
+ }, A = [], D = /* @__PURE__ */ d(
23
+ O,
24
+ q,
25
+ A,
26
+ !1,
27
+ null,
28
+ null
29
+ );
30
+ const V = D.exports;
7
31
  function h(a) {
8
32
  if (typeof a > "u")
9
33
  throw Error("Missing param inputParam");
@@ -16,11 +40,11 @@ function h(a) {
16
40
  o = parseInt(e.charAt(s), 10), s % 2 === n && (o *= 2), o > 9 && (o -= 9), t += o;
17
41
  return t % 10 === 0;
18
42
  }
19
- function m(a) {
43
+ function u(a) {
20
44
  let e = a.replace(/ /g, "");
21
45
  return e = e.replace(/-/g, ""), !h(e) || (e = [e.slice(0, 6), "-", e.slice(6)].join(""), !e.match(/^(\d{6})-(\d{4})$/)) ? !1 : e;
22
46
  }
23
- function d(a) {
47
+ function c(a) {
24
48
  if (typeof a > "u" || a === null || a === "")
25
49
  return !1;
26
50
  let e = a.trim().replace(/[^0-9]+/g, "");
@@ -35,7 +59,7 @@ function d(a) {
35
59
  }
36
60
  return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(e.substring(0, 4), 10) < 16 ? !1 : h(e.substring(2)) ? e : !1;
37
61
  }
38
- const I = {
62
+ const B = {
39
63
  sv: {
40
64
  title: "Mottagare",
41
65
  updateButton: "Spara mottagare",
@@ -150,18 +174,24 @@ const I = {
150
174
  }
151
175
  }
152
176
  }
153
- }, { mapFields: S } = p({
177
+ }, { mapFields: P } = p({
154
178
  getterType: "forms/getField",
155
179
  mutationType: "forms/updateField"
156
- }), F = {
180
+ }), E = {
157
181
  name: "FormClient",
158
182
  i18nOptions: {
159
183
  namespaces: "formClient",
160
- messages: I
184
+ messages: B
161
185
  },
162
186
  components: {
163
187
  ClientAutocomplete: v,
164
- Animation: y
188
+ Animation: C,
189
+ CCheckbox: b,
190
+ CDropdown: S,
191
+ CDropdownItem: N,
192
+ CField: I,
193
+ CPhoneInput: F,
194
+ CRadio: V
165
195
  },
166
196
  mixins: [f],
167
197
  props: {
@@ -214,7 +244,7 @@ const I = {
214
244
  ].some((e) => !!e) ? {
215
245
  orgNo: {
216
246
  personalNumber(e) {
217
- return !this.validateOrgNo || !e ? !0 : this.isIndivid ? d(e) : m(e) || d(e);
247
+ return !this.validateOrgNo || !e ? !0 : this.isIndivid ? c(e) : u(e) || c(e);
218
248
  }
219
249
  },
220
250
  reference: {
@@ -242,7 +272,7 @@ const I = {
242
272
  };
243
273
  },
244
274
  computed: {
245
- ...S({
275
+ ...P({
246
276
  id: "endCustomer.id",
247
277
  type: "endCustomer.customerType",
248
278
  name: "endCustomer.name",
@@ -291,7 +321,7 @@ const I = {
291
321
  return this.realOrgNo;
292
322
  },
293
323
  set(a) {
294
- const e = this.isIndivid ? d(a) : m(a) || d(a);
324
+ const e = this.isIndivid ? c(a) : u(a) || c(a);
295
325
  return this.validateOrgNo && e ? (this.realOrgNo = e, !0) : (this.realOrgNo = a, !0);
296
326
  }
297
327
  },
@@ -301,7 +331,7 @@ const I = {
301
331
  },
302
332
  watch: {
303
333
  type(a) {
304
- C.setItem("defaultClientType", a);
334
+ _.setItem("defaultClientType", a);
305
335
  }
306
336
  },
307
337
  mounted() {
@@ -313,7 +343,7 @@ const I = {
313
343
  }
314
344
  }
315
345
  };
316
- var M = function() {
346
+ var W = function() {
317
347
  var e = this, t = e._self._c;
318
348
  return t("div", { staticClass: "form-client" }, [e.simpleForm ? t("form", { on: { submit: function(i) {
319
349
  return i.preventDefault(), e.validateForm.apply(null, arguments);
@@ -333,15 +363,17 @@ var M = function() {
333
363
  e.cellphoneRegion = i;
334
364
  } }, model: { value: e.cellphone, callback: function(i) {
335
365
  e.cellphone = i;
336
- }, expression: "cellphone" } }), e.documentRole ? 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": {
337
- stroke: "hsl(0, 0%, 50%)"
338
- }, "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) {
366
+ }, expression: "cellphone" } }), e.documentRole ? t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" }, scopedSlots: e._u([{ key: "trigger", fn: function() {
367
+ return [t("CButton", { staticClass: "is-left", staticStyle: { width: "100%" }, attrs: { "dropdown-icon": !0, "icon-props": {
368
+ stroke: "hsl(0, 0%, 50%)"
369
+ }, "icon-left": e.documentRole === "signee" ? "pen-tool" : "eye", type: "none", pattern: "secondary" } }, [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`)) + " ")])])])];
370
+ }, proxy: !0 }], null, !1, 251902115) }, e._l(["signee", "recipient", "approver"], function(i) {
339
371
  return t("CDropdownItem", { key: i, attrs: { "icon-left": i === "signee" ? "pen-tool" : "eye", "icon-props": {
340
372
  stroke: "hsl(0, 0%, 50%)"
341
373
  } }, on: { click: function(n) {
342
374
  return e.$emit("update:document-role", i);
343
375
  } } }, [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`)) + " ")])])]);
344
- })], 2) : e._e(), t("CButton", { attrs: { type: "secondary", pattern: "tertiary", size: "small", "icon-left": "arrow-right" }, on: { click: function(i) {
376
+ }), 1) : e._e(), t("CButton", { attrs: { type: "secondary", pattern: "tertiary", size: "small", "icon-left": "arrow-right" }, on: { click: function(i) {
345
377
  return e.$emit("show-more");
346
378
  } } }, [e._v(" " + e._s(e.$t("showMore").capitalize()) + " ")]), t("CButton", { staticClass: "mt-4", 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, "native-type": "submit", type: "secondary", wide: "", size: "medium" } }, [e._v(" " + e._s(e.$t("updateButton")) + " ")])], 1) : t("div", { class: { "column-only": e.windowWidth <= 600 } }, [t("div", { staticClass: "flex items-center justify-center", staticStyle: { "margin-bottom": "calc(2.5 * var(--rem))" } }, [t("div", { staticClass: "type-toggle" }, [t("div", { staticClass: "type-toggle-button", class: { active: e.type === "individual" }, on: { click: function(i) {
347
379
  e.type = "individual";
@@ -379,34 +411,38 @@ var M = function() {
379
411
  e.workZip = i;
380
412
  }, 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) {
381
413
  e.workCity = i;
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": {
383
- stroke: "hsl(0, 0%, 50%)"
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) {
414
+ }, 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: "" }, scopedSlots: e._u([{ key: "trigger", fn: function() {
415
+ return [t("CButton", { staticClass: "is-left", attrs: { "dropdown-icon": !0, "icon-props": {
416
+ stroke: "hsl(0, 0%, 50%)"
417
+ }, "icon-left": e.documentRole === "signee" ? "pen-tool" : "eye", type: "none", pattern: "secondary", expanded: "" } }, [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`)) + " ")])])])];
418
+ }, proxy: !0 }], null, !1, 3591348405) }, e._l(["signee", "recipient", "approver"], function(i) {
385
419
  return t("CDropdownItem", { key: i, attrs: { "icon-left": i === "signee" ? "pen-tool" : "eye", "icon-props": {
386
420
  stroke: "hsl(0, 0%, 50%)"
387
421
  } }, on: { click: function(n) {
388
422
  return e.$emit("update:document-role", i);
389
423
  } } }, [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`)) + " ")])])]);
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) {
424
+ }), 1)], 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: "" }, scopedSlots: e._u([{ key: "trigger", fn: function() {
425
+ return [t("CButton", { staticClass: "is-left", attrs: { "dropdown-icon": !0, type: "none", pattern: "secondary", expanded: "" } }, [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`)) + " ")])])])];
426
+ }, proxy: !0 }], null, !1, 2465514337) }, e._l(e.signOptions, function(i) {
391
427
  return t("CDropdownItem", { key: i, on: { click: function(n) {
392
428
  return e.$emit("update:answer-method", {
393
429
  ...e.answerMethod,
394
430
  accept: i
395
431
  });
396
432
  } } }, [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`)) + " ")])])]);
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)]);
398
- }, z = [], O = /* @__PURE__ */ u(
399
- F,
400
- M,
401
- z,
433
+ }), 1)], 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)]);
434
+ }, T = [], L = /* @__PURE__ */ d(
435
+ E,
436
+ W,
437
+ T,
402
438
  !1,
403
439
  null,
404
- "99750061"
440
+ "048c074e"
405
441
  );
406
- const R = O.exports, { mapFields: q } = p({
442
+ const j = L.exports, { mapFields: Z } = p({
407
443
  getterType: "forms/getField",
408
444
  mutationType: "forms/updateField"
409
- }), A = {
445
+ }), U = {
410
446
  name: "ClientModal",
411
447
  i18nOptions: {
412
448
  namespaces: "clientModal",
@@ -438,7 +474,7 @@ const R = O.exports, { mapFields: q } = p({
438
474
  }
439
475
  },
440
476
  components: {
441
- FormClient: R
477
+ FormClient: j
442
478
  },
443
479
  mixins: [f],
444
480
  props: {
@@ -493,10 +529,10 @@ const R = O.exports, { mapFields: q } = p({
493
529
  };
494
530
  },
495
531
  computed: {
496
- ...q({
532
+ ...Z({
497
533
  endCustomer: "endCustomer"
498
534
  }),
499
- ...x("forms", {
535
+ ...M("forms", {
500
536
  formData: (a) => a.document2
501
537
  }),
502
538
  ...g({
@@ -505,7 +541,7 @@ const R = O.exports, { mapFields: q } = p({
505
541
  defaultClientType: "endCustomers/defaultClientType"
506
542
  }),
507
543
  validateOrgNo() {
508
- return !!(this.feature("bankId") || this.isPublicForm && b[_.brand].defaultRegion === "SE");
544
+ return !!(this.feature("bankId") || this.isPublicForm && $[x.brand].defaultRegion === "SE");
509
545
  },
510
546
  existsOnDocument() {
511
547
  return !!l(this.formData, `clients[${this.documentClientIndex}]`);
@@ -528,13 +564,13 @@ const R = O.exports, { mapFields: q } = p({
528
564
  );
529
565
  },
530
566
  methods: {
531
- ...k({
532
- saveClient: c.FORM_SUBMIT_ENDCUSTOMER,
533
- showMessage: c.SHOW_MESSAGE
567
+ ...R({
568
+ saveClient: m.FORM_SUBMIT_ENDCUSTOMER,
569
+ showMessage: m.SHOW_MESSAGE
534
570
  }),
535
- omit: N,
571
+ omit: z,
536
572
  loadForm(a = {}) {
537
- this.storedNewClient = Object.assign(this.storedNewClient, a), this.endCustomer = $({
573
+ this.storedNewClient = Object.assign(this.storedNewClient, a), this.endCustomer = w({
538
574
  type: this.defaultClientType(),
539
575
  ...a
540
576
  });
@@ -548,7 +584,7 @@ const R = O.exports, { mapFields: q } = p({
548
584
  }
549
585
  this.setFormValue({
550
586
  key: `clients[${this.documentClientIndex}]`,
551
- value: w(
587
+ value: k(
552
588
  { ...this.endCustomer, ...a && { id: a } },
553
589
  { ...this.storedNewClient, signOrder: this.signOrder }
554
590
  )
@@ -594,7 +630,7 @@ const R = O.exports, { mapFields: q } = p({
594
630
  }
595
631
  }
596
632
  };
597
- var D = function() {
633
+ var Y = function() {
598
634
  var e = this, t = e._self._c;
599
635
  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) {
600
636
  return i.target !== i.currentTarget ? null : e.close.apply(null, arguments);
@@ -611,15 +647,20 @@ var D = function() {
611
647
  }, submit: e.onSave, "show-more": function(i) {
612
648
  e.showMore = !0;
613
649
  } } }), 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)]);
614
- }, B = [], E = /* @__PURE__ */ u(
615
- A,
616
- D,
617
- B,
650
+ }, G = [], H = /* @__PURE__ */ d(
651
+ U,
652
+ Y,
653
+ G,
618
654
  !1,
619
655
  null,
620
656
  null
621
657
  );
622
- const U = E.exports;
658
+ const J = H.exports, se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
659
+ __proto__: null,
660
+ default: J
661
+ }, Symbol.toStringTag, { value: "Module" }));
623
662
  export {
624
- U as default
663
+ J as C,
664
+ V as a,
665
+ se as b
625
666
  };
@@ -1,4 +1,4 @@
1
- import { a9 as ht, n as bt } from "./main-CerYX9PA.js";
1
+ import { ad as ht, n as bt } from "./main-U22_wtg0.js";
2
2
  var vt = { exports: {} };
3
3
  (function(gt, Ct) {
4
4
  (function(c, i) {
@@ -2871,7 +2871,7 @@ var yt = /* @__PURE__ */ bt(
2871
2871
  wt,
2872
2872
  !1,
2873
2873
  null,
2874
- "c60bd4ad"
2874
+ "d5b1f2a4"
2875
2875
  );
2876
2876
  const Ft = yt.exports;
2877
2877
  export {
@@ -1,14 +1,20 @@
1
- import { w as r } from "./CDropdownItem-b6ZzOnv-.js";
2
- import { E as l, g as s, n as c } from "./main-CerYX9PA.js";
3
- import { v as o } from "./index-twnaU4rC.js";
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-t7Gu53cA.js";
6
- const { mapFields: f } = l({
1
+ import { C as r } from "./CFormField-DcZVdj3a.js";
2
+ import { C as l } from "./CPhoneInput-UzZkxbC6.js";
3
+ import { w as c } from "./CDropdownItem-DiLisSei.js";
4
+ import { M as p, g as s, n as d } from "./main-U22_wtg0.js";
5
+ import { v as o } from "./index-C1Ngv-v3.js";
6
+ import { m as u, b as n, a as f } from "./vuex.esm-DKGl8mcw.js";
7
+ import { s as m, a as y } from "./publicSenderState-DKuvxj4_.js";
8
+ const { mapFields: h } = p({
7
9
  getterType: "forms/getField",
8
10
  mutationType: "forms/updateField"
9
- }), y = {
11
+ }), C = {
10
12
  name: "CompanyModal",
11
- mixins: [r],
13
+ components: {
14
+ CPhoneInput: l,
15
+ CField: r
16
+ },
17
+ mixins: [c],
12
18
  props: {
13
19
  inputFocusOnMount: {
14
20
  type: String,
@@ -33,14 +39,14 @@ const { mapFields: f } = l({
33
39
  }
34
40
  },
35
41
  computed: {
36
- ...p({
42
+ ...u({
37
43
  isPostingCompany: "companies/isPosting",
38
44
  isPostingUser: "companyUsers/isPosting",
39
45
  hasChanged: "forms/hasChanged",
40
46
  companyRegion: "application/companyRegion",
41
47
  can: "application/can"
42
48
  }),
43
- ...f({
49
+ ...h({
44
50
  company: "company",
45
51
  user: "companyUser",
46
52
  name: "company.name",
@@ -84,7 +90,7 @@ const { mapFields: f } = l({
84
90
  this.$refs[this.inputFocusOnMount] ? this.$refs[this.inputFocusOnMount].$el.querySelector("input").focus() : this.$refs.name.$el.querySelector("input").focus();
85
91
  },
86
92
  methods: {
87
- ...d({
93
+ ...f({
88
94
  formEditCompany: s.FORM_EDIT_COMPANY,
89
95
  formEditCompanyUser: s.FORM_EDIT_COMPANY_USER,
90
96
  formSubmitCompany: s.FORM_SUBMIT_COMPANY,
@@ -99,7 +105,7 @@ const { mapFields: f } = l({
99
105
  }));
100
106
  },
101
107
  async save() {
102
- this.$v.$touch(), !this.$v.$invalid && (this.isLoading = !0, this.isPublicForm ? u({ company: this.company, user: this.user }) : await Promise.all([
108
+ this.$v.$touch(), !this.$v.$invalid && (this.isLoading = !0, this.isPublicForm ? y({ company: this.company, user: this.user }) : await Promise.all([
103
109
  ...this.hasChanged("company") ? [this.formSubmitCompany()] : [],
104
110
  ...this.hasChanged("companyUser") && this.currentUserId === this.documentCompanyUserId ? [this.formSubmitCompanyUser()] : []
105
111
  ]), this.$emit("close"), this.isLoading = !1);
@@ -109,7 +115,7 @@ const { mapFields: f } = l({
109
115
  }
110
116
  }
111
117
  };
112
- var h = function() {
118
+ var g = function() {
113
119
  var e = this, a = e._self._c;
114
120
  return a("div", { staticClass: "font-inter", class: {
115
121
  "full-screen": e.isFullScreen,
@@ -127,15 +133,15 @@ var h = function() {
127
133
  }, expression: "email" } })], 1), a("CField", [a("CPhoneInput", { ref: "cellphone", attrs: { "default-region": e.companyRegion, disabled: e.notCurrentUser, label: e.$t("_common:cellphone").capitalize(), "label-position": "inside", size: "medium" }, model: { value: e.cellphone, callback: function(t) {
128
134
  e.cellphone = t;
129
135
  }, expression: "cellphone" } })], 1), a("CButton", { staticStyle: { "margin-top": "calc(3 * var(--rem))" }, attrs: { loading: e.isPosting, type: "secondary", wide: "", size: "medium" }, on: { click: e.save } }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:company") })) + " ")])], 1)], 1)]);
130
- }, g = [], C = /* @__PURE__ */ c(
131
- y,
132
- h,
136
+ }, _ = [], b = /* @__PURE__ */ d(
137
+ C,
133
138
  g,
139
+ _,
134
140
  !1,
135
141
  null,
136
- "20ecbb22"
142
+ "c6483ac9"
137
143
  );
138
- const S = C.exports;
144
+ const M = b.exports;
139
145
  export {
140
- S as default
146
+ M as default
141
147
  };
@@ -1,8 +1,8 @@
1
- import { m as n } from "./mapFormMixin-Hj1Y7rVt.js";
2
- import { B as l } from "./BlockMedia-CUCZYVdZ.js";
3
- import { t as r } from "./tinycolor-BaK26Ky-.js";
4
- import { T as i } from "./DocTextEditor-CM1f8eMD.js";
5
- import { n as s, af as c, z as u, B as m, A as p } from "./main-CerYX9PA.js";
1
+ import { m as s } from "./mapFormMixin-BZf4RJIE.js";
2
+ import { B as r } from "./BlockMedia-BSKtZMwa.js";
3
+ import { t as l } from "./tinycolor-BZ8wGctU.js";
4
+ import { T as i } from "./DocTextEditor-CNRwxPEx.js";
5
+ import { n, ah as c, H as u, K as p, J as m } from "./main-U22_wtg0.js";
6
6
  import { i as d } from "./i18nMessages-Chz_lxGG.js";
7
7
  const f = {
8
8
  name: "StaticComboLayout",
@@ -18,27 +18,27 @@ var _ = function() {
18
18
  return ["horizontal"].includes(t.layout) ? e("div", { staticClass: "flex w-full flex-col", staticStyle: { flex: "1 1 auto", "min-height": "100%" } }, [t._t("logo"), e("div", { staticClass: "flex w-full flex-col justify-end", staticStyle: { flex: "1 1 auto" } }, [t._t("preText"), t._t("documentName"), t._t("postText")], 2)], 2) : e("div", { staticClass: "flex w-full flex-col justify-between", class: {
19
19
  "items-center": t.layout === "center"
20
20
  }, staticStyle: { flex: "1 1 auto", "min-height": "100%" } }, [t._t("logo"), e("div", { staticClass: "flex w-full flex-col justify-center", staticStyle: { flex: "1 1 auto" } }, [t._t("preText"), t._t("documentName")], 2), t._t("postText")], 2);
21
- }, x = [], y = /* @__PURE__ */ s(
21
+ }, y = [], x = /* @__PURE__ */ n(
22
22
  f,
23
23
  _,
24
- x,
24
+ y,
25
25
  !1,
26
26
  null,
27
- "8e41c57b"
27
+ "430dee73"
28
28
  );
29
- const h = y.exports, v = {
29
+ const h = x.exports, v = {
30
30
  name: "StaticLayout",
31
31
  i18nOptions: {
32
32
  namespaces: "staticLayout",
33
33
  messages: d
34
34
  },
35
35
  components: {
36
- DocumentLogotype: () => import("./DocumentLogotype-Cilc0ElE.js"),
36
+ DocumentLogotype: () => import("./DocumentLogotype-ddYHM9wn.js"),
37
37
  StaticComboLayout: h,
38
38
  TextEditor: i
39
39
  },
40
40
  mixins: [
41
- n([
41
+ s([
42
42
  "layout",
43
43
  "preText",
44
44
  "documentName",
@@ -80,56 +80,64 @@ const h = y.exports, v = {
80
80
  },
81
81
  methods: {
82
82
  mustacheToSpan: u,
83
- spanToMustache: m,
84
- interpolateString: p
83
+ spanToMustache: p,
84
+ interpolateString: m
85
85
  }
86
86
  };
87
87
  var g = function() {
88
88
  var t = this, e = t._self._c;
89
- return e("div", { staticClass: "dont-break-out hyphens-auto flex w-full flex-col break-words", class: [`is-layout-${t.layout}`], staticStyle: { "word-wrap": "break-word", "word-break": "break-word" } }, [e("StaticComboLayout", { attrs: { layout: t.layout } }, [e("DocumentLogotype", { attrs: { slot: "logo", "show-logo": t.showLogo, "company-logotype": t.companyLogotype, "has-hover": t.hasHover }, on: { "update:showLogo": function(a) {
90
- t.showLogo = a;
91
- }, "update:show-logo": function(a) {
92
- t.showLogo = a;
93
- } }, slot: "logo", model: { value: t.logotype, callback: function(a) {
94
- t.logotype = a;
95
- }, expression: "logotype" } }), e("template", { slot: "preText" }, [e("TextEditor", { key: "preText" + t.canEdit, ref: "preTextEditor", staticClass: "no-drag header-text", attrs: { value: t.canEdit ? t.mustacheToSpan(
96
- t.preText,
97
- t._document.textTemplateMap,
98
- t._document._doc
99
- ) : t.interpolateString(t.preText, t._document._doc), mentions: t.mentions, snippets: !0, placeholder: t.$t("optional").capitalize(), static: "", unstyled: "" }, on: { input: function(a) {
100
- t.preText = t.spanToMustache(a);
101
- } } })], 1), e("div", { staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "700", margin: "calc(1 * var(--rem)) 0" }, attrs: { slot: "documentName" }, slot: "documentName" }, [t.canEdit ? e("TextEditor", { ref: "nameEditor", staticClass: "no-drag header-text", attrs: { value: t.internalName, extensions: {
102
- bulletList: !0,
103
- heading: [1, 2, 3],
104
- bold: !0,
105
- link: !0,
106
- underline: !0,
107
- blockquote: !0,
108
- table: !1
109
- }, placeholder: t.$t("name.placeholder"), unstyled: "", static: "" }, on: { input: function(a) {
110
- t.internalName = a;
111
- } } }) : e("div", { staticClass: "header-text", domProps: { innerHTML: t._s(t.internalName) } })], 1), e("template", { slot: "postText" }, [e("TextEditor", { key: "postText" + t.canEdit, ref: "postTextEditor", staticClass: "no-drag header-text", staticStyle: { width: "100%" }, attrs: { value: t.canEdit ? t.mustacheToSpan(
112
- t.postText,
113
- t._document.textTemplateMap,
114
- t._document._doc
115
- ) : t.interpolateString(t.postText, t._document._doc), editable: t.canEdit, mentions: t.mentions, snippets: !0, placeholder: t.$t("optional").capitalize(), static: "", unstyled: "" }, on: { input: function(a) {
116
- t.postText = t.spanToMustache(a);
117
- } } })], 1)], 2)], 1);
118
- }, T = [], b = /* @__PURE__ */ s(
89
+ return e("div", { staticClass: "dont-break-out hyphens-auto flex w-full flex-col break-words", class: [`is-layout-${t.layout}`], staticStyle: { "word-wrap": "break-word", "word-break": "break-word" } }, [e("StaticComboLayout", { attrs: { layout: t.layout }, scopedSlots: t._u([{ key: "logo", fn: function() {
90
+ return [e("DocumentLogotype", { attrs: { "show-logo": t.showLogo, "company-logotype": t.companyLogotype, "has-hover": t.hasHover }, on: { "update:showLogo": function(a) {
91
+ t.showLogo = a;
92
+ }, "update:show-logo": function(a) {
93
+ t.showLogo = a;
94
+ } }, model: { value: t.logotype, callback: function(a) {
95
+ t.logotype = a;
96
+ }, expression: "logotype" } })];
97
+ }, proxy: !0 }, { key: "preText", fn: function() {
98
+ return [e("TextEditor", { key: "preText" + t.canEdit, ref: "preTextEditor", staticClass: "no-drag header-text", attrs: { value: t.canEdit ? t.mustacheToSpan(
99
+ t.preText,
100
+ t._document.textTemplateMap,
101
+ t._document._doc
102
+ ) : t.interpolateString(t.preText, t._document._doc), mentions: t.mentions, snippets: !0, placeholder: t.$t("optional").capitalize(), static: "", unstyled: "" }, on: { input: function(a) {
103
+ t.preText = t.spanToMustache(a);
104
+ } } })];
105
+ }, proxy: !0 }, { key: "documentName", fn: function() {
106
+ return [e("div", { staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "700", margin: "calc(1 * var(--rem)) 0" } }, [t.canEdit ? e("TextEditor", { ref: "nameEditor", staticClass: "no-drag header-text", attrs: { value: t.internalName, extensions: {
107
+ bulletList: !0,
108
+ heading: [1, 2, 3],
109
+ bold: !0,
110
+ link: !0,
111
+ underline: !0,
112
+ blockquote: !0,
113
+ table: !1
114
+ }, placeholder: t.$t("name.placeholder"), unstyled: "", static: "" }, on: { input: function(a) {
115
+ t.internalName = a;
116
+ } } }) : e("div", { staticClass: "header-text", domProps: { innerHTML: t._s(t.internalName) } })], 1)];
117
+ }, proxy: !0 }, { key: "postText", fn: function() {
118
+ return [e("TextEditor", { key: "postText" + t.canEdit, ref: "postTextEditor", staticClass: "no-drag header-text", staticStyle: { width: "100%" }, attrs: { value: t.canEdit ? t.mustacheToSpan(
119
+ t.postText,
120
+ t._document.textTemplateMap,
121
+ t._document._doc
122
+ ) : t.interpolateString(t.postText, t._document._doc), editable: t.canEdit, mentions: t.mentions, snippets: !0, placeholder: t.$t("optional").capitalize(), static: "", unstyled: "" }, on: { input: function(a) {
123
+ t.postText = t.spanToMustache(a);
124
+ } } })];
125
+ }, proxy: !0 }]) })], 1);
126
+ }, T = [], b = /* @__PURE__ */ n(
119
127
  v,
120
128
  g,
121
129
  T,
122
130
  !1,
123
131
  null,
124
- "5e1fe7d6"
132
+ "3129d902"
125
133
  );
126
- const C = b.exports, w = {
134
+ const C = b.exports, S = {
127
135
  name: "ContentWrapper",
128
136
  components: {
129
137
  StaticCombo: C,
130
- BlockMedia: l
138
+ BlockMedia: r
131
139
  },
132
- mixins: [n(["layout", "item", "baseStyle"])],
140
+ mixins: [s(["layout", "item", "baseStyle"])],
133
141
  props: {
134
142
  hasHover: {
135
143
  type: Boolean,
@@ -155,11 +163,11 @@ const C = b.exports, w = {
155
163
  return ((o = this.baseStyle) == null ? void 0 : o.textAlign) || "left";
156
164
  },
157
165
  fallbackTextColor() {
158
- return this.backgroundColor && r.readability(this.backgroundColor, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
166
+ return this.backgroundColor && l.readability(this.backgroundColor, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
159
167
  }
160
168
  }
161
169
  };
162
- var S = function() {
170
+ var w = function() {
163
171
  var t = this, e = t._self._c;
164
172
  return e("div", { staticClass: "content-root", class: { "has-hover": t.hasHover }, style: { color: t.color, textAlign: t.textAlign } }, [t.layout !== "center" ? e("BlockMedia", { staticClass: "content-media", attrs: { media: t.item.media } }) : t._e(), e("div", { staticClass: "content-spacing" }, [e("StaticCombo", t._g({ attrs: { "has-hover": t.hasHover, _document: t._document, _value: {
165
173
  layout: t._value.layout,
@@ -169,15 +177,15 @@ var S = function() {
169
177
  showLogo: `${t._value.item}.value.showLogo`,
170
178
  logotype: `${t._value.item}.value.logotype`
171
179
  }, validator: t.validator } }, t.$listeners))], 1)], 1);
172
- }, $ = [], L = /* @__PURE__ */ s(
173
- w,
180
+ }, k = [], $ = /* @__PURE__ */ n(
174
181
  S,
175
- $,
182
+ w,
183
+ k,
176
184
  !1,
177
185
  null,
178
- "3dfe0998"
186
+ "62c6ef68"
179
187
  );
180
- const z = L.exports;
188
+ const j = $.exports;
181
189
  export {
182
- z as default
190
+ j as default
183
191
  };