@cling-se/widget 0.17.0 → 1.0.0-beta.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 (232) hide show
  1. package/dist/AddClientCallout-e8d19R3f.js +101 -0
  2. package/dist/AnswerModal-BGvB8IVV.js +3291 -0
  3. package/dist/AttachmentItem-CkHbAm4l.js +171 -0
  4. package/dist/BaseUpload-BiJBcWRu.js +2472 -0
  5. package/dist/BlockMedia-CW5wgipC.js +103 -0
  6. package/dist/CCallout-Cy2eeIYd.js +104 -0
  7. package/dist/{CCurrencyDropdown-C2rXt2cJ.js → CCurrencyDropdown-DE_3CTjm.js} +91 -53
  8. package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
  9. package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
  10. package/dist/{CPhoneFormat-C8VPsiK6.js → CPhoneFormat-BS2nP9kc.js} +13 -21
  11. package/dist/CPhoneInput-Bf6329PO.js +207 -0
  12. package/dist/CPriceInput-d1yjuMQr.js +140 -0
  13. package/dist/CSelect-DgnT07Hk.js +98 -0
  14. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
  15. package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
  16. package/dist/ClientModal-BzWQtWSZ.js +1181 -0
  17. package/dist/ColorPicker-BvoFN8nu.js +1408 -0
  18. package/dist/CompanyModal-Bp4V_az9.js +250 -0
  19. package/dist/ContentWrapper-CuH6xKmo.js +265 -0
  20. package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
  21. package/dist/DocAnswer-BcNA_KEg.js +33 -0
  22. package/dist/DocDetails-CStEwWnU.js +448 -0
  23. package/dist/DocForm-BOoILf5E.js +6748 -0
  24. package/dist/DocFormSend-CQIf-HJY.js +171 -0
  25. package/dist/DocLinks-BRX5QzNe.js +36 -0
  26. package/dist/DocModalBase-D72yWj-x.js +29 -0
  27. package/dist/DocPrint-BI1LXUPE.js +399 -0
  28. package/dist/DocReceipt-DaZ4V76p.js +341 -0
  29. package/dist/DocSendReminder-DKGZlo7s.js +181 -0
  30. package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
  31. package/dist/DocTimeline-DCwofzuk.js +537 -0
  32. package/dist/DocumentClient-vJdxCB53.js +90 -0
  33. package/dist/DocumentLayout-CKSi42ev.js +1368 -0
  34. package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
  35. package/dist/DocumentVoided-CRX2WxWO.js +33 -0
  36. package/dist/EmbedInput-B-oeC4Wy.js +157 -0
  37. package/dist/EmbedSettings-B9Yka2yB.js +103 -0
  38. package/dist/ErrorCallout-B_ygH33E.js +34 -0
  39. package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
  40. package/dist/Flag-BwTgCNHO.js +41 -0
  41. package/dist/HeaderSettings-DvC7nlyY.js +720 -0
  42. package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
  43. package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
  44. package/dist/Index-0_3ULrWX.js +126 -0
  45. package/dist/Index-4NPe0sfX.js +629 -0
  46. package/dist/Index-B1uA0FF6.js +4 -0
  47. package/dist/Index-BBkCYm2q.js +201 -0
  48. package/dist/{Index-LzN6dktq.js → Index-BBwvo7S9.js} +10 -18
  49. package/dist/Index-BEMlsYwJ.js +68 -0
  50. package/dist/Index-BRBhJ6kz.js +21 -0
  51. package/dist/{Index-BPUYpfLJ.js → Index-BTFmHjUt.js} +47 -60
  52. package/dist/Index-BcUNnxLC.js +1098 -0
  53. package/dist/Index-Bo6ExBUL.js +93 -0
  54. package/dist/Index-BvMPCgdH.js +102 -0
  55. package/dist/Index-Bx5TOI9k.js +74 -0
  56. package/dist/Index-C7GZS8EI.js +16 -0
  57. package/dist/Index-CNWhm07R.js +25 -0
  58. package/dist/{Index-BUK-1yVR.js → Index-CQpznMKV.js} +9 -17
  59. package/dist/Index-CRzsnIij.js +159 -0
  60. package/dist/Index-CeSG1C41.js +140 -0
  61. package/dist/Index-CjfjdZj5.js +52 -0
  62. package/dist/Index-CskKmZpd.js +363 -0
  63. package/dist/Index-D5qwbCo1.js +28 -0
  64. package/dist/Index-D8Ae1Txt.js +228 -0
  65. package/dist/Index-DE8aenDB.js +3452 -0
  66. package/dist/Index-DI5EB5Rt.js +39 -0
  67. package/dist/Index-DaV57YPP.js +163 -0
  68. package/dist/Index-DbwkmoyM.js +38 -0
  69. package/dist/Index-Df9skok6.js +70 -0
  70. package/dist/{Index-BHJGfHm9.js → Index-DfLLA0ij.js} +313 -206
  71. package/dist/Index-Dw1CO5F9.js +76 -0
  72. package/dist/Index-PZXyOoVb.js +87 -0
  73. package/dist/{Index-BioOegOO.js → Index-ZUnH-BHj.js} +10 -18
  74. package/dist/Index-cjKGSiDi.js +136 -0
  75. package/dist/Index-m-goRuKD.js +49 -0
  76. package/dist/Index-rGeWbLcB.js +47 -0
  77. package/dist/Index-vrljNp6G.js +28 -0
  78. package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
  79. package/dist/InputToggleRow-v6qAWPg6.js +99 -0
  80. package/dist/ManualPopover-BONBJIUA.js +57 -0
  81. package/dist/MediaWrapper-CXb2UGd9.js +18 -0
  82. package/dist/{NotBindingText-CM3FN0A6.js → NotBindingText-BqESO13N.js} +13 -17
  83. package/dist/PackageGroup-AIysVmyh.js +1058 -0
  84. package/dist/PdfTerms-BlhHdTu3.js +34 -0
  85. package/dist/PdfViewer-DwZ1rwlN.js +392 -0
  86. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
  87. package/dist/PriceHeader-C4XhnoA3.js +488 -0
  88. package/dist/SearchApi-B7lXgUY6.js +137 -0
  89. package/dist/SendForm-BcD0xSvB.js +7031 -0
  90. package/dist/Setup-C2qaYDei.js +47 -0
  91. package/dist/{SmartList-DhhjSWLO.js → SmartList-DqG7Q5t7.js} +16 -24
  92. package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
  93. package/dist/{TermsSettings-BEQwmkFH.js → TermsSettings-BOCONyM4.js} +169 -56
  94. package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
  95. package/dist/ToggleBinding-7oq_oXPt.js +44 -0
  96. package/dist/UploadModal-C_X2NjVY.js +134 -0
  97. package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
  98. package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
  99. package/dist/VideoSelectModal-CW0OweCw.js +217 -0
  100. package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
  101. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  102. package/dist/{debounce-D0hKNU85.js → debounce-DNl99Gyo.js} +10 -10
  103. package/dist/dom-CkTGWrfu.js +69 -0
  104. package/dist/{focusDrawerMixin-C_aTLmK0.js → focusDrawerMixin-BwcErMDY.js} +1 -1
  105. package/dist/{formDrawerState-Da4mcbab.js → formDrawerState-DaurePnd.js} +2 -2
  106. package/dist/helpers-CPW--XIz.js +44 -0
  107. package/dist/index-BjiGCJPI.js +149 -0
  108. package/dist/index-CFNv6OvX.js +188 -0
  109. package/dist/index-Cx71On5Z.js +508 -0
  110. package/dist/index-DKMxIBz_.js +270 -0
  111. package/dist/index-DKf5SGLD.js +125 -0
  112. package/dist/index-E32WgUp9.js +3525 -0
  113. package/dist/index-kp-GC5I0.js +513 -0
  114. package/dist/index.es.js +2 -5
  115. package/dist/index.umd.js +285 -1485
  116. package/dist/{main-BgzLHIoo.js → main-Cb-nyil1.js} +41414 -42507
  117. package/dist/mapFormMixin-D3BihYWW.js +1544 -0
  118. package/dist/omit--YYr41Xp.js +31 -0
  119. package/dist/{publicSenderState-DB4BHByV.js → publicSenderState-CdRW_Wwp.js} +4 -4
  120. package/dist/splitpanes-D-ThFkeR.js +342 -0
  121. package/dist/style.css +1 -4
  122. package/dist/template-BvaNnq-g.js +1493 -0
  123. package/dist/{throttle-DT2UVOqm.js → throttle-D-bUGaVh.js} +2 -2
  124. package/dist/tippy.esm-BmKNqohP.js +1994 -0
  125. package/dist/useTermsModal-Dhf6_eYb.js +87 -0
  126. package/dist/{utils-nos8CB1L.js → utils-CBPcYdLv.js} +8 -11
  127. package/dist/validation-DOcUOoMe.js +40 -0
  128. package/package.json +18 -21
  129. package/dist/AddClientCallout-BJzBdba1.js +0 -48
  130. package/dist/AnswerModal-frHq1g4s.js +0 -3874
  131. package/dist/AttachmentItem-BaN0OrEV.js +0 -85
  132. package/dist/BaseDatePicker-B-AfdrSb.js +0 -3187
  133. package/dist/BaseUpload-CY3lTcte.js +0 -1977
  134. package/dist/BlockMedia-Bb5wQIDg.js +0 -76
  135. package/dist/CCallout-5quI6yyk.js +0 -58
  136. package/dist/CDropdownItem-CaoSQX6X.js +0 -640
  137. package/dist/CFormField-Dd2Y71JG.js +0 -240
  138. package/dist/CPhoneInput-BU1t6eo_.js +0 -138
  139. package/dist/CPriceInput-pv2aIVkH.js +0 -116
  140. package/dist/CSelect-CrM45B7V.js +0 -91
  141. package/dist/CSkeleton-BkvONMqL.js +0 -55
  142. package/dist/ClientAutocomplete-BRXIKQSk.js +0 -438
  143. package/dist/ClientModal-CvHAptV2.js +0 -666
  144. package/dist/ColorPicker-RgoXRrud.js +0 -2879
  145. package/dist/CompanyModal-OL4bD9Gk.js +0 -147
  146. package/dist/ContentWrapper-8HduCnR4.js +0 -190
  147. package/dist/CoverBlockSettings-DUv8AcdX.js +0 -659
  148. package/dist/DocAnswer-DiyFfpT2.js +0 -36
  149. package/dist/DocDetails-BxNRfBnK.js +0 -263
  150. package/dist/DocForm-MGp-o0pu.js +0 -5017
  151. package/dist/DocFormSend-q_QuVCqh.js +0 -146
  152. package/dist/DocLinks-DGDdp30U.js +0 -38
  153. package/dist/DocModalBase-qG4RqwBn.js +0 -28
  154. package/dist/DocPrint-Cln3kt0g.js +0 -240
  155. package/dist/DocReceipt-nbsJ-ukZ.js +0 -217
  156. package/dist/DocSendReminder-B3qdqduf.js +0 -140
  157. package/dist/DocTextEditor-CQDnjnRY.js +0 -17193
  158. package/dist/DocTimeline-CgKHoDcG.js +0 -485
  159. package/dist/DocumentClient-UZlnIlz5.js +0 -136
  160. package/dist/DocumentLayout-Dvr4zgyF.js +0 -4880
  161. package/dist/DocumentLogotype-mAVgMRHr.js +0 -92
  162. package/dist/DocumentVoided-BXYNrf_6.js +0 -25
  163. package/dist/EmbedInput-YRUrw3c6.js +0 -117
  164. package/dist/EmbedSettings-DvRreF7H.js +0 -74
  165. package/dist/ErrorCallout-DVknpLVY.js +0 -27
  166. package/dist/FilePreviewModal-DC56FaGy.js +0 -81
  167. package/dist/Flag-D5iZLESg.js +0 -46
  168. package/dist/HeaderSettings-DXZnZL7A.js +0 -440
  169. package/dist/ImageSelectModal-Bu4_xZga.js +0 -86
  170. package/dist/ImageUploadWrapper-CtZhkAm1.js +0 -1604
  171. package/dist/Index-B1dJO6Bk.js +0 -54
  172. package/dist/Index-B3pz1coY.js +0 -150
  173. package/dist/Index-BHgW8EHW.js +0 -2446
  174. package/dist/Index-BNucs2O-.js +0 -154
  175. package/dist/Index-BW-EtZ1z.js +0 -55
  176. package/dist/Index-BjKACpun.js +0 -66
  177. package/dist/Index-C94BL4uU.js +0 -294
  178. package/dist/Index-CB57haU8.js +0 -58
  179. package/dist/Index-CP17iXT6.js +0 -25
  180. package/dist/Index-CUSbvjoD.js +0 -62
  181. package/dist/Index-CVnD6jo5.js +0 -25
  182. package/dist/Index-Ci5zdPeT.js +0 -28
  183. package/dist/Index-CikqSMjb.js +0 -41
  184. package/dist/Index-CxO4tJ3U.js +0 -26
  185. package/dist/Index-D4J4BpHd.js +0 -230
  186. package/dist/Index-DAQQQlut.js +0 -754
  187. package/dist/Index-DNxSR72J.js +0 -73
  188. package/dist/Index-DPuKRwmu.js +0 -41
  189. package/dist/Index-DSy8QG8T.js +0 -32
  190. package/dist/Index-DX6_D-J-.js +0 -77
  191. package/dist/Index-Dk0KaIKg.js +0 -643
  192. package/dist/Index-Hkzoh9QR.js +0 -24
  193. package/dist/Index-KsHJxWAa.js +0 -94
  194. package/dist/Index-TtItTuv6.js +0 -33
  195. package/dist/Index-YAD39Qvg.js +0 -146
  196. package/dist/Index-eh909lAz.js +0 -107
  197. package/dist/Index-otowKI_C.js +0 -56
  198. package/dist/Index-t_oVV8Rc.js +0 -84
  199. package/dist/Index-vG96oEXZ.js +0 -144
  200. package/dist/InputToggleRow-CcqJDguN.js +0 -57
  201. package/dist/ManualPopover-BE2IN-XU.js +0 -60
  202. package/dist/MediaWrapper-lnGUFiyc.js +0 -23
  203. package/dist/PackageGroup-BsmxOMLW.js +0 -704
  204. package/dist/PdfTerms-BgYwZoAZ.js +0 -31
  205. package/dist/PdfViewer-C0lDpjte.js +0 -383
  206. package/dist/PlainHtml-5YwYVj1v.js +0 -27
  207. package/dist/PriceHeader-CxqhpGS-.js +0 -338
  208. package/dist/SearchApi-BndaIbri.js +0 -161
  209. package/dist/SendForm-D7U9fG-5.js +0 -1023
  210. package/dist/Setup-CmAK2_ZT.js +0 -50
  211. package/dist/ThemeColorRow-BlnhzebY.js +0 -69
  212. package/dist/ToggleBinding-t_58JFya.js +0 -42
  213. package/dist/UploadModal-T-WpYNsN.js +0 -95
  214. package/dist/VideoPlayerInput-DKHKjMgX.js +0 -97
  215. package/dist/VideoPlayerSettings-DDMlUvSt.js +0 -61
  216. package/dist/VideoSelectModal-B9bbP0dd.js +0 -104
  217. package/dist/answerDocumentMixin-DXI_E5Kx.js +0 -51
  218. package/dist/dom-CWsqMElk.js +0 -71
  219. package/dist/formValidationMixin-WZ2lGndu.js +0 -49
  220. package/dist/index-B2l57ilt.js +0 -102
  221. package/dist/index-COKDjmM2.js +0 -167
  222. package/dist/index-HtKGcIng.js +0 -2700
  223. package/dist/index-LQ7NztTt.js +0 -81
  224. package/dist/index-fx5gR8fM.js +0 -351
  225. package/dist/index-zXXJrTvv.js +0 -492
  226. package/dist/mapFormMixin-CQgSN7dv.js +0 -3028
  227. package/dist/omit-ScS7B6c5.js +0 -31
  228. package/dist/simplebar.min-B0cB_p8g.js +0 -71
  229. package/dist/splitpanes-BHUVsCZF.js +0 -382
  230. package/dist/tippy.esm-CR89mtdY.js +0 -1805
  231. package/dist/vuedraggable.umd-CkXXkt1b.js +0 -3161
  232. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,659 +0,0 @@
1
- import { m as c } from "./mapFormMixin-CQgSN7dv.js";
2
- import { T as u } from "./ThemeColorRow-BlnhzebY.js";
3
- import { d as o, b as h } from "./CDropdownItem-CaoSQX6X.js";
4
- import { n as r, X as p, P as m } from "./main-BgzLHIoo.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-Bu4_xZga.js"),
521
- video: () => import("./VideoSelectModal-B9bbP0dd.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-frHq1g4s.js";
2
- import { n as o } from "./main-BgzLHIoo.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
- };