@cling-se/widget 0.9.13 → 0.9.15

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 (130) hide show
  1. package/dist/{AddClientCallout-228b3577.js → AddClientCallout-ab49f62b.js} +5 -5
  2. package/dist/{AnswerModal-8d56e27b.js → AnswerModal-2fde5937.js} +244 -239
  3. package/dist/{AttachmentItem-c351e46f.js → AttachmentItem-e54af2bb.js} +3 -3
  4. package/dist/{BaseDatePicker-455a8e63.js → BaseDatePicker-cb470a9e.js} +1 -1
  5. package/dist/{BaseInput-6b0cdce2.js → BaseInput-3d9f4279.js} +1 -1
  6. package/dist/{BaseUpload-53bb3574.js → BaseUpload-26e05a5c.js} +18 -18
  7. package/dist/{BlockMedia-7f55be7a.js → BlockMedia-8cded5ef.js} +1 -1
  8. package/dist/{CCallout-357061be.js → CCallout-a561eca4.js} +2 -2
  9. package/dist/{CDropdownItem-18010a08.js → CDropdownItem-df2fa4e1.js} +63 -61
  10. package/dist/{CField-05874972.js → CField-6545c8d4.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-cf8cf3bf.js → CSlider.vue_vue_type_style_index_0_lang-a27aef22.js} +1 -1
  12. package/dist/{ClientAutocomplete-80568a20.js → ClientAutocomplete-6d25f1ac.js} +2 -2
  13. package/dist/{ClientModal-7504abd0.js → ClientModal-f954d9e4.js} +4 -4
  14. package/dist/{ColorPicker-6ce6c99f.js → ColorPicker-b81d49dc.js} +28 -28
  15. package/dist/{CompanyModal-14c95452.js → CompanyModal-3c0542ed.js} +3 -3
  16. package/dist/{ContentWrapper-2af616a6.js → ContentWrapper-023e7d2e.js} +15 -13
  17. package/dist/{CoverBlockSettings-16e69c0f.js → CoverBlockSettings-bf46f7c3.js} +10 -9
  18. package/dist/{DocAnswer-4c60bdb2.js → DocAnswer-9e30ed6c.js} +4 -4
  19. package/dist/{DocForm-88aad3f9.js → DocForm-d0be2afd.js} +510 -597
  20. package/dist/{DocFormSend-7822495a.js → DocFormSend-2257bdb8.js} +17 -17
  21. package/dist/DocLinks-49de3d35.js +38 -0
  22. package/dist/{DocModalBase-cc16308d.js → DocModalBase-2e474321.js} +1 -1
  23. package/dist/{DocPrint-ab80350b.js → DocPrint-b31bfe3e.js} +1 -1
  24. package/dist/{DocReceipt-a418995c.js → DocReceipt-b28fa3e6.js} +1 -1
  25. package/dist/{DocSendReminder-604537a5.js → DocSendReminder-04ff970b.js} +1 -1
  26. package/dist/{DocTextEditor-4c3a9dda.js → DocTextEditor-a4dc3100.js} +1498 -1480
  27. package/dist/{DocTimeline-f528fe03.js → DocTimeline-c1078cae.js} +1 -1
  28. package/dist/{DocumentClient-63eee0be.js → DocumentClient-0f32e0c9.js} +6 -6
  29. package/dist/{DocumentLayout-7f21170a.js → DocumentLayout-9d7c3945.js} +95 -95
  30. package/dist/{DocumentLogotype-342699d5.js → DocumentLogotype-53f70c53.js} +3 -3
  31. package/dist/{EmbedInput-838658e0.js → EmbedInput-d69ce4f8.js} +2 -2
  32. package/dist/{EmbedSettings-4861e515.js → EmbedSettings-2ec76322.js} +3 -3
  33. package/dist/{ErrorCallout-3c335312.js → ErrorCallout-73785234.js} +1 -1
  34. package/dist/{FilePreviewModal-36890f6f.js → FilePreviewModal-109c7b33.js} +5 -5
  35. package/dist/{HeaderSettings-c60b567b.js → HeaderSettings-3d83ccfc.js} +18 -17
  36. package/dist/{ImageSelectModal-364cb7f3.js → ImageSelectModal-75c53e98.js} +9 -9
  37. package/dist/{ImageUploadWrapper-3f97caf0.js → ImageUploadWrapper-decbb774.js} +2 -2
  38. package/dist/{Index-e8bd9682.js → Index-0ee59b64.js} +4 -4
  39. package/dist/{Index-5e5e9eea.js → Index-10bfb47a.js} +2 -2
  40. package/dist/{Index-54dae7d5.js → Index-155458e8.js} +6 -6
  41. package/dist/{Index-dad75b77.js → Index-1b28d760.js} +8 -8
  42. package/dist/{Index-c4a96084.js → Index-1ce1aa40.js} +3 -3
  43. package/dist/{Index-87e1bf30.js → Index-226c110a.js} +2 -2
  44. package/dist/{Index-4d066329.js → Index-22d94abb.js} +1 -1
  45. package/dist/{Index-ab8a049c.js → Index-30e95a66.js} +5 -5
  46. package/dist/{Index-39588910.js → Index-47fb4f85.js} +4 -4
  47. package/dist/{Index-043d9b1b.js → Index-49b4cd87.js} +2 -2
  48. package/dist/{Index-622f4488.js → Index-50af499a.js} +6 -6
  49. package/dist/{Index-d0572db7.js → Index-5469b8ea.js} +9 -9
  50. package/dist/{Index-e1fa12f4.js → Index-55e3cefd.js} +4 -4
  51. package/dist/{Index-4d75a98f.js → Index-5ec00453.js} +15 -13
  52. package/dist/{Index-236b16cb.js → Index-63310172.js} +16 -14
  53. package/dist/{Index-df63e9b1.js → Index-73c44a65.js} +2 -2
  54. package/dist/{Index-61044ea1.js → Index-837d1c1e.js} +18 -16
  55. package/dist/{Index-ab549b7b.js → Index-a1f511d2.js} +2 -2
  56. package/dist/{Index-143c8249.js → Index-a463bce9.js} +4 -4
  57. package/dist/{Index-eb677c16.js → Index-be17e087.js} +3 -3
  58. package/dist/{Index-81aebe47.js → Index-bff9c5af.js} +8 -8
  59. package/dist/{Index-2d530ba9.js → Index-c6cfa7d2.js} +25 -25
  60. package/dist/{Index-933d777b.js → Index-cc254b04.js} +4 -4
  61. package/dist/{Index-31c43501.js → Index-ce221abf.js} +4 -4
  62. package/dist/{Index-c4da8059.js → Index-d0baff52.js} +15 -13
  63. package/dist/{Index-68d33a7a.js → Index-d3807403.js} +2 -2
  64. package/dist/{Index-7ae67a69.js → Index-d937a089.js} +2 -2
  65. package/dist/{Index-c3e9f61e.js → Index-d9879953.js} +4 -4
  66. package/dist/{Index-a954fa0e.js → Index-dca7a282.js} +4 -4
  67. package/dist/{Index-0a743dbe.js → Index-e09c49fe.js} +8 -8
  68. package/dist/{Index-9f14cadf.js → Index-f38920d4.js} +5 -5
  69. package/dist/{Index-ad6b4226.js → Index-f553b37b.js} +1 -1
  70. package/dist/{Index-db68776e.js → Index-fb376836.js} +40 -57
  71. package/dist/{Index-d354a773.js → Index-ffd4628c.js} +4 -4
  72. package/dist/{InputToggleRow-9f3a21c8.js → InputToggleRow-30c797ff.js} +1 -1
  73. package/dist/{IsPremiumPreStep-fc67e5a6.js → IsPremiumPreStep-29ac5130.js} +3 -3
  74. package/dist/ManualPopover-e29aec0f.js +53 -0
  75. package/dist/{MediaWrapper-97e972de.js → MediaWrapper-5ab8b512.js} +3 -3
  76. package/dist/{NotBindingText-a1bfc652.js → NotBindingText-52e7d568.js} +2 -2
  77. package/dist/{PackageGroup-fd73d61e.js → PackageGroup-a8ba9e0c.js} +14 -12
  78. package/dist/{PdfTerms-183987fe.js → PdfTerms-3070a25a.js} +5 -5
  79. package/dist/{PdfViewer-92bae106.js → PdfViewer-ccf3911c.js} +3 -3
  80. package/dist/{PlainHtml-659dc40e.js → PlainHtml-ae01e2c1.js} +1 -1
  81. package/dist/{PriceHeader-07cd131c.js → PriceHeader-41fd73c8.js} +17 -16
  82. package/dist/{SearchApi-64811a82.js → SearchApi-c4b052bb.js} +2 -2
  83. package/dist/{Setup-2ceea9c6.js → Setup-1317a382.js} +1 -1
  84. package/dist/{TermsSettings-fcd58004.js → TermsSettings-01af3b70.js} +6 -6
  85. package/dist/{ThemeColorRow-df5956c8.js → ThemeColorRow-269ca4a8.js} +13 -11
  86. package/dist/{ToggleBinding-f7bc2d76.js → ToggleBinding-dad24847.js} +3 -3
  87. package/dist/{UploadModal-a1ac0b5c.js → UploadModal-0b1b4fdc.js} +3 -3
  88. package/dist/{VideoPlayerInput-1f3f68ff.js → VideoPlayerInput-549aefde.js} +3 -3
  89. package/dist/{VideoPlayerSettings-11942297.js → VideoPlayerSettings-ae3426d4.js} +4 -4
  90. package/dist/{VideoSelectModal-745c2810.js → VideoSelectModal-02d28522.js} +8 -8
  91. package/dist/{answerDocumentMixin-f8efbecd.js → answerDocumentMixin-7be9822c.js} +3 -3
  92. package/dist/{cssMode-76c1eb7e.js → cssMode-69bff585.js} +7 -7
  93. package/dist/dom-d4731032.js +68 -0
  94. package/dist/{focusDrawerMixin-ef272683.js → focusDrawerMixin-1a22fcb0.js} +1 -1
  95. package/dist/{formComponentsInstall-1032f4c0.js → formComponentsInstall-ff788fa4.js} +12 -12
  96. package/dist/{formValidationMixin-cae02f79.js → formValidationMixin-7af4cf59.js} +2 -2
  97. package/dist/{freemarker2-a5050433.js → freemarker2-c8b91e6a.js} +7 -7
  98. package/dist/{handlebars-97600bea.js → handlebars-407a195e.js} +7 -7
  99. package/dist/{html-848aba57.js → html-9fbb1e72.js} +7 -7
  100. package/dist/{htmlMode-f297f1ba.js → htmlMode-a62a60c0.js} +7 -7
  101. package/dist/{image-eeafca74.js → image-b55f2afd.js} +1 -1
  102. package/dist/{index-b156c3e5.js → index-016c9a62.js} +4 -4
  103. package/dist/{index-d9dc84c3.js → index-21eac157.js} +25 -25
  104. package/dist/{index-9c826693.js → index-76693b13.js} +5 -5
  105. package/dist/{index-66441a0e.js → index-793542d1.js} +11 -9
  106. package/dist/{index-5bf60a14.js → index-d71d06aa.js} +2 -2
  107. package/dist/index-dfb4db64.js +99 -0
  108. package/dist/index.es.js +3 -3
  109. package/dist/index.umd.js +493 -493
  110. package/dist/{javascript-05903a61.js → javascript-09ef29cb.js} +8 -8
  111. package/dist/{jsonMode-808b2c11.js → jsonMode-10afc369.js} +7 -7
  112. package/dist/{liquid-3a4ed820.js → liquid-233a80fe.js} +7 -7
  113. package/dist/{main-37f5e386.js → main-d566af3b.js} +933 -916
  114. package/dist/{mapFormMixin-57fc1af3.js → mapFormMixin-c6d17f7c.js} +1 -1
  115. package/dist/{publicSenderState-23dfd84e.js → publicSenderState-1c913217.js} +1 -1
  116. package/dist/{python-59364ca7.js → python-90cbed7b.js} +7 -7
  117. package/dist/{razor-c485357e.js → razor-0f34f5b0.js} +7 -7
  118. package/dist/{simplebar.min-0afea859.js → simplebar.min-7b840f57.js} +1 -1
  119. package/dist/style.css +2 -2
  120. package/dist/{template-09a48d50.js → template-6c789e3b.js} +1 -1
  121. package/dist/{throttle-7cc7cddf.js → throttle-b4fba152.js} +2 -2
  122. package/dist/{tinycolor-9b14b99e.js → tinycolor-72610713.js} +1 -1
  123. package/dist/{tippy.esm-e04582c9.js → tippy.esm-c1d37448.js} +5 -5
  124. package/dist/{tsMode-1c3b939e.js → tsMode-26efb298.js} +7 -7
  125. package/dist/{typescript-80bee482.js → typescript-06af0784.js} +7 -7
  126. package/dist/{utils-48a92f83.js → utils-9efb546e.js} +1 -1
  127. package/dist/{vuedraggable.umd-937de8ac.js → vuedraggable.umd-64934a87.js} +1 -1
  128. package/dist/{xml-277e74c7.js → xml-7b0b742f.js} +7 -7
  129. package/package.json +1 -1
  130. package/dist/dom-068d1a7b.js +0 -59
