@cling-se/widget 0.17.3 → 0.18.1

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 (232) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/AddClientCallout-CCt78VvH.js +101 -0
  3. package/dist/AnswerModal-B4LwVv2N.js +3371 -0
  4. package/dist/AttachmentItem-DnvYffKP.js +171 -0
  5. package/dist/BaseUpload-DFoV0ZLe.js +6503 -0
  6. package/dist/BlockMedia-Amo_kdHo.js +103 -0
  7. package/dist/CCallout-Gd06ds6O.js +104 -0
  8. package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-B4GNmOGA.js} +91 -53
  9. package/dist/CDropdownItem-BUNVCpSR.js +749 -0
  10. package/dist/CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js +292 -0
  11. package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-DmN5r9Ci.js} +13 -21
  12. package/dist/CPhoneInput-B6iyhsOG.js +207 -0
  13. package/dist/CPriceInput-BLQaNu1d.js +142 -0
  14. package/dist/CSelect-BVO9iO9L.js +98 -0
  15. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js +51 -0
  16. package/dist/ClientAutocomplete-C__yUaxD.js +532 -0
  17. package/dist/ClientModal-B9cbuEiC.js +1188 -0
  18. package/dist/ColorPicker-G2kkxL7_.js +1408 -0
  19. package/dist/CompanyModal-por9AG4P.js +250 -0
  20. package/dist/ContentWrapper-CQtaGA2u.js +265 -0
  21. package/dist/CoverBlockSettings-BCBDouyl.js +861 -0
  22. package/dist/DocAnswer-BrKctwrY.js +33 -0
  23. package/dist/DocDetails-B_LWVHGt.js +452 -0
  24. package/dist/DocForm-D6T7NmfO.js +6772 -0
  25. package/dist/DocFormSend-COYPrhl7.js +171 -0
  26. package/dist/DocLinks-B0LjxXIk.js +36 -0
  27. package/dist/DocModalBase-DObZHuYr.js +29 -0
  28. package/dist/DocPrint-CkDq78fB.js +399 -0
  29. package/dist/DocReceipt-CYBPyePC.js +341 -0
  30. package/dist/DocSendReminder-Dau6s43e.js +181 -0
  31. package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CVn6gE1i.js} +7907 -5579
  32. package/dist/DocTimeline-ChBDPOfd.js +537 -0
  33. package/dist/DocumentClient-MLXzzXLb.js +90 -0
  34. package/dist/DocumentLayout-BMHOt380.js +1434 -0
  35. package/dist/DocumentLogotype-Clj3fopX.js +162 -0
  36. package/dist/DocumentVoided-B5_MSBbC.js +33 -0
  37. package/dist/EmbedInput-CzkOa02p.js +156 -0
  38. package/dist/EmbedSettings-Cf_F3KrM.js +103 -0
  39. package/dist/ErrorCallout-CJn6NCse.js +34 -0
  40. package/dist/FilePreviewModal-Di1VnPNY.js +202 -0
  41. package/dist/Flag-C4_G5IY1.js +41 -0
  42. package/dist/HeaderSettings-DWN0TjVD.js +720 -0
  43. package/dist/ImageSelectModal-DmAJ9PrN.js +119 -0
  44. package/dist/ImageUploadWrapper-QLEhA_dI.js +1585 -0
  45. package/dist/Index-B06eCuBA.js +76 -0
  46. package/dist/Index-B8Zj0-MX.js +87 -0
  47. package/dist/{Index-C_aIQ908.js → Index-BBBXL4zh.js} +319 -214
  48. package/dist/Index-BCHLxp7B.js +21 -0
  49. package/dist/Index-BDAp1CwZ.js +363 -0
  50. package/dist/Index-BFbcjFo4.js +16 -0
  51. package/dist/{Index-CRiATiQn.js → Index-BODJXJNp.js} +10 -18
  52. package/dist/Index-BOx_9tTM.js +136 -0
  53. package/dist/Index-BgZNiD7A.js +47 -0
  54. package/dist/Index-Bt97lEsI.js +228 -0
  55. package/dist/Index-C9aBeBBk.js +70 -0
  56. package/dist/Index-CE3pWPzp.js +49 -0
  57. package/dist/Index-CMdPSsp4.js +38 -0
  58. package/dist/Index-CNhBDG2e.js +126 -0
  59. package/dist/Index-CdsOdgG2.js +28 -0
  60. package/dist/{Index-Ch9r5yhG.js → Index-CmxFh3dW.js} +9 -17
  61. package/dist/Index-CpxzwwQS.js +52 -0
  62. package/dist/Index-CxTwWRD9.js +93 -0
  63. package/dist/Index-D9WFWlE6.js +140 -0
  64. package/dist/Index-D9bulLeI.js +39 -0
  65. package/dist/{Index-RWMPRDAE.js → Index-DL_9LzoR.js} +10 -18
  66. package/dist/Index-DR-sGE3Y.js +25 -0
  67. package/dist/Index-DRoOW5Pn.js +163 -0
  68. package/dist/Index-DTn47-hP.js +74 -0
  69. package/dist/Index-DeGDlj0B.js +68 -0
  70. package/dist/Index-DhYYK4bK.js +28 -0
  71. package/dist/Index-Dssdb-0Z.js +629 -0
  72. package/dist/Index-OcBnU480.js +200 -0
  73. package/dist/Index-Qh_8JqAv.js +3477 -0
  74. package/dist/Index-W10PQb8i.js +102 -0
  75. package/dist/Index-lbWFEELM.js +4 -0
  76. package/dist/Index-qFAg7VVU.js +1098 -0
  77. package/dist/Index-rDndJKo1.js +160 -0
  78. package/dist/{Index-Dfq7egc1.js → Index-s-6Qh_NE.js} +47 -60
  79. package/dist/Index.vue_vue_type_script_lang-CriDqp1F.js +671 -0
  80. package/dist/InputToggleRow-DJarYsVL.js +99 -0
  81. package/dist/ManualPopover-BMrkEHtV.js +65 -0
  82. package/dist/MediaWrapper-BYdVpmov.js +18 -0
  83. package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DGjJoN8-.js} +13 -17
  84. package/dist/PackageGroup-q7_oBOqw.js +1060 -0
  85. package/dist/PdfTerms-DBEClYQ5.js +34 -0
  86. package/dist/PdfViewer-C_y5sqXB.js +392 -0
  87. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js +17 -0
  88. package/dist/PriceHeader-BSwv3mzc.js +488 -0
  89. package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-BM6TTqxW.js} +37 -49
  90. package/dist/SendForm-DfmBbhp9.js +6689 -0
  91. package/dist/Setup-BC1feKr_.js +47 -0
  92. package/dist/{SmartList-BynTuXtB.js → SmartList-B3pgsg4S.js} +16 -24
  93. package/dist/Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js +1349 -0
  94. package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-DEkACrRU.js} +169 -56
  95. package/dist/ThemeColorRow-qG8Dkkyj.js +105 -0
  96. package/dist/ToggleBinding-Cdtl_-1s.js +44 -0
  97. package/dist/UploadModal-1OWPRxA5.js +134 -0
  98. package/dist/VideoPlayerInput-DgFNjiKK.js +134 -0
  99. package/dist/VideoPlayerSettings-CFuA-7RC.js +78 -0
  100. package/dist/VideoSelectModal-CSv67eA8.js +217 -0
  101. package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
  102. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  103. package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
  104. package/dist/{focusDrawerMixin-CximZA1J.js → focusDrawerMixin-r-OZchfV.js} +1 -1
  105. package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-COVczNhJ.js} +2 -2
  106. package/dist/helpers-ChwW54Ex.js +46 -0
  107. package/dist/index-BMZle8Ew.js +513 -0
  108. package/dist/index-Bf-fiKJf.js +268 -0
  109. package/dist/index-Bg4JRi5S.js +125 -0
  110. package/dist/index-C7chK2UD.js +3525 -0
  111. package/dist/index-CR52qIBO.js +149 -0
  112. package/dist/index-D1x9O_nJ.js +188 -0
  113. package/dist/index-YFcPqc9m.js +508 -0
  114. package/dist/index.es.js +2 -5
  115. package/dist/index.umd.js +303 -1486
  116. package/dist/main-DI0diChK.js +57570 -0
  117. package/dist/mapFormMixin-Cgvwie9a.js +1528 -0
  118. package/dist/omit-DpjD7Dj9.js +56 -0
  119. package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-BcjNldje.js} +4 -4
  120. package/dist/splitpanes-BypKTSRL.js +342 -0
  121. package/dist/template-Dzexob5I.js +1572 -0
  122. package/dist/tippy.esm-0UMN6kWf.js +1994 -0
  123. package/dist/useTermsModal-DzH_PDFP.js +87 -0
  124. package/dist/{utils-Dr4AcaE9.js → utils--kBYCNZD.js} +8 -11
  125. package/dist/validation-B-omH73u.js +40 -0
  126. package/dist/widget.css +1 -0
  127. package/package.json +20 -25
  128. package/dist/AddClientCallout-Br6IhwGH.js +0 -48
  129. package/dist/AnswerModal-CsWltR6j.js +0 -3879
  130. package/dist/AttachmentItem-BG7FuSCD.js +0 -85
  131. package/dist/BaseDatePicker-PSNBtUIh.js +0 -3187
  132. package/dist/BaseUpload-BfEurAAV.js +0 -1977
  133. package/dist/BlockMedia-Bo3OfNSU.js +0 -76
  134. package/dist/CCallout-CAjM8-1X.js +0 -58
  135. package/dist/CDropdownItem-CN7gSfgY.js +0 -640
  136. package/dist/CFormField-Clvcf2Jh.js +0 -240
  137. package/dist/CPhoneInput-CEHXh5jM.js +0 -138
  138. package/dist/CPriceInput-D2c07SXp.js +0 -116
  139. package/dist/CSelect-Cz2IPzxS.js +0 -91
  140. package/dist/CSkeleton-AsnvnD-m.js +0 -55
  141. package/dist/ClientAutocomplete-CZ55-DKe.js +0 -438
  142. package/dist/ClientModal-CgUhWZ5L.js +0 -666
  143. package/dist/ColorPicker-IFGHqH-u.js +0 -2879
  144. package/dist/CompanyModal-TLSBFo3U.js +0 -147
  145. package/dist/ContentWrapper-HClxKPuT.js +0 -190
  146. package/dist/CoverBlockSettings-D99hAa6e.js +0 -659
  147. package/dist/DocAnswer-CTV_Bpt7.js +0 -36
  148. package/dist/DocDetails-CQe5htXj.js +0 -263
  149. package/dist/DocForm-6Efv5_oz.js +0 -5017
  150. package/dist/DocFormSend-DbXcklxU.js +0 -146
  151. package/dist/DocLinks-BO545zbL.js +0 -38
  152. package/dist/DocModalBase-DXHNJ-6i.js +0 -28
  153. package/dist/DocPrint-Bf2U4FQN.js +0 -240
  154. package/dist/DocReceipt-CWXvC7bY.js +0 -217
  155. package/dist/DocSendReminder-CRzBM2NJ.js +0 -140
  156. package/dist/DocTimeline-DGVOk8-2.js +0 -485
  157. package/dist/DocumentClient-Das9BaJ7.js +0 -136
  158. package/dist/DocumentLayout-4q8rmTVT.js +0 -4880
  159. package/dist/DocumentLogotype-DLncJJAB.js +0 -92
  160. package/dist/DocumentVoided-CcI9lX27.js +0 -25
  161. package/dist/EmbedInput-BPdy0lGS.js +0 -117
  162. package/dist/EmbedSettings-L2iwYLQK.js +0 -74
  163. package/dist/ErrorCallout-Ds_tBT02.js +0 -27
  164. package/dist/FilePreviewModal-hxUu330p.js +0 -81
  165. package/dist/Flag-1-HcT5Dz.js +0 -46
  166. package/dist/HeaderSettings-C27fMugK.js +0 -440
  167. package/dist/ImageSelectModal-BKDIyxF4.js +0 -86
  168. package/dist/ImageUploadWrapper-BiYzUQur.js +0 -1604
  169. package/dist/Index-5BOWxcPG.js +0 -26
  170. package/dist/Index-B1Odktov.js +0 -754
  171. package/dist/Index-B3d5BjEn.js +0 -25
  172. package/dist/Index-B3sSU_4X.js +0 -54
  173. package/dist/Index-B5Dqsh3K.js +0 -150
  174. package/dist/Index-B6aO1c_w.js +0 -62
  175. package/dist/Index-BGfICxJQ.js +0 -643
  176. package/dist/Index-BHopC0hv.js +0 -24
  177. package/dist/Index-BJXcSmp_.js +0 -55
  178. package/dist/Index-BQe6QjQZ.js +0 -25
  179. package/dist/Index-BmXx_x6t.js +0 -77
  180. package/dist/Index-C692qMTG.js +0 -294
  181. package/dist/Index-CEvbw-3i.js +0 -41
  182. package/dist/Index-CYSULnpn.js +0 -32
  183. package/dist/Index-CdtYzwAM.js +0 -107
  184. package/dist/Index-CetF2FW0.js +0 -230
  185. package/dist/Index-Cv6XLM20.js +0 -73
  186. package/dist/Index-Cwy8ff76.js +0 -154
  187. package/dist/Index-D34z4UEY.js +0 -84
  188. package/dist/Index-DNCei-lp.js +0 -56
  189. package/dist/Index-DUbxgIYB.js +0 -2445
  190. package/dist/Index-DVwn_LLf.js +0 -28
  191. package/dist/Index-Dla-mesV.js +0 -146
  192. package/dist/Index-KtUkOPI2.js +0 -58
  193. package/dist/Index-LjnOTVJk.js +0 -66
  194. package/dist/Index-ky1SRtfY.js +0 -94
  195. package/dist/Index-mceZW2NX.js +0 -41
  196. package/dist/Index-tD3hZjh8.js +0 -144
  197. package/dist/Index-vM5kDtC2.js +0 -33
  198. package/dist/InputToggleRow-BmDuSbE2.js +0 -57
  199. package/dist/ManualPopover-CQfjPvFe.js +0 -60
  200. package/dist/MediaWrapper-DDzcjR6V.js +0 -23
  201. package/dist/PackageGroup-mAGXfZDv.js +0 -704
  202. package/dist/PdfTerms-BH_Nwf2h.js +0 -31
  203. package/dist/PdfViewer-mBLxI8bA.js +0 -383
  204. package/dist/PlainHtml-B7gUNNZd.js +0 -27
  205. package/dist/PriceHeader-DClYMPcq.js +0 -338
  206. package/dist/SendForm-Cxv_m8Rq.js +0 -1023
  207. package/dist/Setup-B90VDZTG.js +0 -50
  208. package/dist/ThemeColorRow-D-Z7w4Wk.js +0 -69
  209. package/dist/ToggleBinding-DOeTcWzi.js +0 -42
  210. package/dist/UploadModal-DOPLVEpV.js +0 -95
  211. package/dist/VideoPlayerInput-1zG06elO.js +0 -97
  212. package/dist/VideoPlayerSettings-O-4rAYYh.js +0 -61
  213. package/dist/VideoSelectModal-DzqFrqCg.js +0 -104
  214. package/dist/answerDocumentMixin-HBiNWYCH.js +0 -51
  215. package/dist/debounce-Ch1d3526.js +0 -84
  216. package/dist/formValidationMixin-D_MzsHsR.js +0 -49
  217. package/dist/index-BNdbPq4J.js +0 -492
  218. package/dist/index-BXzugeJ6.js +0 -81
  219. package/dist/index-C5wcxrC6.js +0 -167
  220. package/dist/index-CgDOs7t4.js +0 -2700
  221. package/dist/index-Cj-_2coz.js +0 -351
  222. package/dist/index-DpqV5y0K.js +0 -102
  223. package/dist/main-BL_yzf2r.js +0 -57357
  224. package/dist/mapFormMixin-Cu_vkTP-.js +0 -3028
  225. package/dist/omit-Dfe_H1Ft.js +0 -31
  226. package/dist/simplebar.min-CRlLD1Oz.js +0 -71
  227. package/dist/splitpanes-BHUVsCZF.js +0 -382
  228. package/dist/style.css +0 -4
  229. package/dist/throttle-BX_w77tW.js +0 -18
  230. package/dist/tippy.esm-n4arfVzA.js +0 -1805
  231. package/dist/vuedraggable.umd-DW4PJoZ3.js +0 -3161
  232. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,659 +0,0 @@
