@cling-se/widget 0.19.5 → 0.19.7

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 (128) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{AddClientCallout-B3NbV9vX.js → AddClientCallout-BdGevuQo.js} +6 -6
  3. package/dist/{AnswerModal-C_at-56v.js → AnswerModal-DfjF-RVP.js} +3 -3
  4. package/dist/{AttachmentItem-C4kyomn3.js → AttachmentItem-BEd3qVAo.js} +17 -17
  5. package/dist/{BaseUpload-Z3O2bebR.js → BaseUpload-Zm4EX8ir.js} +2 -2
  6. package/dist/{BlockMedia-BSGtFCsS.js → BlockMedia-ZHaA4OMV.js} +14 -14
  7. package/dist/CCallout-BlglVZrm.js +124 -0
  8. package/dist/{CCurrencyDropdown-CyFge_fD.js → CCurrencyDropdown-BzvKsm1N.js} +9 -9
  9. package/dist/{CDropdownItem-BWmAQwpG.js → CDropdownItem-B5rgSee7.js} +7 -7
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-DzcNo15Q.js → CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js} +18 -18
  11. package/dist/{CPhoneFormat-D-BGsI3p.js → CPhoneFormat-DaDNMlmK.js} +1 -1
  12. package/dist/{CPhoneInput-Dl7BSG8y.js → CPhoneInput-BUogm59J.js} +18 -18
  13. package/dist/{CPriceInput-C8Os9b3V.js → CPriceInput-Cd5OHMJS.js} +11 -11
  14. package/dist/CSelect-CmoAbVkP.js +129 -0
  15. package/dist/CSkeleton-BF6EYj8H.js +47 -0
  16. package/dist/{ClientAutocomplete-0XPP0tZr.js → ClientAutocomplete-CHfp4YiV.js} +18 -18
  17. package/dist/{ClientModal-Ddv5YiOD.js → ClientModal-Com23Qgc.js} +31 -31
  18. package/dist/{ColorPicker-ClWlJZqh.js → ColorPicker-BzdHtZep.js} +26 -26
  19. package/dist/{CompanyModal-CdisHhTQ.js → CompanyModal-CGjSgTEJ.js} +16 -16
  20. package/dist/{ContentWrapper-BZ_ff5l9.js → ContentWrapper-CS-Bh4Bk.js} +21 -21
  21. package/dist/{CoverBlockSettings-C3F4jTwa.js → CoverBlockSettings-DDHQzLdc.js} +28 -28
  22. package/dist/{DocAnswer-BkbWkje5.js → DocAnswer-Cmdsw_CW.js} +2 -2
  23. package/dist/{DocDetails-DxUXsbDV.js → DocDetails-C5Vzh550.js} +28 -28
  24. package/dist/{DocForm-CABBteE8.js → DocForm-DEUVV11n.js} +994 -960
  25. package/dist/{DocFormSend-xGIxXjxv.js → DocFormSend-Dt7N3wCz.js} +2 -2
  26. package/dist/{DocLinks-D01zyA-z.js → DocLinks-C6-Er0rk.js} +2 -2
  27. package/dist/{DocModalBase-DfrPL4tZ.js → DocModalBase-DbuJwHXi.js} +1 -1
  28. package/dist/{DocPrint-BSKYDCQc.js → DocPrint-D_uxg7qD.js} +6 -6
  29. package/dist/{DocReceipt-D5Oqb1cC.js → DocReceipt-D6LP9UAa.js} +16 -16
  30. package/dist/{DocSendReminder-IbCLg9tW.js → DocSendReminder-DopLhyjz.js} +8 -8
  31. package/dist/{DocTextEditor-BVba4QPz.js → DocTextEditor-DeZtzbgm.js} +8 -8
  32. package/dist/{DocTimeline-CaX19zwg.js → DocTimeline-DAWZu_KT.js} +25 -25
  33. package/dist/{DocumentClient-DSQnO5KJ.js → DocumentClient-kxnT6k9s.js} +7 -7
  34. package/dist/{DocumentLayout-CkNcKcB_.js → DocumentLayout-DaVz9SGF.js} +68 -68
  35. package/dist/{DocumentLogotype-DAVtl6S_.js → DocumentLogotype-G-a7gBIC.js} +6 -6
  36. package/dist/{DocumentVoided-DZYqqkrE.js → DocumentVoided-SG_ShMmc.js} +5 -5
  37. package/dist/{EmbedInput-BpVkRhg5.js → EmbedInput-CJL5y3Zj.js} +9 -9
  38. package/dist/{EmbedSettings-BHjex6QD.js → EmbedSettings-B0X6A9Uy.js} +9 -9
  39. package/dist/{ErrorCallout-B9TlMH-g.js → ErrorCallout-xCSfpQWV.js} +7 -7
  40. package/dist/{FilePreviewModal-DP6yokyq.js → FilePreviewModal-Da_pMUoO.js} +6 -6
  41. package/dist/{Flag-D3GdVwWB.js → Flag-wXawyyMO.js} +1 -1
  42. package/dist/{HeaderSettings-sb4vPDsi.js → HeaderSettings-CD3y6-uY.js} +37 -37
  43. package/dist/{ImageSelectModal-CicYONc-.js → ImageSelectModal-DatnXHH1.js} +5 -5
  44. package/dist/{ImageUploadWrapper-CLq06imX.js → ImageUploadWrapper-CwKe3Iq7.js} +33 -33
  45. package/dist/{Index-2jg0DL-m.js → Index-1WPEpaVr.js} +4 -4
  46. package/dist/{Index-Dv0eryvg.js → Index-9ZFW8Ka7.js} +4 -4
  47. package/dist/{Index-Be0qeiZi.js → Index-B53eUt7Y.js} +10 -10
  48. package/dist/{Index-BrIFaQcB.js → Index-BJf4YdYB.js} +14 -14
  49. package/dist/{Index-AjcnSKQD.js → Index-BTDQax0X.js} +16 -16
  50. package/dist/{Index-SXJlaLRr.js → Index-Bb6JZC8l.js} +4 -4
  51. package/dist/{Index-DdlkzMzM.js → Index-BbVHxVFJ.js} +20 -20
  52. package/dist/{Index-CoadaoP0.js → Index-BlownK7_.js} +6 -6
  53. package/dist/{Index-BsM0XvZj.js → Index-BvAqglwa.js} +33 -33
  54. package/dist/{Index-CzqNrUn3.js → Index-C-EUJjuk.js} +2 -2
  55. package/dist/{Index-BpObvjSu.js → Index-C2-s62x7.js} +5 -5
  56. package/dist/{Index-DH9dMzsw.js → Index-COF0evH4.js} +10 -10
  57. package/dist/{Index-BtECdggQ.js → Index-CQboLS2e.js} +5 -5
  58. package/dist/{Index-CpGzRzMp.js → Index-CTrX3VRa.js} +5 -5
  59. package/dist/{Index-BU2qksFA.js → Index-CXjLkK_n.js} +13 -13
  60. package/dist/{Index-6H0VT88W.js → Index-Ciy9lnhS.js} +3 -3
  61. package/dist/{Index-BWTeXf8h.js → Index-Cjg3X74T.js} +4 -4
  62. package/dist/{Index-KZslz-16.js → Index-Ck-_9woY.js} +29 -29
  63. package/dist/{Index-DGLmjotr.js → Index-Ct735UtM.js} +2 -2
  64. package/dist/{Index-BePivEDQ.js → Index-D-gJQEAD.js} +3 -3
  65. package/dist/{Index-Bf3O-9-j.js → Index-DAkq_7Ws.js} +11 -11
  66. package/dist/{Index-szvZl8G-.js → Index-DOeHci16.js} +6 -6
  67. package/dist/{Index-BHvpY8xR.js → Index-DfuzxXzD.js} +2 -2
  68. package/dist/{Index-0JuAv1tp.js → Index-Dfy0PsiW.js} +25 -25
  69. package/dist/{Index-DO8qwrXi.js → Index-DjfbgA_7.js} +19 -19
  70. package/dist/{Index-CmDRJ5Xr.js → Index-DkQ8_VkX.js} +8 -8
  71. package/dist/{Index-DPF_0b3a.js → Index-Dxg4gEKd.js} +18 -18
  72. package/dist/{Index-DnnRIESN.js → Index-DzdEqsZB.js} +8 -8
  73. package/dist/{Index--erm1oIh.js → Index-GPliVrhC.js} +5 -5
  74. package/dist/{Index-RhHHrJtM.js → Index-NnBwJv9v.js} +6 -6
  75. package/dist/{Index-BIrwUJlj.js → Index-ezY0DbcB.js} +10 -10
  76. package/dist/Index-qFx0G3fC.js +4 -0
  77. package/dist/{Index-DijI5XXh.js → Index-yS5OPrJJ.js} +2 -2
  78. package/dist/{Index-0imHv6b4.js → Index-y_AJP61r.js} +12 -12
  79. package/dist/{Index.vue_vue_type_script_lang-CXjOi3FM.js → Index.vue_vue_type_script_lang-B3RoDZmC.js} +2 -2
  80. package/dist/{InputToggleRow-3992FkvA.js → InputToggleRow-D5rvQpAw.js} +11 -11
  81. package/dist/{ManualPopover-UiHhIKuw.js → ManualPopover-Bd-GsLGT.js} +6 -6
  82. package/dist/{MediaWrapper-BlaBWAWe.js → MediaWrapper-Ci0XPCcb.js} +3 -3
  83. package/dist/{NotBindingText-C14r7OLr.js → NotBindingText-DhndGZE3.js} +2 -2
  84. package/dist/{PackageGroup-ClZiyb95.js → PackageGroup-4Jt9ClVO.js} +17 -17
  85. package/dist/{PdfTerms-CbVKGNxc.js → PdfTerms-CGeJDJpQ.js} +5 -5
  86. package/dist/{PdfViewer-B_7DfQr7.js → PdfViewer-o2vb6Fya.js} +78 -78
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BM9WSi7y.js → PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js} +1 -1
  88. package/dist/{PriceHeader-DRkCMuGD.js → PriceHeader-BsObxLHK.js} +31 -31
  89. package/dist/{SearchApi-6-uNsMl8.js → SearchApi-ZczKsBb7.js} +1 -1
  90. package/dist/{SendForm-DnwHPbWV.js → SendForm-D5jqkofo.js} +8 -8
  91. package/dist/{Setup-Dz3ZCvFw.js → Setup-CdZzn0qW.js} +1 -1
  92. package/dist/{SmartList-7RooD2fY.js → SmartList-B36ffGAZ.js} +1 -1
  93. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-cAzUeXVM.js → Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js} +31 -31
  94. package/dist/{TermsSettings-BEB2t3Ut.js → TermsSettings-CmAHVOuX.js} +14 -14
  95. package/dist/{ThemeColorRow-XE9QcVAy.js → ThemeColorRow-CScTIcPB.js} +6 -6
  96. package/dist/{ToggleBinding-BeXQfpcK.js → ToggleBinding-CVZZlpBR.js} +4 -4
  97. package/dist/{UploadModal-pRlJXk-Y.js → UploadModal-2tXsmGMM.js} +4 -4
  98. package/dist/{VideoPlayerInput-qankN5Ed.js → VideoPlayerInput-BDzjZ2St.js} +9 -9
  99. package/dist/{VideoPlayerSettings-WijGYtE2.js → VideoPlayerSettings-BLAEZw4C.js} +6 -6
  100. package/dist/{VideoSelectModal-Dhb7CmVu.js → VideoSelectModal-iqgmg85K.js} +16 -16
  101. package/dist/{focusDrawerMixin-DELQ4Leq.js → focusDrawerMixin-BmyahQiE.js} +1 -1
  102. package/dist/{formDrawerState-D_OOByIg.js → formDrawerState-B7ASfNsk.js} +1 -1
  103. package/dist/{helpers-BnYWgq30.js → helpers-BVP2Pul1.js} +5 -5
  104. package/dist/{index-CFD_4fv_.js → index-B86TZXOh.js} +32 -32
  105. package/dist/{index-KcSRVleg.js → index-BDb4bM0D.js} +17 -17
  106. package/dist/{index-BIWUM14f.js → index-BH5vwOzR.js} +3 -3
  107. package/dist/{index-BGFTOrwb.js → index-Cd4S4J-L.js} +56 -56
  108. package/dist/{index-DRINkuNg.js → index-CsbYpQqP.js} +44 -43
  109. package/dist/{index-P4A85Ytd.js → index-D0Qee2OX.js} +34 -34
  110. package/dist/{index-6175cimw.js → index-DXNrJnEc.js} +7 -7
  111. package/dist/index.es.js +2 -2
  112. package/dist/index.umd.js +137 -137
  113. package/dist/{main-q_EWffDQ.js → main-C2Q8_T2Y.js} +11468 -11445
  114. package/dist/{mapFormMixin-DjPlsXfr.js → mapFormMixin-CjfqZnmd.js} +6 -6
  115. package/dist/{omit-DWur9Ujv.js → omit-DzlbtNCX.js} +4 -4
  116. package/dist/{publicSenderState-BkZVvtJm.js → publicSenderState-C3ELW8Cw.js} +3 -3
  117. package/dist/{splitpanes-BR5qxnsj.js → splitpanes-CuxtOZyV.js} +1 -1
  118. package/dist/{template-CQlJbqXR.js → template-DzrGrOEa.js} +1 -1
  119. package/dist/{tippy.esm-BABwSp3j.js → tippy.esm-Bf86qEue.js} +89 -89
  120. package/dist/{useTermsModal-Bj2B-TdQ.js → useTermsModal-Be4HLDDm.js} +6 -6
  121. package/dist/{utils-C53ntVIe.js → utils-a_Odlqb5.js} +1 -1
  122. package/dist/{validation-u_PNxOm8.js → validation-38muBV6x.js} +2 -2
  123. package/dist/widget.css +1 -1
  124. package/package.json +1 -1
  125. package/dist/CCallout-DRBCakh2.js +0 -104
  126. package/dist/CSelect-DXAAKhB6.js +0 -98
  127. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D_ZP_7FL.js +0 -51
  128. package/dist/Index-B5zszB2v.js +0 -4