@@ -1,5 +1,5 @@
1
1
  import { v as pe } from "./index-805c56e4.js";
2
- import { Q as T } from "./main-37f5e386.js";
2
+ import { R as T } from "./main-d566af3b.js";
3
3
  var P = {}, f = {}, b = {}, O = {};
4
4
  Object.defineProperty(O, "__esModule", {
5
5
  value: !0
@@ -166,12 +166,12 @@ Object.defineProperty(S, "__esModule", {
166
166
  value: !0
167
167
  });
168
168
  S.default = void 0;
169
- var Q = f, Ie = function(t) {
170
- return (0, Q.withParams)({
169
+ var E = f, Ie = function(t) {
170
+ return (0, E.withParams)({
171
171
  type: "maxLength",
172
172
  max: t
173
173
  }, function(r) {
174
- return !(0, Q.req)(r) || (0, Q.len)(r) <= t;
174
+ return !(0, E.req)(r) || (0, E.len)(r) <= t;
175
175
  });
176
176
  };
177
177
  S.default = Ie;
@@ -180,12 +180,12 @@ Object.defineProperty(V, "__esModule", {
180
180
  value: !0
181
181
  });
182
182
  V.default = void 0;
183
- var E = f, Ue = function(t) {
184
- return (0, E.withParams)({
183
+ var F = f, Ue = function(t) {
184
+ return (0, F.withParams)({
185
185
  type: "minLength",
186
186
  min: t
187
187
  }, function(r) {
188
- return !(0, E.req)(r) || (0, E.len)(r) >= t;
188
+ return !(0, F.req)(r) || (0, F.len)(r) >= t;
189
189
  });
190
190
  };
191
191
  V.default = Ue;
@@ -194,10 +194,10 @@ Object.defineProperty(z, "__esModule", {
194
194
  value: !0
195
195
  });
196
196
  z.default = void 0;
197
- var F = f, Ze = (0, F.withParams)({
197
+ var H = f, Ze = (0, H.withParams)({
198
198
  type: "required"
199
199
  }, function(e) {
200
- return typeof e == "string" ? (0, F.req)(e.trim()) : (0, F.req)(e);
200
+ return typeof e == "string" ? (0, H.req)(e.trim()) : (0, H.req)(e);
201
201
  });
202
202
  z.default = Ze;
203
203
  var D = {};
@@ -205,12 +205,12 @@ Object.defineProperty(D, "__esModule", {
205
205
  value: !0
206
206
  });
207
207
  D.default = void 0;
208
- var H = f, Ce = function(t) {
209
- return (0, H.withParams)({
208
+ var J = f, Ce = function(t) {
209
+ return (0, J.withParams)({
210
210
  type: "requiredIf",
211
211
  prop: t
212
212
  }, function(r, u) {
213
- return (0, H.ref)(t, this, u) ? (0, H.req)(r) : !0;
213
+ return (0, J.ref)(t, this, u) ? (0, J.req)(r) : !0;
214
214
  });
215
215
  };
216
216
  D.default = Ce;
@@ -219,12 +219,12 @@ Object.defineProperty(L, "__esModule", {
219
219
  value: !0
220
220
  });
221
221
  L.default = void 0;
222
- var J = f, Be = function(t) {
223
- return (0, J.withParams)({
222
+ var K = f, Be = function(t) {
223
+ return (0, K.withParams)({
224
224
  type: "requiredUnless",
225
225
  prop: t
226
226
  }, function(r, u) {
227
- return (0, J.ref)(t, this, u) ? !0 : (0, J.req)(r);
227
+ return (0, K.ref)(t, this, u) ? !0 : (0, K.req)(r);
228
228
  });
229
229
  };
230
230
  L.default = Be;
@@ -247,17 +247,17 @@ Object.defineProperty(W, "__esModule", {
247
247
  value: !0
248
248
  });
249
249
  W.default = void 0;
250
- var Qe = f, Ee = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i, Fe = (0, Qe.regex)("url", Ee);
251
- W.default = Fe;
250
+ var Ee = f, Fe = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i, He = (0, Ee.regex)("url", Fe);
251
+ W.default = He;
252
252
  var N = {};
253
253
  Object.defineProperty(N, "__esModule", {
254
254
  value: !0
255
255
  });
256
256
  N.default = void 0;
257
- var He = f, Je = function() {
257
+ var Je = f, Ke = function() {
258
258
  for (var t = arguments.length, r = new Array(t), u = 0; u < t; u++)
259
259
  r[u] = arguments[u];
260
- return (0, He.withParams)({
260
+ return (0, Je.withParams)({
261
261
  type: "or"
262
262
  }, function() {
263
263
  for (var _ = this, m = arguments.length, v = new Array(m), o = 0; o < m; o++)
@@ -267,16 +267,16 @@ var He = f, Je = function() {
267
267
  }, !1);
268
268
  });
269
269
  };
270
- N.default = Je;
270
+ N.default = Ke;
271
271
  var I = {};
272
272
  Object.defineProperty(I, "__esModule", {
273
273
  value: !0
274
274
  });
275
275
  I.default = void 0;
276
- var Ke = f, Te = function() {
276
+ var Qe = f, Te = function() {
277
277
  for (var t = arguments.length, r = new Array(t), u = 0; u < t; u++)
278
278
  r[u] = arguments[u];
279
- return (0, Ke.withParams)({
279
+ return (0, Qe.withParams)({
280
280
  type: "and"
281
281
  }, function() {
282
282
  for (var _ = this, m = arguments.length, v = new Array(m), o = 0; o < m; o++)
@@ -460,11 +460,11 @@ G.default = rt;
460
460
  }), e.helpers = void 0;
461
461
  var r = i(P), u = i($), _ = i(w), m = i(q), v = i(j), o = i(M), d = i(A), a = i(S), l = i(V), y = i(z), ue = i(D), ae = i(L), fe = i(R), ie = i(W), de = i(N), oe = i(I), le = i(U), ce = i(Z), me = i(C), ve = i(B), _e = i(G), se = ye(f);
462
462
  e.helpers = se;
463
- function K() {
463
+ function Q() {
464
464
  if (typeof WeakMap != "function")
465
465
  return null;
466
466
  var n = /* @__PURE__ */ new WeakMap();
467
- return K = function() {
467
+ return Q = function() {
468
468
  return n;
469
469
  }, n;
470
470
  }
@@ -473,7 +473,7 @@ G.default = rt;
473
473
  return n;
474
474
  if (n === null || t(n) !== "object" && typeof n != "function")
475
475
  return { default: n };
476
- var s = K();
476
+ var s = Q();
477
477
  if (s && s.has(n))
478
478
  return s.get(n);
479
479
  var c = {}, ge = Object.defineProperty && Object.getOwnPropertyDescriptor;
@@ -1,8 +1,8 @@
1
- import { w as a, d as o } from "./CDropdownItem-18010a08.js";
2
- import { t as c } from "./throttle-7cc7cddf.js";
3
- import { n } from "./main-37f5e386.js";
4
- import { i as d } from "./dom-068d1a7b.js";
5
- import { s as u } from "./simplebar.min-0afea859.js";
1
+ import { w as a, d as o } from "./CDropdownItem-df2fa4e1.js";
2
+ import { t as c } from "./throttle-b4fba152.js";
3
+ import { n } from "./main-d566af3b.js";
4
+ import { i as d } from "./dom-d4731032.js";
5
+ import { s as u } from "./simplebar.min-7b840f57.js";
6
6
  const f = {
7
7
  name: "BackgroundsModalList",
8
8
  i18nOptions: {
@@ -1,13 +1,15 @@
1
1
  import { m as f, a as m, b as _ } from "./vuex.esm-4a0fff7c.js";
2
- import { n as o, z as v, S as h, g as l, h as i } from "./main-37f5e386.js";
3
- import { w as d } from "./CDropdownItem-18010a08.js";
4
- import { S as x } from "./CSlider.vue_vue_type_style_index_0_lang-cf8cf3bf.js";
5
- import { B as p } from "./DocTextEditor-4c3a9dda.js";
2
+ import { n as o, z as v, S as h, g as l, h as i } from "./main-d566af3b.js";
3
+ import { w as d } from "./CDropdownItem-df2fa4e1.js";
4
+ import { S as x } from "./CSlider.vue_vue_type_style_index_0_lang-a27aef22.js";
5
+ import { B as p } from "./DocTextEditor-a4dc3100.js";
6
6
  import { v as r } from "./index-805c56e4.js";
7
- import "./tippy.esm-e04582c9.js";
8
- import "./ColorPicker-6ce6c99f.js";
9
- import "./DocumentLayout-7f21170a.js";
7
+ import "./tippy.esm-c1d37448.js";
8
+ import "./ColorPicker-b81d49dc.js";
9
+ import "./DocumentLayout-9d7c3945.js";
10
+ import "./dom-d4731032.js";
10
11
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
12
+ import "./ManualPopover-e29aec0f.js";
11
13
  import "./color-71c20583.js";
12
14
  const g = {
13
15
  props: {
@@ -356,7 +358,7 @@ var I = function() {
356
358
  null,
357
359
  null
358
360
  );
359
- const V = G.exports;
361
+ const Y = G.exports;
360
362
  export {
361
- V as default
363
+ Y as default
362
364
  };
@@ -1,5 +1,5 @@
1
- import { g as n } from "./image-eeafca74.js";
2
- import { n as s } from "./main-37f5e386.js";
1
+ import { g as n } from "./image-b55f2afd.js";
2
+ import { n as s } from "./main-d566af3b.js";
3
3
  const o = {
4
4
  name: "DocumentGuide",
5
5
  i18nOptions: {
@@ -0,0 +1,99 @@
1
+ import { g as s, H as l, n as r, V as a } from "./main-d566af3b.js";
2
+ import { m as d, a as p } from "./vuex.esm-4a0fff7c.js";
3
+ const c = {
4
+ name: "ClientLinks",
5
+ props: {
6
+ id: {
7
+ type: String,
8
+ required: !0
9
+ }
10
+ },
11
+ i18nOptions: {
12
+ namespaces: "ClientLinks",
13
+ messages: {
14
+ en: {
15
+ title: "Document links",
16
+ text: "Share the document links below with your recipients. Each recipient has their own unique link.",
17
+ copied: "Link copied to clipboard",
18
+ tooltip: "Copy link",
19
+ placeholder: "No links available.",
20
+ hint: "Note that visting a link will trigger a viewed event in the events timeline."
21
+ },
22
+ sv: {
23
+ title: "Dokumentlänkar",
24
+ text: "Dela dokumentlänkarna nedan med dina mottagare. Varje mottagare har sin egen unika länk.",
25
+ copied: "Länkt kopierat till urklipp",
26
+ tooltip: "Kopiera länk",
27
+ placeholder: "Inga länkar finns tillgängliga.",
28
+ hint: "Notera att ett sidbesök på en länk kommer att skapa en visad-händelse i tidslinjen."
29
+ }
30
+ }
31
+ },
32
+ computed: {
33
+ ...d({
34
+ docById: "documents2/byId"
35
+ }),
36
+ document() {
37
+ return this.docById(this.id);
38
+ },
39
+ clients() {
40
+ if (!this.document)
41
+ return [];
42
+ const { clients: i } = this.document;
43
+ return i.map((t) => ({
44
+ ...t,
45
+ primaryTitle: t.name,
46
+ secondaryTitle: t.type === "company" ? t.companyName : ""
47
+ }));
48
+ }
49
+ },
50
+ created() {
51
+ this.loadDocument({ id: this.id });
52
+ },
53
+ methods: {
54
+ ...p({
55
+ loadDocument: s.LOAD_DOCUMENT2
56
+ }),
57
+ copyToClipboard(i) {
58
+ i.target.previousElementSibling.select(), document.execCommand("copy", !1), l("info", this.$t("copied"));
59
+ }
60
+ }
61
+ };
62
+ var m = function() {
63
+ var t = this, e = t._self._c;
64
+ return e("div", { staticClass: "font-inter", staticStyle: { "background-color": "white", "border-radius": "10px", overflow: "hidden" } }, [e("div", { staticStyle: { padding: "40px 30px", position: "relative" } }, [e("CButton", { staticStyle: { position: "absolute", right: "1em", top: "1em", color: "hsl(0, 0%, 55%)" }, attrs: { icon: "x", circle: "", size: "normal" }, on: { click: function(o) {
65
+ return t.$emit("close");
66
+ } } }), e("div", { staticStyle: { padding: "0 0 2.5em" } }, [e("div", { staticClass: "x-title", domProps: { textContent: t._s(t.$t("title")) } }), e("div", { staticClass: "x-text", domProps: { textContent: t._s(t.$t("text")) } })]), t.clients.length ? t._l(t.clients, function(o, n) {
67
+ return e("div", { key: n, staticClass: "client-card" }, [e("div", { staticStyle: { padding: "4px 6px 8px 6px" } }, [e("div", { staticClass: "client-title truncate-text" }, [t._v(" " + t._s(o.primaryTitle) + " "), o.secondaryTitle ? e("span", { staticStyle: { opacity: "0.5", "padding-left": "0.125ch" } }, [t._v("· " + t._s(o.secondaryTitle))]) : t._e()]), o.documentRole ? e("div", { domProps: { textContent: t._s(t.$t(`_common:documentRole.${o.documentRole}.label`)) } }) : t._e(), e("div", [o.email ? e("a", { attrs: { href: `mailto:${o.email}?&body=${o.docLink}` } }, [t._v(t._s(o.email))]) : t._e(), o.email && o.cellphone ? e("span", { staticStyle: { padding: "0 0.5ch" } }, [t._v("·")]) : t._e(), o.cellphone ? e("a", { attrs: { href: `sms:${o.cellphone}?&body=${o.docLink}` } }, [e("CPhoneFormat", { attrs: { phone: o.cellphone, region: o.cellphoneRegion } })], 1) : t._e()])]), e("div", { staticStyle: { display: "flex", position: "relative" } }, [e("input", { ref: "key", refInFor: !0, staticClass: "link-field truncate-text", attrs: { placeholder: t.$t("placeholder"), type: "text", readonly: "readonly" }, domProps: { value: o.docLink } }), e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("tooltip"), expression: "$t('tooltip')" }], staticClass: "clipboard-button", on: { click: t.copyToClipboard } }, [e("BaseIcon", { staticStyle: { "pointer-events": "none" }, attrs: { type: "copy", size: "17" } })], 1)])]);
68
+ }) : e("div", { staticStyle: { padding: "2em", "font-size": "14px", "text-align": "center", color: "hsl(0, 0%, 55%)", border: "1px solid hsl(0, 0%, 88%)", "border-radius": "6px" }, domProps: { textContent: t._s(t.$t("placeholder")) } }), e("div", { staticClass: "x-hint" }, [e("BaseIcon", { staticClass: "text-primary-500", staticStyle: { flex: "0 0 auto", "margin-right": "8px", "margin-top": "3px" }, attrs: { type: "info", size: "16" } }), e("div", { domProps: { textContent: t._s(t.$t("hint")) } })], 1)], 2)]);
69
+ }, u = [], h = /* @__PURE__ */ r(
70
+ c,
71
+ m,
72
+ u,
73
+ !1,
74
+ null,
75
+ "791a9a8f",
76
+ null,
77
+ null
78
+ );
79
+ const v = h.exports, y = v, k = ({ id: i }) => {
80
+ if (!a.prototype.$modal)
81
+ throw Error("Open client modal requires plugin vue-js-modal");
82
+ a.prototype.$modal.show(
83
+ y,
84
+ {
85
+ id: i
86
+ },
87
+ {
88
+ adaptive: !0,
89
+ maxWidth: 400,
90
+ width: "90%",
91
+ height: "auto",
92
+ scrollable: !0
93
+ }
94
+ );
95
+ };
96
+ export {
97
+ y as C,
98
+ k as o
99
+ };