@cling-se/widget 0.9.11 → 0.9.12

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 (143) hide show
  1. package/dist/{AddClientCallout-bccc787f.js → AddClientCallout-6b0621ec.js} +5 -5
  2. package/dist/{AnswerModal-4de1dbc1.js → AnswerModal-f6cb74d7.js} +154 -143
  3. package/dist/{AttachmentItem-800d8c9f.js → AttachmentItem-2a4cb524.js} +3 -3
  4. package/dist/{BaseDatePicker-1abafbac.js → BaseDatePicker-2daf62c0.js} +43 -43
  5. package/dist/{BaseInput-51ade595.js → BaseInput-a4523348.js} +1 -1
  6. package/dist/{BaseUpload-b9b2fa68.js → BaseUpload-737004ad.js} +2 -2
  7. package/dist/{BlockMedia-efc20618.js → BlockMedia-a145fc19.js} +1 -1
  8. package/dist/{CCallout-a357fde2.js → CCallout-7fb1ad5c.js} +3 -3
  9. package/dist/{CDropdownItem-bb7f1de7.js → CDropdownItem-79c8dc70.js} +5 -5
  10. package/dist/{CField-d69fcf46.js → CField-2b1118f9.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-5ac8d200.js → CSlider.vue_vue_type_style_index_0_lang-47894df7.js} +1 -1
  12. package/dist/{ClientAutocomplete-d126a3bd.js → ClientAutocomplete-3d098904.js} +2 -2
  13. package/dist/{ClientModal-e2c196c4.js → ClientModal-d1bf8d0d.js} +4 -4
  14. package/dist/{ColorPicker-81f9f778.js → ColorPicker-c61cd86f.js} +29 -29
  15. package/dist/{CompanyModal-092999bf.js → CompanyModal-46cab2d1.js} +3 -3
  16. package/dist/{ContentWrapper-1f930dce.js → ContentWrapper-3251ab37.js} +11 -11
  17. package/dist/{CoverBlockSettings-5aa513a4.js → CoverBlockSettings-3ad93db4.js} +9 -8
  18. package/dist/DocAnswer-a0f2853b.js +33 -0
  19. package/dist/{DocForm-2e9af604.js → DocForm-a4c0a0f1.js} +695 -740
  20. package/dist/{DocFormSend-fadf14c9.js → DocFormSend-ed982485.js} +28 -24
  21. package/dist/{DocModalBase-4172fbbb.js → DocModalBase-22abfff9.js} +1 -1
  22. package/dist/{DocPrint-edc291ba.js → DocPrint-028aa0ed.js} +1 -1
  23. package/dist/{DocReceipt-bcb8539c.js → DocReceipt-3bd27c4a.js} +1 -1
  24. package/dist/{DocSendReminder-c75a1906.js → DocSendReminder-8ad0ca86.js} +1 -1
  25. package/dist/{DocTextEditor-c9b90281.js → DocTextEditor-8930e458.js} +7 -7
  26. package/dist/{DocTimeline-2afee21c.js → DocTimeline-2ab336f0.js} +5 -5
  27. package/dist/{DocumentClient-425f6e0b.js → DocumentClient-441798b5.js} +5 -5
  28. package/dist/{DocumentLayout-0d24ac85.js → DocumentLayout-02c32058.js} +95 -95
  29. package/dist/{DocumentLogotype-278b2823.js → DocumentLogotype-43ef9231.js} +16 -16
  30. package/dist/{EmbedInput-28796e66.js → EmbedInput-996ae0e3.js} +2 -2
  31. package/dist/{EmbedSettings-1e097db9.js → EmbedSettings-41af8b9c.js} +3 -3
  32. package/dist/{ErrorCallout-ddbc30af.js → ErrorCallout-d392ffe9.js} +1 -1
  33. package/dist/{FilePreviewModal-360216a2.js → FilePreviewModal-e298691e.js} +4 -4
  34. package/dist/{HeaderSettings-abc9e60f.js → HeaderSettings-687131c9.js} +18 -17
  35. package/dist/{ImageSelectModal-2c078df5.js → ImageSelectModal-eec441aa.js} +15 -17
  36. package/dist/{ImageUploadWrapper-99a3b0dd.js → ImageUploadWrapper-b244cf9e.js} +2 -2
  37. package/dist/{Index-61786d22.js → Index-01a3b6ed.js} +6 -6
  38. package/dist/{Index-f9a97c67.js → Index-0ed1b84a.js} +2 -2
  39. package/dist/{Index-05d4a173.js → Index-13b65d9b.js} +2 -2
  40. package/dist/{Index-6435f551.js → Index-2468cd69.js} +11 -11
  41. package/dist/{Index-aecbccac.js → Index-25ce24cc.js} +2 -2
  42. package/dist/{Index-942a36d2.js → Index-2b19a264.js} +12 -12
  43. package/dist/{Index-23c1de88.js → Index-30ebb13c.js} +2 -2
  44. package/dist/{Index-8b57e293.js → Index-37d3fd60.js} +2 -2
  45. package/dist/{Index-abb29c87.js → Index-485b35e8.js} +26 -26
  46. package/dist/{Index-cb10ca9b.js → Index-5ff95ead.js} +8 -8
  47. package/dist/{Index-0a9e95d6.js → Index-62ea070e.js} +2 -2
  48. package/dist/{Index-81eeecba.js → Index-6c5de42a.js} +2 -2
  49. package/dist/{Index-5688e5e1.js → Index-6ca4a7e4.js} +14 -14
  50. package/dist/{Index-610a54bf.js → Index-6d61f98d.js} +25 -25
  51. package/dist/{Index-a0de23fe.js → Index-77a7d639.js} +5 -5
  52. package/dist/{Index-a8faf552.js → Index-7c421b05.js} +4 -4
  53. package/dist/{Index-d841c396.js → Index-7d2fe1bd.js} +5 -5
  54. package/dist/{Index-a8b60741.js → Index-87cd4771.js} +4 -4
  55. package/dist/{Index-ad024dc9.js → Index-8882ee1b.js} +5 -5
  56. package/dist/{Index-7317f443.js → Index-8c254496.js} +4 -4
  57. package/dist/{Index-168790bc.js → Index-9ccce76f.js} +4 -4
  58. package/dist/{Index-7a56c885.js → Index-a7871ea6.js} +4 -4
  59. package/dist/{Index-61b794ca.js → Index-a9f197a7.js} +4 -4
  60. package/dist/{Index-f3af647f.js → Index-af3a9b66.js} +4 -4
  61. package/dist/{Index-cb1efaaa.js → Index-b9b80eae.js} +6 -6
  62. package/dist/{Index-4cae2241.js → Index-bf23d7a9.js} +11 -11
  63. package/dist/{Index-c5b9ad7f.js → Index-c3a619f4.js} +4 -4
  64. package/dist/{Index-193a4968.js → Index-d3225e03.js} +5 -5
  65. package/dist/{Index-d56d4b7b.js → Index-d76bf229.js} +1 -1
  66. package/dist/{Index-d2d40188.js → Index-e2919ed0.js} +4 -4
  67. package/dist/{Index-8b02f74f.js → Index-ee558d21.js} +1 -1
  68. package/dist/{Index-44764dbb.js → Index-efa47af4.js} +7 -7
  69. package/dist/{Index-901f2f68.js → Index-f14261e7.js} +3 -3
  70. package/dist/{Index-83597574.js → Index-fd947a18.js} +10 -10
  71. package/dist/{InputToggleRow-3bba2a55.js → InputToggleRow-ee713437.js} +1 -1
  72. package/dist/IsPremiumPreStep-9b5a0a01.js +3669 -0
  73. package/dist/{MediaWrapper-574eca05.js → MediaWrapper-45257b41.js} +3 -3
  74. package/dist/{NotBindingText-f2acdb51.js → NotBindingText-c2f7c9cb.js} +2 -2
  75. package/dist/{PackageGroup-625d7093.js → PackageGroup-b2aa42da.js} +12 -12
  76. package/dist/{PdfTerms-05e6491e.js → PdfTerms-2d66043e.js} +4 -4
  77. package/dist/{PdfViewer-4d32b0f1.js → PdfViewer-947ee278.js} +2 -2
  78. package/dist/{PlainHtml-c2e1feca.js → PlainHtml-a3d47a45.js} +1 -1
  79. package/dist/{PriceHeader-ce8bb22c.js → PriceHeader-b6a99a57.js} +11 -11
  80. package/dist/{SearchApi-b7e03288.js → SearchApi-c6511bc3.js} +2 -2
  81. package/dist/Setup-60ec3c2a.js +54 -0
  82. package/dist/{TermsSettings-de33fad6.js → TermsSettings-836555da.js} +6 -6
  83. package/dist/{ThemeColorRow-52efe243.js → ThemeColorRow-672086c3.js} +11 -20
  84. package/dist/{ToggleBinding-ec8d351f.js → ToggleBinding-3c581fbb.js} +3 -3
  85. package/dist/{UploadModal-463188b1.js → UploadModal-b3933203.js} +3 -3
  86. package/dist/{VideoPlayerInput-9314dfa5.js → VideoPlayerInput-5ad13a27.js} +3 -3
  87. package/dist/{VideoPlayerSettings-e7978498.js → VideoPlayerSettings-e964804b.js} +4 -4
  88. package/dist/{VideoSelectModal-72e1e4e2.js → VideoSelectModal-321b2270.js} +12 -12
  89. package/dist/{answerDocumentMixin-d65059b8.js → answerDocumentMixin-76224b35.js} +3 -3
  90. package/dist/{cssMode-88d0146a.js → cssMode-2bf89988.js} +15 -19
  91. package/dist/{focusDrawerMixin-46eade80.js → focusDrawerMixin-dffff858.js} +1 -1
  92. package/dist/{formComponentsInstall-0cfab48e.js → formComponentsInstall-57c30f22.js} +263 -258
  93. package/dist/{formValidationMixin-94fb3562.js → formValidationMixin-9d5c1283.js} +1 -1
  94. package/dist/{freemarker2-fb187d64.js → freemarker2-503b066f.js} +19 -23
  95. package/dist/{handlebars-4a1a8024.js → handlebars-8c0c0a90.js} +11 -15
  96. package/dist/{html-00e90fc7.js → html-5b503855.js} +14 -18
  97. package/dist/{htmlMode-cfbebdc7.js → htmlMode-b751a462.js} +19 -23
  98. package/dist/image-a902f5a5.js +18 -0
  99. package/dist/index-1c1cefec.js +14 -0
  100. package/dist/{index-93fd29b3.js → index-771f5571.js} +4 -4
  101. package/dist/index-9a5227ef.js +82 -0
  102. package/dist/{index-7a30802a.js → index-a9f8e647.js} +7 -7
  103. package/dist/{index-de7702a8.js → index-d81be181.js} +15 -15
  104. package/dist/index.es.js +4 -4
  105. package/dist/index.umd.js +600 -597
  106. package/dist/{javascript-3213b923.js → javascript-2d18f43b.js} +11 -15
  107. package/dist/{jsonMode-afc781d8.js → jsonMode-95421c7a.js} +19 -23
  108. package/dist/{liquid-dc5a4df5.js → liquid-47ff3277.js} +14 -18
  109. package/dist/{main-abeba7c1.js → main-5532481e.js} +26942 -26704
  110. package/dist/{mapFormMixin-e82f943f.js → mapFormMixin-218f9749.js} +1 -1
  111. package/dist/{publicSenderState-2f11c080.js → publicSenderState-7c91d66d.js} +1 -1
  112. package/dist/{python-4bce1745.js → python-afd06bc4.js} +11 -15
  113. package/dist/{razor-f57062fd.js → razor-28875ccf.js} +18 -22
  114. package/dist/{simplebar.min-07c0e6b7.js → simplebar.min-3682e5c9.js} +1 -1
  115. package/dist/style.css +2 -2
  116. package/dist/template-cd101772.js +526 -0
  117. package/dist/throttle-3a262479.js +18 -0
  118. package/dist/{tinycolor-0084a04e.js → tinycolor-ca02e626.js} +6 -6
  119. package/dist/{tippy.esm-2bcbed04.js → tippy.esm-a7740684.js} +5 -5
  120. package/dist/{tsMode-c0486e4e.js → tsMode-bc258439.js} +15 -19
  121. package/dist/{typescript-50a48698.js → typescript-ac68850c.js} +11 -15
  122. package/dist/{utils-d907da71.js → utils-b0646315.js} +5 -5
  123. package/dist/{vuedraggable.umd-c326d90c.js → vuedraggable.umd-934a0379.js} +48 -48
  124. package/dist/{xml-0ef7a70a.js → xml-a8591419.js} +14 -18
  125. package/package.json +10 -8
  126. package/dist/IsPremiumPreStep-1657f1ce.js +0 -2443
  127. package/dist/Setup-e92daff6.js +0 -50
  128. package/dist/assets/article-options-10522.png +0 -0
  129. package/dist/assets/bg-base-11995.png +0 -0
  130. package/dist/assets/bg-pro-89155.png +0 -0
  131. package/dist/assets/bg-start-17372.png +0 -0
  132. package/dist/assets/blank-95062.png +0 -0
  133. package/dist/assets/block-options-11378.png +0 -0
  134. package/dist/assets/columnGallery.image-14820.png +0 -0
  135. package/dist/assets/doc-send-25589.png +0 -0
  136. package/dist/assets/drag-block-21107.png +0 -0
  137. package/dist/assets/headerCircularGradient.image-79345.png +0 -0
  138. package/dist/assets/roiCalculator.image-13673.png +0 -0
  139. package/dist/assets/text-bubble-21606.png +0 -0
  140. package/dist/index-e9d870d0.js +0 -17
  141. package/dist/regions-29ee6964.js +0 -1250
  142. package/dist/template-3600893b.js +0 -528
  143. package/dist/throttle-1bf5bb97.js +0 -18
