@cling-se/widget 0.21.4 → 0.22.2

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 (129) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{AddClientCallout-BjeE7RY6.js → AddClientCallout-CtfDZ5iE.js} +7 -7
  3. package/dist/{AnswerModal-BLo3hOrK.js → AnswerModal-DER90JgH.js} +935 -651
  4. package/dist/{AttachmentItem-B4T7akns.js → AttachmentItem-CFxoxFwU.js} +9 -9
  5. package/dist/{BaseUpload-B-_Rpir0.js → BaseUpload-D3vsnEbC.js} +2 -2
  6. package/dist/{BlockMedia-szLlyTVn.js → BlockMedia-CrmRCTpi.js} +1 -1
  7. package/dist/{CCallout-wp8bWld3.js → CCallout-B86E6HJd.js} +5 -5
  8. package/dist/{CCurrencyDropdown-CH0M7LFZ.js → CCurrencyDropdown-B2L-Pv3G.js} +3 -3
  9. package/dist/{CDropdownItem-llOP71-u.js → CDropdownItem-BU65rYaX.js} +8 -8
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-B2c0pGnW.js → CFormField.vue_vue_type_script_setup_true_lang-d4-FghaL.js} +13 -13
  11. package/dist/{CPhoneFormat-BqLsCDaG.js → CPhoneFormat-CSys3pPM.js} +1 -1
  12. package/dist/{CPhoneInput-DDnmhr17.js → CPhoneInput-hF_VGitf.js} +5 -5
  13. package/dist/{CPriceInput-eaRaU9Ey.js → CPriceInput-CLM3EzaL.js} +2 -2
  14. package/dist/{CSelect-DDYAe8O9.js → CSelect-DsoRaNYd.js} +5 -5
  15. package/dist/{CSkeleton-BORdEFf8.js → CSkeleton-B0wL3--W.js} +7 -7
  16. package/dist/{ClientAutocomplete-DAwttq8D.js → ClientAutocomplete-qkpa-KG_.js} +16 -16
  17. package/dist/{ClientModal-C3UbUFjz.js → ClientModal-BHUD-VYM.js} +135 -127
  18. package/dist/{ColorPicker-D4Y4g8RF.js → ColorPicker-uVefUdOd.js} +21 -21
  19. package/dist/{CompanyModal-BvzLn9gU.js → CompanyModal-C38jvSZX.js} +66 -67
  20. package/dist/{ContentWrapper-oh1FnZea.js → ContentWrapper-Du0rszAK.js} +15 -15
  21. package/dist/{CoverBlockSettings-CW7PisRO.js → CoverBlockSettings-DqKNt5cM.js} +19 -19
  22. package/dist/{DocAnswer-scOVyvez.js → DocAnswer-Bm6FQnu7.js} +2 -2
  23. package/dist/{DocDetails-BKudQ3RU.js → DocDetails-Cg1EQ2xc.js} +100 -94
  24. package/dist/{DocForm-YI0UG4lv.js → DocForm-DUjeY7qQ.js} +440 -438
  25. package/dist/{DocFormSend-DK7zxycs.js → DocFormSend-B8x93Oo_.js} +2 -2
  26. package/dist/{DocLinks-CPhh8hox.js → DocLinks-bnZCCfQJ.js} +2 -2
  27. package/dist/{DocModalBase-C7vrvkFq.js → DocModalBase-CwuAA5_c.js} +1 -1
  28. package/dist/{DocPrint-tfB_Hw8V.js → DocPrint-DkmwNCYi.js} +9 -9
  29. package/dist/{DocReceipt-DoWB1suw.js → DocReceipt-BzrwYz7z.js} +111 -81
  30. package/dist/{DocSendReminder-DcezTbmh.js → DocSendReminder--ZuTWwRa.js} +1 -1
  31. package/dist/{DocTextEditor-Ci_Wegua.js → DocTextEditor-CblX6a9b.js} +8 -8
  32. package/dist/{DocTimeline-DwZyNRtc.js → DocTimeline-C3cx2eIz.js} +6 -6
  33. package/dist/{DocumentClient-BZPHT4vS.js → DocumentClient-B9yEPQ1U.js} +5 -5
  34. package/dist/{DocumentLayout-DwifYYit.js → DocumentLayout-BMgU3m7Q.js} +32 -32
  35. package/dist/{DocumentLogotype-D6DPT-i9.js → DocumentLogotype-BBA1HLK3.js} +31 -34
  36. package/dist/{DocumentVoided--b4zfli2.js → DocumentVoided-AL_vXoWD.js} +1 -1
  37. package/dist/{EmbedInput-DmAlziaD.js → EmbedInput-BHy9NMjl.js} +18 -18
  38. package/dist/{EmbedSettings-DZuM3vpE.js → EmbedSettings-DwcY0r8D.js} +5 -5
  39. package/dist/{ErrorCallout-DT3qQJOP.js → ErrorCallout-DKV9zW1H.js} +4 -4
  40. package/dist/{FilePreviewModal-BuPbzrFy.js → FilePreviewModal-DEoFvxri.js} +2 -2
  41. package/dist/{Flag-U3wm6frF.js → Flag-BZ7C12iN.js} +1 -1
  42. package/dist/{HeaderSettings-CC5rJ-UY.js → HeaderSettings-Bsj1JZNt.js} +20 -20
  43. package/dist/{ImageSelectModal-BiWCVyYs.js → ImageSelectModal-Dd9le6p5.js} +3 -3
  44. package/dist/{ImageUploadWrapper-CLJwtgVQ.js → ImageUploadWrapper-DY9TKhpB.js} +23 -23
  45. package/dist/{Index-DZzmEObV.js → Index-4ZB096MF.js} +9 -9
  46. package/dist/{Index-B0js1lQ9.js → Index-B1HU3FW8.js} +11 -11
  47. package/dist/{Index-hzFkpPtu.js → Index-B3S-W2Du.js} +26 -26
  48. package/dist/{Index-cb83jmmP.js → Index-B8v_k79U.js} +4 -4
  49. package/dist/{Index-jCDreJV4.js → Index-BPua2gSJ.js} +5 -5
  50. package/dist/{Index-UkLmXQf7.js → Index-BSDQejtT.js} +10 -10
  51. package/dist/{Index-Bh58_V98.js → Index-BW4sv9So.js} +5 -5
  52. package/dist/{Index-gZpXuLSM.js → Index-BWog4DkS.js} +2 -2
  53. package/dist/{Index-DIfpkUtR.js → Index-BZ5ZfAMl.js} +8 -8
  54. package/dist/Index-BfMZgBeX.js +4 -0
  55. package/dist/{Index-BBnlZtoe.js → Index-Bx8Dt9rr.js} +5 -5
  56. package/dist/{Index-BQUdVuCj.js → Index-C9W7656O.js} +8 -8
  57. package/dist/{Index-DwAyOR71.js → Index-CB7F-c3z.js} +3 -3
  58. package/dist/{Index-ZNidoNys.js → Index-CEg8sUf6.js} +2 -2
  59. package/dist/{Index-z6FhBfRg.js → Index-CEm7_7xb.js} +2 -2
  60. package/dist/{Index-011UWI-5.js → Index-CGDHE6Q9.js} +3 -3
  61. package/dist/{Index-Dmd9h-QW.js → Index-CadObAqC.js} +3 -3
  62. package/dist/{Index-C-Y_FGIG.js → Index-Cazuortx.js} +30 -30
  63. package/dist/{Index-BPE5xozF.js → Index-Cfh_uoVu.js} +1 -1
  64. package/dist/{Index-D8T4ZAGK.js → Index-D9S6btwh.js} +4 -4
  65. package/dist/{Index-BOxSyAOT.js → Index-DCeSSD89.js} +4 -4
  66. package/dist/{Index-C8tXlpnc.js → Index-DLzhjgNh.js} +4 -4
  67. package/dist/{Index-BbINQ0SU.js → Index-Da3NMw99.js} +1 -1
  68. package/dist/{Index-06RLiHU7.js → Index-DiQG7Yys.js} +8 -8
  69. package/dist/{Index-DND_3eOV.js → Index-DkuudM32.js} +14 -14
  70. package/dist/{Index-C6eCTYlb.js → Index-DpNsBSK5.js} +7 -7
  71. package/dist/{Index-BNrnEteM.js → Index-DsAM46X9.js} +6 -6
  72. package/dist/{Index-BZ3G8u4L.js → Index-IOHmUaDV.js} +16 -16
  73. package/dist/{Index-HpvIqyQK.js → Index-N95Kg_Bu.js} +4 -4
  74. package/dist/Index-T8YnqXUP.js +106 -0
  75. package/dist/{Index-C9yjlO_o.js → Index-bSfn5DlT.js} +13 -13
  76. package/dist/{Index-AOzEiDJ6.js → Index-hOzI3WwH.js} +2 -2
  77. package/dist/{Index-Lr-w-2nq.js → Index-lxyzCTwv.js} +28 -28
  78. package/dist/{Index-DspgGnIy.js → Index-usMDK34R.js} +6 -6
  79. package/dist/{Index.vue_vue_type_script_lang-FRTEgjSK.js → Index.vue_vue_type_script_lang-CyrjCnmM.js} +2 -2
  80. package/dist/{InputToggleRow-DrAFt_YF.js → InputToggleRow-DX08yhB8.js} +9 -9
  81. package/dist/{ManualPopover-BZr_lfqJ.js → ManualPopover-DjkDQLEk.js} +3 -3
  82. package/dist/{MediaWrapper-CuCltxOM.js → MediaWrapper-BRDS1uEY.js} +3 -3
  83. package/dist/{NotBindingText-D6QNyf03.js → NotBindingText-gttVLkSY.js} +2 -2
  84. package/dist/{PackageGroup-DonphykF.js → PackageGroup-DqCNizOl.js} +10 -10
  85. package/dist/{PdfTerms-BRwmINkR.js → PdfTerms-9EF-oTZV.js} +4 -4
  86. package/dist/{PdfViewer-DpmlfAfl.js → PdfViewer-fgokwyxy.js} +27 -27
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BeenXnHV.js → PlainHtml.vue_vue_type_script_setup_true_lang-wz4hWvo8.js} +1 -1
  88. package/dist/{PriceHeader-Cdh8apAZ.js → PriceHeader-DBiTZGL4.js} +25 -25
  89. package/dist/{SearchApi-B2ED3FdK.js → SearchApi-DP2NKS7Z.js} +1 -1
  90. package/dist/{SendForm-Bz1AN65o.js → SendForm-Dx-meiU3.js} +451 -421
  91. package/dist/{Setup-BIa-5REE.js → Setup-KZckFxmn.js} +1 -1
  92. package/dist/{SmartList-C9DXNnNX.js → SmartList-C7tf3UFs.js} +1 -1
  93. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DPxTkygS.js → Sortable.vue_vue_type_script_setup_true_lang-CKwuc60B.js} +35 -35
  94. package/dist/{TermsSettings-BQC-y2g4.js → TermsSettings-O43bydwI.js} +11 -11
  95. package/dist/{ThemeColorRow-B1L2qfGx.js → ThemeColorRow-BiIviRnJ.js} +5 -5
  96. package/dist/{ToggleBinding-C2ct7wmC.js → ToggleBinding-DNh6J5WO.js} +4 -4
  97. package/dist/{UploadModal-CCy7i-cN.js → UploadModal-BLnwHEtM.js} +2 -2
  98. package/dist/{VideoPlayerInput-BluC_uCy.js → VideoPlayerInput-CDSsWKbt.js} +6 -6
  99. package/dist/{VideoPlayerSettings-DvoFmiks.js → VideoPlayerSettings-9e0rWXBn.js} +6 -6
  100. package/dist/{VideoSelectModal-yfI6keDu.js → VideoSelectModal-DdmGQUJs.js} +9 -9
  101. package/dist/{focusDrawerMixin-BS0v03Pf.js → focusDrawerMixin-Cz1mPbI5.js} +1 -1
  102. package/dist/{formDrawerState-DNNzOR3a.js → formDrawerState-VO67JhNj.js} +1 -1
  103. package/dist/{fortnoxTheme-DbdQ_k4_.js → fortnoxTheme-C6LfSfkU.js} +1 -1
  104. package/dist/{helpers-vOT4bDZk.js → helpers-DdvMGJyI.js} +1 -1
  105. package/dist/{index-aqgR0F9F.js → index--tMYYuEo.js} +30 -30
  106. package/dist/{index-C_k-2pHu.js → index-BtdoM5zU.js} +7 -7
  107. package/dist/{index-BinehglS.js → index-C6t6B42B.js} +26 -25
  108. package/dist/{index-DIxSHthq.js → index-CYrm4Bbf.js} +1 -1
  109. package/dist/{index-DSDwk2v_.js → index-Cn5TO9wL.js} +6 -6
  110. package/dist/{index-Cm9MF5Ro.js → index-DrxPFi0q.js} +22 -22
  111. package/dist/{index-BtZlk67X.js → index-SreRcZHY.js} +13 -13
  112. package/dist/index.es.js +3 -3
  113. package/dist/index.umd.js +151 -149
  114. package/dist/{main-CCA1EgK_.js → main-BI2UvBxx.js} +8359 -8142
  115. package/dist/{mapFormMixin-DarsdTYn.js → mapFormMixin-DmIyfVCN.js} +2 -2
  116. package/dist/omit-FBv_EXqi.js +56 -0
  117. package/dist/{splitpanes-B5GGsG65.js → splitpanes-CpTZw8TJ.js} +1 -1
  118. package/dist/{template-BTmi3cQk.js → template-B4OhhS85.js} +1 -1
  119. package/dist/{tippy.esm-Cc-sUEuY.js → tippy.esm-D5nfFX7g.js} +66 -66
  120. package/dist/{useTermsModal-CdnGQsw8.js → useTermsModal-CvdV0cT0.js} +4 -4
  121. package/dist/{utils-DLVtsRRz.js → utils-Blt-S487.js} +1 -1
  122. package/dist/validation-ZZ0eQUj2.js +40 -0
  123. package/dist/widget.css +1 -1
  124. package/package.json +1 -1
  125. package/dist/Index-1MRJMA0V.js +0 -4
  126. package/dist/Index-DGkk540X.js +0 -87
  127. package/dist/omit-sqUJ46Re.js +0 -56
  128. package/dist/publicSenderState-CSYveOTQ.js +0 -21
  129. package/dist/validation-DGxGtXMe.js +0 -40