1
- import { m as c } from "./mapFormMixin-Cu_vkTP-.js";
2
- import { T as u } from "./ThemeColorRow-D-Z7w4Wk.js";
3
- import { d as o, b as h } from "./CDropdownItem-CN7gSfgY.js";
4
- import { n as r, X as p, P as m } from "./main-BL_yzf2r.js";
5
- const f = {
6
- name: "CSliderThumb",
7
- inheritAttrs: !1,
8
- props: {
9
- value: {
10
- type: Number,
11
- default: 0
12
- },
13
- type: {
14
- type: String,
15
- default: ""
16
- },
17
- tooltip: {
18
- type: Boolean,
19
- default: !0
20
- },
21
- customFormatter: {
22
- type: Function,
23
- default: null
24
- }
25
- },
26
- data() {
27
- return {
28
- isFocused: !1,
29
- dragging: !1,
30
- startX: 0,
31
- startPosition: 0,
32
- newPosition: null,
33
- oldValue: this.value
34
- };
35
- },
36
- computed: {
37
- disabled() {
38
- return this.$parent.disabled;
39
- },
40
- max() {
41
- return this.$parent.max;
42
- },
43
- min() {
44
- return this.$parent.min;
45
- },
46
- step() {
47
- return this.$parent.step;
48
- },
49
- precision() {
50
- return this.$parent.precision;
51
- },
52
- currentPosition() {
53
- return `${(this.value - this.min) / (this.max - this.min) * 100}%`;
54
- },
55
- wrapperStyle() {
56
- return { left: this.currentPosition };
57
- },
58
- tooltipLabel() {
59
- return typeof this.customFormatter == "function" ? this.customFormatter(this.value) : this.value.toString();
60
- }
61
- },
62
- methods: {
63
- onFocus() {
64
- this.isFocused = !0;
65
- },
66
- onBlur() {
67
- this.isFocused = !1;
68
- },
69
- onButtonDown(s) {
70
- this.disabled || (s.preventDefault(), this.onDragStart(s), typeof window < "u" && (document.addEventListener("mousemove", this.onDragging), document.addEventListener("touchmove", this.onDragging), document.addEventListener("mouseup", this.onDragEnd), document.addEventListener("touchend", this.onDragEnd), document.addEventListener("contextmenu", this.onDragEnd)));
71
- },
72
- onLeftKeyDown() {
73
- this.disabled || this.value === this.min || (this.newPosition = parseFloat(this.currentPosition) - this.step / (this.max - this.min) * 100, this.setPosition(this.newPosition), this.$parent.emitValue("change"));
74
- },
75
- onRightKeyDown() {
76
- this.disabled || this.value === this.max || (this.newPosition = parseFloat(this.currentPosition) + this.step / (this.max - this.min) * 100, this.setPosition(this.newPosition), this.$parent.emitValue("change"));
77
- },
78
- onHomeKeyDown() {
79
- this.disabled || this.value === this.min || (this.newPosition = 0, this.setPosition(this.newPosition), this.$parent.emitValue("change"));
80
- },
81
- onEndKeyDown() {
82
- this.disabled || this.value === this.max || (this.newPosition = 100, this.setPosition(this.newPosition), this.$parent.emitValue("change"));
83
- },
84
- onDragStart(s) {
85
- this.dragging = !0, this.$emit("dragstart"), s.type === "touchstart" && (s.clientX = s.touches[0].clientX), this.startX = s.clientX, this.startPosition = parseFloat(this.currentPosition), this.newPosition = this.startPosition;
86
- },
87
- onDragging(s) {
88
- if (this.dragging) {
89
- s.type === "touchmove" && (s.clientX = s.touches[0].clientX);
90
- const t = (s.clientX - this.startX) / this.$parent.sliderSize() * 100;
91
- this.newPosition = this.startPosition + t, this.setPosition(this.newPosition);
92
- }
93
- },
94
- onDragEnd() {
95
- this.dragging = !1, this.$emit("dragend"), this.value !== this.oldValue && this.$parent.emitValue("change"), this.setPosition(this.newPosition), typeof window < "u" && (document.removeEventListener("mousemove", this.onDragging), document.removeEventListener("touchmove", this.onDragging), document.removeEventListener("mouseup", this.onDragEnd), document.removeEventListener("touchend", this.onDragEnd), document.removeEventListener("contextmenu", this.onDragEnd));
96
- },
97
- setPosition(s) {
98
- if (s === null || isNaN(s))
99
- return;
100
- s < 0 ? s = 0 : s > 100 && (s = 100);
101
- const t = 100 / ((this.max - this.min) / this.step);
102
- let e = Math.round(s / t) * t / 100 * (this.max - this.min) + this.min;
103
- e = parseFloat(e.toFixed(this.precision)), this.$emit("input", e), !this.dragging && e !== this.oldValue && (this.oldValue = e);
104
- }
105
- }
106
- };
107
- var g = function() {
108
- var t = this, i = t._self._c;
109
- return i("div", { staticClass: "c-slider-thumb-wrapper", class: { "is-dragging": t.dragging }, style: t.wrapperStyle }, [i("div", t._b({ staticClass: "c-slider-thumb", attrs: { tabindex: t.disabled ? !1 : 0 }, on: { mousedown: t.onButtonDown, touchstart: t.onButtonDown, focus: t.onFocus, blur: t.onBlur, keydown: [function(e) {
110
- return !e.type.indexOf("key") && t._k(e.keyCode, "left", 37, e.key, ["Left", "ArrowLeft"]) || "button" in e && e.button !== 0 ? null : (e.preventDefault(), t.onLeftKeyDown.apply(null, arguments));
111
- }, function(e) {
112
- return !e.type.indexOf("key") && t._k(e.keyCode, "right", 39, e.key, ["Right", "ArrowRight"]) || "button" in e && e.button !== 2 ? null : (e.preventDefault(), t.onRightKeyDown.apply(null, arguments));
113
- }, function(e) {
114
- return !e.type.indexOf("key") && t._k(e.keyCode, "down", 40, e.key, ["Down", "ArrowDown"]) ? null : (e.preventDefault(), t.onLeftKeyDown.apply(null, arguments));
115
- }, function(e) {
116
- return !e.type.indexOf("key") && t._k(e.keyCode, "up", 38, e.key, ["Up", "ArrowUp"]) ? null : (e.preventDefault(), t.onRightKeyDown.apply(null, arguments));
117
- }, function(e) {
118
- return !e.type.indexOf("key") && t._k(e.keyCode, "home", void 0, e.key, void 0) ? null : (e.preventDefault(), t.onHomeKeyDown.apply(null, arguments));
119
- }, function(e) {
120
- return !e.type.indexOf("key") && t._k(e.keyCode, "end", void 0, e.key, void 0) ? null : (e.preventDefault(), t.onEndKeyDown.apply(null, arguments));
121
- }] } }, "div", t.$attrs, !1))]);
122
- }, v = [], y = /* @__PURE__ */ r(
123
- f,
124
- g,
125
- v,
126
- !1,
127
- null,
128
- null
129
- );
130
- const _ = y.exports, b = {
131
- name: "CSliderTick",
132
- props: {
133
- value: {
134
- type: Number,
135
- default: 0
136
- }
137
- },
138
- computed: {
139
- position() {
140
- const s = (this.value - this.$parent.min) / (this.$parent.max - this.$parent.min) * 100;
141
- return s >= 0 && s <= 100 ? s : 0;
142
- },
143
- hidden() {
144
- return this.value === this.$parent.min || this.value === this.$parent.max;
145
- }
146
- },
147
- created() {
148
- if (!this.$parent.$data._isSlider)
149
- throw this.$destroy(), new Error("You should wrap bSliderTick on a bSlider");
150
- },
151
- methods: {
152
- getTickStyle(s) {
153
- return { left: `${s}%` };
154
- }
155
- }
156
- };
157
- var C = function() {
158
- var t = this, i = t._self._c;
159
- return i("div", { staticClass: "c-slider-tick", class: { "is-tick-hidden": t.hidden }, style: t.getTickStyle(t.position) }, [t.$slots.default ? i("span", { staticClass: "c-slider-tick-label" }, [t._t("default")], 2) : t._e()]);
160
- }, w = [], x = /* @__PURE__ */ r(
161
- b,
162
- C,
163
- w,
164
- !1,
165
- null,
166
- null
167
- );
168
- const k = x.exports, S = {
169
- name: "CSlider",
170
- components: {
171
- CSliderThumb: _,
172
- CSliderTick: k
173
- },
174
- props: {
175
- value: {
176
- type: [Number, Array],
177
- default: 0
178
- },
179
- min: {
180
- type: Number,
181
- default: 0
182
- },
183
- max: {
184
- type: Number,
185
- default: 100
186
- },
187
- step: {
188
- type: Number,
189
- default: 1
190
- },
191
- type: {
192
- type: String,
193
- default: "primary"
194
- },
195
- size: {
196
- type: String,
197
- default: ""
198
- },
199
- ticks: {
200
- type: Boolean,
201
- default: !1
202
- },
203
- tooltip: {
204
- type: Boolean,
205
- default: !0
206
- },
207
- tooltipType: {
208
- type: String,
209
- default: ""
210
- },
211
- rounded: {
212
- type: Boolean,
213
- default: !1
214
- },
215
- disabled: {
216
- type: Boolean,
217
- default: !1
218
- },
219
- lazy: {
220
- type: Boolean,
221
- default: !1
222
- },
223
- customFormatter: {
224
- type: Function,
225
- default: null
226
- },
227
- ariaLabel: {
228
- type: [String, Array],
229
- default: ""
230
- },
231
- biggerSliderFocus: {
232
- type: Boolean,
233
- default: !1
234
- }
235
- },
236
- data() {
237
- return {
238
- value1: null,
239
- value2: null,
240
- dragging: !1,
241
- isRange: !1,
242
- _isSlider: !0
243
- // Used by Thumb and Tick
244
- };
245
- },
246
- computed: {
247
- newTooltipType() {
248
- return this.tooltipType ? this.tooltipType : this.type;
249
- },
250
- tickValues() {
251
- if (!this.ticks || this.min > this.max || this.step === 0)
252
- return [];
253
- const s = [];
254
- for (let t = this.min + this.step; t < this.max; t += this.step)
255
- s.push(t);
256
- return s;
257
- },
258
- minValue() {
259
- return Math.min(this.value1, this.value2);
260
- },
261
- maxValue() {
262
- return Math.max(this.value1, this.value2);
263
- },
264
- barSize() {
265
- return this.isRange ? `${100 * (this.maxValue - this.minValue) / (this.max - this.min)}%` : `${100 * (this.value1 - this.min) / (this.max - this.min)}%`;
266
- },
267
- barStart() {
268
- return this.isRange ? `${100 * (this.minValue - this.min) / (this.max - this.min)}%` : "0%";
269
- },
270
- precision() {
271
- const s = [this.min, this.max, this.step].map((t) => {
272
- const i = `${t}`.split(".")[1];
273
- return i ? i.length : 0;
274
- });
275
- return Math.max(...s);
276
- },
277
- barStyle() {
278
- return {
279
- width: this.barSize,
280
- left: this.barStart
281
- };
282
- },
283
- rootClasses() {
284
- return {
285
- "is-rounded": this.rounded,
286
- "is-dragging": this.dragging,
287
- "is-disabled": this.disabled,
288
- "slider-focus": this.biggerSliderFocus
289
- };
290
- }
291
- },
292
- watch: {
293
- /**
294
- * When v-model is changed set the new active step.
295
- */
296
- value(s) {
297
- this.setValues(s);
298
- },
299
- value1() {
300
- this.onInternalValueUpdate();
301
- },
302
- value2() {
303
- this.onInternalValueUpdate();
304
- },
305
- min() {
306
- this.setValues(this.value);
307
- },
308
- max() {
309
- this.setValues(this.value);
310
- }
311
- },
312
- created() {
313
- this.isThumbReversed = !1, this.isTrackClickDisabled = !1, this.setValues(this.value);
314
- },
315
- methods: {
316
- setValues(s) {
317
- if (!(this.min > this.max))
318
- if (Array.isArray(s)) {
319
- this.isRange = !0;
320
- const t = typeof s[0] != "number" || isNaN(s[0]) ? this.min : o(s[0], this.min, this.max), i = typeof s[1] != "number" || isNaN(s[1]) ? this.max : o(s[1], this.min, this.max);
321
- this.value1 = this.isThumbReversed ? i : t, this.value2 = this.isThumbReversed ? t : i;
322
- } else
323
- this.isRange = !1, this.value1 = isNaN(s) ? this.min : o(s, this.min, this.max), this.value2 = null;
324
- },
325
- onInternalValueUpdate() {
326
- this.isRange && (this.isThumbReversed = this.value1 > this.value2), (!this.lazy || !this.dragging) && this.emitValue("input"), this.dragging && this.emitValue("dragging");
327
- },
328
- sliderSize() {
329
- return this.$refs.slider.getBoundingClientRect().width;
330
- },
331
- onSliderClick(s) {
332
- if (this.disabled || this.isTrackClickDisabled)
333
- return;
334
- const t = this.$refs.slider.getBoundingClientRect().left, i = (s.clientX - t) / this.sliderSize() * 100, e = this.min + i * (this.max - this.min) / 100, a = Math.abs(e - this.value1);
335
- if (this.isRange) {
336
- const n = Math.abs(e - this.value2);
337
- if (a <= n) {
338
- if (a < this.step / 2)
339
- return;
340
- this.$refs.button1.setPosition(i);
341
- } else {
342
- if (n < this.step / 2)
343
- return;
344
- this.$refs.button2.setPosition(i);
345
- }
346
- } else {
347
- if (a < this.step / 2)
348
- return;
349
- this.$refs.button1.setPosition(i);
350
- }
351
- this.emitValue("change");
352
- },
353
- onDragStart() {
354
- this.dragging = !0, this.$emit("dragstart");
355
- },
356
- onDragEnd() {
357
- this.isTrackClickDisabled = !0, setTimeout(() => {
358
- this.isTrackClickDisabled = !1;
359
- }, 0), this.dragging = !1, this.$emit("dragend"), this.lazy && this.emitValue("input");
360
- },
361
- emitValue(s) {
362
- this.$emit(
363
- s,
364
- this.isRange ? [this.minValue, this.maxValue] : this.value1
365
- );
366
- }
367
- }
368
- };
369
- var $ = function() {
370
- var t = this, i = t._self._c;
371
- return i("div", { staticClass: "c-slider", class: [`is-${t.size}`, `is-${t.type}`, t.rootClasses], on: { click: t.onSliderClick } }, [i("div", { ref: "slider", staticClass: "c-slider-track" }, [i("div", { staticClass: "c-slider-fill", style: t.barStyle }), t.ticks ? t._l(t.tickValues, function(e, a) {
372
- return i("CSliderTick", { key: a, attrs: { value: e } });
373
- }) : t._e(), t._t("default"), i("CSliderThumb", { ref: "button1", attrs: { type: `is-${t.newTooltipType}`, tooltip: t.tooltip, "custom-formatter": t.customFormatter, "aria-valuenow": t.value1, "aria-valuemin": t.min, "aria-valuemax": t.max, "aria-label": Array.isArray(t.ariaLabel) ? t.ariaLabel[0] : t.ariaLabel, "aria-disabled": t.disabled, role: "slider", "aria-orientation": "horizontal" }, on: { dragstart: t.onDragStart, dragend: t.onDragEnd }, model: { value: t.value1, callback: function(e) {
374
- t.value1 = e;
375
- }, expression: "value1" } }), t.isRange ? i("CSliderThumb", { ref: "button2", attrs: { type: t.newTooltipType, tooltip: t.tooltip, "custom-formatter": t.customFormatter, "aria-valuenow": t.value2, "aria-valuemin": t.min, "aria-valuemax": t.max, "aria-label": Array.isArray(t.ariaLabel) ? t.ariaLabel[1] : "", "aria-disabled": t.disabled, role: "slider", "aria-orientation": "horizontal" }, on: { dragstart: t.onDragStart, dragend: t.onDragEnd }, model: { value: t.value2, callback: function(e) {
376
- t.value2 = e;
377
- }, expression: "value2" } }) : t._e()], 2)]);
378
- }, D = [], P = /* @__PURE__ */ r(
379
- S,
380
- $,
381
- D,
382
- !1,
383
- null,
384
- null
385
- );
386
- const R = P.exports, T = (s, t, i, e) => Math.atan2(s - i, t - e) * (180 / Math.PI) * -1 + 180, L = {
387
- name: "DegreePicker",
388
- props: {
389
- value: {
390
- type: Number,
391
- required: !0
392
- }
393
- },
394
- computed: {
395
- degreesStyle() {
396
- return { transform: `rotate(${this.value}deg)` };
397
- }
398
- },
399
- methods: {
400
- onButtonDown(s) {
401
- let t = this.mouseDownHandler(s);
402
- const i = (e) => {
403
- t = this.mouseMoveHandler(e, t) || t;
404
- };
405
- window.addEventListener("mousemove", i), window.addEventListener(
406
- "mouseup",
407
- () => {
408
- window.removeEventListener("mousemove", i);
409
- },
410
- { once: !0 }
411
- );
412
- },
413
- mouseMoveHandler(s, { centerX: t, centerY: i }) {
414
- const e = T(
415
- s.clientX,
416
- s.clientY,
417
- t,
418
- i
419
- );
420
- this.$emit("input", parseInt(e, 10));
421
- },
422
- mouseDownHandler(s) {
423
- const i = s.target.getBoundingClientRect(), e = i.top + parseInt(8 - window.pageYOffset, 10), a = i.left + parseInt(8 - window.pageXOffset, 10);
424
- return { centerY: e, centerX: a };
425
- }
426
- }
427
- };
428
- var V = function() {
429
- var t = this, i = t._self._c;
430
- return i("div", { staticClass: "gradient-degrees-options" }, [i("div", { staticStyle: { "pointer-events": "none", "user-select": "none", "padding-right": "0.5em", opacity: "0.75" } }, [i("div", [t._v(t._s(t.value) + "°")])]), i("div", { staticClass: "gradient-degrees", on: { mousedown: t.onButtonDown } }, [i("div", { staticClass: "gradient-degree-center", style: t.degreesStyle }, [i("div", { staticClass: "gradient-degree-pointer" })])])]);
431
- }, F = [], E = /* @__PURE__ */ r(
432
- L,
433
- V,
434
- F,
435
- !1,
436
- null,
437
- "0c48c700"
438
- );
439
- const z = E.exports, B = {
440
- name: "GradientPicker",
441
- i18nOptions: {
442
- namespaces: "gradientPicker",
443
- messages: {
444
- en: {
445
- startColor: "Start color",
446
- stopColor: "Stop color",
447
- rotation: "Rotation"
448
- },
449
- sv: {
450
- startColor: "Startfärg",
451
- stopColor: "Stoppfärg",
452
- rotation: "Rotation"
453
- }
454
- }
455
- },
456
- components: {
457
- ThemeColorRow: u,
458
- DegreePicker: z
459
- },
460
- props: {
461
- value: {
462
- type: Object,
463
- required: !0
464
- }
465
- },
466
- data() {
467
- return {
468
- set: p,
469
- defaultValue: {
470
- type: "linear",
471
- degree: 0,
472
- colors: [
473
- { percent: 0, color: "#000000" },
474
- { percent: 100, color: "#0095FF" }
475
- ]
476
- }
477
- };
478
- },
479
- computed: {
480
- internalValue: {
481
- get() {
482
- return { ...this.defaultValue, ...this.value };
483
- },
484
- set(s) {
485
- this.$emit("input", s);
486
- }
487
- }
488
- },
489
- methods: {
490
- updateData(s, t) {
491
- let i = t;
492
- if (s === "colors") {
493
- const { i: e, color: a, percent: n } = t || {};
494
- i = this.internalValue.colors.map(
495
- (l, d) => d === e ? { color: a, percent: n } : l
496
- );
497
- }
498
- this.internalValue = { ...this.internalValue, [s]: i };
499
- }
500
- }
501
- };
502
- var M = function() {
503
- var t = this, i = t._self._c;
504
- return i("div", [i("ThemeColorRow", { staticClass: "d-option-title d-option", attrs: { value: t.internalValue.colors[0].color }, on: { change: function(e) {
505
- return t.updateData("colors", { i: 0, percent: 0, color: e });
506
- } } }, [t._v(" " + t._s(t.$t("startColor")) + " ")]), i("ThemeColorRow", { staticClass: "d-option-title d-option", attrs: { value: t.internalValue.colors[1].color }, on: { change: function(e) {
507
- return t.updateData("colors", { i: 1, percent: 100, color: e });
508
- } } }, [t._v(" " + t._s(t.$t("stopColor")) + " ")]), i("div", { staticClass: "d-option flex w-full items-center" }, [i("div", { staticClass: "d-option-title", staticStyle: { flex: "1 1 auto" } }, [t._v(" " + t._s(t.$t("rotation")) + " ")]), i("DegreePicker", { staticStyle: { "padding-right": "4px" }, attrs: { value: t.internalValue.degree }, on: { input: function(e) {
509
- return t.updateData("degree", e);
510
- } } })], 1)], 1);
511
- }, O = [], N = /* @__PURE__ */ r(
512
- B,
513
- M,
514
- O,
515
- !1,
516
- null,
517
- "e22a6b42"
518
- );
519
- const U = N.exports, X = {
520
- image: () => import("./ImageSelectModal-BKDIyxF4.js"),
521
- video: () => import("./VideoSelectModal-DzqFrqCg.js")
522
- }, A = {
523
- name: "CoverBlockSettings",
524
- i18nOptions: {
525
- namespaces: "coverBlockSettings",
526
- messages: {
527
- en: {
528
- colorLabel: "Color",
529
- overlay: {
530
- title: "Overlay",
531
- colorLabel: "Color",
532
- opacityLabel: "Opacity"
533
- }
534
- },
535
- sv: {
536
- colorLabel: "Färg",
537
- overlay: {
538
- title: "Överlägg",
539
- colorLabel: "Färg",
540
- opacityLabel: "Opacitet"
541
- }
542
- }
543
- }
544
- },
545
- components: {
546
- ThemeColorRow: u,
547
- GradientPicker: U,
548
- CSlider: R,
549
- CSwitch: h
550
- },
551
- mixins: [
552
- c(
553
- [
554
- "type",
555
- "video",
556
- "resourceUrl",
557
- "filter",
558
- "blur",
559
- "position",
560
- "overlay",
561
- "overlayColor",
562
- "gradient",
563
- "backgroundColor"
564
- ],
565
- { useEmit: !1 }
566
- )
567
- ],
568
- data() {
569
- return {
570
- getUnsplashResized: m
571
- };
572
- },
573
- methods: {
574
- toggleOverlay(s) {
575
- s && !this.overlayColor ? (this.overlayColor = "hsla(205, 100%, 50%, 0.5)", this.overlay = !0) : this.overlay = s;
576
- },
577
- setType(s) {
578
- s === "color" && !this.backgroundColor ? this.backgroundColor = "hsl(134, 74%, 39%)" : s === "video" && !this.video ? this.video = {
579
- provider: "pexels",
580
- id: "3214448",
581
- thumbnail: "https://images.pexels.com/videos/3214448/free-video-3214448.jpg?fit=crop&w=1200&h=630&auto=compress&cs=tinysrgb",
582
- url: "https://player.vimeo.com/external/372567192.hd.mp4?s=c186273e04cc5015efecd863d8256eb99bc034fd&profile_id=172&oauth2_token_id=57447761"
583
- } : s === "image" ? (this.resourceUrl || (this.resourceUrl = "https://images.unsplash.com/photo-1520013817300-1f4c1cb245ef?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1987&q=80"), this.position || (this.position = 50)) : s === "gradient" && !this.gradient && (this.gradient = {
584
- type: "linear",
585
- degree: 45,
586
- colors: [
587
- { color: "hsla(324.71,100%,50%,1)", percent: 0 },
588
- { color: "hsla(209.41,85.18%,40.65%,1)", percent: 100 }
589
- ]
590
- }), this.type = s;
591
- },
592
- openResourceModal(s) {
593
- this.$modal.show(
594
- X[s],
595
- {},
596
- {},
597
- {
598
- input: (t) => {
599
- s === "image" ? this.resourceUrl = t : s === "video" && (this.video = t);
600
- }
601
- }
602
- );
603
- }
604
- }
605
- };
606
- var I = function() {
607
- var t = this, i = t._self._c;
608
- return i("div", { staticClass: "d-root" }, [i("div", { staticClass: "d-option", staticStyle: { "border-bottom": "none" } }, [i("div", { staticClass: "d-option-title" }, [t._v(" " + t._s(t.$t("_common:background").capitalize()) + " ")]), i("div", { staticClass: "flex w-full", staticStyle: { "flex-wrap": "wrap", "padding-top": "0.25em" } }, t._l([
609
- { label: t.$t("_common:image"), value: "image" },
610
- { label: t.$t("_common:color"), value: "color" },
611
- { label: t.$t("_common:gradient"), value: "gradient" },
612
- { label: t.$t("_common:video"), value: "video" }
613
- ], function({ label: e, value: a }, n) {
614
- return i("CButton", { key: e + n, staticStyle: { margin: "0 3px 3px 0", padding: "0 0.5em", height: "2em", "font-size": "15px", "border-radius": "4px" }, attrs: { type: t.type === a ? "secondary" : "none", pattern: t.type === a ? "primary" : "secondary", size: "normal" }, on: { click: function(l) {
615
- return t.setType(a);
616
- } } }, [t._v(" " + t._s(e.capitalize()) + " ")]);
617
- }), 1)]), t.type === "image" ? [i("div", { staticClass: "d-option-button-image", style: { backgroundImage: `url(${t.resourceUrl})` }, on: { click: function(e) {
618
- return t.openResourceModal(t.type);
619
- } } }), t.resourceUrl ? i("div", { staticClass: "d-option" }, [i("div", { staticClass: "d-option-title" }, [t._v(" " + t._s(t.$t("_common:filter").capitalize()) + " ")]), i("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "padding-top": "0.25em" } }, t._l([
620
- "",
621
- "sepia(30%) brightness(110%) contrast(110%) grayscale(100%)",
622
- "brightness(110%) contrast(90%) saturate(150%)",
623
- "sepia(50%) contrast(140%)",
624
- "sepia(25%) brightness(95%) contrast(95%) saturate(150%)",
625
- "blur(0px) sepia(15%) saturate(130%) hue-rotate(-30deg)"
626
- ], function(e, a) {
627
- return i("div", { key: a, staticClass: "bg-filter", class: { "is-active": t.filter === e }, on: { click: function(n) {
628
- t.filter = e;
629
- } } }, [i("div", { staticClass: "bg-filter-preview", style: {
630
- filter: e,
631
- backgroundImage: `url(${t.getUnsplashResized(t.resourceUrl, {
632
- w: 200
633
- })})`
634
- } })]);
635
- }), 0)]) : t._e(), i("div", { staticClass: "d-option", staticStyle: { "padding-bottom": "0.5em" } }, [i("div", { staticClass: "d-option-title" }, [i("div", { staticStyle: { flex: "1 1 auto" } }, [t._v(" " + t._s(t.$t("_common:position").capitalize()) + " ")]), i("CSlider", { staticStyle: { width: "80px", margin: "0" }, attrs: { value: t.position || 0, type: "secondary", size: "small", rounded: "" }, on: { input: function(e) {
636
- t.position = e;
637
- } } })], 1)])] : t._e(), t.type === "video" ? [i("div", { staticClass: "d-option-button-image", style: { backgroundImage: `url(${t.video.thumbnail})` }, on: { click: function(e) {
638
- return t.openResourceModal(t.type);
639
- } } })] : t.type === "color" ? i("div", { staticClass: "d-option" }, [i("ThemeColorRow", { staticClass: "d-option-title", attrs: { value: t.backgroundColor || "" }, on: { change: function(e) {
640
- t.backgroundColor = e;
641
- } } }, [t._v(" " + t._s(t.$t("colorLabel")) + " ")])], 1) : t.type === "gradient" ? i("GradientPicker", { attrs: { value: t.gradient || {} }, on: { input: function(e) {
642
- t.gradient = e;
643
- } } }) : t._e(), ["image", "video"].includes(t.type) ? i("div", { staticClass: "d-option", staticStyle: { "padding-bottom": "0.5em" } }, [i("div", { staticClass: "d-option-title" }, [i("div", { staticStyle: { flex: "1 1 auto" } }, [t._v(" " + t._s(t.$t("_common:blur").capitalize()) + " ")]), i("CSlider", { staticStyle: { width: "80px", margin: "0" }, attrs: { value: t.blur || 0, max: 30, type: "secondary", size: "small", rounded: "" }, on: { input: function(e) {
644
- t.blur = e;
645
- } } })], 1)]) : t._e(), ["image", "video"].includes(t.type) ? i("div", { staticClass: "d-option" }, [i("div", { staticClass: "d-option-title" }, [i("div", { staticStyle: { flex: "1 1 auto" } }, [t._v(t._s(t.$t("overlay.title")))]), i("CSwitch", { staticStyle: { "margin-right": "0" }, attrs: { value: !!t.overlay, size: "small", type: "secondary" }, on: { input: t.toggleOverlay } })], 1), t.overlay ? i("div", { staticClass: "d-option-row", staticStyle: { "padding-top": "1em" } }, [i("ThemeColorRow", { attrs: { value: t.overlayColor || "", placement: "top-end" }, on: { change: function(e) {
646
- t.overlayColor = e;
647
- } } }, [t._v(" " + t._s(t.$t("overlay.colorLabel")) + " ")])], 1) : t._e()]) : t._e()], 2);
648
- }, K = [], H = /* @__PURE__ */ r(
649
- A,
650
- I,
651
- K,
652
- !1,
653
- null,
654
- "dfdd3555"
655
- );
656
- const J = H.exports;
657
- export {
658
- J as default
659
- };
@@ -1,36 +0,0 @@
1
- import r from "./AnswerModal-CsWltR6j.js";
2
- import { n as o } from "./main-BL_yzf2r.js";
3
- const t = {
4
- components: {
5
- AnswerModal: r
6
- },
7
- props: {
8
- document: {
9
- type: Object,
10
- required: !0
11
- },
12
- answerType: {
13
- type: String,
14
- required: !0
15
- },
16
- closeFunc: {
17
- type: Function,
18
- default: null
19
- }
20
- }
21
- };
22
- var s = function() {
23
- var e = this, n = e._self._c;
24
- return n("AnswerModal", { attrs: { mode: e.answerType, _document: e.document }, on: { close: e.closeFunc } });
25
- }, c = [], a = /* @__PURE__ */ o(
26
- t,
27
- s,
28
- c,
29
- !1,
30
- null,
31
- null
32
- );
33
- const m = a.exports;
34
- export {
35
- m as default
36
- };