@@ -1,17 +1,17 @@
1
- import { b as H, m as f } from "./vuex.esm-4a0fff7c.js";
2
- import { s as q } from "./simplebar.min-07c0e6b7.js";
3
- import { m as u } from "./mapFormMixin-e82f943f.js";
4
- import { B as O } from "./BaseDatePicker-1abafbac.js";
5
- import { E as j } from "./ErrorCallout-ddbc30af.js";
6
- import { n as r, aA as I, aB as v, h as K, b as d, aC as W, l as X, aD as U, aE as Q, o as T, aF as P, aG as R, c as M, A as y } from "./main-abeba7c1.js";
7
- import G from "./AddClientCallout-bccc787f.js";
8
- import Y from "./ClientModal-e2c196c4.js";
9
- import { c as J, r as Z, g as ee, C as p, b as h, e as m } from "./CDropdownItem-bb7f1de7.js";
10
- import { S as te } from "./CSlider.vue_vue_type_style_index_0_lang-5ac8d200.js";
11
- import { C as _ } from "./CCallout-a357fde2.js";
12
- import { C as z } from "./CField-d69fcf46.js";
13
- import { r as o } from "./regions-29ee6964.js";
14
- const ie = {
1
+ import { b as H, m as g } from "./vuex.esm-4a0fff7c.js";
2
+ import { s as q } from "./simplebar.min-3682e5c9.js";
3
+ import { m } from "./mapFormMixin-218f9749.js";
4
+ import { B as I } from "./BaseDatePicker-2daf62c0.js";
5
+ import { E as j } from "./ErrorCallout-d392ffe9.js";
6
+ import { I as K, a as W, r as l } from "./IsPremiumPreStep-9b5a0a01.js";
7
+ import { n as o, an as O, ao as v, h as X, b as c, ap as U, o as Q, aq as Y, ar as G, q as P, as as T, at as R, d as M, D as y } from "./main-5532481e.js";
8
+ import J from "./AddClientCallout-6b0621ec.js";
9
+ import Z from "./ClientModal-d1bf8d0d.js";
10
+ import { c as ee, r as te, g as ie, C as h, b as f, e as p } from "./CDropdownItem-79c8dc70.js";
11
+ import { S as se } from "./CSlider.vue_vue_type_style_index_0_lang-47894df7.js";
12
+ import { C as _ } from "./CCallout-7fb1ad5c.js";
13
+ import { C as z } from "./CField-2b1118f9.js";
14
+ const ne = {
15
15
  name: "DocumentSendReminderItem",
16
16
  props: {
17
17
  label: {
@@ -28,24 +28,24 @@ const ie = {
28
28
  }
29
29
  }
30
30
  };
31
- var se = function() {
31
+ var ae = function() {
32
32
  var e = this, i = e._self._c;
33
33
  return i("div", { staticClass: "flex items-center bg-gray-100 mb-4 rounded-md px-4 py-2 select-none text-sm font-medium min-h-[2.5em]" }, [i("div", { staticClass: "text-gray-700 flex-auto mr-6 select-none" }, [e._v(" " + e._s(e.label) + " ")]), i("div", { staticClass: "flex items-center justify-center flex-nowrap text-sm" }, [e.done ? i("span", { staticClass: "text-green-500" }, [i("BaseIcon", { attrs: { type: "check", size: "18" } }), e._v(" " + e._s(e.$t("sent")) + " ")], 1) : [i("CButton", { staticClass: "bg-white !h-6 !w-6", attrs: { icon: "minus", size: "small", circle: "", raised: "" }, on: { click: function(s) {
34
34
  e.$emit("input", Math.max(e.value - 1, 0));
35
35
  } } }), i("div", { staticClass: "py-4 text-gray-800 font-medium text-center min-w-[8ch] text-sm" }, [e.value ? [e._v(" " + e._s(e.$tc("day", { count: Number(e.value) })) + " ")] : i("span", { staticClass: "text-gray-500 text-xs" }, [e._v(" " + e._s(e.$t("disabled").capitalize()) + " ")])], 2), i("CButton", { staticClass: "bg-white !w-6 !h-6", attrs: { icon: "plus", size: "small", circle: "", raised: "" }, on: { click: function(s) {
36
36
  return e.$emit("input", e.value + 1);
37
37
  } } })]], 2)]);
38
- }, ne = [], ae = /* @__PURE__ */ r(
39
- ie,
40
- se,
38
+ }, re = [], oe = /* @__PURE__ */ o(
41
39
  ne,
40
+ ae,
41
+ re,
42
42
  !1,
43
43
  null,
44
44
  null,
45
45
  null,
46
46
  null
47
47
  );
48
- const re = ae.exports, oe = {
48
+ const le = oe.exports, de = {
49
49
  name: "DocumentSendReminders",
50
50
  i18nOptions: {
51
51
  namespaces: "documentSendReminders",
@@ -65,9 +65,9 @@ const re = ae.exports, oe = {
65
65
  }
66
66
  },
67
67
  components: {
68
- DocumentSendReminderItem: re
68
+ DocumentSendReminderItem: le
69
69
  },
70
- mixins: [u()],
70
+ mixins: [m()],
71
71
  props: {
72
72
  setFormValue: {
73
73
  type: Function,
@@ -106,7 +106,7 @@ const re = ae.exports, oe = {
106
106
  }
107
107
  if (typeof t == "string") {
108
108
  let s = this.getDefaultReminders().find((n) => n.type === t);
109
- if (s || (s = I.default.find((n) => n.type === t)), !s)
109
+ if (s || (s = O.default.find((n) => n.type === t)), !s)
110
110
  throw new Error("Could not find default reminder");
111
111
  s[i] = e, this.setFormValue({ key: "data.reminders", value: s });
112
112
  return;
@@ -115,7 +115,7 @@ const re = ae.exports, oe = {
115
115
  }
116
116
  }
117
117
  };
118
- var le = function() {
118
+ var ce = function() {
119
119
  var e = this, i = e._self._c;
120
120
  return i("div", { staticStyle: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(2 * var(--rem))", "font-size": "16px" } }, [i("div", { staticStyle: { "font-size": "1.25em", "font-weight": "700", "margin-bottom": "0.25em", "text-align": "center" } }, [e._v(" " + e._s(e.$t("_common:reminder_plural").capitalize()) + " ")]), i("div", { staticClass: "text-center text-gray-600", staticStyle: { "max-width": "calc(20 * var(--rem))", margin: "0 auto calc(2 * var(--rem)) auto" } }, [e._v(" " + e._s(e.$t("description")) + " ")]), e._l([
121
121
  { type: "notViewed", fallbackKey: "viewed" },
@@ -128,27 +128,27 @@ var le = function() {
128
128
  }), i("div", { staticClass: "flex items-center justify-center w-full", staticStyle: { "margin-top": "calc(2.5 * var(--rem))" } }, [i("CButton", { attrs: { type: "secondary", expanded: "" }, on: { click: function(s) {
129
129
  return e.$emit("close");
130
130
  } } }, [e._v(" " + e._s(e.$t("_common:save")) + " ")])], 1)], 2);
131
- }, de = [], ce = /* @__PURE__ */ r(
132
- oe,
133
- le,
131
+ }, ue = [], me = /* @__PURE__ */ o(
134
132
  de,
133
+ ce,
134
+ ue,
135
135
  !1,
136
136
  null,
137
137
  null,
138
138
  null,
139
139
  null
140
140
  );
141
- const ue = ce.exports;
142
- function E(t, e) {
141
+ const pe = me.exports;
142
+ function N(t, e) {
143
143
  const i = new Date(t.getTime());
144
144
  return i.setDate(t.getDate() + (7 + e - t.getDay() - 1) % 7 + 1), i.setHours(8, 0, 0, 0), i;
145
145
  }
146
- function N(t) {
146
+ function E(t) {
147
147
  const e = new Date(t.getTime());
148
148
  return e.setDate(e.getDate() + 1), e.setHours(10, 0, 0, 0), e;
149
149
  }
150
- let b = N(/* @__PURE__ */ new Date()), C = E(/* @__PURE__ */ new Date(), 1);
151
- const me = {
150
+ let b = E(/* @__PURE__ */ new Date()), C = N(/* @__PURE__ */ new Date(), 1);
151
+ const he = {
152
152
  name: "DocumentSendLater",
153
153
  i18nOptions: {
154
154
  namespaces: "documentSendLater",
@@ -174,7 +174,7 @@ const me = {
174
174
  }
175
175
  },
176
176
  components: {
177
- BaseDatePicker: O
177
+ BaseDatePicker: I
178
178
  },
179
179
  props: {
180
180
  _document: {
@@ -212,7 +212,7 @@ const me = {
212
212
  ...H("forms", {
213
213
  formData: (t) => t.document2.data
214
214
  }),
215
- ...f({
215
+ ...g({
216
216
  deliveryTypes: "forms/deliveryTypes",
217
217
  isPostingDocument: "documents2/isPosting",
218
218
  feature: "application/feature"
@@ -232,7 +232,7 @@ const me = {
232
232
  }
233
233
  },
234
234
  created() {
235
- b = N(/* @__PURE__ */ new Date()), C = E(/* @__PURE__ */ new Date(), 1);
235
+ b = E(/* @__PURE__ */ new Date()), C = N(/* @__PURE__ */ new Date(), 1);
236
236
  },
237
237
  methods: {
238
238
  setTime(t) {
@@ -258,14 +258,14 @@ const me = {
258
258
  }, i = this.formData.reminders.findIndex((n) => n.type === "first"), s = i >= 0 ? `data.reminders[${i}]` : "data.reminders";
259
259
  this.setFormValue({ key: s, value: e }), await this.onSaveDocument({ doSend: !0 }), this.backupSentFlag = !1;
260
260
  } catch (e) {
261
- K(e);
261
+ X(e);
262
262
  } finally {
263
263
  this.backupSentFlag = !1;
264
264
  }
265
265
  }
266
266
  }
267
267
  };
268
- var pe = function() {
268
+ var fe = function() {
269
269
  var e = this, i = e._self._c;
270
270
  return i("div", { staticClass: "bg-white rounded-xl overflow-hidden" }, [i("div", { staticClass: "px-6 pt-8 pb-3" }, [i("div", { staticClass: "text-md font-semibold text-center" }, [e._v(" " + e._s(e.$t("title")) + " ")]), i("div", { staticClass: "pt-8" }, e._l([
271
271
  [e.tomorrowMorning, "tomorrowMorning"],
@@ -277,18 +277,18 @@ var pe = function() {
277
277
  } } }, [i("div", { staticClass: "flex items-center text-sm" }, [i("BaseIcon", { staticClass: "text-primary-500 mr-2", attrs: { type: "calendar", size: "18" } }), i("div", { staticClass: "font-medium", domProps: { textContent: e._s(e.$t("custom.title")) } })], 1), i("Animation", [i("div", { directives: [{ name: "show", rawName: "v-show", value: e.showCustom, expression: "showCustom" }], staticClass: "mt-4" }, [i("div", { staticClass: "grid grid-cols-2 gap-4" }, [i("BaseDatePicker", { attrs: { value: e.sendAt }, on: { input: e.setDate } }), i("CInput", { attrs: { value: e.$formatDate(e.sendAt, "HH:mm"), clearable: !1, type: "time" }, on: { input: e.setTime } })], 1), e.$v.$invalid ? i("div", { staticClass: "error-wrapper" }, [i("BaseIcon", { staticClass: "mr-2 text-primary-500", attrs: { type: "calendar" } }), e._v(" " + e._s(e.$t("custom.invalid")) + " ")], 1) : e._e(), i("CButton", { staticStyle: { "margin-top": "calc(1.5 * var(--rem))" }, attrs: { loading: e.isPostingDocument || e.isPostingProject, type: "secondary", wide: "" }, on: { click: function(s) {
278
278
  return e.onSendAt(e.sendAt);
279
279
  } } }, [e._v(" " + e._s(e.$t("_common:send")) + " " + e._s(e.$formatDate(e.sendAt, "d MMM - p")) + " ")])], 1)])], 1)]);
280
- }, he = [], fe = /* @__PURE__ */ r(
281
- me,
282
- pe,
280
+ }, ge = [], ve = /* @__PURE__ */ o(
283
281
  he,
282
+ fe,
283
+ ge,
284
284
  !1,
285
285
  null,
286
286
  "3b80f637",
287
287
  null,
288
288
  null
289
289
  );
290
- const ge = fe.exports;
291
- const ve = {
290
+ const ye = ve.exports;
291
+ const _e = {
292
292
  name: "ClientSendListItem",
293
293
  props: {
294
294
  client: {
@@ -320,7 +320,7 @@ const ve = {
320
320
  };
321
321
  }
322
322
  };
323
- var ye = function() {
323
+ var be = function() {
324
324
  var s;
325
325
  var e = this, i = e._self._c;
326
326
  return i("div", { staticClass: "flex items-center rc-card", class: {
@@ -349,18 +349,18 @@ var ye = function() {
349
349
  } } }, [i("CButton", { attrs: { slot: "trigger", circle: "", size: "small", type: "none", pattern: "secondary", raised: "", icon: "more-horizontal" }, slot: "trigger" }), e._t("dropdownOptions")], 2) : i("CButton", { staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))" }, attrs: { circle: "", size: "small", icon: "x", type: "none", pattern: "secondary", raised: "" }, on: { click: function(n) {
350
350
  return n.stopPropagation(), e.$emit("remove");
351
351
  } } })] : e._e()], 2) : e._e()], 2);
352
- }, _e = [], be = /* @__PURE__ */ r(
353
- ve,
354
- ye,
352
+ }, Ce = [], we = /* @__PURE__ */ o(
355
353
  _e,
354
+ be,
355
+ Ce,
356
356
  !1,
357
357
  null,
358
358
  "4102ea12",
359
359
  null,
360
360
  null
361
361
  );
362
- const L = be.exports;
363
- const Ce = {
362
+ const L = we.exports;
363
+ const xe = {
364
364
  name: "SenderBlockItem",
365
365
  i18nOptions: {
366
366
  namespaces: "senderBlockItem",
@@ -383,7 +383,7 @@ const Ce = {
383
383
  RecipientBlockItem: L
384
384
  },
385
385
  mixins: [
386
- u(
386
+ m(
387
387
  ["senderClient"],
388
388
  { useEmit: !1, setFnName: "setFormValue" }
389
389
  )
@@ -409,7 +409,7 @@ const Ce = {
409
409
  };
410
410
  },
411
411
  computed: {
412
- ...f({
412
+ ...g({
413
413
  feature: "application/feature"
414
414
  })
415
415
  },
@@ -417,11 +417,11 @@ const Ce = {
417
417
  this.generateSenderClient(), this._document.id || this._document.isDirty("senderClient") ? this.toggleSenderSign(!!this.senderClient) : this.defaultAddSenderClient && this.toggleSenderSign(!0);
418
418
  },
419
419
  methods: {
420
- get: d,
420
+ get: c,
421
421
  generateSenderClient() {
422
- const { company: t, user: e } = this._document.sender || {}, i = d(this._document, "data.defaultAnswerMethod");
422
+ const { company: t, user: e } = this._document.sender || {}, i = c(this._document, "data.defaultAnswerMethod");
423
423
  this.senderClientData = {
424
- ...W(),
424
+ ...U(),
425
425
  documentRole: "recipient",
426
426
  ...i && { answerMethod: i },
427
427
  ...this.senderClient,
@@ -448,7 +448,7 @@ const Ce = {
448
448
  }
449
449
  }
450
450
  };
451
- var we = function() {
451
+ var Se = function() {
452
452
  var e = this, i = e._self._c;
453
453
  return e.senderClientData ? i("RecipientBlockItem", { staticClass: "first-of-group last-of-group", staticStyle: { display: "inline-flex", width: "auto", "padding-right": "2em", "min-width": "220px" }, attrs: { client: e.senderClientData, "right-button": e.allowSenderSign, "is-sender": !0 } }, [i("template", { slot: "dropdownOptions" }, [i("CDropdownItem", { attrs: { value: !!e.senderClient, "close-on-click": !1, toggle: "" }, on: { input: e.toggleSenderSign } }, [e._v(" " + e._s(e.$t("toggle.label")) + " ")]), e.senderClient ? [i("CDropdownItem", { attrs: { separator: "" } }), i("div", { staticClass: "text-gray-400", staticStyle: { "font-size": "13px", padding: "calc(0.5 * var(--rem)) 0 calc(0.25 * var(--rem)) calc(1 * var(--rem))", "font-weight": "500" } }, [e._v(" " + e._s(e.$t("_common:signMethod.title")) + " ")]), e._l([
454
454
  "login",
@@ -459,17 +459,17 @@ var we = function() {
459
459
  return e.setSenderMethod(s);
460
460
  } } }, [e._v(" " + e._s(e.$t(`_common:signMethod.${s}`)) + " ")]);
461
461
  })] : i("div", { staticClass: "text-gray-700 bg-gray-100", staticStyle: { padding: "calc(0.5 * var(--rem))", margin: "calc(0.5 * var(--rem))", "font-size": "13px", "border-radius": "4px", "line-height": "1.25", "font-weight": "500" } }, [e._v(" " + e._s(e.$t("toggle.description")) + " ")])], 2)], 2) : e._e();
462
- }, xe = [], $e = /* @__PURE__ */ r(
463
- Ce,
464
- we,
462
+ }, $e = [], ke = /* @__PURE__ */ o(
465
463
  xe,
464
+ Se,
465
+ $e,
466
466
  !1,
467
467
  null,
468
468
  "f5277e62",
469
469
  null,
470
470
  null
471
471
  );
472
- const Se = $e.exports, ke = {
472
+ const De = ke.exports, Ve = {
473
473
  sv: {
474
474
  title: "Skicka dokument",
475
475
  nameLabel: "Dokumentnamn",
@@ -536,7 +536,7 @@ const Se = $e.exports, ke = {
536
536
  }
537
537
  }
538
538
  }
539
- }, De = {
539
+ }, Fe = {
540
540
  sv: {
541
541
  addFirstButton: "Lägg till mottagare",
542
542
  addButton: "Lägg till mottagare",
@@ -554,19 +554,19 @@ const Se = $e.exports, ke = {
554
554
  }
555
555
  }
556
556
  };
557
- const Ve = {
557
+ const Ae = {
558
558
  name: "RecipientBlock",
559
559
  i18nOptions: {
560
560
  namespaces: "recipientBlock",
561
- messages: De
561
+ messages: Fe
562
562
  },
563
563
  components: {
564
- AddClientCallout: G,
564
+ AddClientCallout: J,
565
565
  RecipientBlockItem: L,
566
- SenderBlockItem: Se
566
+ SenderBlockItem: De
567
567
  },
568
568
  mixins: [
569
- u(
569
+ m(
570
570
  ["clients"],
571
571
  {
572
572
  useEmit: !1,
@@ -607,12 +607,12 @@ const Ve = {
607
607
  return t;
608
608
  },
609
609
  useSignOrder() {
610
- return d(this._document, "useSignOrder", !1);
610
+ return c(this._document, "useSignOrder", !1);
611
611
  }
612
612
  },
613
613
  methods: {
614
614
  onMoveRecipient({ index: t, direction: e }) {
615
- this.clients = X(this.clients).set(
615
+ this.clients = Q(this.clients).set(
616
616
  {
617
617
  ...this.clients[t],
618
618
  signOrder: Math.max(this.clients[t].signOrder + e, 0)
@@ -629,20 +629,20 @@ const Ve = {
629
629
  signOrder: i ? s.signOrder : n + 1
630
630
  }));
631
631
  } else
632
- e = d(this._document, "template.reminders", []), e.length || (e = I.default);
632
+ e = c(this._document, "template.reminders", []), e.length || (e = O.default);
633
633
  this.setFormValue({ key: "data.reminders", value: e }), this.setFormValue({ key: "useSignOrder", value: t });
634
634
  },
635
635
  removeClient(t) {
636
636
  this.removeFormValue(`clients[${t}]`);
637
637
  },
638
638
  openClientModal(t = 0) {
639
- const e = d(this, `clients[${t}].signOrder`);
639
+ const e = c(this, `clients[${t}].signOrder`);
640
640
  this.$modal.show(
641
- Y,
641
+ Z,
642
642
  {
643
643
  documentClientIndex: t,
644
644
  ...this.useSignOrder && {
645
- signOrder: U(e) === "number" ? e : this.maxSignOrder + 1
645
+ signOrder: Y(e) === "number" ? e : this.maxSignOrder + 1
646
646
  },
647
647
  isPublicForm: this.isPublicForm
648
648
  }
@@ -653,7 +653,7 @@ const Ve = {
653
653
  }
654
654
  }
655
655
  };
656
- var Fe = function() {
656
+ var Be = function() {
657
657
  var e = this, i = e._self._c;
658
658
  return i("div", [e.compact ? e._e() : [i("div", { staticClass: "text-gray-900 text-xs font-medium pb-0.5" }, [e._v(" " + e._s(e.$t("_common:from").capitalize()) + ": ")]), i("SenderBlockItem", { attrs: { _document: e._document, _value: { senderClient: "senderClient" }, "set-form-value": e.setFormValue, "default-add-sender-client": e.defaultAddSenderClient } })], i("div", { staticClass: "block-title flex text-gray-500 text-xs pb-0.5 pt-2", class: { "block-title__line": !e.compact } }, [e.compact ? e._e() : i("div", { staticClass: "text-gray-900 font-medium" }, [e._v(" " + e._s(e.$t("_common:to").capitalize()) + ": ")]), e.clients && e.clients.length ? i("div", { staticClass: "inline-flex items-center justify-end ml-auto" }, [i("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("signOrder.tooltip"), expression: "$t('signOrder.tooltip')" }], staticClass: "mr-1", attrs: { type: "info", size: "14" } }), i("div", { staticClass: "font-medium mr-2" }, [e._v(" " + e._s(e.$t("signOrder.label")) + " ")]), i("CSwitch", { staticClass: "!mr-0", attrs: { value: e.useSignOrder, size: "tiny", type: "success" }, on: { input: e.toggleSignOrder } })], 1) : e._e()]), e.clients && e.clients.length ? [e.useSignOrder ? i("transition-group", { staticClass: "list-move", attrs: { name: "list-move" } }, [e._l(e.sortedClients, function(s, n) {
659
659
  return [n > 0 && s.signOrder !== e.sortedClients[n - 1].signOrder ? i("div", { key: n, staticClass: "h-2 pl-6" }, [i("div", { staticClass: "h-full w-0.5 rounded-sm bg-primary-500" })]) : e._e(), i("div", { key: s._uniqueId, staticClass: "mt-px mb-0.5" }, [i("RecipientBlockItem", { class: {
@@ -682,31 +682,33 @@ var Fe = function() {
682
682
  } } }, [e._v(" " + e._s(e.$t("addFirstButton")) + " ")]) : e.compact ? e._e() : i("AddClientCallout", { attrs: { compact: !0 }, on: { add: function(s) {
683
683
  return e.openClientModal(e.clients.length);
684
684
  }, setClient: e.setClient } })], 2);
685
- }, Ae = [], Be = /* @__PURE__ */ r(
686
- Ve,
687
- Fe,
685
+ }, Ie = [], Oe = /* @__PURE__ */ o(
688
686
  Ae,
687
+ Be,
688
+ Ie,
689
689
  !1,
690
690
  null,
691
691
  "ae1def56",
692
692
  null,
693
693
  null
694
694
  );
695
- const Oe = Be.exports;
696
- const Ie = {
695
+ const Pe = Oe.exports;
696
+ const Te = {
697
697
  name: "SendForm",
698
698
  i18nOptions: {
699
699
  namespaces: "sendForm",
700
- messages: ke
700
+ messages: Ve
701
701
  },
702
702
  components: {
703
703
  Simplebar: q,
704
- BaseDatePicker: O,
705
- RecipientBlock: Oe,
706
- ErrorCallout: j
704
+ BaseDatePicker: I,
705
+ RecipientBlock: Pe,
706
+ ErrorCallout: j,
707
+ IsPremiumPreStep: K,
708
+ IsPremium: W
707
709
  },
708
710
  mixins: [
709
- u(
711
+ m(
710
712
  [
711
713
  "expiresAt",
712
714
  "clients",
@@ -761,7 +763,7 @@ const Ie = {
761
763
  };
762
764
  },
763
765
  computed: {
764
- ...f({
766
+ ...g({
765
767
  deliveryTypes: "forms/deliveryTypes",
766
768
  isPostingDocument: "documents2/isPosting",
767
769
  documentSenderSign: "settings/documentSenderSign",
@@ -878,7 +880,7 @@ const Ie = {
878
880
  },
879
881
  openReminders() {
880
882
  this.useSignOrder || this.$modal.show(
881
- ue,
883
+ pe,
882
884
  {
883
885
  _document: this._document,
884
886
  setFormValue: this.setFormValue,
@@ -894,7 +896,7 @@ const Ie = {
894
896
  },
895
897
  openSendLater() {
896
898
  this.$v.$touch(), !this.$v.$invalid && this.$modal.show(
897
- ge,
899
+ ye,
898
900
  {
899
901
  _document: this._document,
900
902
  setFormValue: this.setFormValue,
@@ -913,71 +915,79 @@ const Ie = {
913
915
  (this.clients || []).forEach((t, e) => {
914
916
  this.setFormValue({ key: `clients[${e}].answer`, value: null });
915
917
  }), this.setFormValue({ key: "data.rejectReasons", value: [] }), this.setFormValue({ key: "status", value: "sent" });
918
+ },
919
+ shouldShowUpgradeModal({ canUseBankId: t, canUseSms: e }) {
920
+ var i;
921
+ return !!(this.smsActivated && !e || ((i = this.defaultAnswerMethod) == null ? void 0 : i.accept) === "bankId" && !t);
916
922
  }
917
923
  }
918
924
  };
919
- var Te = function() {
920
- var s;
925
+ var Re = function() {
921
926
  var e = this, i = e._self._c;
922
- return i("div", { staticClass: "flex flex-col h-full @container" }, [i(e.useScroll ? "Simplebar" : "div", { tag: "component", staticClass: "main-container" }, [i("div", { staticClass: "relative pt-6 px-4 pb-4 @md:px-8 @md:pb-8 @xl:px-16 @xl:pb-16" }, [i("div", { staticClass: "pb-4 text-lg font-bold" }, [e._v(" " + e._s(e.$t("title")) + " ")]), e.showName ? i("div", { staticClass: "mb-6" }, [i("div", { staticClass: "text-gray-900 text-xs font-medium pb-0.5" }, [e._v(" " + e._s(e.$t("nameLabel")) + " ")]), i("CInput", { attrs: { placeholder: e.$t("namePlaceholder"), filled: "" }, model: { value: e.name, callback: function(n) {
923
- e.name = n;
924
- }, expression: "name" } })], 1) : e._e(), i("div", { staticClass: "mb-6" }, [i("RecipientBlock", { attrs: { _value: {
925
- clients: "clients"
926
- }, _document: e._document, "set-form-value": e.setFormValue, "remove-form-value": e.removeFormValue, "default-add-sender-client": e.documentSenderSign, "is-public-form": e.isPublicForm } })], 1), e._t("default"), e.defaultAnswerMethod && e.signMethods.length > 1 ? i("div", { staticClass: "mb-8" }, [i("div", { staticClass: "block-title text-gray-900 text-xs font-medium pb-0.5" }, [e._v(" " + e._s(e.$t("signMethod.title")) + " "), i("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("signMethod.tooltip"), expression: "$t('signMethod.tooltip')" }], staticClass: "ml-px text-gray-500", attrs: { type: "info", size: "14" } })], 1), i("div", { staticClass: "cb-card-group" }, e._l(e.signMethods, function(n) {
927
- return i("div", { key: n.value, staticClass: "flex border-2 border-transparent hover:bg-gray-200 hover:border-gray-300/30 cb-card", class: { checked: e.defaultAnswerMethod.accept === n.value }, on: { click: function(a) {
928
- e.defaultAnswerMethod.accept !== n.value && e.setAnswerMethod(n.value);
929
- } } }, [i("CRadio", { staticClass: "mr-3 pointer-events-none sign-radio", attrs: { value: e.defaultAnswerMethod.accept, "native-value": n.value, type: "secondary", size: "small" } }), i("div", { staticClass: "flex-grow" }, [i("div", { staticClass: "cb-card-title" }, [e._v(e._s(n.title))]), i("div", { directives: [{ name: "show", rawName: "v-show", value: e.defaultAnswerMethod.accept === n.value, expression: "defaultAnswerMethod.accept === signMethod.value" }], staticClass: "cb-card-body" }, [e._v(" " + e._s(n.content) + " ")])])], 1);
930
- }), 0)]) : e._e(), i("div", { staticClass: "grid items-center gap-2", staticStyle: { "grid-template-columns": "repeat(auto-fit, minmax(200px, 1fr))" } }, [i("div", [i("BaseDatePicker", { staticClass: "relative psuedo-input", attrs: { "custom-el": !0, direction: "end", tabindex: "0" }, model: { value: e.expiresAt, callback: function(n) {
931
- e.expiresAt = n;
932
- }, expression: "expiresAt" } }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("validityPeriod")))]), i("div", [e._v(e._s(e.expiresAt ? e.$formatDate(e.expiresAt) : e.$t("_common:disabled").capitalize()))]), e.expiresAt ? i("CButton", { staticClass: "absolute right-3 top-3", attrs: { icon: "x", size: "small", type: "none", pattern: "secondary" }, on: { click: function(n) {
933
- n.preventDefault(), n.stopPropagation(), e.expiresAt = void 0, e._document.setDirty("expiresAt");
934
- } } }) : e._e()], 1)], 1), i("CDropdown", { staticStyle: { flex: "1 0 200px" }, attrs: { disabled: !e.clients.length, "mobile-label": e.$t("sendAs"), expanded: "" } }, [i("div", { staticClass: "psuedo-input", attrs: { slot: "trigger", tabindex: "0" }, slot: "trigger" }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("sendAs")))]), i("div", { domProps: { innerHTML: e._s(e.sendTypesText) } })]), i("CDropdownItem", { attrs: { value: e.emailActivated, "close-on-click": !1, toggle: "" }, on: { click: function(n) {
935
- return e.setDeliveryMethod("email", !e.emailActivated);
936
- } } }, [e._v(" " + e._s(e.$t("_common:email").capitalize()) + " ")]), e.feature("sms") ? i("CDropdownItem", { attrs: { value: e.smsActivated, "close-on-click": !1, toggle: "" }, on: { click: function(n) {
937
- return e.setDeliveryMethod("sms", !e.smsActivated);
938
- } } }, [e._v(" " + e._s(e.$t("_common:sms")) + " ")]) : e._e(), e.allowManualDelivery ? i("CDropdownItem", { attrs: { value: "", tooltip: {
939
- content: e.$t("manualDeliveryTooltip")
940
- } }, domProps: { textContent: e._s(e.$t("manualDelivery")) }, on: { click: () => {
941
- e.setDeliveryMethod("sms", !1), e.setDeliveryMethod("email", !1), e._document.setDirty("isManualDelivery");
942
- } } }) : e._e()], 1), !e.useSignOrder && !e.isManualDelivery ? i("div", { staticClass: "relative psuedo-input", attrs: { tabindex: "0" }, on: { click: e.openReminders } }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("_common:reminder_plural").capitalize()))]), i("div", [e._v(" " + e._s(e.noOfReminders ? `${e.noOfReminders} ${e.$i18n.lang === "sv" ? e.$t("_common:unitType.unit") : ""}` : e.$t("_common:disabled").capitalize()) + " ")]), e.noOfReminders ? i("CButton", { staticClass: "absolute right-3 top-3", attrs: { icon: "x", size: "small", type: "none", pattern: "secondary" }, on: { click: function(n) {
943
- n.preventDefault(), n.stopPropagation(), e.reminders = [];
944
- } } }) : e._e()], 1) : e._e()], 1), e.clientsAreMissingContactInfo || (s = e.$v.isManualDelivery) != null && s.$invalid ? i("ErrorCallout", { attrs: { message: e.clientsAreMissingContactInfo ? e.$t("clientsAreMissingContactInfo") : e.$t("missingDeliveryMethod"), size: "small" } }) : e._e(), e._t("content")], 2)]), i("div", { staticClass: "px-4 pb-4 @md:px-8 @xl:px-16" }, [e._t("send", function() {
945
- return [i("div", { staticClass: "flex" }, [e.showSave ? i("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("_common:save", { thing: e.$t("_common:document").toLowerCase() }), expression: "$t('_common:save', { thing: $t('_common:document').toLowerCase() })" }], staticClass: "w-12 mr-2", attrs: { loading: e.isPosting, type: "none", icon: "save", pattern: "secondary" }, on: { click: function(n) {
946
- return e.doSaveDocument({ doSend: !1 });
947
- } } }) : e._e(), e.showSchedule && !e.useSignOrder && !e.isManualDelivery ? i("CButton", { staticClass: "mr-2 w-12 @md:w-auto", staticStyle: { padding: "14px 16px", "border-radius": "8px", height: "initial", "font-size": "14px", "font-weight": "600" }, attrs: { disabled: e.isPosting || !e.clients.length, type: "none", pattern: "secondary" }, on: { click: e.openSendLater } }, [i("span", { staticClass: "!hidden @md:!block", domProps: { textContent: e._s(e.$t("scheduledTooltip")) } }), i("BaseIcon", { staticClass: "@md:!hidden", attrs: { type: "calendar", size: "16" } })], 1) : e._e(), i("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$v.$invalid ? {
948
- content: e.clients.length ? e.$t("missingDeliveryMethod") : e.$t(
949
- "components:account.documentForm.clients.errorMessage"
950
- )
951
- } : {}, expression: `
952
- $v.$invalid
953
- ? {
954
- content: !clients.length
955
- ? $t(
956
- 'components:account.documentForm.clients.errorMessage'
957
- )
958
- : $t('missingDeliveryMethod')
959
- }
960
- : {}
961
- ` }], staticClass: "flex-auto" }, [i("CButton", { staticStyle: { padding: "14px 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: { disabled: e.$v.$invalid, loading: e.isPosting, type: "secondary", wide: "" }, on: { click: function(n) {
962
- return e.doSendDocument();
963
- } } }, [e._v(" " + e._s(e.$t("sendButton")) + " ")])], 1)], 1)];
964
- }), e._t("footer")], 2)], 1);
965
- }, Pe = [], Re = /* @__PURE__ */ r(
966
- Ie,
927
+ return i("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canUseBankId: s, canUseSms: n }) {
928
+ var a;
929
+ return [i("div", { staticClass: "flex flex-col h-full @container" }, [i(e.useScroll ? "Simplebar" : "div", { tag: "component", staticClass: "main-container" }, [i("div", { staticClass: "relative pt-6 px-4 pb-4 @md:px-8 @md:pb-8 @xl:px-16 @xl:pb-16" }, [i("div", { staticClass: "pb-4 text-lg font-bold" }, [e._v(" " + e._s(e.$t("title")) + " ")]), e.showName ? i("div", { staticClass: "mb-6" }, [i("div", { staticClass: "text-gray-900 text-xs font-medium pb-0.5" }, [e._v(" " + e._s(e.$t("nameLabel")) + " ")]), i("CInput", { attrs: { placeholder: e.$t("namePlaceholder"), filled: "" }, model: { value: e.name, callback: function(r) {
930
+ e.name = r;
931
+ }, expression: "name" } })], 1) : e._e(), i("div", { staticClass: "mb-6" }, [i("RecipientBlock", { attrs: { _value: {
932
+ clients: "clients"
933
+ }, _document: e._document, "set-form-value": e.setFormValue, "remove-form-value": e.removeFormValue, "default-add-sender-client": e.documentSenderSign, "is-public-form": e.isPublicForm } })], 1), e._t("default"), e.defaultAnswerMethod && e.signMethods.length > 1 ? i("div", { staticClass: "mb-8" }, [i("div", { staticClass: "block-title text-gray-900 text-xs font-medium pb-0.5" }, [e._v(" " + e._s(e.$t("signMethod.title")) + " "), i("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("signMethod.tooltip"), expression: "$t('signMethod.tooltip')" }], staticClass: "ml-px text-gray-500", attrs: { type: "info", size: "14" } })], 1), i("div", { staticClass: "cb-card-group" }, e._l(e.signMethods, function(r) {
934
+ return i("div", { key: r.value, staticClass: "flex border-2 border-transparent hover:bg-gray-200 hover:border-gray-300/30 cb-card", class: { checked: e.defaultAnswerMethod.accept === r.value }, on: { click: function(d) {
935
+ e.defaultAnswerMethod.accept !== r.value && e.setAnswerMethod(r.value);
936
+ } } }, [i("CRadio", { staticClass: "mr-3 pointer-events-none sign-radio", attrs: { value: e.defaultAnswerMethod.accept, "native-value": r.value, type: "secondary", size: "small" } }), i("div", { staticClass: "flex-grow" }, [i("div", { staticClass: "cb-card-title flex items-center justify-between" }, [e._v(" " + e._s(r.title) + " "), r.value === "bankId" && !s ? i("div", { staticClass: "ml-2 text-[10px] font-semibold text-white py-1 px-1.5 leading-none rounded-full bg-primary-500" }, [e._v(" Pro ")]) : e._e()]), i("div", { directives: [{ name: "show", rawName: "v-show", value: e.defaultAnswerMethod.accept === r.value, expression: "defaultAnswerMethod.accept === signMethod.value" }], staticClass: "cb-card-body" }, [e._v(" " + e._s(r.content) + " ")])])], 1);
937
+ }), 0)]) : e._e(), i("div", { staticClass: "grid items-center gap-2", staticStyle: { "grid-template-columns": "repeat(auto-fit, minmax(200px, 1fr))" } }, [i("div", [i("BaseDatePicker", { staticClass: "relative psuedo-input", attrs: { "custom-el": !0, direction: "end", tabindex: "0" }, model: { value: e.expiresAt, callback: function(r) {
938
+ e.expiresAt = r;
939
+ }, expression: "expiresAt" } }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("validityPeriod")))]), i("div", [e._v(e._s(e.expiresAt ? e.$formatDate(e.expiresAt) : e.$t("_common:disabled").capitalize()))]), e.expiresAt ? i("CButton", { staticClass: "absolute right-3 top-3", attrs: { icon: "x", size: "small", type: "none", pattern: "secondary" }, on: { click: function(r) {
940
+ r.preventDefault(), r.stopPropagation(), e.expiresAt = void 0, e._document.setDirty("expiresAt");
941
+ } } }) : e._e()], 1)], 1), i("CDropdown", { staticStyle: { flex: "1 0 200px" }, attrs: { disabled: !e.clients.length, "mobile-label": e.$t("sendAs"), expanded: "" } }, [i("div", { staticClass: "psuedo-input", attrs: { slot: "trigger", tabindex: "0" }, slot: "trigger" }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("sendAs")))]), i("div", { domProps: { innerHTML: e._s(e.sendTypesText) } })]), i("CDropdownItem", { attrs: { value: e.emailActivated, "close-on-click": !1, toggle: "" }, on: { click: function(r) {
942
+ return e.setDeliveryMethod("email", !e.emailActivated);
943
+ } } }, [e._v(" " + e._s(e.$t("_common:email").capitalize()) + " ")]), e.feature("sms") ? i("CDropdownItem", { attrs: { value: e.smsActivated, "close-on-click": !1, toggle: "" }, on: { click: function(r) {
944
+ return e.setDeliveryMethod("sms", !e.smsActivated);
945
+ } } }, [e._v(" " + e._s(e.$t("_common:sms")) + " "), n ? e._e() : i("div", { staticClass: "ml-2 text-[10px] font-semibold text-white py-1 px-1.5 leading-none rounded-full bg-primary-500" }, [e._v(" Pro ")])]) : e._e(), e.allowManualDelivery ? i("CDropdownItem", { attrs: { value: "", tooltip: {
946
+ content: e.$t("manualDeliveryTooltip")
947
+ } }, domProps: { textContent: e._s(e.$t("manualDelivery")) }, on: { click: () => {
948
+ e.setDeliveryMethod("sms", !1), e.setDeliveryMethod("email", !1), e._document.setDirty("isManualDelivery");
949
+ } } }) : e._e()], 1), !e.useSignOrder && !e.isManualDelivery ? i("div", { staticClass: "relative psuedo-input", attrs: { tabindex: "0" }, on: { click: e.openReminders } }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("_common:reminder_plural").capitalize()))]), i("div", [e._v(" " + e._s(e.noOfReminders ? `${e.noOfReminders} ${e.$i18n.lang === "sv" ? e.$t("_common:unitType.unit") : ""}` : e.$t("_common:disabled").capitalize()) + " ")]), e.noOfReminders ? i("CButton", { staticClass: "absolute right-3 top-3", attrs: { icon: "x", size: "small", type: "none", pattern: "secondary" }, on: { click: function(r) {
950
+ r.preventDefault(), r.stopPropagation(), e.reminders = [];
951
+ } } }) : e._e()], 1) : e._e()], 1), e.clientsAreMissingContactInfo || (a = e.$v.isManualDelivery) != null && a.$invalid ? i("ErrorCallout", { attrs: { message: e.clientsAreMissingContactInfo ? e.$t("clientsAreMissingContactInfo") : e.$t("missingDeliveryMethod"), size: "small" } }) : e._e(), e._t("content")], 2)]), i("div", { staticClass: "px-4 pb-4 @md:px-8 @xl:px-16" }, [e._t("send", function() {
952
+ return [i("IsPremiumPreStep", { attrs: { feature: "bankIdAndSms" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: r }) {
953
+ return [i("div", { staticClass: "flex" }, [e.showSave ? i("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("_common:save", { thing: e.$t("_common:document").toLowerCase() }), expression: "$t('_common:save', { thing: $t('_common:document').toLowerCase() })" }], staticClass: "w-12 mr-2", attrs: { loading: e.isPosting, type: "none", icon: "save", pattern: "secondary" }, on: { click: function(d) {
954
+ return e.doSaveDocument({ doSend: !1 });
955
+ } } }) : e._e(), e.showSchedule && !e.useSignOrder && !e.isManualDelivery ? i("CButton", { staticClass: "mr-2 w-12 @md:w-auto", staticStyle: { padding: "14px 16px", "border-radius": "8px", height: "initial", "font-size": "14px", "font-weight": "600" }, attrs: { disabled: e.isPosting || !e.clients.length, type: "none", pattern: "secondary" }, on: { click: e.openSendLater } }, [i("span", { staticClass: "!hidden @md:!block", domProps: { textContent: e._s(e.$t("scheduledTooltip")) } }), i("BaseIcon", { staticClass: "@md:!hidden", attrs: { type: "calendar", size: "16" } })], 1) : e._e(), i("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$v.$invalid ? {
956
+ content: e.clients.length ? e.$t("missingDeliveryMethod") : e.$t(
957
+ "components:account.documentForm.clients.errorMessage"
958
+ )
959
+ } : {}, expression: `
960
+ $v.$invalid
961
+ ? {
962
+ content: !clients.length
963
+ ? $t(
964
+ 'components:account.documentForm.clients.errorMessage'
965
+ )
966
+ : $t('missingDeliveryMethod')
967
+ }
968
+ : {}
969
+ ` }], staticClass: "flex-auto" }, [i("CButton", { staticStyle: { padding: "14px 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: { disabled: e.$v.$invalid, loading: e.isPosting, type: "secondary", wide: "" }, on: { click: function(d) {
970
+ e.shouldShowUpgradeModal({ canUseBankId: s, canUseSms: n }) ? r() : e.doSendDocument();
971
+ } } }, [e._v(" " + e._s(e.$t("sendButton")) + " ")])], 1)], 1)];
972
+ } }], null, !0) })];
973
+ }), e._t("footer")], 2)], 1)];
974
+ } }], null, !0) });
975
+ }, Me = [], ze = /* @__PURE__ */ o(
967
976
  Te,
968
- Pe,
977
+ Re,
978
+ Me,
969
979
  !1,
970
980
  null,
971
- "d9f1ecda",
981
+ "8a9d47a1",
972
982
  null,
973
983
  null
974
984
  );