@@ -1,4 +1,4 @@
1
- import { d as m, o as f, W as k, b as S, j as h, f as v, u as R, c4 as ee, t as Y, x as J, e as p, c as U, v as T, _ as te } from "./main-CCA1EgK_.js";
1
+ import { d as m, o as f, X as k, b as S, j as h, f as v, v as R, c5 as ee, t as Y, y as J, e as p, c as U, x as T, _ as te } from "./main-BI2UvBxx.js";
2
2
  const re = "";
3
3
  function H(e, t) {
4
4
  t === void 0 && (t = {});
@@ -454,14 +454,14 @@ function ye(e) {
454
454
  a: r
455
455
  };
456
456
  }
457
- var Ce = "[-\\+]?\\d+%?", _e = "[-\\+]?\\d*\\.\\d+%?", C = "(?:".concat(_e, ")|(?:").concat(Ce, ")"), $ = "[\\s|\\(]+(".concat(C, ")[,|\\s]+(").concat(C, ")[,|\\s]+(").concat(C, ")\\s*\\)?"), j = "[\\s|\\(]+(".concat(C, ")[,|\\s]+(").concat(C, ")[,|\\s]+(").concat(C, ")[,|\\s]+(").concat(C, ")\\s*\\)?"), b = {
457
+ var Ce = "[-\\+]?\\d+%?", _e = "[-\\+]?\\d*\\.\\d+%?", C = "(?:".concat(_e, ")|(?:").concat(Ce, ")"), X = "[\\s|\\(]+(".concat(C, ")[,|\\s]+(").concat(C, ")[,|\\s]+(").concat(C, ")\\s*\\)?"), $ = "[\\s|\\(]+(".concat(C, ")[,|\\s]+(").concat(C, ")[,|\\s]+(").concat(C, ")[,|\\s]+(").concat(C, ")\\s*\\)?"), b = {
458
458
  CSS_UNIT: new RegExp(C),
459
- rgb: new RegExp("rgb" + $),
460
- rgba: new RegExp("rgba" + j),
461
- hsl: new RegExp("hsl" + $),
462
- hsla: new RegExp("hsla" + j),
463
- hsv: new RegExp("hsv" + $),
464
- hsva: new RegExp("hsva" + j),
459
+ rgb: new RegExp("rgb" + X),
460
+ rgba: new RegExp("rgba" + $),
461
+ hsl: new RegExp("hsl" + X),
462
+ hsla: new RegExp("hsla" + $),
463
+ hsv: new RegExp("hsv" + X),
464
+ hsva: new RegExp("hsva" + $),
465
465
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
466
466
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
467
467
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
@@ -682,7 +682,7 @@ var Me = (
682
682
  function y(...e) {
683
683
  return new Me(...e);
684
684
  }
685
- function W(e, t) {
685
+ function j(e, t) {
686
686
  const r = e && e.a;
687
687
  let n;
688
688
  e && e.hsl ? n = y(e.hsl) : e && e.hex && e.hex.length > 0 ? n = y(e.hex) : e && e.hsv ? n = y(e.hsv) : e && e.rgba ? n = y(e.rgba) : e && e.rgb ? n = y(e.rgb) : n = y(e), n && (n._a === void 0 || n._a === null) && n.setAlpha(r || n.getAlpha());
@@ -706,7 +706,7 @@ var Se = {
706
706
  props: ["modelValue"],
707
707
  data() {
708
708
  return {
709
- val: W(this.modelValue)
709
+ val: j(this.modelValue)
710
710
  };
711
711
  },
712
712
  computed: {
@@ -721,12 +721,12 @@ var Se = {
721
721
  },
722
722
  watch: {
723
723
  modelValue(e) {
724
- this.val = W(e);
724
+ this.val = j(e);
725
725
  }
726
726
  },
727
727
  methods: {
728
728
  colorChange(e, t) {
729
- this.oldHue = this.colors.hsl.h, this.colors = W(e, t || this.oldHue);
729
+ this.oldHue = this.colors.hsl.h, this.colors = j(e, t || this.oldHue);
730
730
  },
731
731
  isValidHex(e) {
732
732
  return y(e).isValid;
@@ -842,7 +842,7 @@ H(Le);
842
842
  F.render = Te;
843
843
  F.__file = "src/components/editable-input/editable-input.vue";
844
844
  F.install = A;
845
- function X(e, t, r) {
845
+ function W(e, t, r) {
846
846
  return t < r ? e < t ? t : e > r ? r : e : e < r ? r : e > t ? t : e;
847
847
  }
848
848
  var B = {
@@ -870,7 +870,7 @@ var B = {
870
870
  const { container: r } = this.$refs;
871
871
  if (!r)
872
872
  return;
873
- const n = r.clientWidth, a = r.clientHeight, i = r.getBoundingClientRect().left + window.pageXOffset, o = r.getBoundingClientRect().top + window.pageYOffset, s = e.pageX || (e.touches ? e.touches[0].pageX : 0), u = e.pageY || (e.touches ? e.touches[0].pageY : 0), x = X(s - i, 0, n), c = X(u - o, 0, a), l = x / n, M = X(-(c / a) + 1, 0, 1);
873
+ const n = r.clientWidth, a = r.clientHeight, i = r.getBoundingClientRect().left + window.pageXOffset, o = r.getBoundingClientRect().top + window.pageYOffset, s = e.pageX || (e.touches ? e.touches[0].pageX : 0), u = e.pageY || (e.touches ? e.touches[0].pageY : 0), x = W(s - i, 0, n), c = W(u - o, 0, a), l = x / n, M = W(-(c / a) + 1, 0, 1);
874
874
  this.onChange({
875
875
  h: this.colors.hsv.h,
876
876
  s: l,
@@ -1033,7 +1033,7 @@ const Ue = ["aria-valuenow"], Ve = /* @__PURE__ */ h(
1033
1033
  ), ze = [
1034
1034
  Ve
1035
1035
  ];
1036
- function $e(e, t, r, n, a, i) {
1036
+ function Xe(e, t, r, n, a, i) {
1037
1037
  return f(), m(
1038
1038
  "div",
1039
1039
  {
@@ -1068,9 +1068,9 @@ function $e(e, t, r, n, a, i) {
1068
1068
  /* CLASS */
1069
1069
  );
1070
1070
  }
1071
- var je = ".vc-hue{border-radius:2px;bottom:0;left:0;position:absolute;right:0;top:0}.vc-hue--horizontal{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue--vertical{background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue-container{cursor:pointer;height:100%;margin:0 2px;position:relative}.vc-hue-pointer{position:absolute;z-index:2}.vc-hue-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}";
1072
- H(je);
1073
- N.render = $e;
1071
+ var $e = ".vc-hue{border-radius:2px;bottom:0;left:0;position:absolute;right:0;top:0}.vc-hue--horizontal{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue--vertical{background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue-container{cursor:pointer;height:100%;margin:0 2px;position:relative}.vc-hue-pointer{position:absolute;z-index:2}.vc-hue-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}";
1072
+ H($e);
1073
+ N.render = Xe;
1074
1074
  N.__file = "src/components/hue/hue.vue";
1075
1075
  N.install = A;
1076
1076
  var O = {
@@ -1181,7 +1181,7 @@ var O = {
1181
1181
  }
1182
1182
  }
1183
1183
  };
1184
- const We = { class: "vc-chrome-saturation-wrap" }, Xe = { class: "vc-chrome-body" }, Pe = { class: "vc-chrome-controls" }, Ye = { class: "vc-chrome-color-wrap" }, Ge = ["aria-label"], qe = { class: "vc-chrome-sliders" }, Ke = { class: "vc-chrome-hue-wrap" }, Ze = {
1184
+ const je = { class: "vc-chrome-saturation-wrap" }, We = { class: "vc-chrome-body" }, Pe = { class: "vc-chrome-controls" }, Ye = { class: "vc-chrome-color-wrap" }, Ge = ["aria-label"], qe = { class: "vc-chrome-sliders" }, Ke = { class: "vc-chrome-hue-wrap" }, Ze = {
1185
1185
  key: 0,
1186
1186
  class: "vc-chrome-alpha-wrap"
1187
1187
  }, Je = {
@@ -1215,13 +1215,13 @@ function pt(e, t, r, n, a, i) {
1215
1215
  class: J(["vc-chrome", [r.disableAlpha ? "vc-chrome__disable-alpha" : ""]])
1216
1216
  },
1217
1217
  [
1218
- h("div", We, [
1218
+ h("div", je, [
1219
1219
  v(o, {
1220
1220
  value: e.colors,
1221
1221
  onChange: i.childChange
1222
1222
  }, null, 8, ["value", "onChange"])
1223
1223
  ]),
1224
- h("div", Xe, [
1224
+ h("div", We, [
1225
1225
  h("div", Pe, [
1226
1226
  h("div", Ye, [
1227
1227
  h("div", {
@@ -1,21 +1,20 @@
1
- import { _ as b } from "./CFormField.vue_vue_type_script_setup_true_lang-B2c0pGnW.js";
2
- import { C as U } from "./CPhoneInput-DDnmhr17.js";
3
- import { w as v } from "./CDropdownItem-llOP71-u.js";
4
- import { _ as F, m as P, aq as f, ar as S, a as M, b as r, d as N, o as y, j as d, c as V, e as z, f as i, t as h, w as m, q as I, W as _, an as $, x as O, g as l } from "./main-CCA1EgK_.js";
5
- import { u as E } from "./index-BtZlk67X.js";
6
- import { e as k, r as w } from "./index-C_k-2pHu.js";
7
- import { s as q, a as C } from "./publicSenderState-CSYveOTQ.js";
1
+ import { _ as g } from "./CFormField.vue_vue_type_script_setup_true_lang-d4-FghaL.js";
2
+ import { C as b } from "./CPhoneInput-hF_VGitf.js";
3
+ import { w as U } from "./CDropdownItem-BU65rYaX.js";
4
+ import { _ as v, m as F, aq as f, ar as S, a as P, b as r, d as M, o as y, j as d, c as N, e as V, f as l, t as h, w as n, s as z, X as I, an as _, y as $, g as i } from "./main-BI2UvBxx.js";
5
+ import { u as O } from "./index-SreRcZHY.js";
6
+ import { e as E, r as w } from "./index-BtdoM5zU.js";
8
7
  const { mapFields: R } = S({
9
8
  getterType: "forms/getField",
10
9
  mutationType: "forms/updateField"
11
- }), B = {
10
+ }), k = {
12
11
  name: "CompanyModal",
13
12
  components: {
14
- CPhoneInput: U,
15
- CField: b
13
+ CPhoneInput: b,
14
+ CField: g
16
15
  },
17
16
  emits: ["close"],
18
- mixins: [v],
17
+ mixins: [U],
19
18
  props: {
20
19
  inputFocusOnMount: {
21
20
  type: String,
@@ -28,7 +27,7 @@ const { mapFields: R } = S({
28
27
  },
29
28
  setup() {
30
29
  return {
31
- v$: E()
30
+ v$: O()
32
31
  };
33
32
  },
34
33
  data() {
@@ -41,11 +40,11 @@ const { mapFields: R } = S({
41
40
  required: w
42
41
  },
43
42
  email: {
44
- email: k
43
+ email: E
45
44
  }
46
45
  },
47
46
  computed: {
48
- ...M({
47
+ ...P({
49
48
  isPostingCompany: "companies/isPosting",
50
49
  isPostingUser: "companyUsers/isPosting",
51
50
  hasChanged: "forms/hasChanged",
@@ -96,22 +95,22 @@ const { mapFields: R } = S({
96
95
  this.$refs[this.inputFocusOnMount] ? this.$refs[this.inputFocusOnMount].$el.querySelector("input").focus() : this.$refs.name.$el.querySelector("input").focus();
97
96
  },
98
97
  methods: {
99
- ...P({
100
- formEditCompany: l.FORM_EDIT_COMPANY,
101
- formEditCompanyUser: l.FORM_EDIT_COMPANY_USER,
102
- formSubmitCompany: l.FORM_SUBMIT_COMPANY,
103
- formSubmitCompanyUser: l.FORM_SUBMIT_COMPANY_USER,
104
- setForm: l.SET_FORM,
105
- showMessage: l.SHOW_MESSAGE
98
+ ...F({
99
+ formEditCompany: i.FORM_EDIT_COMPANY,
100
+ formEditCompanyUser: i.FORM_EDIT_COMPANY_USER,
101
+ formSubmitCompany: i.FORM_SUBMIT_COMPANY,
102
+ formSubmitCompanyUser: i.FORM_SUBMIT_COMPANY_USER,
103
+ setForm: i.SET_FORM,
104
+ showMessage: i.SHOW_MESSAGE
106
105
  }),
107
106
  loadForm() {
108
- this.isPublicForm ? (this.setForm({ key: "company", formData: C.company }), this.setForm({ key: "companyUser", formData: C.user })) : (this.formEditCompany({ props: ["name"] }), this.formEditCompanyUser({
107
+ this.formEditCompany({ props: ["name"] }), this.formEditCompanyUser({
109
108
  id: this.documentCompanyUserId,
110
109
  props: ["id", "firstname", "lastname", "cellphone", "email"]
111
- }));
110
+ });
112
111
  },
113
112
  async save() {
114
- this.v$.$touch(), !this.v$.$invalid && (this.isLoading = !0, this.isPublicForm ? q({ company: this.company, user: this.user }) : await Promise.all([
113
+ this.v$.$touch(), !this.v$.$invalid && (this.isLoading = !0, await Promise.all([
115
114
  ...this.hasChanged("company") ? [this.formSubmitCompany()] : [],
116
115
  ...this.hasChanged("companyUser") && this.currentUserId === this.documentCompanyUserId ? [this.formSubmitCompanyUser()] : []
117
116
  ]), this.$emit("close"), this.isLoading = !1);
@@ -120,43 +119,43 @@ const { mapFields: R } = S({
120
119
  this.$emit("close");
121
120
  }
122
121
  }
123
- }, T = { class: "form-client" }, A = { style: { "font-weight": "600", "font-size": "21px", "padding-bottom": "calc(2.5 * var(--rem))" } };
124
- function D(e, a, c, p, Y, s) {
125
- const u = r("CButton"), t = r("CInput"), n = r("CField"), g = r("CPhoneInput");
126
- return y(), N("div", {
127
- class: O([{
128
- "full-screen": s.isFullScreen,
122
+ }, q = { class: "form-client" }, B = { style: { "font-weight": "600", "font-size": "21px", "padding-bottom": "calc(2.5 * var(--rem))" } };
123
+ function T(e, a, c, p, A, o) {
124
+ const u = r("CButton"), m = r("CInput"), t = r("CField"), C = r("CPhoneInput");
125
+ return y(), M("div", {
126
+ class: $([{
127
+ "full-screen": o.isFullScreen,
129
128
  "modal-overlay": !0
130
129
  }, "font-inter"]),
131
- onClickPassive: a[5] || (a[5] = $((...o) => s.close && s.close(...o), ["self"]))
130
+ onClickPassive: a[5] || (a[5] = _((...s) => o.close && o.close(...s), ["self"]))
132
131
  }, [
133
132
  d("div", {
134
- style: _(!s.isFullScreen && { padding: "calc(3 * var(--rem))" }),
133
+ style: I(!o.isFullScreen && { padding: "calc(3 * var(--rem))" }),
135
134
  class: "modal-container"
136
135
  }, [
137
- s.isFullScreen ? (y(), V(u, {
136
+ o.isFullScreen ? (y(), N(u, {
138
137
  key: 0,
139
138
  class: "modal-close",
140
139
  pattern: "tertiary",
141
140
  type: "none",
142
141
  circle: "",
143
142
  icon: "x",
144
- onClick: s.close
145
- }, null, 8, ["onClick"])) : z("", !0),
146
- d("div", T, [
147
- d("div", A, h(e.$t("_common:edit", { thing: e.$t("_common:company") })), 1),
148
- i(n, {
143
+ onClick: o.close
144
+ }, null, 8, ["onClick"])) : V("", !0),
145
+ d("div", q, [
146
+ d("div", B, h(e.$t("_common:edit", { thing: e.$t("_common:company") })), 1),
147
+ l(t, {
149
148
  label: e.$t("_common:companyName").capitalize(),
150
149
  validator: p.v$.name,
151
- messages: s.messages.name,
150
+ messages: o.messages.name,
152
151
  "label-position": "inside",
153
152
  style: { "margin-bottom": "calc(1.5 * var(--rem))" }
154
153
  }, {
155
- default: m(() => [
156
- i(t, {
154
+ default: n(() => [
155
+ l(m, {
157
156
  ref: "name",
158
157
  modelValue: e.name,
159
- "onUpdate:modelValue": a[0] || (a[0] = (o) => e.name = o),
158
+ "onUpdate:modelValue": a[0] || (a[0] = (s) => e.name = s),
160
159
  disabled: c.isPublicForm ? !1 : !e.can("company", "modify"),
161
160
  placeholder: e.$t("_common:companyName").capitalize(),
162
161
  size: "medium"
@@ -164,30 +163,30 @@ function D(e, a, c, p, Y, s) {
164
163
  ]),
165
164
  _: 1
166
165
  }, 8, ["label", "validator", "messages"]),
167
- i(n, {
166
+ l(t, {
168
167
  label: e.$t("_common:firstName").capitalize(),
169
168
  "label-position": "inside",
170
169
  style: { "margin-bottom": "calc(1.5 * var(--rem))" }
171
170
  }, {
172
- default: m(() => [
173
- i(t, {
171
+ default: n(() => [
172
+ l(m, {
174
173
  ref: "reference",
175
174
  modelValue: e.firstName,
176
- "onUpdate:modelValue": a[1] || (a[1] = (o) => e.firstName = o),
177
- disabled: s.notCurrentUser,
175
+ "onUpdate:modelValue": a[1] || (a[1] = (s) => e.firstName = s),
176
+ disabled: o.notCurrentUser,
178
177
  placeholder: e.$t("_common:firstName").capitalize(),
179
178
  size: "medium",
180
179
  "custom-class": "!rounded-l-[7px]"
181
180
  }, null, 8, ["modelValue", "disabled", "placeholder"]),
182
- i(n, {
181
+ l(t, {
183
182
  label: e.$t("_common:lastName").capitalize(),
184
183
  "label-position": "inside"
185
184
  }, {
186
- default: m(() => [
187
- i(t, {
185
+ default: n(() => [
186
+ l(m, {
188
187
  modelValue: e.lastName,
189
- "onUpdate:modelValue": a[2] || (a[2] = (o) => e.lastName = o),
190
- disabled: s.notCurrentUser,
188
+ "onUpdate:modelValue": a[2] || (a[2] = (s) => e.lastName = s),
189
+ disabled: o.notCurrentUser,
191
190
  placeholder: e.$t("_common:lastName").capitalize(),
192
191
  size: "medium"
193
192
  }, null, 8, ["modelValue", "disabled", "placeholder"])
@@ -197,18 +196,18 @@ function D(e, a, c, p, Y, s) {
197
196
  ]),
198
197
  _: 1
199
198
  }, 8, ["label"]),
200
- i(n, {
199
+ l(t, {
201
200
  validator: p.v$.email,
202
- messages: s.messages.email,
201
+ messages: o.messages.email,
203
202
  label: e.$t("_common:email").capitalize(),
204
203
  "label-position": "inside",
205
204
  style: { "margin-bottom": "calc(1.5 * var(--rem))" }
206
205
  }, {
207
- default: m(() => [
208
- i(t, {
206
+ default: n(() => [
207
+ l(m, {
209
208
  ref: "email",
210
209
  modelValue: e.email,
211
- "onUpdate:modelValue": a[3] || (a[3] = (o) => e.email = o),
210
+ "onUpdate:modelValue": a[3] || (a[3] = (s) => e.email = s),
212
211
  modelModifiers: { trim: !0 },
213
212
  disabled: !c.isPublicForm,
214
213
  placeholder: e.$t("_common:email").capitalize(),
@@ -217,26 +216,26 @@ function D(e, a, c, p, Y, s) {
217
216
  ]),
218
217
  _: 1
219
218
  }, 8, ["validator", "messages", "label"]),
220
- i(g, {
219
+ l(C, {
221
220
  ref: "cellphone",
222
221
  modelValue: e.cellphone,
223
- "onUpdate:modelValue": a[4] || (a[4] = (o) => e.cellphone = o),
222
+ "onUpdate:modelValue": a[4] || (a[4] = (s) => e.cellphone = s),
224
223
  "default-region": e.companyRegion,
225
- disabled: s.notCurrentUser,
224
+ disabled: o.notCurrentUser,
226
225
  label: e.$t("_common:cellphone").capitalize(),
227
226
  "label-position": "inside",
228
227
  size: "medium"
229
228
  }, null, 8, ["modelValue", "default-region", "disabled", "label"]),
230
- i(u, {
231
- loading: s.isPosting,
229
+ l(u, {
230
+ loading: o.isPosting,
232
231
  type: "secondary",
233
232
  wide: "",
234
233
  size: "medium",
235
234
  style: { "margin-top": "calc(3 * var(--rem))" },
236
- onClick: s.save
235
+ onClick: o.save
237
236
  }, {
238
- default: m(() => [
239
- I(h(e.$t("_common:save", { thing: e.$t("_common:company") })), 1)
237
+ default: n(() => [
238
+ z(h(e.$t("_common:save", { thing: e.$t("_common:company") })), 1)
240
239
  ]),
241
240
  _: 1
242
241
  }, 8, ["loading", "onClick"])
@@ -244,7 +243,7 @@ function D(e, a, c, p, Y, s) {
244
243
  ], 4)
245
244
  ], 34);
246
245
  }
247
- const Q = /* @__PURE__ */ F(B, [["render", D], ["__scopeId", "data-v-8b6e54fb"]]);
246
+ const W = /* @__PURE__ */ v(k, [["render", T], ["__scopeId", "data-v-3e33357c"]]);
248
247
  export {
249
- Q as default
248
+ W as default
250
249
  };
@@ -1,8 +1,8 @@
1
- import { m as T } from "./mapFormMixin-DarsdTYn.js";
2
- import { B as k } from "./BlockMedia-szLlyTVn.js";
3
- import { t as w } from "./template-BTmi3cQk.js";
4
- import { T as L } from "./DocTextEditor-Ci_Wegua.js";
5
- import { _ as f, d, o as l, T as s, j as p, x as b, ah as $, ae as x, ag as C, l as S, b3 as N, b as i, f as h, w as m, c as u, e as _, R as E } from "./main-CCA1EgK_.js";
1
+ import { m as T } from "./mapFormMixin-DmIyfVCN.js";
2
+ import { B as k } from "./BlockMedia-CrmRCTpi.js";
3
+ import { t as w } from "./template-B4OhhS85.js";
4
+ import { T as L } from "./DocTextEditor-CblX6a9b.js";
5
+ import { _ as f, d, o as l, U as s, j as p, y as b, ah as $, ae as C, ag as S, n as x, b4 as N, b as i, f as h, w as m, c as u, e as _, T as E } from "./main-BI2UvBxx.js";
6
6
  import { i as F } from "./i18nMessages-Chz_lxGG.js";
7
7
  const M = {
8
8
  name: "StaticComboLayout",
@@ -46,17 +46,17 @@ function j(e, t, n, g, v, o) {
46
46
  s(e.$slots, "postText")
47
47
  ], 2));
48
48
  }
49
- const z = /* @__PURE__ */ f(M, [["render", j]]), A = {
49
+ const U = /* @__PURE__ */ f(M, [["render", j]]), z = {
50
50
  name: "StaticLayout",
51
51
  i18nOptions: {
52
52
  namespaces: "staticLayout",
53
53
  messages: F
54
54
  },
55
55
  components: {
56
- DocumentLogotype: S(
57
- () => import("./DocumentLogotype-D6DPT-i9.js")
56
+ DocumentLogotype: x(
57
+ () => import("./DocumentLogotype-BBA1HLK3.js")
58
58
  ),
59
- StaticComboLayout: z,
59
+ StaticComboLayout: U,
60
60
  TextEditor: L
61
61
  },
62
62
  emits: ["input"],
@@ -102,11 +102,11 @@ const z = /* @__PURE__ */ f(M, [["render", j]]), A = {
102
102
  }
103
103
  },
104
104
  methods: {
105
- mustacheToSpan: C,
106
- spanToMustache: x,
105
+ mustacheToSpan: S,
106
+ spanToMustache: C,
107
107
  interpolateString: $
108
108
  }
109
- }, I = { style: { "font-size": "calc(2 * var(--rem))", "font-weight": "700", margin: "calc(1 * var(--rem)) 0" } }, U = ["innerHTML"];
109
+ }, A = { style: { "font-size": "calc(2 * var(--rem))", "font-weight": "700", margin: "calc(1 * var(--rem)) 0" } }, I = ["innerHTML"];
110
110
  function D(e, t, n, g, v, o) {
111
111
  const c = i("DocumentLogotype"), r = i("TextEditor"), y = i("StaticComboLayout");
112
112
  return l(), d("div", {
@@ -142,7 +142,7 @@ function D(e, t, n, g, v, o) {
142
142
  }, null, 8, ["model-value", "mentions", "placeholder"]))
143
143
  ]),
144
144
  documentName: m(() => [
145
- p("div", I, [
145
+ p("div", A, [
146
146
  e.canEdit ? (l(), u(r, {
147
147
  key: 0,
148
148
  ref: "nameEditor",
@@ -165,7 +165,7 @@ function D(e, t, n, g, v, o) {
165
165
  key: 1,
166
166
  class: "header-text",
167
167
  innerHTML: o.internalName
168
- }, null, 8, U))
168
+ }, null, 8, I))
169
169
  ])
170
170
  ]),
171
171
  postText: m(() => [
@@ -191,7 +191,7 @@ function D(e, t, n, g, v, o) {
191
191
  }, 8, ["layout"])
192
192
  ], 2);
193
193
  }
194
- const O = /* @__PURE__ */ f(A, [["render", D], ["__scopeId", "data-v-71f38644"]]), q = {
194
+ const O = /* @__PURE__ */ f(z, [["render", D], ["__scopeId", "data-v-71f38644"]]), q = {
195
195
  name: "ContentWrapper",
196
196
  components: {
197
197
  StaticCombo: O,
@@ -1,11 +1,11 @@
1
- import { m as z } from "./mapFormMixin-DarsdTYn.js";
2
- import { T as B } from "./ThemeColorRow-B1L2qfGx.js";
3
- import { b as T } from "./helpers-vOT4bDZk.js";
4
- import { _ as w, N as M, d as u, o as l, j as n, R as x, ai as f, an as y, e as p, T as $, W as b, x as L, b as g, f as v, c as S, F as V, n as _, t as h, ad as N, w as k, q as C, l as R, au as U } from "./main-CCA1EgK_.js";
5
- import { b as I } from "./CDropdownItem-llOP71-u.js";
1
+ import { m as z } from "./mapFormMixin-DmIyfVCN.js";
2
+ import { T as B } from "./ThemeColorRow-BiIviRnJ.js";
3
+ import { b as T } from "./helpers-DdvMGJyI.js";
4
+ import { _ as w, N as U, d as u, o as l, j as n, T as x, ai as f, an as y, e as p, U as $, X as b, y as L, b as g, f as v, c as S, F as V, q as _, t as h, ad as M, w as k, s as C, n as R, au as N } from "./main-BI2UvBxx.js";
5
+ import { b as I } from "./CDropdownItem-BU65rYaX.js";
6
6
  const K = {
7
7
  name: "CSliderThumb",
8
- mixins: [M],
8
+ mixins: [U],
9
9
  props: {
10
10
  modelValue: {
11
11
  type: Number,
@@ -100,8 +100,8 @@ const K = {
100
100
  a = parseFloat(a.toFixed(this.precision)), this.$emit("update:modelValue", a), !this.dragging && a !== this.oldValue && (this.oldValue = a);
101
101
  }
102
102
  }
103
- }, O = ["tabindex"];
104
- function X(e, t, s, a, r, i) {
103
+ }, X = ["tabindex"];
104
+ function O(e, t, s, a, r, i) {
105
105
  return l(), u("div", x({
106
106
  class: [{ "is-dragging": r.dragging }, "c-slider-thumb-wrapper"],
107
107
  style: i.wrapperStyle
@@ -121,10 +121,10 @@ function X(e, t, s, a, r, i) {
121
121
  t[8] || (t[8] = f(y((...o) => i.onHomeKeyDown && i.onHomeKeyDown(...o), ["prevent"]), ["home"])),
122
122
  t[9] || (t[9] = f(y((...o) => i.onEndKeyDown && i.onEndKeyDown(...o), ["prevent"]), ["end"]))
123
123
  ]
124
- }), null, 16, O)
124
+ }), null, 16, X)
125
125
  ], 16);
126
126
  }
127
- const A = /* @__PURE__ */ w(K, [["render", X]]), H = {
127
+ const A = /* @__PURE__ */ w(K, [["render", O]]), H = {
128
128
  name: "CSliderTick",
129
129
  props: {
130
130
  value: {
@@ -379,17 +379,17 @@ const G = /* @__PURE__ */ w(H, [["render", q]]), Y = {
379
379
  );
380
380
  }
381
381
  }
382
- }, W = {
382
+ }, J = {
383
383
  ref: "slider",
384
384
  class: "c-slider-track"
385
385
  };
386
- function J(e, t, s, a, r, i) {
386
+ function Q(e, t, s, a, r, i) {
387
387
  const o = g("CSliderTick"), c = g("CSliderThumb");
388
388
  return l(), u("div", {
389
389
  class: L([[`is-${s.size}`, `is-${s.type}`, i.rootClasses], "c-slider"]),
390
390
  onClick: t[2] || (t[2] = (...m) => i.onSliderClick && i.onSliderClick(...m))
391
391
  }, [
392
- n("div", W, [
392
+ n("div", J, [
393
393
  n("div", {
394
394
  style: b(i.barStyle),
395
395
  class: "c-slider-fill"
@@ -437,7 +437,7 @@ function J(e, t, s, a, r, i) {
437
437
  ], 512)
438
438
  ], 2);
439
439
  }
440
- const Q = /* @__PURE__ */ w(Y, [["render", J]]), Z = (e, t, s, a) => Math.atan2(e - s, t - a) * (180 / Math.PI) * -1 + 180, ee = {
440
+ const W = /* @__PURE__ */ w(Y, [["render", Q]]), Z = (e, t, s, a) => Math.atan2(e - s, t - a) * (180 / Math.PI) * -1 + 180, ee = {
441
441
  name: "DegreePicker",
442
442
  emits: ["input"],
443
443
  props: {
@@ -528,7 +528,7 @@ const oe = /* @__PURE__ */ w(ee, [["render", se], ["__scopeId", "data-v-91289bf6
528
528
  },
529
529
  data() {
530
530
  return {
531
- set: N,
531
+ set: M,
532
532
  defaultValue: {
533
533
  type: "linear",
534
534
  degree: 0,
@@ -600,10 +600,10 @@ function le(e, t, s, a, r, i) {
600
600
  }
601
601
  const de = /* @__PURE__ */ w(ne, [["render", le], ["__scopeId", "data-v-415e3658"]]), ue = {
602
602
  image: R(
603
- () => import("./ImageSelectModal-BiWCVyYs.js")
603
+ () => import("./ImageSelectModal-Dd9le6p5.js")
604
604
  ),
605
605
  video: R(
606
- () => import("./VideoSelectModal-yfI6keDu.js")
606
+ () => import("./VideoSelectModal-DdmGQUJs.js")
607
607
  )
608
608
  }, me = {
609
609
  name: "CoverBlockSettings",
@@ -631,7 +631,7 @@ const de = /* @__PURE__ */ w(ne, [["render", le], ["__scopeId", "data-v-415e3658
631
631
  components: {
632
632
  ThemeColorRow: B,
633
633
  GradientPicker: de,
634
- CSlider: Q,
634
+ CSlider: W,
635
635
  CSwitch: I
636
636
  },
637
637
  mixins: [
@@ -653,7 +653,7 @@ const de = /* @__PURE__ */ w(ne, [["render", le], ["__scopeId", "data-v-415e3658
653
653
  ],
654
654
  data() {
655
655
  return {
656
- getUnsplashResized: U
656
+ getUnsplashResized: N
657
657
  };
658
658
  },
659
659
  methods: {
@@ -1,5 +1,5 @@
1
- import n from "./AnswerModal-BLo3hOrK.js";
2
- import { _ as t, b as c, c as r, o as s } from "./main-CCA1EgK_.js";
1
+ import n from "./AnswerModal-DER90JgH.js";
2
+ import { _ as t, b as c, c as r, o as s } from "./main-BI2UvBxx.js";
3
3
  const u = {
4
4
  components: {
5
5
  AnswerModal: n