@@ -1,4 +1,4 @@
1
- import { Q as ie, R as O, T as ce, U as P, V as A, r as D, W as de, i as h, X as $e, Y as fe, j as g, Z as z, x as B, $ as M } from "./main-q_EWffDQ.js";
1
+ import { K as ie, L as O, M as ce, N as C, O as A, r as D, P as de, Q as h, R as $e, T as fe, U as g, V as M, p as z, W as B } from "./main-C2Q8_T2Y.js";
2
2
  function W(t, a) {
3
3
  var n = Object.keys(t);
4
4
  if (Object.getOwnPropertySymbols) {
@@ -38,7 +38,7 @@ function _(t) {
38
38
  function ge(t) {
39
39
  return $e(t) || fe(t);
40
40
  }
41
- function Z(t, a, n) {
41
+ function J(t, a, n) {
42
42
  let e = t;
43
43
  const s = a.split(".");
44
44
  for (let u = 0; u < s.length; u++) {
@@ -48,22 +48,22 @@ function Z(t, a, n) {
48
48
  return e;
49
49
  }
50
50
  function T(t, a, n) {
51
- return h(() => t.some((e) => Z(a, e, {
51
+ return h(() => t.some((e) => J(a, e, {
52
52
  [n]: !1
53
53
  })[n]));
54
54
  }
55
55
  function H(t, a, n) {
56
56
  return h(() => t.reduce((e, s) => {
57
- const u = Z(a, s, {
57
+ const u = J(a, s, {
58
58
  [n]: !1
59
59
  })[n] || [];
60
60
  return e.concat(u);
61
61
  }, []));
62
62
  }
63
- function q(t, a, n, e) {
63
+ function X(t, a, n, e) {
64
64
  return t.call(e, g(a), g(n), e);
65
65
  }
66
- function J(t) {
66
+ function Y(t) {
67
67
  return t.$valid !== void 0 ? !t.$valid : !t;
68
68
  }
69
69
  function me(t, a, n, e, s, u, m) {
@@ -73,17 +73,17 @@ function me(t, a, n, e, s, u, m) {
73
73
  } = s, l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], f = arguments.length > 8 ? arguments[8] : void 0, $ = arguments.length > 9 ? arguments[9] : void 0, p = arguments.length > 10 ? arguments[10] : void 0;
74
74
  const v = O(!!e.value), r = O(0);
75
75
  n.value = !1;
76
- const c = P([a, e].concat(l, p), () => {
76
+ const c = C([a, e].concat(l, p), () => {
77
77
  if (i && !e.value || d && !$.value && !n.value)
78
78
  return;
79
79
  let o;
80
80
  try {
81
- o = q(t, a, f, m);
81
+ o = X(t, a, f, m);
82
82
  } catch (y) {
83
83
  o = Promise.reject(y);
84
84
  }
85
85
  r.value++, n.value = !!r.value, v.value = !1, Promise.resolve(o).then((y) => {
86
- r.value--, n.value = !!r.value, u.value = y, v.value = J(y);
86
+ r.value--, n.value = !!r.value, u.value = y, v.value = Y(y);
87
87
  }).catch((y) => {
88
88
  r.value--, n.value = !!r.value, u.value = y, v.value = !0;
89
89
  });
@@ -106,8 +106,8 @@ function he(t, a, n, e, s, u, m, i) {
106
106
  return !1;
107
107
  let p = !0;
108
108
  try {
109
- const v = q(t, a, m, u);
110
- s.value = v, p = J(v);
109
+ const v = X(t, a, m, u);
110
+ s.value = v, p = Y(v);
111
111
  } catch (v) {
112
112
  s.value = v;
113
113
  }
@@ -307,8 +307,8 @@ function S(t) {
307
307
  return e ? R ? g(R[e]) : void 0 : R;
308
308
  }), N = Oe($, o, e, m, f, c, d, F, n), b = Ee(p, o, f, m, c, d, F), k = {};
309
309
  r && Object.entries(r).forEach((R) => {
310
- let [C, E] = R;
311
- k[C] = {
310
+ let [P, E] = R;
311
+ k[P] = {
312
312
  $invalid: T(E, b, "$invalid"),
313
313
  $error: T(E, b, "$error"),
314
314
  $pending: T(E, b, "$pending"),
@@ -331,11 +331,11 @@ function S(t) {
331
331
  get: () => g(o),
332
332
  set: (R) => {
333
333
  V.value = !0;
334
- const C = g(n), E = g(l);
335
- E && (E[e] = y[e]), A(C[e]) ? C[e].value = R : C[e] = R;
334
+ const P = g(n), E = g(l);
335
+ E && (E[e] = y[e]), A(P[e]) ? P[e].value = R : P[e] = R;
336
336
  }
337
337
  }) : null;
338
- e && c.$autoDirty && P(o, () => {
338
+ e && c.$autoDirty && C(o, () => {
339
339
  V.value || I();
340
340
  const R = g(l);
341
341
  R && (R[e] = y[e]);
@@ -343,10 +343,10 @@ function S(t) {
343
343
  flush: "sync"
344
344
  });
345
345
  async function le() {
346
- return I(), c.$rewardEarly && (G(), await M()), await M(), new Promise((R) => {
346
+ return I(), c.$rewardEarly && (G(), await B()), await B(), new Promise((R) => {
347
347
  if (!L.value) return R(!x.value);
348
- const C = P(L, () => {
349
- R(!x.value), C();
348
+ const P = C(L, () => {
349
+ R(!x.value), P();
350
350
  });
351
351
  });
352
352
  }
@@ -409,8 +409,8 @@ class be {
409
409
  const j = {
410
410
  COLLECT_ALL: !0,
411
411
  COLLECT_NONE: !1
412
- }, Q = Symbol("vuelidate#injectChildResults"), X = Symbol("vuelidate#removeChildResults");
413
- function Ce(t) {
412
+ }, K = Symbol("vuelidate#injectChildResults"), Q = Symbol("vuelidate#removeChildResults");
413
+ function Pe(t) {
414
414
  let {
415
415
  $scope: a,
416
416
  instance: n
@@ -429,23 +429,23 @@ function Ce(t) {
429
429
  s.value = s.value.filter(($) => $ !== f), delete e[f];
430
430
  }
431
431
  n.__vuelidateRemoveInstances = [].concat(n.__vuelidateRemoveInstances || [], i);
432
- const d = z(Q, []);
433
- B(Q, n.__vuelidateInjectInstances);
434
- const l = z(X, []);
435
- return B(X, n.__vuelidateRemoveInstances), {
432
+ const d = M(K, []);
433
+ z(K, n.__vuelidateInjectInstances);
434
+ const l = M(Q, []);
435
+ return z(Q, n.__vuelidateRemoveInstances), {
436
436
  childResults: u,
437
437
  sendValidationResultsToParent: d,
438
438
  removeValidationResultsFromParent: l
439
439
  };
440
440
  }
441
- function K(t) {
441
+ function Z(t) {
442
442
  return new Proxy(t, {
443
443
  get(a, n) {
444
- return typeof a[n] == "object" ? K(a[n]) : h(() => a[n]);
444
+ return typeof a[n] == "object" ? Z(a[n]) : h(() => a[n]);
445
445
  }
446
446
  });
447
447
  }
448
- let Y = 0;
448
+ let q = 0;
449
449
  function je(t, a) {
450
450
  var n;
451
451
  let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -458,12 +458,12 @@ function je(t, a) {
458
458
  currentVueInstance: d
459
459
  } = e;
460
460
  const l = d || ((n = ie()) === null || n === void 0 ? void 0 : n.proxy), f = l ? l.$options : {};
461
- s || (Y += 1, s = `_vuelidate_${Y}`);
461
+ s || (q += 1, s = `_vuelidate_${q}`);
462
462
  const $ = O({}), p = new be(), {
463
463
  childResults: v,
464
464
  sendValidationResultsToParent: r,
465
465
  removeValidationResultsFromParent: c
466
- } = l ? Ce({
466
+ } = l ? Pe({
467
467
  $scope: u,
468
468
  instance: l
469
469
  }) : {
@@ -472,7 +472,7 @@ function je(t, a) {
472
472
  if (!t && f.validations) {
473
473
  const o = f.validations;
474
474
  a = O({}), ce(() => {
475
- a.value = l, P(() => _(o) ? o.call(a.value, new K(a.value)) : o, (y) => {
475
+ a.value = l, C(() => _(o) ? o.call(a.value, new Z(a.value)) : o, (y) => {
476
476
  $.value = S({
477
477
  validations: y,
478
478
  state: a,
@@ -488,7 +488,7 @@ function je(t, a) {
488
488
  }), e = f.validationsConfig || e;
489
489
  } else {
490
490
  const o = A(t) || ge(t) ? t : D(t || {});
491
- P(o, (y) => {
491
+ C(o, (y) => {
492
492
  $.value = S({
493
493
  validations: y,
494
494
  state: a,
@@ -1,4 +1,4 @@
1
- import { m as C, a as f, g as b, at as $, au as w, _ as T, e as h, ac as D, o as i, b as s, s as n, d, v as a, F as L, k as N, H as B, f as l, O as I, av as u } from "./main-q_EWffDQ.js";
1
+ import { m as C, a as f, g as b, au as $, av as w, _ as T, e as h, aa as D, o as i, b as s, j as n, d, t as a, F as L, G as N, x as I, f as l, I as B, aw as u } from "./main-C2Q8_T2Y.js";
2
2
  const E = {
3
3
  name: "ClientLinks",
4
4
  emits: ["close"],
@@ -64,17 +64,17 @@ const E = {
64
64
  }, S = {
65
65
  class: "font-inter",
66
66
  style: { "background-color": "white", "border-radius": "10px", overflow: "hidden" }
67
- }, O = { style: { padding: "40px 30px", position: "relative" } }, V = { style: { padding: "0 0 2.5em" } }, z = ["textContent"], F = ["textContent"], M = ["textContent"], R = { style: { padding: "4px 6px 8px 6px" } }, j = { class: "client-title w-full truncate" }, q = {
67
+ }, V = { style: { padding: "40px 30px", position: "relative" } }, j = { style: { padding: "0 0 2.5em" } }, z = ["textContent"], F = ["textContent"], M = ["textContent"], O = { style: { padding: "4px 6px 8px 6px" } }, R = { class: "client-title w-full truncate" }, q = {
68
68
  key: 0,
69
69
  style: { opacity: "0.5", "padding-left": "0.125ch" }
70
70
  }, P = ["textContent"], A = ["href"], G = {
71
71
  key: 1,
72
72
  style: { padding: "0 0.5ch" }
73
- }, H = ["href"], K = { style: { display: "flex", position: "relative" } }, U = ["value", "placeholder"], W = { class: "x-hint" }, J = ["textContent"];
73
+ }, K = ["href"], U = { style: { display: "flex", position: "relative" } }, W = ["value", "placeholder"], H = { class: "x-hint" }, J = ["textContent"];
74
74
  function Q(t, o, y, p, c, r) {
75
- const k = h("CButton"), _ = h("CPhoneFormat"), m = h("CIcon"), v = D("tooltip");
75
+ const k = h("CButton"), _ = h("CPhoneFormat"), m = h("CIcon"), g = D("tooltip");
76
76
  return i(), s("div", S, [
77
- n("div", O, [
77
+ n("div", V, [
78
78
  d(k, {
79
79
  icon: "x",
80
80
  circle: "",
@@ -82,7 +82,7 @@ function Q(t, o, y, p, c, r) {
82
82
  style: { position: "absolute", right: "1em", top: "1em", color: "hsl(0, 0%, 55%)" },
83
83
  onClick: o[0] || (o[0] = (e) => t.$emit("close"))
84
84
  }),
85
- n("div", V, [
85
+ n("div", j, [
86
86
  n("div", {
87
87
  class: "x-title",
88
88
  textContent: a(t.$t("title"))
@@ -92,13 +92,13 @@ function Q(t, o, y, p, c, r) {
92
92
  textContent: a(t.$t("text"))
93
93
  }, null, 8, F)
94
94
  ]),
95
- r.clients.length ? (i(!0), s(L, { key: 1 }, N(r.clients, (e, g) => (i(), s("div", {
96
- key: g,
95
+ r.clients.length ? (i(!0), s(L, { key: 1 }, N(r.clients, (e, v) => (i(), s("div", {
96
+ key: v,
97
97
  class: "client-card"
98
98
  }, [
99
- n("div", R, [
100
- n("div", j, [
101
- B(a(e.primaryTitle) + " ", 1),
99
+ n("div", O, [
100
+ n("div", R, [
101
+ I(a(e.primaryTitle) + " ", 1),
102
102
  e.secondaryTitle ? (i(), s("span", q, "· " + a(e.secondaryTitle), 1)) : l("", !0)
103
103
  ]),
104
104
  e.documentRole ? (i(), s("div", {
@@ -119,10 +119,10 @@ function Q(t, o, y, p, c, r) {
119
119
  phone: e.cellphone,
120
120
  region: e.cellphoneRegion
121
121
  }, null, 8, ["phone", "region"])
122
- ], 8, H)) : l("", !0)
122
+ ], 8, K)) : l("", !0)
123
123
  ])
124
124
  ]),
125
- n("div", K, [
125
+ n("div", U, [
126
126
  n("input", {
127
127
  ref_for: !0,
128
128
  ref: "key",
@@ -131,8 +131,8 @@ function Q(t, o, y, p, c, r) {
131
131
  type: "text",
132
132
  readonly: "readonly",
133
133
  class: "link-field w-full truncate"
134
- }, null, 8, U),
135
- I((i(), s("div", {
134
+ }, null, 8, W),
135
+ B((i(), s("div", {
136
136
  class: "clipboard-button",
137
137
  onClick: o[1] || (o[1] = (...x) => r.copyToClipboard && r.copyToClipboard(...x))
138
138
  }, [
@@ -142,7 +142,7 @@ function Q(t, o, y, p, c, r) {
142
142
  style: { "pointer-events": "none" }
143
143
  })
144
144
  ])), [
145
- [v, t.$t("tooltip")]
145
+ [g, t.$t("tooltip")]
146
146
  ])
147
147
  ])
148
148
  ]))), 128)) : (i(), s("div", {
@@ -150,7 +150,7 @@ function Q(t, o, y, p, c, r) {
150
150
  style: { padding: "2em", "font-size": "14px", "text-align": "center", color: "hsl(0, 0%, 55%)", border: "1px solid hsl(0, 0%, 88%)", "border-radius": "6px" },
151
151
  textContent: a(t.$t("placeholder"))
152
152
  }, null, 8, M)),
153
- n("div", W, [
153
+ n("div", H, [
154
154
  d(m, {
155
155
  type: "info",
156
156
  size: "16",
@@ -1,4 +1,4 @@
1
- import { j as n } from "./main-q_EWffDQ.js";
1
+ import { U as n } from "./main-C2Q8_T2Y.js";
2
2
  const i = (e) => {
3
3
  if (e = n(e), Array.isArray(e)) return !!e.length;
4
4
  if (e == null)
@@ -120,7 +120,7 @@ a(p);
120
120
  function y(e) {
121
121
  return (r) => !i(r) || (!/\s/.test(r) || r instanceof Date) && +r >= +n(e);
122
122
  }
123
- function j(e) {
123
+ function I(e) {
124
124
  return {
125
125
  $validator: y(e),
126
126
  $message: (r) => {
@@ -140,7 +140,7 @@ a(/^[-]?\d*(\.\d+)?$/);
140
140
  export {
141
141
  S as a,
142
142
  q as b,
143
- j as c,
143
+ I as c,
144
144
  A as e,
145
145
  L as m,
146
146
  b as n,
@@ -1,11 +1,11 @@
1
- import { h as I, bh as q, R as V, e as r, j as w, o, b as f, s as i, K as $, c as g, ad as k, bi as L, f as C, w as p, L as N, _ as x, ai as P, S as G, m as D, a as B, g as T, y as b, d as m, H as M, v as _, a7 as O, aj as R, F as j, k as z, n as U } from "./main-q_EWffDQ.js";
2
- import { i as H } from "./DocumentLayout-CkNcKcB_.js";
3
- import { _ as W } from "./CFormField.vue_vue_type_script_setup_true_lang-DzcNo15Q.js";
4
- import { B as A } from "./DocTextEditor-BVba4QPz.js";
5
- import { u as K } from "./index-CFD_4fv_.js";
6
- import { r as F, b as J } from "./index-BIWUM14f.js";
7
- import { S as Q } from "./SmartList-7RooD2fY.js";
8
- import { w as X } from "./CDropdownItem-BWmAQwpG.js";
1
+ import { aj as I, bi as q, L as V, e as r, U as w, o as a, b as f, j as i, B as $, c as g, ab as k, bj as L, f as C, w as p, D as N, _ as M, ag as P, S as G, m as D, a as F, g as T, k as b, d as m, x, t as _, a5 as O, ah as j, F as U, G as z, y as R } from "./main-C2Q8_T2Y.js";
2
+ import { i as H } from "./DocumentLayout-DaVz9SGF.js";
3
+ import { _ as W } from "./CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js";
4
+ import { B as A } from "./DocTextEditor-DeZtzbgm.js";
5
+ import { u as J } from "./index-B86TZXOh.js";
6
+ import { r as B, b as K } from "./index-BH5vwOzR.js";
7
+ import { S as Q } from "./SmartList-B36ffGAZ.js";
8
+ import { w as X } from "./CDropdownItem-B5rgSee7.js";
9
9
  const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-container" }, te = /* @__PURE__ */ I({
10
10
  __name: "ContextModal",
11
11
  props: {
@@ -13,18 +13,18 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
13
13
  },
14
14
  emits: ["show", "hide"],
15
15
  setup(e, { emit: t }) {
16
- const v = t, { rootChild: u } = q(), s = V(!1), a = () => {
16
+ const v = t, { rootChild: u } = q(), s = V(!1), o = () => {
17
17
  s.value = !0, v("show");
18
18
  }, n = () => {
19
19
  s.value = !1, v("hide");
20
20
  };
21
21
  return (d, c) => {
22
22
  const h = r("VDropdown");
23
- return w(H) ? (o(), f("div", Y, [
24
- i("div", { onClick: a }, [
23
+ return w(H) ? (a(), f("div", Y, [
24
+ i("div", { onClick: o }, [
25
25
  $(d.$slots, "default", {}, void 0, !0)
26
26
  ]),
27
- s.value ? (o(), g(L, {
27
+ s.value ? (a(), g(L, {
28
28
  key: 0,
29
29
  to: w(u)
30
30
  }, [
@@ -37,18 +37,18 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
37
37
  ])
38
38
  ])
39
39
  ], 8, ["to"])) : C("", !0)
40
- ])) : (o(), g(h, N({ key: 1 }, d.$props, {
40
+ ])) : (a(), g(h, N({ key: 1 }, d.$props, {
41
41
  placement: d.placement,
42
42
  shown: s.value,
43
43
  "onUpdate:shown": c[0] || (c[0] = (y) => s.value = y),
44
44
  "popper-class": "context-modal-popper",
45
- onShow: a,
45
+ onShow: o,
46
46
  onHide: n,
47
47
  "auto-hide": !1
48
48
  }), {
49
49
  popper: p(() => [
50
50
  i("div", ee, [
51
- s.value ? (o(), g(L, {
51
+ s.value ? (a(), g(L, {
52
52
  key: 0,
53
53
  to: w(u)
54
54
  }, [
@@ -67,10 +67,10 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
67
67
  }, 16, ["placement", "shown"]));
68
68
  };
69
69
  }
70
- }), se = /* @__PURE__ */ x(te, [["__scopeId", "data-v-71def6ac"]]), { mapFields: oe } = P({
70
+ }), se = /* @__PURE__ */ M(te, [["__scopeId", "data-v-71def6ac"]]), { mapFields: ae } = P({
71
71
  getterType: "forms/getField",
72
72
  mutationType: "forms/updateField"
73
- }), ae = {
73
+ }), oe = {
74
74
  i18nOptions: {
75
75
  namespaces: "TextTemplatesForm",
76
76
  messages: {
@@ -142,16 +142,16 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
142
142
  },
143
143
  setup() {
144
144
  return {
145
- v$: K()
145
+ v$: J()
146
146
  };
147
147
  },
148
148
  validations: {
149
149
  name: {
150
- required: F,
151
- maxLength: J(255)
150
+ required: B,
151
+ maxLength: K(255)
152
152
  },
153
153
  textContent: {
154
- required: F
154
+ required: B
155
155
  }
156
156
  },
157
157
  computed: {
@@ -160,7 +160,7 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
160
160
  isFetching: "templateMessages/isFetching",
161
161
  checkFormChanged: "forms/hasChanged"
162
162
  }),
163
- ...oe({
163
+ ...ae({
164
164
  templateMessage: "templateMessage",
165
165
  name: "templateMessage.name",
166
166
  textContent: "templateMessage.message"
@@ -189,7 +189,7 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
189
189
  this.load(), this.predefinedTextContent && (this.textContent = this.predefinedTextContent);
190
190
  },
191
191
  methods: {
192
- ...B({
192
+ ...F({
193
193
  loadTemplate: T.LOAD_TEMPLATE_MESSAGE,
194
194
  deleteTemplate: T.DELETE_TEMPLATE_MESSAGE,
195
195
  formNewTemplate: T.FORM_NEW_TEMPLATE_MESSAGE,
@@ -234,22 +234,22 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
234
234
  class: "flex w-full items-center justify-center",
235
235
  style: { padding: "calc(3 * var(--rem)) 0" }
236
236
  }, ie = { key: 2 };
237
- function re(e, t, v, u, s, a) {
237
+ function re(e, t, v, u, s, o) {
238
238
  const n = r("CButton"), d = r("Spinner"), c = r("CInput"), h = r("CField"), y = r("BaseTextEditor");
239
- return o(), f("div", ne, [
240
- v.showFixedCloseButton ? (o(), g(n, {
239
+ return a(), f("div", ne, [
240
+ v.showFixedCloseButton ? (a(), g(n, {
241
241
  key: 0,
242
242
  class: "fixed-close-button",
243
243
  circle: "",
244
244
  icon: "x",
245
245
  onClick: t[0] || (t[0] = (l) => e.$emit("close"))
246
246
  })) : C("", !0),
247
- e.isFetching ? (o(), f("div", le, [
247
+ e.isFetching ? (a(), f("div", le, [
248
248
  m(d)
249
- ])) : e.templateMessage !== void 0 ? (o(), f("form", ie, [
249
+ ])) : e.templateMessage !== void 0 ? (a(), f("form", ie, [
250
250
  m(h, {
251
251
  validator: u.v$.name,
252
- messages: a.messages.name,
252
+ messages: o.messages.name,
253
253
  label: e.$t("name.label")
254
254
  }, {
255
255
  default: p(() => [
@@ -264,7 +264,7 @@ function re(e, t, v, u, s, a) {
264
264
  }, 8, ["validator", "messages", "label"]),
265
265
  m(h, {
266
266
  validator: u.v$.textContent,
267
- messages: a.messages.textContent,
267
+ messages: o.messages.textContent,
268
268
  label: e.$t("textLabel")
269
269
  }, {
270
270
  default: p(() => [
@@ -280,36 +280,36 @@ function re(e, t, v, u, s, a) {
280
280
  }, 8, ["validator", "messages", "label"]),
281
281
  m(n, {
282
282
  loading: e.isPosting,
283
- disabled: !a.hasChanged,
283
+ disabled: !o.hasChanged,
284
284
  type: "secondary",
285
285
  style: { "margin-top": "calc(1 * var(--rem))" },
286
286
  icon: "save",
287
287
  wide: "",
288
- onClick: t[5] || (t[5] = (l) => a.validateBeforeSubmit())
288
+ onClick: t[5] || (t[5] = (l) => o.validateBeforeSubmit())
289
289
  }, {
290
290
  default: p(() => [
291
- M(_(e.$t("_common:save")), 1)
291
+ x(_(e.$t("_common:save")), 1)
292
292
  ]),
293
293
  _: 1
294
294
  }, 8, ["loading", "disabled"]),
295
- v.id ? (o(), g(n, {
295
+ v.id ? (a(), g(n, {
296
296
  key: 0,
297
297
  loading: e.isPosting,
298
298
  type: "secondary",
299
299
  pattern: "tertiary",
300
300
  style: { "margin-top": "calc(1 * var(--rem))" },
301
301
  wide: "",
302
- onClick: t[6] || (t[6] = (l) => a.remove())
302
+ onClick: t[6] || (t[6] = (l) => o.remove())
303
303
  }, {
304
304
  default: p(() => [
305
- M(_(e.$t("_common:remove")), 1)
305
+ x(_(e.$t("_common:remove")), 1)
306
306
  ]),
307
307
  _: 1
308
308
  }, 8, ["loading"])) : C("", !0)
309
309
  ])) : C("", !0)
310
310
  ]);
311
311
  }
312
- const de = /* @__PURE__ */ x(ae, [["render", re], ["__scopeId", "data-v-286de2c9"]]), me = {
312
+ const de = /* @__PURE__ */ M(oe, [["render", re], ["__scopeId", "data-v-286de2c9"]]), me = {
313
313
  name: "TextTemplatesModal",
314
314
  components: {
315
315
  SmartList: Q,
@@ -327,7 +327,7 @@ const de = /* @__PURE__ */ x(ae, [["render", re], ["__scopeId", "data-v-286de2c9
327
327
  };
328
328
  },
329
329
  computed: {
330
- ...R("templateMessages", {
330
+ ...j("templateMessages", {
331
331
  templateMessages: (e) => e.data
332
332
  }),
333
333
  templates() {
@@ -369,10 +369,10 @@ const de = /* @__PURE__ */ x(ae, [["render", re], ["__scopeId", "data-v-286de2c9
369
369
  key: 0,
370
370
  class: "t-text quill-format"
371
371
  }, ge = { key: 1 }, Ce = { class: "t-footer flex w-full items-center justify-between" };
372
- function Te(e, t, v, u, s, a) {
372
+ function Te(e, t, v, u, s, o) {
373
373
  const n = r("CInput"), d = r("BaseTextEditor"), c = r("CIcon"), h = r("CButton"), y = r("SmartList");
374
- return o(), g(y, {
375
- items: a.templates,
374
+ return a(), g(y, {
375
+ items: o.templates,
376
376
  "sort-key": "position",
377
377
  query: s.query
378
378
  }, {
@@ -393,28 +393,28 @@ function Te(e, t, v, u, s, a) {
393
393
  ]),
394
394
  i("div", ce, [
395
395
  i("div", he, [
396
- (o(!0), f(j, null, z(l, (S, E) => (o(), f("div", {
396
+ (a(!0), f(U, null, z(l, (S, E) => (a(), f("div", {
397
397
  key: S.id,
398
- class: U([{ selected: E === s.selectedIndex }, "t-list-item w-full truncate"]),
398
+ class: R([{ selected: E === s.selectedIndex }, "t-list-item w-full truncate"]),
399
399
  onMouseoverPassive: () => s.selectedIndex = E,
400
- onClick: (xe) => a.onSelect(l[s.selectedIndex].message || "")
400
+ onClick: (Me) => o.onSelect(l[s.selectedIndex].message || "")
401
401
  }, _(S.name), 43, fe))), 128))
402
402
  ]),
403
- e.mq !== "sm" ? (o(), f("div", ve, [
404
- l[s.selectedIndex] ? (o(), g(d, {
403
+ e.mq !== "sm" ? (a(), f("div", ve, [
404
+ l[s.selectedIndex] ? (a(), g(d, {
405
405
  key: 0,
406
406
  "model-value": l[s.selectedIndex].message || "",
407
407
  editable: !1,
408
408
  extensions: "all",
409
409
  "class-list": "document-form",
410
410
  unstyled: ""
411
- }, null, 8, ["model-value"])) : (o(), f("div", ge, _(e.$t("noResults")), 1))
411
+ }, null, 8, ["model-value"])) : (a(), f("div", ge, _(e.$t("noResults")), 1))
412
412
  ])) : C("", !0)
413
413
  ]),
414
414
  i("div", Ce, [
415
415
  t[2] || (t[2] = i("div", { style: { display: "inline-flex", "align-items": "center" } }, null, -1)),
416
416
  i("div", null, [
417
- u.viewContext !== "widget" ? (o(), g(h, {
417
+ u.viewContext !== "widget" ? (a(), g(h, {
418
418
  key: 0,
419
419
  to: { name: "settingsTemplates" },
420
420
  class: "t-footer-button",
@@ -422,7 +422,7 @@ function Te(e, t, v, u, s, a) {
422
422
  size: "small"
423
423
  }, {
424
424
  default: p(() => [
425
- M(_(e.$t("handle")) + " ", 1),
425
+ x(_(e.$t("handle")) + " ", 1),
426
426
  m(c, {
427
427
  type: "new-window",
428
428
  size: "16",
@@ -434,10 +434,10 @@ function Te(e, t, v, u, s, a) {
434
434
  m(h, {
435
435
  class: "t-footer-button",
436
436
  size: "small",
437
- onClick: a.openCreateModal
437
+ onClick: o.openCreateModal
438
438
  }, {
439
439
  default: p(() => [
440
- M(_(e.$t("create", { thing: e.$t("template") })), 1)
440
+ x(_(e.$t("create", { thing: e.$t("template") })), 1)
441
441
  ]),
442
442
  _: 1
443
443
  }, 8, ["onClick"])
@@ -448,7 +448,7 @@ function Te(e, t, v, u, s, a) {
448
448
  _: 1
449
449
  }, 8, ["items", "query"]);
450
450
  }
451
- const _e = /* @__PURE__ */ x(me, [["render", Te], ["__scopeId", "data-v-e354b48d"]]), ye = {
451
+ const _e = /* @__PURE__ */ M(me, [["render", Te], ["__scopeId", "data-v-e354b48d"]]), ye = {
452
452
  name: "TextTemplates",
453
453
  components: {
454
454
  ContextModal: se,
@@ -465,14 +465,14 @@ const _e = /* @__PURE__ */ x(me, [["render", Te], ["__scopeId", "data-v-e354b48d
465
465
  this.loadTemplateMessages();
466
466
  },
467
467
  methods: {
468
- ...B({
468
+ ...F({
469
469
  loadTemplateMessages: T.LOAD_TEMPLATE_MESSAGES
470
470
  })
471
471
  }
472
472
  }, Se = { class: "t-list" }, $e = { class: "t-option main" };
473
- function Me(e, t, v, u, s, a) {
473
+ function xe(e, t, v, u, s, o) {
474
474
  const n = r("TextTemplatesModal"), d = r("ContextModal");
475
- return o(), f("div", Se, [
475
+ return a(), f("div", Se, [
476
476
  m(d, {
477
477
  "break-point": 1e3,
478
478
  placement: v.placement,
@@ -494,7 +494,7 @@ function Me(e, t, v, u, s, a) {
494
494
  }, 8, ["placement"])
495
495
  ]);
496
496
  }
497
- const Ie = /* @__PURE__ */ x(ye, [["render", Me]]);
497
+ const Ie = /* @__PURE__ */ M(ye, [["render", xe]]);
498
498
  export {
499
499
  Ie as default
500
500
  };