975
- const li = Re.exports, Me = {
985
+ const ci = ze.exports, Ne = {
976
986
  name: "CFormField",
977
987
  components: {
978
988
  CField: z
979
989
  },
980
- extends: Q,
990
+ extends: G,
981
991
  computed: {
982
992
  type() {
983
993
  return this.hasErrors ? "is-danger" : this.isValid ? "is-success" : null;
@@ -987,20 +997,20 @@ const li = Re.exports, Me = {
987
997
  }
988
998
  }
989
999
  };
990
- var ze = function() {
1000
+ var Ee = function() {
991
1001
  var e = this, i = e._self._c;
992
1002
  return i("CField", e._b({ attrs: { label: e.label, "custom-class": e.customClass, type: e.type, message: e.firstErrorMessage } }, "CField", { ...e.$attrs, ...e.$props }, !1), [e._t("default")], 2);
993
- }, Ee = [], Ne = /* @__PURE__ */ r(
994
- Me,
995
- ze,
1003
+ }, Le = [], He = /* @__PURE__ */ o(
1004
+ Ne,
996
1005
  Ee,
1006
+ Le,
997
1007
  !1,
998
1008
  null,
999
1009
  null,
1000
1010
  null,
1001
1011
  null
1002
1012
  );
1003
- const Le = Ne.exports, He = {
1013
+ const qe = He.exports, je = {
1004
1014
  name: "CSkeleton",
1005
1015
  functional: !0,
1006
1016
  props: {
@@ -1061,23 +1071,23 @@ const Le = Ne.exports, He = {
1061
1071
  i
1062
1072
  );
1063
1073
  }
1064
- }, qe = null, je = null;
1065
- var Ke = /* @__PURE__ */ r(
1066
- He,
1067
- qe,
1074
+ }, Ke = null, We = null;
1075
+ var Xe = /* @__PURE__ */ o(
1068
1076
  je,
1077
+ Ke,
1078
+ We,
1069
1079
  !1,
1070
1080
  null,
1071
1081
  null,
1072
1082
  null,
1073
1083
  null
1074
1084
  );
1075
- const w = Ke.exports, We = {
1085
+ const w = Xe.exports, Ue = {
1076
1086
  name: "CAutocomplete",
1077
1087
  components: {
1078
- CInput: T
1088
+ CInput: P
1079
1089
  },
1080
- mixins: [P],
1090
+ mixins: [T],
1081
1091
  inheritAttrs: !1,
1082
1092
  props: {
1083
1093
  value: [Number, String],
@@ -1230,10 +1240,10 @@ const w = Ke.exports, We = {
1230
1240
  const t = this.$refs.dropdown.querySelector(".dropdown-content");
1231
1241
  t.addEventListener("scroll", () => this.checkIfReachedTheEndOfScroll(t));
1232
1242
  }
1233
- this.appendToBody && (this.$data._bodyEl = J(this.$refs.dropdown), this.updateAppendToBody());
1243
+ this.appendToBody && (this.$data._bodyEl = ee(this.$refs.dropdown), this.updateAppendToBody());
1234
1244
  },
1235
1245
  beforeDestroy() {
1236
- typeof window < "u" && (document.removeEventListener("click", this.clickedOutside), this.dropdownPosition === "auto" && window.removeEventListener("resize", this.calcDropdownInViewportVertical)), this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector(".dropdown-content") && this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll", this.checkIfReachedTheEndOfScroll), this.appendToBody && Z(this.$data._bodyEl);
1246
+ typeof window < "u" && (document.removeEventListener("click", this.clickedOutside), this.dropdownPosition === "auto" && window.removeEventListener("resize", this.calcDropdownInViewportVertical)), this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector(".dropdown-content") && this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll", this.checkIfReachedTheEndOfScroll), this.appendToBody && te(this.$data._bodyEl);
1237
1247
  },
1238
1248
  methods: {
1239
1249
  /**
@@ -1292,7 +1302,7 @@ const w = Ke.exports, We = {
1292
1302
  */
1293
1303
  getValue(t) {
1294
1304
  if (t !== null)
1295
- return typeof this.customFormatter < "u" ? this.customFormatter(t) : typeof t == "object" ? ee(t, this.field) : t;
1305
+ return typeof this.customFormatter < "u" ? this.customFormatter(t) : typeof t == "object" ? ie(t, this.field) : t;
1296
1306
  },
1297
1307
  /**
1298
1308
  * Check if the scroll list inside the dropdown
@@ -1325,8 +1335,8 @@ const w = Ke.exports, We = {
1325
1335
  const s = this.$refs.dropdown.querySelector(".dropdown-content"), n = s.querySelectorAll("a.dropdown-item:not(.is-disabled)")[i];
1326
1336
  if (!n)
1327
1337
  return;
1328
- const a = s.scrollTop, l = s.scrollTop + s.clientHeight - n.clientHeight;
1329
- n.offsetTop < a ? s.scrollTop = n.offsetTop : n.offsetTop >= l && (s.scrollTop = n.offsetTop - s.clientHeight + n.clientHeight);
1338
+ const a = s.scrollTop, r = s.scrollTop + s.clientHeight - n.clientHeight;
1339
+ n.offsetTop < a ? s.scrollTop = n.offsetTop : n.offsetTop >= r && (s.scrollTop = n.offsetTop - s.clientHeight + n.clientHeight);
1330
1340
  } else
1331
1341
  this.isActive = !0;
1332
1342
  },
@@ -1359,7 +1369,7 @@ const w = Ke.exports, We = {
1359
1369
  const t = this.$refs.dropdown, e = this.$refs.input.$el;
1360
1370
  if (t && e) {
1361
1371
  const i = this.$data._bodyEl;
1362
- i.classList.forEach((l) => i.classList.remove(l)), i.classList.add("autocomplete"), i.classList.add("control"), this.expandend && i.classList.add("is-expandend");
1372
+ i.classList.forEach((r) => i.classList.remove(r)), i.classList.add("autocomplete"), i.classList.add("control"), this.expandend && i.classList.add("is-expandend");
1363
1373
  const s = e.getBoundingClientRect();
1364
1374
  let n = s.top + window.scrollY;
1365
1375
  const a = s.left + window.scrollX;
@@ -1375,7 +1385,7 @@ const w = Ke.exports, We = {
1375
1385
  }
1376
1386
  }
1377
1387
  };
1378
- var Xe = function() {
1388
+ var Qe = function() {
1379
1389
  var e = this, i = e._self._c;
1380
1390
  return i("div", { staticClass: "autocomplete control", class: { "is-expanded": e.expanded } }, [i("CInput", e._b({ ref: "input", attrs: { size: e.size, loading: e.loading, rounded: e.rounded, icon: e.icon, "icon-right": e.newIconRight, "icon-right-clickable": e.newIconRightClickable, "icon-pack": e.iconPack, maxlength: e.maxlength, autocomplete: e.newAutocomplete, "use-html5-validation": !1, type: "text" }, on: { input: e.onInput, focus: e.focused, blur: e.onBlur, "icon-right-click": e.rightIconClick, "icon-click": (s) => e.$emit("icon-click", s) }, nativeOn: { keyup: function(s) {
1381
1391
  if (!s.type.indexOf("key") && e._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]))
@@ -1396,21 +1406,21 @@ var Xe = function() {
1396
1406
  return e.setSelected(s, void 0, a);
1397
1407
  } } }, [e.hasDefaultSlot ? e._t("default", null, { option: s, index: n }) : i("span", [e._v(" " + e._s(e.getValue(s, !0)) + " ")])], 2);
1398
1408
  }), e.data.length === 0 && e.hasEmptySlot ? i("div", { staticClass: "dropdown-item is-disabled" }, [e._t("empty")], 2) : e._e(), e.hasFooterSlot ? i("div", { staticClass: "dropdown-item" }, [e._t("footer")], 2) : e._e()], 2)])])], 1);
1399
- }, Ue = [], Qe = /* @__PURE__ */ r(
1400
- We,
1401
- Xe,
1409
+ }, Ye = [], Ge = /* @__PURE__ */ o(
1402
1410
  Ue,
1411
+ Qe,
1412
+ Ye,
1403
1413
  !1,
1404
1414
  null,
1405
1415
  null,
1406
1416
  null,
1407
1417
  null
1408
1418
  );
1409
- const Ge = Qe.exports, Ye = {
1419
+ const Je = Ge.exports, Ze = {
1410
1420
  name: "CRadio",
1411
1421
  mixins: [R]
1412
1422
  };
1413
- var Je = function() {
1423
+ var et = function() {
1414
1424
  var e = this, i = e._self._c;
1415
1425
  return i("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(s) {
1416
1426
  return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : (s.preventDefault(), e.$refs.label.click());
@@ -1419,17 +1429,17 @@ var Je = function() {
1419
1429
  }, change: function(s) {
1420
1430
  e.computedValue = e.nativeValue;
1421
1431
  } } }), i("span", { staticClass: "check", class: `is-${e.type}` }), i("span", { staticClass: "control-label" }, [e._t("default")], 2)]);
1422
- }, Ze = [], et = /* @__PURE__ */ r(
1423
- Ye,
1424
- Je,
1432
+ }, tt = [], it = /* @__PURE__ */ o(
1425
1433
  Ze,
1434
+ et,
1435
+ tt,
1426
1436
  !1,
1427
1437
  null,
1428
1438
  null,
1429
1439
  null,
1430
1440
  null
1431
1441
  );
1432
- const x = et.exports, tt = {
1442
+ const x = it.exports, st = {
1433
1443
  name: "CRadioButton",
1434
1444
  mixins: [R],
1435
1445
  components: {
@@ -1448,7 +1458,7 @@ const x = et.exports, tt = {
1448
1458
  };
1449
1459
  }
1450
1460
  };
1451
- var it = function() {
1461
+ var nt = function() {
1452
1462
  var e = this, i = e._self._c;
1453
1463
  return i("div", { staticClass: "control", class: { "is-expanded": e.expanded } }, [i("CButton", { ref: "label", staticClass: "c-radio radio button", class: [
1454
1464
  { "is-disabled": e.disabled, "is-focused": e.isFocused }
@@ -1463,19 +1473,19 @@ var it = function() {
1463
1473
  }, change: function(s) {
1464
1474
  e.computedValue = e.nativeValue;
1465
1475
  } } })], 2)], 1);
1466
- }, st = [], nt = /* @__PURE__ */ r(
1467
- tt,
1468
- it,
1476
+ }, at = [], rt = /* @__PURE__ */ o(
1469
1477
  st,
1478
+ nt,
1479
+ at,
1470
1480
  !1,
1471
1481
  null,
1472
1482
  null,
1473
1483
  null,
1474
1484
  null
1475
1485
  );
1476
- const $ = nt.exports, at = {
1486
+ const S = rt.exports, ot = {
1477
1487
  name: "CSelect",
1478
- mixins: [P],
1488
+ mixins: [T],
1479
1489
  inheritAttrs: !1,
1480
1490
  props: {
1481
1491
  value: {
@@ -1527,7 +1537,7 @@ const $ = nt.exports, at = {
1527
1537
  }
1528
1538
  }
1529
1539
  };
1530
- var rt = function() {
1540
+ var lt = function() {
1531
1541
  var e = this, i = e._self._c;
1532
1542
  return i("div", { staticClass: "control", class: { "is-expanded": e.expanded, "has-icons-left": e.icon } }, [i("span", { staticClass: "select", class: e.spanClasses }, [i("select", e._b({ directives: [{ name: "model", rawName: "v-model", value: e.computedValue, expression: "computedValue" }], ref: "select", class: e.selectClass, attrs: { multiple: e.multiple, size: e.nativeSize }, on: { blur: function(s) {
1533
1543
  e.$emit("blur", s) && e.checkHtml5Validity();
@@ -1537,22 +1547,22 @@ var rt = function() {
1537
1547
  var n = Array.prototype.filter.call(s.target.options, function(a) {
1538
1548
  return a.selected;
1539
1549
  }).map(function(a) {
1540
- var l = "_value" in a ? a._value : a.value;
1541
- return l;
1550
+ var r = "_value" in a ? a._value : a.value;
1551
+ return r;
1542
1552
  });
1543
1553
  e.computedValue = s.target.multiple ? n : n[0];
1544
1554
  } } }, "select", e.$attrs, !1), [e.placeholder && e.computedValue == null ? i("option", { attrs: { disabled: "", hidden: "" }, domProps: { value: null } }, [e._v(" " + e._s(e.placeholder) + " ")]) : e._e(), e._t("default")], 2)])]);
1545
- }, ot = [], lt = /* @__PURE__ */ r(
1546
- at,
1547
- rt,
1555
+ }, dt = [], ct = /* @__PURE__ */ o(
1548
1556
  ot,
1557
+ lt,
1558
+ dt,
1549
1559
  !1,
1550
1560
  null,
1551
1561
  "e419c29c",
1552
1562
  null,
1553
1563
  null
1554
1564
  );
1555
- const S = lt.exports, dt = {
1565
+ const $ = ct.exports, ut = {
1556
1566
  name: "CSwitch",
1557
1567
  props: {
1558
1568
  value: [String, Number, Boolean, Function, Object, Array, Date],
@@ -1576,10 +1586,6 @@ const S = lt.exports, dt = {
1576
1586
  rounded: {
1577
1587
  type: Boolean,
1578
1588
  default: !0
1579
- },
1580
- outlined: {
1581
- type: Boolean,
1582
- default: !1
1583
1589
  }
1584
1590
  },
1585
1591
  data() {
@@ -1601,8 +1607,7 @@ const S = lt.exports, dt = {
1601
1607
  `is-${this.size}`,
1602
1608
  {
1603
1609
  "is-disabled": this.disabled,
1604
- "is-rounded": this.rounded,
1605
- "is-outlined": this.outlined
1610
+ "is-rounded": this.rounded
1606
1611
  }
1607
1612
  ];
1608
1613
  }
@@ -1621,31 +1626,31 @@ const S = lt.exports, dt = {
1621
1626
  }
1622
1627
  }
1623
1628
  };
1624
- var ct = function() {
1629
+ var mt = function() {
1625
1630
  var e = this, i = e._self._c;
1626
1631
  return i("label", { ref: "label", staticClass: "switch", class: e.newClass, attrs: { disabled: e.disabled }, on: { click: e.focus, keydown: function(s) {
1627
1632
  return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : (s.preventDefault(), e.$refs.label.click());
1628
1633
  } } }, [i("input", { directives: [{ name: "model", rawName: "v-model", value: e.computedValue, expression: "computedValue" }], ref: "input", attrs: { disabled: e.disabled, name: e.name, required: e.required, "true-value": e.trueValue, "false-value": e.falseValue, type: "checkbox" }, domProps: { value: e.nativeValue, checked: Array.isArray(e.computedValue) ? e._i(e.computedValue, e.nativeValue) > -1 : e._q(e.computedValue, e.trueValue) }, on: { click: function(s) {
1629
1634
  s.stopPropagation();
1630
1635
  }, change: function(s) {
1631
- var n = e.computedValue, a = s.target, l = a.checked ? e.trueValue : e.falseValue;
1636
+ var n = e.computedValue, a = s.target, r = a.checked ? e.trueValue : e.falseValue;
1632
1637
  if (Array.isArray(n)) {
1633
- var g = e.nativeValue, c = e._i(n, g);
1634
- a.checked ? c < 0 && (e.computedValue = n.concat([g])) : c > -1 && (e.computedValue = n.slice(0, c).concat(n.slice(c + 1)));
1638
+ var d = e.nativeValue, u = e._i(n, d);
1639
+ a.checked ? u < 0 && (e.computedValue = n.concat([d])) : u > -1 && (e.computedValue = n.slice(0, u).concat(n.slice(u + 1)));
1635
1640
  } else
1636
- e.computedValue = l;
1641
+ e.computedValue = r;
1637
1642
  } } }), i("span", { staticClass: "check", class: [`is-${e.type}`] }), i("span", { staticClass: "control-label" }, [e._t("default")], 2)]);
1638
- }, ut = [], mt = /* @__PURE__ */ r(
1639
- dt,
1640
- ct,
1643
+ }, pt = [], ht = /* @__PURE__ */ o(
1641
1644
  ut,
1645
+ mt,
1646
+ pt,
1642
1647
  !1,
1643
1648
  null,
1644
- "839e1835",
1649
+ "74591b69",
1645
1650
  null,
1646
1651
  null
1647
1652
  );
1648
- const k = mt.exports, pt = {
1653
+ const k = ht.exports, ft = {
1649
1654
  name: "CSlotComponent",
1650
1655
  props: {
1651
1656
  component: {
@@ -1694,10 +1699,10 @@ const k = mt.exports, pt = {
1694
1699
  this.scoped ? this.component.$scopedSlots[this.name](this.props) : this.component.$slots[this.name]
1695
1700
  );
1696
1701
  }
1697
- }, ht = {
1702
+ }, gt = {
1698
1703
  name: "CTabs",
1699
1704
  components: {
1700
- CSlotComponent: pt
1705
+ CSlotComponent: ft
1701
1706
  },
1702
1707
  props: {
1703
1708
  value: [Number, String],
@@ -1810,7 +1815,7 @@ const k = mt.exports, pt = {
1810
1815
  }
1811
1816
  }
1812
1817
  };
1813
- var ft = function() {
1818
+ var vt = function() {
1814
1819
  var e = this, i = e._self._c;
1815
1820
  return i("div", { staticClass: "c-tabs", class: e.mainClasses }, [i("nav", { staticClass: "tabs", class: e.navClasses }, [i("ul", e._l(e.tabItems, function(s, n) {
1816
1821
  return i("li", { directives: [{ name: "show", rawName: "v-show", value: s.visible, expression: "tabItem.visible" }], key: n, class: {
@@ -1822,17 +1827,17 @@ var ft = function() {
1822
1827
  return e.tabClick(n);
1823
1828
  } } }, [s.icon ? i("BaseIcon", { attrs: { size: e.size, type: s.icon } }) : e._e(), i("span", [e._v(e._s(s.label))])], 1)], 1);
1824
1829
  }), 0)]), i("section", { staticClass: "tab-content", class: { "is-transitioning": e.isTransitioning } }, [e._t("default")], 2)]);
1825
- }, gt = [], vt = /* @__PURE__ */ r(
1826
- ht,
1827
- ft,
1830
+ }, yt = [], _t = /* @__PURE__ */ o(
1828
1831
  gt,
1832
+ vt,
1833
+ yt,
1829
1834
  !1,
1830
1835
  null,
1831
1836
  "08518f65",
1832
1837
  null,
1833
1838
  null
1834
1839
  );
1835
- const D = vt.exports, yt = {
1840
+ const D = _t.exports, bt = {
1836
1841
  name: "CTabItem",
1837
1842
  props: {
1838
1843
  label: String,
@@ -1910,18 +1915,18 @@ const D = vt.exports, yt = {
1910
1915
  [e]
1911
1916
  ) : e;
1912
1917
  }
1913
- }, _t = null, bt = null;
1914
- var Ct = /* @__PURE__ */ r(
1915
- yt,
1916
- _t,
1918
+ }, Ct = null, wt = null;
1919
+ var xt = /* @__PURE__ */ o(
1917
1920
  bt,
1921
+ Ct,
1922
+ wt,
1918
1923
  !1,
1919
1924
  null,
1920
1925
  null,
1921
1926
  null,
1922
1927
  null
1923
1928
  );
1924
- const V = Ct.exports, wt = {
1929
+ const V = xt.exports, St = {
1925
1930
  name: "CMessage",
1926
1931
  props: {
1927
1932
  type: {
@@ -1938,21 +1943,21 @@ const V = Ct.exports, wt = {
1938
1943
  }
1939
1944
  }
1940
1945
  };
1941
- var xt = function(e, i) {
1946
+ var $t = function(e, i) {
1942
1947
  return e("div", { class: [i.data.class, i.data.staticClass], staticStyle: { padding: "0.75em 1em", display: "flex", "align-items": "flex-start", "border-radius": "0.6em", "background-color": "hsl(var(--gray-color-100) / 1)" }, style: { ...i.data.staticStyle } }, [e("div", { class: [
1943
1948
  `has-background-${i.props.type}`
1944
1949
  ], staticStyle: { display: "inline-block", padding: "0.5em", "border-radius": "0.45em", "font-weight": "700", color: "white", "line-height": "1", "font-size": "12px", "margin-right": "1.25em" } }, [i._v(" " + i._s(i.props.badge || i.parent.$t("components:cling.message.tip")) + " ")]), e("div", { staticStyle: { color: "hsl(0, 0%, 25%)" } }, [i.props.text ? [i._v(" " + i._s(i.props.text) + " ")] : i._e(), i._t("default")], 2)]);
1945
- }, $t = [], St = /* @__PURE__ */ r(
1946
- wt,
1947
- xt,
1950
+ }, kt = [], Dt = /* @__PURE__ */ o(
1951
+ St,
1948
1952
  $t,
1953
+ kt,
1949
1954
  !0,
1950
1955
  null,
1951
1956
  "a14c1e41",
1952
1957
  null,
1953
1958
  null
1954
1959
  );
1955
- const F = St.exports, kt = {
1960
+ const F = Dt.exports, Vt = {
1956
1961
  name: "FlagIcon",
1957
1962
  props: {
1958
1963
  region: {
@@ -1969,15 +1974,15 @@ const F = St.exports, kt = {
1969
1974
  }
1970
1975
  },
1971
1976
  mounted() {
1972
- var a, l;
1973
- const t = "FLAG_ICONS", e = (l = (a = this.$el).getRootNode) == null ? void 0 : l.call(a), s = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.head;
1977
+ var a, r;
1978
+ const t = "FLAG_ICONS", e = (r = (a = this.$el).getRootNode) == null ? void 0 : r.call(a), s = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.head;
1974
1979
  if (s.querySelector(`#${t}`))
1975
1980
  return;
1976
1981
  const n = document.createElement("link");
1977
1982
  n.id = t, n.rel = "stylesheet", n.type = "text/css", n.href = "https://www.unpkg.com/flag-icons@6.6.6/css/flag-icons.min.css", n.media = "all", s.appendChild(n);
1978
1983
  }
1979
1984
  };
1980
- var Dt = function() {
1985
+ var Ft = function() {
1981
1986
  var e = this, i = e._self._c;
1982
1987
  return e.region ? i("span", { staticClass: "fi", class: [
1983
1988
  `fi-${this.region.toLowerCase()}`,
@@ -1985,26 +1990,26 @@ var Dt = function() {
1985
1990
  fis: this.isSquared
1986
1991
  }
1987
1992
  ], attrs: { title: e.title || e.region } }) : e._e();
1988
- }, Vt = [], Ft = /* @__PURE__ */ r(
1989
- kt,
1990
- Dt,
1993
+ }, At = [], Bt = /* @__PURE__ */ o(
1991
1994
  Vt,
1995
+ Ft,
1996
+ At,
1992
1997
  !1,
1993
1998
  null,
1994
1999
  null,
1995
2000
  null,
1996
2001
  null
1997
2002
  );
1998
- const At = Ft.exports, Bt = {
2003
+ const It = Bt.exports, Ot = {
1999
2004
  name: "CPhoneInput",
2000
2005
  components: {
2001
- Flag: At,
2002
- CInput: T,
2003
- CDropdown: p,
2004
- CDropdownItem: h,
2006
+ Flag: It,
2007
+ CInput: P,
2008
+ CDropdown: h,
2009
+ CDropdownItem: f,
2005
2010
  CButton: M,
2006
2011
  CField: z,
2007
- SmartList: te
2012
+ SmartList: se
2008
2013
  },
2009
2014
  props: {
2010
2015
  value: {
@@ -2038,7 +2043,7 @@ const At = Ft.exports, Bt = {
2038
2043
  },
2039
2044
  computed: {
2040
2045
  defaultPrefix() {
2041
- return o[this.internalRegion].callingCode;
2046
+ return l[this.internalRegion].callingCode;
2042
2047
  },
2043
2048
  currentRegion() {
2044
2049
  return this.getRegionByCallingCode(this.prefix);
@@ -2048,21 +2053,21 @@ const At = Ft.exports, Bt = {
2048
2053
  if (this.region)
2049
2054
  return this.region;
2050
2055
  if (this.value) {
2051
- const t = (Object.keys(o) || []).find((e) => o[e].callingCode && this.value && this.value.startsWith(o[e].callingCode));
2056
+ const t = (Object.keys(l) || []).find((e) => l[e].callingCode && this.value && this.value.startsWith(l[e].callingCode));
2052
2057
  if (t)
2053
2058
  return t;
2054
2059
  }
2055
2060
  return this.internalPrefix ? this.getRegionByCallingCode(this.internalPrefix) : this.defaultRegion;
2056
2061
  },
2057
2062
  set(t) {
2058
- this.$emit("update:region", t), this.updateValue({ prefix: o[t].callingCode });
2063
+ this.$emit("update:region", t), this.updateValue({ prefix: l[t].callingCode });
2059
2064
  }
2060
2065
  },
2061
2066
  prefix() {
2062
2067
  if (!this.value)
2063
2068
  return this.internalPrefix || this.defaultPrefix;
2064
- const t = (Object.keys(o) || []).find((e) => o[e].callingCode && this.value && this.value.startsWith(o[e].callingCode));
2065
- return t ? o[t].callingCode : this.defaultPrefix;
2069
+ const t = (Object.keys(l) || []).find((e) => l[e].callingCode && this.value && this.value.startsWith(l[e].callingCode));
2070
+ return t ? l[t].callingCode : this.defaultPrefix;
2066
2071
  },
2067
2072
  phone: {
2068
2073
  get() {
@@ -2073,12 +2078,12 @@ const At = Ft.exports, Bt = {
2073
2078
  }
2074
2079
  },
2075
2080
  sortedRegions() {
2076
- return (Object.keys(o) || []).map((t) => ({ key: t, title: `${o[t].name} (${t})`, callingCode: o[t].callingCode })).sort((t, e) => t.title.localeCompare(e.title));
2081
+ return (Object.keys(l) || []).map((t) => ({ key: t, title: `${l[t].name} (${t})`, callingCode: l[t].callingCode })).sort((t, e) => t.title.localeCompare(e.title));
2077
2082
  }
2078
2083
  },
2079
2084
  methods: {
2080
2085
  getRegionByCallingCode(t) {
2081
- return t ? (Object.keys(o) || []).find((i) => t === o[i].callingCode) : null;
2086
+ return t ? (Object.keys(l) || []).find((i) => t === l[i].callingCode) : null;
2082
2087
  },
2083
2088
  updateValue({ prefix: t, phone: e }) {
2084
2089
  const i = t !== void 0 ? t : this.prefix || "", s = e !== void 0 ? e : this.phone || "", n = `${i}${s}`;
@@ -2086,7 +2091,7 @@ const At = Ft.exports, Bt = {
2086
2091
  }
2087
2092
  }
2088
2093
  };
2089
- var Ot = function() {
2094
+ var Pt = function() {
2090
2095
  var e = this, i = e._self._c;
2091
2096
  return i("CField", { staticClass: "has-addons", attrs: { expanded: "" } }, [i("div", { staticClass: "control" }, [i("SmartList", { attrs: { query: e.searchQuery, items: e.sortedRegions }, scopedSlots: e._u([{ key: "default", fn: function({ items: s }) {
2092
2097
  return [i("CDropdown", { staticClass: "control", staticStyle: { height: "100%" }, attrs: { size: e.$attrs.size, disabled: e.$attrs.disabled, "menu-styling": {
@@ -2095,23 +2100,23 @@ var Ot = function() {
2095
2100
  e.internalRegion = n;
2096
2101
  }, expression: "internalRegion" } }, [i("CButton", { staticStyle: { height: "100%" }, attrs: { slot: "trigger", size: e.$attrs.size, type: "none", pattern: "secondary" }, slot: "trigger" }, [i("Flag", { staticStyle: { "margin-right": "0.35em" }, attrs: { region: e.internalRegion } }), e._v(" " + e._s(e.prefix) + " ")], 1), i("CInput", { staticStyle: { "margin-bottom": "0.25em" }, attrs: { slot: "header", placeholder: e.$t("_common:search"), filled: "" }, slot: "header", model: { value: e.searchQuery, callback: function(n) {
2097
2102
  e.searchQuery = n;
2098
- }, expression: "searchQuery" } }), e._l(s, function({ key: n, title: a, callingCode: l }) {
2099
- return i("CDropdownItem", { key: n, staticClass: "truncate-text", attrs: { value: n } }, [i("Flag", { staticStyle: { "margin-right": "0.75em", flex: "0 0 auto" }, attrs: { region: n, title: a } }), i("span", { staticClass: "truncate-text" }, [e._v(" " + e._s(a) + " (" + e._s(l) + ") ")])], 1);
2103
+ }, expression: "searchQuery" } }), e._l(s, function({ key: n, title: a, callingCode: r }) {
2104
+ return i("CDropdownItem", { key: n, staticClass: "truncate-text", attrs: { value: n } }, [i("Flag", { staticStyle: { "margin-right": "0.75em", flex: "0 0 auto" }, attrs: { region: n, title: a } }), i("span", { staticClass: "truncate-text" }, [e._v(" " + e._s(a) + " (" + e._s(r) + ") ")])], 1);
2100
2105
  })], 2)];
2101
2106
  } }]) })], 1), i("CField", { staticClass: "control", attrs: { label: e.label, "label-position": e.labelPosition, expanded: "" } }, [i("CInput", e._b({ attrs: { size: e.$attrs.size, placeholder: e.$attrs.placeholder, type: "tel" }, model: { value: e.phone, callback: function(s) {
2102
2107
  e.phone = s;
2103
2108
  }, expression: "phone" } }, "CInput", { ...e.$attrs, ...e.$props }, !1))], 1)], 1);
2104
- }, It = [], Tt = /* @__PURE__ */ r(
2105
- Bt,
2109
+ }, Tt = [], Rt = /* @__PURE__ */ o(
2106
2110
  Ot,
2107
- It,
2111
+ Pt,
2112
+ Tt,
2108
2113
  !1,
2109
2114
  null,
2110
2115
  null,
2111
2116
  null,
2112
2117
  null
2113
2118
  );
2114
- const A = Tt.exports, Pt = {
2119
+ const A = Rt.exports, Mt = {
2115
2120
  name: "CSliderThumb",
2116
2121
  inheritAttrs: !1,
2117
2122
  props: {
@@ -2210,7 +2215,7 @@ const A = Tt.exports, Pt = {
2210
2215
  }
2211
2216
  }
2212
2217
  };
2213
- var Rt = function() {
2218
+ var zt = function() {
2214
2219
  var e = this, i = e._self._c;
2215
2220
  return i("div", { staticClass: "c-slider-thumb-wrapper", class: { "is-dragging": e.dragging }, style: e.wrapperStyle }, [i("div", e._b({ staticClass: "c-slider-thumb", attrs: { tabindex: e.disabled ? !1 : 0 }, on: { mousedown: e.onButtonDown, touchstart: e.onButtonDown, focus: e.onFocus, blur: e.onBlur, keydown: [function(s) {
2216
2221
  return !s.type.indexOf("key") && e._k(s.keyCode, "left", 37, s.key, ["Left", "ArrowLeft"]) || "button" in s && s.button !== 0 ? null : (s.preventDefault(), e.onLeftKeyDown.apply(null, arguments));
@@ -2225,17 +2230,17 @@ var Rt = function() {
2225
2230
  }, function(s) {
2226
2231
  return !s.type.indexOf("key") && e._k(s.keyCode, "end", void 0, s.key, void 0) ? null : (s.preventDefault(), e.onEndKeyDown.apply(null, arguments));
2227
2232
  }] } }, "div", e.$attrs, !1))]);
2228
- }, Mt = [], zt = /* @__PURE__ */ r(
2229
- Pt,
2230
- Rt,
2233
+ }, Nt = [], Et = /* @__PURE__ */ o(
2231
2234
  Mt,
2235
+ zt,
2236
+ Nt,
2232
2237
  !1,
2233
2238
  null,
2234
2239
  null,
2235
2240
  null,
2236
2241
  null
2237
2242
  );
2238
- const Et = zt.exports, Nt = {
2243
+ const Lt = Et.exports, Ht = {
2239
2244
  name: "CSliderTick",
2240
2245
  props: {
2241
2246
  value: {
@@ -2262,24 +2267,24 @@ const Et = zt.exports, Nt = {
2262
2267
  }
2263
2268
  }
2264
2269
  };
2265
- var Lt = function() {
2270
+ var qt = function() {
2266
2271
  var e = this, i = e._self._c;
2267
2272
  return i("div", { staticClass: "c-slider-tick", class: { "is-tick-hidden": e.hidden }, style: e.getTickStyle(e.position) }, [e.$slots.default ? i("span", { staticClass: "c-slider-tick-label" }, [e._t("default")], 2) : e._e()]);
2268
- }, Ht = [], qt = /* @__PURE__ */ r(
2269
- Nt,
2270
- Lt,
2273
+ }, jt = [], Kt = /* @__PURE__ */ o(
2271
2274
  Ht,
2275
+ qt,
2276
+ jt,
2272
2277
  !1,
2273
2278
  null,
2274
2279
  null,
2275
2280
  null,
2276
2281
  null
2277
2282
  );
2278
- const jt = qt.exports, Kt = {
2283
+ const Wt = Kt.exports, Xt = {
2279
2284
  name: "CSlider",
2280
2285
  components: {
2281
- CSliderThumb: Et,
2282
- CSliderTick: jt
2286
+ CSliderThumb: Lt,
2287
+ CSliderTick: Wt
2283
2288
  },
2284
2289
  props: {
2285
2290
  value: {
@@ -2415,10 +2420,10 @@ const jt = qt.exports, Kt = {
2415
2420
  if (!(this.min > this.max))
2416
2421
  if (Array.isArray(t)) {
2417
2422
  this.isRange = !0;
2418
- const e = typeof t[0] != "number" || isNaN(t[0]) ? this.min : m(t[0], this.min, this.max), i = typeof t[1] != "number" || isNaN(t[1]) ? this.max : m(t[1], this.min, this.max);
2423
+ const e = typeof t[0] != "number" || isNaN(t[0]) ? this.min : p(t[0], this.min, this.max), i = typeof t[1] != "number" || isNaN(t[1]) ? this.max : p(t[1], this.min, this.max);
2419
2424
  this.value1 = this.isThumbReversed ? i : e, this.value2 = this.isThumbReversed ? e : i;
2420
2425
  } else
2421
- this.isRange = !1, this.value1 = isNaN(t) ? this.min : m(t, this.min, this.max), this.value2 = null;
2426
+ this.isRange = !1, this.value1 = isNaN(t) ? this.min : p(t, this.min, this.max), this.value2 = null;
2422
2427
  },
2423
2428
  onInternalValueUpdate() {
2424
2429
  this.isRange && (this.isThumbReversed = this.value1 > this.value2), (!this.lazy || !this.dragging) && this.emitValue("input"), this.dragging && this.emitValue("dragging");
@@ -2461,7 +2466,7 @@ const jt = qt.exports, Kt = {
2461
2466
  }
2462
2467
  }
2463
2468
  };
2464
- var Wt = function() {
2469
+ var Ut = function() {
2465
2470
  var e = this, i = e._self._c;
2466
2471
  return i("div", { staticClass: "c-slider", class: [`is-${e.size}`, `is-${e.type}`, e.rootClasses], on: { click: e.onSliderClick } }, [i("div", { ref: "slider", staticClass: "c-slider-track" }, [i("div", { staticClass: "c-slider-fill", style: e.barStyle }), e.ticks ? e._l(e.tickValues, function(s, n) {
2467
2472
  return i("CSliderTick", { key: n, attrs: { value: s } });
@@ -2470,22 +2475,22 @@ var Wt = function() {
2470
2475
  }, expression: "value1" } }), e.isRange ? i("CSliderThumb", { ref: "button2", attrs: { type: e.newTooltipType, tooltip: e.tooltip, "custom-formatter": e.customFormatter, "aria-valuenow": e.value2, "aria-valuemin": e.min, "aria-valuemax": e.max, "aria-label": Array.isArray(e.ariaLabel) ? e.ariaLabel[1] : "", "aria-disabled": e.disabled, role: "slider", "aria-orientation": "horizontal" }, on: { dragstart: e.onDragStart, dragend: e.onDragEnd }, model: { value: e.value2, callback: function(s) {
2471
2476
  e.value2 = s;
2472
2477
  }, expression: "value2" } }) : e._e()], 2)]);
2473
- }, Xt = [], Ut = /* @__PURE__ */ r(
2474
- Kt,
2475
- Wt,
2478
+ }, Qt = [], Yt = /* @__PURE__ */ o(
2476
2479
  Xt,
2480
+ Ut,
2481
+ Qt,
2477
2482
  !1,
2478
2483
  null,
2479
2484
  null,
2480
2485
  null,
2481
2486
  null
2482
2487
  );
2483
- const B = Ut.exports;
2484
- function di(t) {
2485
- t.component(w.name, w), t.component("CAutocomplete", Ge), t.component(y.name, y), t.component(x.name, x), t.component($.name, $), t.component(p.name, p), t.component(h.name, h), t.component(S.name, S), t.component(_.name, _), t.component(k.name, k), t.component(D.name, D), t.component(V.name, V), t.component("CField", Le), t.component(F.name, F), t.component(A.name, A), t.component(B.name, B);
2488
+ const B = Yt.exports;
2489
+ function ui(t) {
2490
+ t.component(w.name, w), t.component("CAutocomplete", Je), t.component(y.name, y), t.component(x.name, x), t.component(S.name, S), t.component(h.name, h), t.component(f.name, f), t.component($.name, $), t.component(_.name, _), t.component(k.name, k), t.component(D.name, D), t.component(V.name, V), t.component("CField", qe), t.component(F.name, F), t.component(A.name, A), t.component(B.name, B);
2486
2491
  }
2487
2492
  export {
2488
- Le as C,
2489
- li as S,
2490
- di as i
2493
+ qe as C,
2494
+ ci as S,
2495
+ ui as i
2491
2496
  };