@cling-se/widget 0.13.0 → 0.13.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 (136) hide show
  1. package/README.md +27 -22
  2. package/dist/{AddClientCallout-92b43564.js → AddClientCallout-7LpWNu29.js} +11 -16
  3. package/dist/{AnswerModal-b22aab96.js → AnswerModal-DnTU4eo8.js} +1931 -1948
  4. package/dist/{AttachmentItem-39196508.js → AttachmentItem-DcwbrFUh.js} +15 -18
  5. package/dist/{BaseDatePicker-8be0c5ee.js → BaseDatePicker-BpyeJH3N.js} +139 -142
  6. package/dist/{BaseInput-779cb5b2.js → BaseInput-DJreiE5M.js} +77 -56
  7. package/dist/{BaseUpload-941ca869.js → BaseUpload-iosxX2-N.js} +208 -212
  8. package/dist/{BlockMedia-bf89f8a9.js → BlockMedia-DnbdVEZz.js} +6 -8
  9. package/dist/{CCallout-4239825f.js → CCallout-CgviPbdr.js} +26 -16
  10. package/dist/{CDropdownItem-d0cd42d6.js → CDropdownItem-CTJ55d4m.js} +51 -50
  11. package/dist/{CField-9b72b886.js → CField-FGP7ehRq.js} +75 -58
  12. package/dist/{CPhoneFormat-34b4c650.js → CPhoneFormat-8u5dmTPd.js} +5 -7
  13. package/dist/{CSlider.vue_vue_type_style_index_0_lang-c1638d8a.js → CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-Dc_pbPEA.js} +6 -8
  14. package/dist/{ClientAutocomplete-0d21002e.js → ClientAutocomplete-hcl0bJxO.js} +11 -13
  15. package/dist/{ClientModal-9b8173e2.js → ClientModal-B8PkUqY2.js} +25 -32
  16. package/dist/{ColorPicker-3d06f308.js → ColorPicker-6AIHrfJ5.js} +5 -7
  17. package/dist/{CompanyModal-2e203a3a.js → CompanyModal-H4hHfy7Y.js} +28 -30
  18. package/dist/{ContentWrapper-71bc374a.js → ContentWrapper-CHZtfhFI.js} +25 -43
  19. package/dist/{CoverBlockSettings-b6c200ee.js → CoverBlockSettings-etwL5N5l.js} +20 -31
  20. package/dist/{DocAnswer-d4ea9b74.js → DocAnswer-Udn1ItYd.js} +5 -12
  21. package/dist/{DocDetails-ea2635ac.js → DocDetails-BQz-is7P.js} +47 -59
  22. package/dist/{DocForm-cff1c78e.js → DocForm-Cvuxr89v.js} +4869 -4944
  23. package/dist/{DocFormSend-d0979323.js → DocFormSend-Bo6YPSMr.js} +15 -33
  24. package/dist/DocLinks-DlWyanFQ.js +38 -0
  25. package/dist/{DocModalBase-77df9b3d.js → DocModalBase-BnuOPozg.js} +8 -10
  26. package/dist/{DocPrint-d39100c7.js → DocPrint-Uw8zz2tr.js} +6 -10
  27. package/dist/{DocReceipt-cf0e772b.js → DocReceipt-DsRzRjD8.js} +11 -15
  28. package/dist/{DocSendReminder-dca2775e.js → DocSendReminder-BEEEh-L9.js} +2 -6
  29. package/dist/{DocTextEditor-5676c56f.js → DocTextEditor-C-qeLSQa.js} +2509 -2529
  30. package/dist/{DocTimeline-5911b608.js → DocTimeline-Bz29bHJu.js} +26 -37
  31. package/dist/{DocumentClient-eca72dd7.js → DocumentClient-1O7wxh-X.js} +15 -22
  32. package/dist/{DocumentLayout-8104d93d.js → DocumentLayout-BrN5peVY.js} +4510 -4527
  33. package/dist/{DocumentLogotype-c43c4bbb.js → DocumentLogotype-Bbas4MsY.js} +20 -22
  34. package/dist/DocumentVoided-Dy-pp_ng.js +25 -0
  35. package/dist/{EmbedInput-02971bf6.js → EmbedInput-bXXwMP4u.js} +9 -12
  36. package/dist/{EmbedSettings-575fae0e.js → EmbedSettings-BA2THNrd.js} +6 -9
  37. package/dist/ErrorCallout-Dvy9895L.js +28 -0
  38. package/dist/{FilePreviewModal-c1d2d5e7.js → FilePreviewModal-r84Ah3lE.js} +8 -14
  39. package/dist/{Flag-1aceeff5.js → Flag-CDN9A_59.js} +18 -20
  40. package/dist/{HeaderSettings-993f8c98.js → HeaderSettings-DoDFhLcR.js} +34 -49
  41. package/dist/{ImageSelectModal-5dfe4a29.js → ImageSelectModal-D6ifkvIw.js} +12 -20
  42. package/dist/{ImageUploadWrapper-1e38bbe2.js → ImageUploadWrapper-K0-MmL-L.js} +356 -384
  43. package/dist/{Index-a7779d2a.js → Index-3p6X7Ln-.js} +24 -26
  44. package/dist/{Index-57800d9c.js → Index-B26J4tXQ.js} +7 -9
  45. package/dist/{Index-7cbe4a17.js → Index-B6gB5CD3.js} +6 -8
  46. package/dist/{Index-ec8820ee.js → Index-B6u3OUGH.js} +20 -23
  47. package/dist/{Index-bc0d3abe.js → Index-BN64idjX.js} +18 -31
  48. package/dist/{Index-50b0a9b8.js → Index-BNGaREiU.js} +14 -21
  49. package/dist/{Index-fa4f462a.js → Index-BNeg0lcx.js} +13 -15
  50. package/dist/{Index-4350bb0f.js → Index-BQVjSt_5.js} +29 -29
  51. package/dist/Index-BVNgUe07.js +21 -0
  52. package/dist/{Index-be8b14a8.js → Index-Be-J2RvQ.js} +8 -11
  53. package/dist/{Index-33635702.js → Index-Btlub0dK.js} +11 -13
  54. package/dist/{Index-46b2296e.js → Index-BtzGGZEN.js} +459 -510
  55. package/dist/{Index-c6a8a298.js → Index-ByCpvqCC.js} +16 -21
  56. package/dist/{Index-8a956c1b.js → Index-CSg7HLqX.js} +8 -10
  57. package/dist/{Index-08737451.js → Index-CUZJomAi.js} +10 -12
  58. package/dist/{Index-9a0233b0.js → Index-Cj_3udAp.js} +12 -21
  59. package/dist/{Index-13e229bb.js → Index-CnOdi4ux.js} +4 -6
  60. package/dist/{Index-c1c7db19.js → Index-DT9AWIQ2.js} +12 -15
  61. package/dist/Index-DWHl_jys.js +24 -0
  62. package/dist/{Index-cfc393ae.js → Index-Di3ibm8r.js} +51 -58
  63. package/dist/Index-Dk-kPbWy.js +52 -0
  64. package/dist/Index-Dl87oWQa.js +49 -0
  65. package/dist/{Index-c4296623.js → Index-DnDY3FUU.js} +9 -11
  66. package/dist/{Index-45c7841a.js → Index-DoKh3I_O.js} +19 -26
  67. package/dist/{Index-2c960d57.js → Index-DvA5sZ1U.js} +7 -9
  68. package/dist/{Index-670097a7.js → Index-DwlzPadK.js} +233 -273
  69. package/dist/{Index-e9f705f3.js → Index-ID37TIgR.js} +2 -4
  70. package/dist/Index-TPRXPN4a.js +26 -0
  71. package/dist/{Index-9b7b4516.js → Index-YdyeCcFX.js} +80 -90
  72. package/dist/{Index-a1097b66.js → Index-b0dDsObZ.js} +5 -9
  73. package/dist/{Index-677b2c85.js → Index-bIYFzizT.js} +4 -6
  74. package/dist/{Index-04f332ec.js → Index-d5iMi4y5.js} +116 -118
  75. package/dist/{Index-2504f599.js → Index-oYQ9EfP9.js} +16 -18
  76. package/dist/{Index-cfa81e3f.js → Index-phsroK51.js} +6 -8
  77. package/dist/{InputToggleRow-a0dc7e03.js → InputToggleRow-ClHkgn7s.js} +3 -5
  78. package/dist/{ManualPopover-6cf3f592.js → ManualPopover-DrhgZvGC.js} +1 -3
  79. package/dist/{MediaWrapper-2c2e3d44.js → MediaWrapper-BxNEJOT7.js} +3 -6
  80. package/dist/{NotBindingText-12f78064.js → NotBindingText-BhKMdYBN.js} +5 -7
  81. package/dist/{PackageGroup-75a1ad26.js → PackageGroup--pDNkIMj.js} +35 -59
  82. package/dist/{PdfTerms-5686a37b.js → PdfTerms-BL34ex7f.js} +11 -18
  83. package/dist/{PdfViewer-d1d05125.js → PdfViewer-CPSINxc8.js} +25 -29
  84. package/dist/{PlainHtml-6cc2bace.js → PlainHtml-Dc76U4EV.js} +5 -7
  85. package/dist/{PriceHeader-e45b65bc.js → PriceHeader-CEGF-DO3.js} +113 -130
  86. package/dist/SearchApi-D4yY2KZj.js +161 -0
  87. package/dist/{Setup-bf823254.js → Setup-BJIY_mWN.js} +9 -11
  88. package/dist/{TermsSettings-7a077b22.js → TermsSettings-DM4pvL-n.js} +6 -12
  89. package/dist/{ThemeColorRow-aad0248e.js → ThemeColorRow-D7TCU3ap.js} +8 -10
  90. package/dist/{ToggleBinding-abd0832e.js → ToggleBinding-CSgFUF6o.js} +7 -9
  91. package/dist/{UploadModal-42302f2b.js → UploadModal-Cz7o7DeT.js} +16 -19
  92. package/dist/{VideoPlayerInput-1c6cbf06.js → VideoPlayerInput-Db0RRtb5.js} +6 -8
  93. package/dist/{VideoPlayerSettings-5ec723e1.js → VideoPlayerSettings-BgbNuWbP.js} +7 -11
  94. package/dist/{VideoSelectModal-16acfd43.js → VideoSelectModal-BIKeCzUZ.js} +20 -28
  95. package/dist/{answerDocumentMixin-97b33f14.js → answerDocumentMixin-Bqg9Of1S.js} +5 -5
  96. package/dist/{debounce-b0ffdee0.js → debounce-DceKdgy2.js} +3 -3
  97. package/dist/{dom-962579a6.js → dom-CPYqHOIw.js} +2 -2
  98. package/dist/{focusDrawerMixin-1d99a268.js → focusDrawerMixin-Cx41U1xU.js} +1 -1
  99. package/dist/{formComponentsInstall-6ccace37.js → formComponentsInstall-CWgaR4yB.js} +1198 -1171
  100. package/dist/{formDrawerState-a7b5832a.js → formDrawerState-DLCSwrgc.js} +1 -1
  101. package/dist/{formValidationMixin-7216cb94.js → formValidationMixin-CsLym0iM.js} +2 -2
  102. package/dist/{index-7690fb79.js → index-0kj8-T7-.js} +39 -44
  103. package/dist/{index-6caf947c.js → index-4MqvoLi4.js} +3 -5
  104. package/dist/{index-93d3e2cb.js → index-By9c7IPL.js} +41 -59
  105. package/dist/{index-d73fd8ca.js → index-C16hoSRM.js} +5 -3
  106. package/dist/{index-ef3da59c.js → index-C6C4uskP.js} +14 -16
  107. package/dist/{IsPremiumPreStep-42eeebac.js → index-Cp7dG8Zm.js} +531 -566
  108. package/dist/index.es.js +3 -3
  109. package/dist/index.umd.js +1019 -1028
  110. package/dist/{main-2c8b76b7.js → main-DBw231uy.js} +21733 -21943
  111. package/dist/{mapFormMixin-c2bc089c.js → mapFormMixin-BrtcYsT9.js} +1 -2
  112. package/dist/{vuedraggable.umd-e89c3d5e.js → omit-DQqb9hkZ.js} +143 -133
  113. package/dist/{publicSenderState-e6458640.js → publicSenderState-BysO0Mzz.js} +1 -1
  114. package/dist/{splitpanes-ba7897bf.js → splitpanes-BHUVsCZF.js} +38 -42
  115. package/dist/style.css +2 -2
  116. package/dist/{throttle-4f3f879a.js → throttle-DKrISvLg.js} +2 -2
  117. package/dist/{tinycolor-f780e5ca.js → tinycolor-Be3bF6zy.js} +6 -6
  118. package/dist/{tippy.esm-a855665a.js → tippy.esm-yjYH8SnL.js} +226 -232
  119. package/dist/{utils-4d39389a.js → utils-DP30AdJH.js} +1 -1
  120. package/package.json +3 -4
  121. package/dist/DocLinks-48aa6dd6.js +0 -41
  122. package/dist/DocumentVoided-2d93ef71.js +0 -27
  123. package/dist/ErrorCallout-05a4796b.js +0 -30
  124. package/dist/Index-1cb59290.js +0 -23
  125. package/dist/Index-2a88c858.js +0 -54
  126. package/dist/Index-5fb421de.js +0 -26
  127. package/dist/Index-6f6fc018.js +0 -28
  128. package/dist/Index-98c7217d.js +0 -61
  129. package/dist/SearchApi-410c081e.js +0 -167
  130. package/dist/index-805c56e4.js +0 -4
  131. package/dist/index-a1d51619.js +0 -14
  132. /package/dist/{CField.vue_vue_type_style_index_0_lang-4ed993c7.js → CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js} +0 -0
  133. /package/dist/{anime.es-e284c852.js → anime.es-BrPTThYb.js} +0 -0
  134. /package/dist/{color-c1606adc.js → color-TdtKxwVa.js} +0 -0
  135. /package/dist/{i18nMessages-6b279c15.js → i18nMessages-Chz_lxGG.js} +0 -0
  136. /package/dist/{vuex.esm-4a0fff7c.js → vuex.esm-DKGl8mcw.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { V as s } from "./main-2c8b76b7.js";
1
+ import { V as s } from "./main-DBw231uy.js";
2
2
  const e = s.observable({
3
3
  isFixed: !1,
4
4
  // Worded according to CSS property (show as fixed drawer)
@@ -1,5 +1,5 @@
1
- import { h as n } from "./main-2c8b76b7.js";
2
- import { s as l } from "./dom-962579a6.js";
1
+ import { h as n } from "./main-DBw231uy.js";
2
+ import { s as l } from "./dom-CPYqHOIw.js";
3
3
  const s = (r) => {
4
4
  var i;
5
5
  const t = [];
@@ -1,9 +1,9 @@
1
- import { d as n } from "./debounce-b0ffdee0.js";
2
- import { t as o } from "./throttle-4f3f879a.js";
3
- import { n as r } from "./main-2c8b76b7.js";
4
- import { i as c } from "./dom-962579a6.js";
5
- import { w as d } from "./CDropdownItem-d0cd42d6.js";
6
- import { s as u, F as m } from "./Flag-1aceeff5.js";
1
+ import { s as n, F as o } from "./Flag-CDN9A_59.js";
2
+ import { w as c } from "./CDropdownItem-CTJ55d4m.js";
3
+ import { n as a } from "./main-DBw231uy.js";
4
+ import { i as d } from "./dom-CPYqHOIw.js";
5
+ import { d as u } from "./debounce-DceKdgy2.js";
6
+ import { t as m } from "./throttle-DKrISvLg.js";
7
7
  const f = {
8
8
  name: "BackgroundsModalList",
9
9
  i18nOptions: {
@@ -20,9 +20,10 @@ const f = {
20
20
  }
21
21
  },
22
22
  components: {
23
- simplebar: u,
24
- Flag: m
23
+ simplebar: n,
24
+ Flag: o
25
25
  },
26
+ mixins: [c],
26
27
  props: {
27
28
  /**
28
29
  * @param {Object} options Input arguments
@@ -50,7 +51,6 @@ const f = {
50
51
  default: ""
51
52
  }
52
53
  },
53
- mixins: [d],
54
54
  data() {
55
55
  return {
56
56
  hoverIndex: null,
@@ -71,7 +71,7 @@ const f = {
71
71
  }
72
72
  },
73
73
  created() {
74
- this.handleFetch(), this.debouncedHandleFetch = n(this.handleFetch, 1e3);
74
+ this.handleFetch(), this.debouncedHandleFetch = u(this.handleFetch, 1e3);
75
75
  },
76
76
  mounted() {
77
77
  this.$refs.scrollbar.scrollElement.addEventListener(
@@ -92,24 +92,24 @@ const f = {
92
92
  if (!this.allowMoreResults || this.isLoading)
93
93
  return;
94
94
  this.isLoading = !0;
95
- const l = this.query ? this.query : this.defaultQuery, { items: e, total: t } = await this.fetch({ query: l, page: this.page++ });
95
+ const i = this.query ? this.query : this.defaultQuery, { items: e, total: t } = await this.fetch({ query: i, page: this.page++ });
96
96
  this.isLoading = !1, this.noOfResults = this.query ? t : null, this.items == null ? (this.selectedIndex = null, this.items = e) : this.items = [...this.items, ...e], this.allowMoreResults = t >= this.page * 12;
97
97
  },
98
- scrollHandler: o(async function() {
98
+ scrollHandler: m(async function() {
99
99
  const e = this.$refs.item[this.$refs.item.length - 9 || 0];
100
- e && c(e) && this.handleFetch();
100
+ e && d(e) && this.handleFetch();
101
101
  }, 50),
102
- selectItem(l, e) {
103
- this.selectedIndex = e, this.$emit("select", l);
102
+ selectItem(i, e) {
103
+ this.selectedIndex = e, this.$emit("select", i);
104
104
  },
105
105
  onSave() {
106
106
  this.$emit("save");
107
107
  },
108
- playVideo(l, e) {
109
- this.$refs.video[l] && this.$refs.video[l].play();
108
+ playVideo(i) {
109
+ this.$refs.video[i] && this.$refs.video[i].play();
110
110
  },
111
- pauseVideo(l) {
112
- const e = this.$refs.video[l];
111
+ pauseVideo(i) {
112
+ const e = this.$refs.video[i];
113
113
  e && (e.readyState === 4 ? e.pause() : e.addEventListener("playing", () => e.pause(), { once: !0 }));
114
114
  }
115
115
  }
@@ -120,32 +120,29 @@ var h = function() {
120
120
  e.query = s;
121
121
  }, expression: "query" } }), e.$i18n.lang !== "en" ? t("div", { staticClass: "absolute right-0 top-1/2 mr-6 hidden -translate-y-1/2 items-center text-gray-400 md:flex" }, [t("Flag", { staticClass: "mr-1", attrs: { region: "GB" } }), e._v(" Sök på "), t("b", { staticClass: "ml-1" }, [e._v("engelska")])], 1) : e._e()], 1), t("div", { staticStyle: { overflow: "hidden", flex: "1", height: "100%" } }, [t("simplebar", { ref: "scrollbar", staticStyle: { width: "100%", height: "100%", padding: "3px 4px" } }, [t("div", { staticStyle: { display: "grid", "grid-template-columns": "repeat(auto-fit, minmax(210px, 1fr))", gap: "2px" } }, [!e.items.length && e.isLoading ? e._l(12, function(s) {
122
122
  return t("div", { key: s, ref: "item", refInFor: !0, staticClass: "photo" });
123
- }) : e._e(), e._l(e.items, function(s, i) {
124
- return t("div", { key: i, ref: "item", refInFor: !0, staticClass: "photo", style: { backgroundImage: `url(${s.minImage})` }, on: { click: function(a) {
125
- return e.selectItem(s, i);
126
- } } }, [s.minVideo || s.video ? t("div", { staticClass: "video-bg__media", on: { "&mouseenter": function(a) {
127
- return e.playVideo(i, s.minVideo || s.video);
128
- }, "&mouseleave": function(a) {
129
- return e.pauseVideo(i);
130
- } } }, [t("video", { ref: "video", refInFor: !0, attrs: { src: s.minVideo || s.video, loop: "", muted: "", playsInline: "", preload: "none" }, domProps: { muted: !0 } })]) : e._e(), e.selectedIndex === i ? t("div", { staticClass: "select-wrapper" }) : e._e(), t("div", { staticClass: "photo__credit" }, [e._v(e._s(s.userName))])]);
131
- })], 2), t("div", { staticClass: "flex w-full items-center justify-center", staticStyle: { padding: "2em 1em" } }, [e.isLoading ? t("BaseIcon", { staticClass: "rotateSpin", attrs: { type: "loader" } }) : e.allowMoreResults ? e._e() : t("div", { staticClass: "flex w-full flex-col items-center justify-center text-gray-400" }, [t("div", [e._v(" " + e._s(e.$t("noMoreResults")) + " ")]), e.$i18n.lang !== "en" ? t("div", { staticClass: "flex flex-col items-center text-center", staticStyle: { "padding-top": "3.2rem" } }, [t("Flag", { staticClass: "mb-1 h-8 w-8", attrs: { region: "GB" } }), e._v(" Glöm inte att sökordet måste vara på engelska ")], 1) : e._e()])], 1)])], 1), t("div", { staticClass: "flex w-full items-center justify-end", staticStyle: { padding: "4px 4px 4px 8px", "flex-shrink": "0" } }, [t("div", { staticClass: "flex-grow text-gray-400" }, [e.mq !== "sm" ? [e.query && e.noOfResults && e.noOfResults > 0 ? t("div", [e._v(" " + e._s(e.$tc("_common:result", { count: e.noOfResults })) + " ")]) : e._e(), t("div", [e._v(" " + e._s(e.creditText) + " ")])] : e._e()], 2), e._t("footer", function() {
123
+ }) : e._e(), e._l(e.items, function(s, l) {
124
+ return t("div", { key: l, ref: "item", refInFor: !0, staticClass: "photo", style: { backgroundImage: `url(${s.minImage})` }, on: { click: function(r) {
125
+ return e.selectItem(s, l);
126
+ } } }, [s.minVideo || s.video ? t("div", { staticClass: "video-bg__media", on: { "&mouseenter": function(r) {
127
+ return e.playVideo(l, s.minVideo || s.video);
128
+ }, "&mouseleave": function(r) {
129
+ return e.pauseVideo(l);
130
+ } } }, [t("video", { ref: "video", refInFor: !0, attrs: { src: s.minVideo || s.video, loop: "", muted: "", playsInline: "", preload: "none" }, domProps: { muted: !0 } })]) : e._e(), e.selectedIndex === l ? t("div", { staticClass: "select-wrapper" }) : e._e(), t("div", { staticClass: "photo__credit" }, [e._v(e._s(s.userName))])]);
131
+ })], 2), t("div", { staticClass: "flex w-full items-center justify-center", staticStyle: { padding: "2em 1em" } }, [e.isLoading ? t("CIcon", { staticClass: "rotateSpin", attrs: { type: "loader" } }) : e.allowMoreResults ? e._e() : t("div", { staticClass: "flex w-full flex-col items-center justify-center text-gray-400" }, [t("div", [e._v(" " + e._s(e.$t("noMoreResults")) + " ")]), e.$i18n.lang !== "en" ? t("div", { staticClass: "flex flex-col items-center text-center", staticStyle: { "padding-top": "3.2rem" } }, [t("Flag", { staticClass: "mb-1 h-8 w-8", attrs: { region: "GB" } }), e._v(" Glöm inte att sökordet måste vara på engelska ")], 1) : e._e()])], 1)])], 1), t("div", { staticClass: "flex w-full items-center justify-end", staticStyle: { padding: "4px 4px 4px 8px", "flex-shrink": "0" } }, [t("div", { staticClass: "flex-grow text-gray-400" }, [e.mq !== "sm" ? [e.query && e.noOfResults && e.noOfResults > 0 ? t("div", [e._v(" " + e._s(e.$tc("_common:result", { count: e.noOfResults })) + " ")]) : e._e(), t("div", [e._v(" " + e._s(e.creditText) + " ")])] : e._e()], 2), e._t("footer", function() {
132
132
  return [t("CButton", { staticStyle: { "margin-left": "0.5em" }, attrs: { type: "secondary" }, on: { click: e.onSave } }, [e._v(" " + e._s(e.$t("_common:save")) + " ")])];
133
133
  })], 2)]);
134
- }, p = [], _ = /* @__PURE__ */ r(
134
+ }, p = [], v = /* @__PURE__ */ a(
135
135
  f,
136
136
  h,
137
137
  p,
138
138
  !1,
139
139
  null,
140
- "47f429c5",
141
- null,
142
- null
140
+ "57b68cb0"
143
141
  );
144
- const v = _.exports;
145
- const g = {
142
+ const g = v.exports, _ = {
146
143
  name: "BackgroundsModal"
147
144
  };
148
- var y = function() {
145
+ var x = function() {
149
146
  var e = this, t = e._self._c;
150
147
  return t("div", { staticClass: "font-primary fixed inset-0 z-[1000] flex items-center justify-center overflow-auto bg-black bg-opacity-10 max-sm:block max-sm:min-h-full max-sm:w-full max-sm:overflow-auto", on: { click: function(s) {
151
148
  return s.target !== s.currentTarget ? null : e.$emit("close");
@@ -154,18 +151,16 @@ var y = function() {
154
151
  } } }, [t("CButton", { staticClass: "absolute right-3 top-3 z-10", attrs: { pattern: "tertiary", type: "none", size: "small", circle: "", icon: "x" }, on: { click: function(s) {
155
152
  return e.$emit("close");
156
153
  } } }), e._t("header"), e._t("default")], 2)]);
157
- }, x = [], w = /* @__PURE__ */ r(
158
- g,
159
- y,
154
+ }, y = [], b = /* @__PURE__ */ a(
155
+ _,
160
156
  x,
157
+ y,
161
158
  !1,
162
159
  null,
163
- "4a6a378b",
164
- null,
165
- null
160
+ "4a6a378b"
166
161
  );
167
- const b = w.exports, L = v, R = b;
162
+ const w = b.exports, R = g, L = w;
168
163
  export {
169
- R as B,
170
- L as a
164
+ L as B,
165
+ R as a
171
166
  };
@@ -1,4 +1,4 @@
1
- import { n as i, q as n } from "./main-2c8b76b7.js";
1
+ import { n as i, z as n } from "./main-DBw231uy.js";
2
2
  const o = {
3
3
  name: "DocumentGuide",
4
4
  i18nOptions: {
@@ -73,11 +73,9 @@ var c = function() {
73
73
  r,
74
74
  !1,
75
75
  null,
76
- null,
77
- null,
78
76
  null
79
77
  );
80
- const u = l.exports;
78
+ const m = l.exports;
81
79
  export {
82
- u as default
80
+ m as default
83
81
  };
@@ -1,25 +1,17 @@
1
- import { m as f, a as m, b as _ } from "./vuex.esm-4a0fff7c.js";
2
- import { n as o, A as v, S as h, g as l, h as i } from "./main-2c8b76b7.js";
3
- import { w as d } from "./CDropdownItem-d0cd42d6.js";
4
- import { S as x } from "./CSlider.vue_vue_type_style_index_0_lang-c1638d8a.js";
5
- import { B as p } from "./DocTextEditor-5676c56f.js";
6
- import { v as r } from "./index-805c56e4.js";
7
- import "./tippy.esm-a855665a.js";
8
- import "./ColorPicker-3d06f308.js";
9
- import "./DocumentLayout-8104d93d.js";
10
- import "./debounce-b0ffdee0.js";
11
- import "./dom-962579a6.js";
12
- import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
13
- import "./ManualPopover-6cf3f592.js";
14
- import "./color-c1606adc.js";
15
- const g = {
1
+ import { w as m } from "./CDropdownItem-CTJ55d4m.js";
2
+ import { n as o, A as f, S as v, g as i, h as l } from "./main-DBw231uy.js";
3
+ import { m as h, a as d, b as _ } from "./vuex.esm-DKGl8mcw.js";
4
+ import { B as p } from "./DocTextEditor-C-qeLSQa.js";
5
+ import { v as r } from "./index-C16hoSRM.js";
6
+ import { S as g } from "./CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-Dc_pbPEA.js";
7
+ const x = {
8
+ mixins: [m],
16
9
  props: {
17
10
  placement: {
18
11
  type: String,
19
12
  default: "top-start"
20
13
  }
21
14
  },
22
- mixins: [d],
23
15
  data() {
24
16
  return {
25
17
  isOpen: !1
@@ -44,17 +36,14 @@ var C = function() {
44
36
  a ? e.onOpen() : e.onClose();
45
37
  } } }, "v-popover", e.$props, !1), [e._t("default"), t("div", { staticClass: "popover-container", attrs: { slot: "popover" }, slot: "popover" }, [e.isOpen ? t("portal", { attrs: { to: "modal" } }, [t("div", { staticClass: "overlay" })]) : e._e(), e._t("popover", null, { close: e.onClose })], 2)], 2);
46
38
  }, T = [], $ = /* @__PURE__ */ o(
47
- g,
39
+ x,
48
40
  C,
49
41
  T,
50
42
  !1,
51
43
  null,
52
- "4ea2fd3b",
53
- null,
54
- null
44
+ "da5fd556"
55
45
  );
56
- const y = $.exports;
57
- const { mapFields: S } = v({
46
+ const S = $.exports, { mapFields: y } = f({
58
47
  getterType: "forms/getField",
59
48
  mutationType: "forms/updateField"
60
49
  }), b = {
@@ -104,7 +93,7 @@ const { mapFields: S } = v({
104
93
  name: "TextTemplatesForm",
105
94
  components: {
106
95
  BaseTextEditor: p,
107
- Spinner: h
96
+ Spinner: v
108
97
  },
109
98
  props: {
110
99
  id: {
@@ -134,12 +123,12 @@ const { mapFields: S } = v({
134
123
  }
135
124
  },
136
125
  computed: {
137
- ...f({
126
+ ...h({
138
127
  isPosting: "templateMessages/isPosting",
139
128
  isFetching: "templateMessages/isFetching",
140
129
  checkFormChanged: "forms/hasChanged"
141
130
  }),
142
- ...S({
131
+ ...y({
143
132
  templateMessage: "templateMessage",
144
133
  name: "templateMessage.name",
145
134
  textContent: "templateMessage.message"
@@ -168,12 +157,12 @@ const { mapFields: S } = v({
168
157
  this.load(), this.predefinedTextContent && (this.textContent = this.predefinedTextContent);
169
158
  },
170
159
  methods: {
171
- ...m({
172
- loadTemplate: l.LOAD_TEMPLATE_MESSAGE,
173
- deleteTemplate: l.DELETE_TEMPLATE_MESSAGE,
174
- formNewTemplate: l.FORM_NEW_TEMPLATE_MESSAGE,
175
- formEditTemplate: l.FORM_EDIT_TEMPLATE_MESSAGE,
176
- formSubmitTemplate: l.FORM_SUBMIT_TEMPLATE_MESSAGE
160
+ ...d({
161
+ loadTemplate: i.LOAD_TEMPLATE_MESSAGE,
162
+ deleteTemplate: i.DELETE_TEMPLATE_MESSAGE,
163
+ formNewTemplate: i.FORM_NEW_TEMPLATE_MESSAGE,
164
+ formEditTemplate: i.FORM_EDIT_TEMPLATE_MESSAGE,
165
+ formSubmitTemplate: i.FORM_SUBMIT_TEMPLATE_MESSAGE
177
166
  }),
178
167
  canLeave() {
179
168
  return !this.hasChanged;
@@ -186,7 +175,7 @@ const { mapFields: S } = v({
186
175
  id: this.id
187
176
  })) : await this.formNewTemplate();
188
177
  } catch (s) {
189
- i(s);
178
+ l(s);
190
179
  }
191
180
  },
192
181
  validateBeforeSubmit() {
@@ -197,14 +186,14 @@ const { mapFields: S } = v({
197
186
  try {
198
187
  await this.formSubmitTemplate(), typeof this.onAfterSubmit == "function" && this.onAfterSubmit();
199
188
  } catch (s) {
200
- i(s);
189
+ l(s);
201
190
  }
202
191
  },
203
192
  async remove() {
204
193
  try {
205
194
  await this.deleteTemplate({ id: this.id }), typeof this.onAfterSubmit == "function" && this.onAfterSubmit();
206
195
  } catch (s) {
207
- i(s);
196
+ l(s);
208
197
  }
209
198
  }
210
199
  }
@@ -226,24 +215,21 @@ var M = function() {
226
215
  } } }, [e._v(" " + e._s(e.$t("_common:save")) + " ")]), e.id ? t("CButton", { staticStyle: { "margin-top": "calc(1 * var(--rem))" }, attrs: { loading: e.isPosting, type: "secondary", pattern: "tertiary", wide: "" }, on: { click: function(a) {
227
216
  return e.remove();
228
217
  } } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")]) : e._e()], 1) : e._e()], 1);
229
- }, E = [], F = /* @__PURE__ */ o(
218
+ }, E = [], w = /* @__PURE__ */ o(
230
219
  b,
231
220
  M,
232
221
  E,
233
222
  !1,
234
223
  null,
235
- "bec2c0c3",
236
- null,
237
- null
224
+ "e14860e7"
238
225
  );
239
- const w = F.exports;
240
- const A = {
226
+ const F = w.exports, A = {
241
227
  name: "TextTemplatesModal",
242
228
  components: {
243
- SmartList: x,
229
+ SmartList: g,
244
230
  BaseTextEditor: p
245
231
  },
246
- mixins: [d],
232
+ mixins: [m],
247
233
  data() {
248
234
  return {
249
235
  selectedIndex: 0,
@@ -267,7 +253,7 @@ const A = {
267
253
  },
268
254
  openCreateModal() {
269
255
  this.close(), this.$modal.show(
270
- w,
256
+ F,
271
257
  {
272
258
  predefinedTextContent: "",
273
259
  showFixedCloseButton: !0,
@@ -300,7 +286,7 @@ var k = function() {
300
286
  }, click: function(u) {
301
287
  return e.onSelect(a[e.selectedIndex].message || "");
302
288
  } } }, [e._v(" " + e._s(n.name) + " ")]);
303
- }), 0), e.mq !== "sm" ? t("div", { staticClass: "t-text quill-format" }, [a[e.selectedIndex] ? t("BaseTextEditor", { attrs: { value: a[e.selectedIndex].message || "", editable: !1, extensions: "all", "class-list": "document-form", unstyled: "" } }) : t("div", [e._v(" " + e._s(e.$t("noResults")) + " ")])], 1) : e._e()]), t("div", { staticClass: "t-footer flex w-full items-center justify-between" }, [t("div", { staticStyle: { display: "inline-flex", "align-items": "center" } }), t("div", [t("CButton", { staticClass: "t-footer-button", attrs: { to: { name: "settingsTemplates" }, target: "_blank", size: "small" } }, [e._v(" " + e._s(e.$t("handle")) + " "), t("BaseIcon", { staticStyle: { "margin-left": "0.5em" }, attrs: { type: "new-window", size: "16" } })], 1), t("CButton", { staticClass: "t-footer-button", attrs: { size: "small" }, on: { click: e.openCreateModal } }, [e._v(" " + e._s(e.$t("create", { thing: e.$t("template") })) + " ")])], 1)])])];
289
+ }), 0), e.mq !== "sm" ? t("div", { staticClass: "t-text quill-format" }, [a[e.selectedIndex] ? t("BaseTextEditor", { attrs: { value: a[e.selectedIndex].message || "", editable: !1, extensions: "all", "class-list": "document-form", unstyled: "" } }) : t("div", [e._v(" " + e._s(e.$t("noResults")) + " ")])], 1) : e._e()]), t("div", { staticClass: "t-footer flex w-full items-center justify-between" }, [t("div", { staticStyle: { display: "inline-flex", "align-items": "center" } }), t("div", [t("CButton", { staticClass: "t-footer-button", attrs: { to: { name: "settingsTemplates" }, target: "_blank", size: "small" } }, [e._v(" " + e._s(e.$t("handle")) + " "), t("CIcon", { staticStyle: { "margin-left": "0.5em" }, attrs: { type: "new-window", size: "16" } })], 1), t("CButton", { staticClass: "t-footer-button", attrs: { size: "small" }, on: { click: e.openCreateModal } }, [e._v(" " + e._s(e.$t("create", { thing: e.$t("template") })) + " ")])], 1)])])];
304
290
  } }]) });
305
291
  }, q = [], L = /* @__PURE__ */ o(
306
292
  A,
@@ -308,33 +294,31 @@ var k = function() {
308
294
  q,
309
295
  !1,
310
296
  null,
311
- "4d29320a",
312
- null,
313
- null
297
+ "9d6f8cd8"
314
298
  );
315
299
  const B = L.exports, O = {
316
300
  name: "TextTemplates",
317
301
  components: {
318
- ContextModal: y,
302
+ ContextModal: S,
319
303
  TextTemplatesModal: B
320
304
  },
305
+ inject: {
306
+ viewSettings: {
307
+ default: () => ({ isPublicForm: !1 })
308
+ }
309
+ },
321
310
  props: {
322
311
  placement: {
323
312
  type: String,
324
313
  default: "left"
325
314
  }
326
315
  },
327
- inject: {
328
- viewSettings: {
329
- default: () => ({ isPublicForm: !1 })
330
- }
331
- },
332
316
  created() {
333
317
  this.viewSettings.isPublicForm || this.loadTemplateMessages();
334
318
  },
335
319
  methods: {
336
- ...m({
337
- loadTemplateMessages: l.LOAD_TEMPLATE_MESSAGES
320
+ ...d({
321
+ loadTemplateMessages: i.LOAD_TEMPLATE_MESSAGES
338
322
  })
339
323
  }
340
324
  };
@@ -355,11 +339,9 @@ var I = function() {
355
339
  P,
356
340
  !1,
357
341
  null,
358
- null,
359
- null,
360
342
  null
361
343
  );
362
- const Z = G.exports;
344
+ const H = G.exports;
363
345
  export {
364
- Z as default
346
+ H as default
365
347
  };
@@ -1,6 +1,5 @@
1
- import { v as pe } from "./index-805c56e4.js";
2
- import { Y as Q } from "./main-2c8b76b7.js";
3
- var P = {}, f = {}, b = {}, O = {};
1
+ import { Y as Q } from "./main-DBw231uy.js";
2
+ var pe = {}, P = {}, f = {}, b = {}, O = {};
4
3
  Object.defineProperty(O, "__esModule", {
5
4
  value: !0
6
5
  });
@@ -488,3 +487,6 @@ G.default = rt;
488
487
  return n && n.__esModule ? n : { default: n };
489
488
  }
490
489
  })(pe);
490
+ export {
491
+ pe as v
492
+ };
@@ -1,5 +1,5 @@
1
- import { g as s, K as l, L as r, n as d, V as a } from "./main-2c8b76b7.js";
2
- import { m as p, a as c } from "./vuex.esm-4a0fff7c.js";
1
+ import { g as s, K as l, L as r, n as d, V as n } from "./main-DBw231uy.js";
2
+ import { m as p, a as c } from "./vuex.esm-DKGl8mcw.js";
3
3
  const m = {
4
4
  name: "ClientLinks",
5
5
  props: {
@@ -55,9 +55,9 @@ const m = {
55
55
  loadDocument: s.LOAD_DOCUMENT2
56
56
  }),
57
57
  async copyToClipboard(o) {
58
- var i, n;
58
+ var i, a;
59
59
  (i = o.target.previousElementSibling) == null || i.select();
60
- const t = (n = o.target.previousElementSibling) == null ? void 0 : n.value;
60
+ const t = (a = o.target.previousElementSibling) == null ? void 0 : a.value;
61
61
  if (!t)
62
62
  return;
63
63
  await l(t) && r("info", this.$t("copied"));
@@ -68,24 +68,22 @@ var u = function() {
68
68
  var t = this, e = t._self._c;
69
69
  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(i) {
70
70
  return t.$emit("close");
71
- } } }), 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(i, n) {
72
- 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(i.primaryTitle) + " "), i.secondaryTitle ? e("span", { staticStyle: { opacity: "0.5", "padding-left": "0.125ch" } }, [t._v("· " + t._s(i.secondaryTitle))]) : t._e()]), i.documentRole ? e("div", { domProps: { textContent: t._s(t.$t(`_common:documentRole.${i.documentRole}.label`)) } }) : t._e(), e("div", [i.email ? e("a", { attrs: { href: `mailto:${i.email}?&body=${i.docLink}` } }, [t._v(t._s(i.email))]) : t._e(), i.email && i.cellphone ? e("span", { staticStyle: { padding: "0 0.5ch" } }, [t._v("·")]) : t._e(), i.cellphone ? e("a", { attrs: { href: `sms:${i.cellphone}?&body=${i.docLink}` } }, [e("CPhoneFormat", { attrs: { phone: i.cellphone, region: i.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: i.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)])]);
73
- }) : 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)]);
71
+ } } }), 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(i, a) {
72
+ return e("div", { key: a, staticClass: "client-card" }, [e("div", { staticStyle: { padding: "4px 6px 8px 6px" } }, [e("div", { staticClass: "client-title truncate-text" }, [t._v(" " + t._s(i.primaryTitle) + " "), i.secondaryTitle ? e("span", { staticStyle: { opacity: "0.5", "padding-left": "0.125ch" } }, [t._v("· " + t._s(i.secondaryTitle))]) : t._e()]), i.documentRole ? e("div", { domProps: { textContent: t._s(t.$t(`_common:documentRole.${i.documentRole}.label`)) } }) : t._e(), e("div", [i.email ? e("a", { attrs: { href: `mailto:${i.email}?&body=${i.docLink}` } }, [t._v(t._s(i.email))]) : t._e(), i.email && i.cellphone ? e("span", { staticStyle: { padding: "0 0.5ch" } }, [t._v("·")]) : t._e(), i.cellphone ? e("a", { attrs: { href: `sms:${i.cellphone}?&body=${i.docLink}` } }, [e("CPhoneFormat", { attrs: { phone: i.cellphone, region: i.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: i.docLink } }), e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("tooltip"), expression: "$t('tooltip')" }], staticClass: "clipboard-button", on: { click: t.copyToClipboard } }, [e("CIcon", { staticStyle: { "pointer-events": "none" }, attrs: { type: "copy", size: "17" } })], 1)])]);
73
+ }) : 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("CIcon", { 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)]);
74
74
  }, h = [], y = /* @__PURE__ */ d(
75
75
  m,
76
76
  u,
77
77
  h,
78
78
  !1,
79
79
  null,
80
- "e0736d54",
81
- null,
82
- null
80
+ "8273cadb"
83
81
  );
84
- const v = y.exports, _ = v, x = ({ id: o }) => {
85
- if (!a.prototype.$modal)
82
+ const v = y.exports, g = v, _ = ({ id: o }) => {
83
+ if (!n.prototype.$modal)
86
84
  throw Error("Open client modal requires plugin vue-js-modal");
87
- a.prototype.$modal.show(
88
- _,
85
+ n.prototype.$modal.show(
86
+ g,
89
87
  {
90
88
  id: o
91
89
  },
@@ -99,6 +97,6 @@ const v = y.exports, _ = v, x = ({ id: o }) => {
99
97
  );
100
98
  };
101
99
  export {
102
- _ as C,
103
- x as o
100
+ g as C,
101
+ _ as o
104
102
  };