@cling-se/widget 0.9.11 → 0.9.12

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 (143) hide show
  1. package/dist/{AddClientCallout-bccc787f.js → AddClientCallout-6b0621ec.js} +5 -5
  2. package/dist/{AnswerModal-4de1dbc1.js → AnswerModal-f6cb74d7.js} +154 -143
  3. package/dist/{AttachmentItem-800d8c9f.js → AttachmentItem-2a4cb524.js} +3 -3
  4. package/dist/{BaseDatePicker-1abafbac.js → BaseDatePicker-2daf62c0.js} +43 -43
  5. package/dist/{BaseInput-51ade595.js → BaseInput-a4523348.js} +1 -1
  6. package/dist/{BaseUpload-b9b2fa68.js → BaseUpload-737004ad.js} +2 -2
  7. package/dist/{BlockMedia-efc20618.js → BlockMedia-a145fc19.js} +1 -1
  8. package/dist/{CCallout-a357fde2.js → CCallout-7fb1ad5c.js} +3 -3
  9. package/dist/{CDropdownItem-bb7f1de7.js → CDropdownItem-79c8dc70.js} +5 -5
  10. package/dist/{CField-d69fcf46.js → CField-2b1118f9.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-5ac8d200.js → CSlider.vue_vue_type_style_index_0_lang-47894df7.js} +1 -1
  12. package/dist/{ClientAutocomplete-d126a3bd.js → ClientAutocomplete-3d098904.js} +2 -2
  13. package/dist/{ClientModal-e2c196c4.js → ClientModal-d1bf8d0d.js} +4 -4
  14. package/dist/{ColorPicker-81f9f778.js → ColorPicker-c61cd86f.js} +29 -29
  15. package/dist/{CompanyModal-092999bf.js → CompanyModal-46cab2d1.js} +3 -3
  16. package/dist/{ContentWrapper-1f930dce.js → ContentWrapper-3251ab37.js} +11 -11
  17. package/dist/{CoverBlockSettings-5aa513a4.js → CoverBlockSettings-3ad93db4.js} +9 -8
  18. package/dist/DocAnswer-a0f2853b.js +33 -0
  19. package/dist/{DocForm-2e9af604.js → DocForm-a4c0a0f1.js} +695 -740
  20. package/dist/{DocFormSend-fadf14c9.js → DocFormSend-ed982485.js} +28 -24
  21. package/dist/{DocModalBase-4172fbbb.js → DocModalBase-22abfff9.js} +1 -1
  22. package/dist/{DocPrint-edc291ba.js → DocPrint-028aa0ed.js} +1 -1
  23. package/dist/{DocReceipt-bcb8539c.js → DocReceipt-3bd27c4a.js} +1 -1
  24. package/dist/{DocSendReminder-c75a1906.js → DocSendReminder-8ad0ca86.js} +1 -1
  25. package/dist/{DocTextEditor-c9b90281.js → DocTextEditor-8930e458.js} +7 -7
  26. package/dist/{DocTimeline-2afee21c.js → DocTimeline-2ab336f0.js} +5 -5
  27. package/dist/{DocumentClient-425f6e0b.js → DocumentClient-441798b5.js} +5 -5
  28. package/dist/{DocumentLayout-0d24ac85.js → DocumentLayout-02c32058.js} +95 -95
  29. package/dist/{DocumentLogotype-278b2823.js → DocumentLogotype-43ef9231.js} +16 -16
  30. package/dist/{EmbedInput-28796e66.js → EmbedInput-996ae0e3.js} +2 -2
  31. package/dist/{EmbedSettings-1e097db9.js → EmbedSettings-41af8b9c.js} +3 -3
  32. package/dist/{ErrorCallout-ddbc30af.js → ErrorCallout-d392ffe9.js} +1 -1
  33. package/dist/{FilePreviewModal-360216a2.js → FilePreviewModal-e298691e.js} +4 -4
  34. package/dist/{HeaderSettings-abc9e60f.js → HeaderSettings-687131c9.js} +18 -17
  35. package/dist/{ImageSelectModal-2c078df5.js → ImageSelectModal-eec441aa.js} +15 -17
  36. package/dist/{ImageUploadWrapper-99a3b0dd.js → ImageUploadWrapper-b244cf9e.js} +2 -2
  37. package/dist/{Index-61786d22.js → Index-01a3b6ed.js} +6 -6
  38. package/dist/{Index-f9a97c67.js → Index-0ed1b84a.js} +2 -2
  39. package/dist/{Index-05d4a173.js → Index-13b65d9b.js} +2 -2
  40. package/dist/{Index-6435f551.js → Index-2468cd69.js} +11 -11
  41. package/dist/{Index-aecbccac.js → Index-25ce24cc.js} +2 -2
  42. package/dist/{Index-942a36d2.js → Index-2b19a264.js} +12 -12
  43. package/dist/{Index-23c1de88.js → Index-30ebb13c.js} +2 -2
  44. package/dist/{Index-8b57e293.js → Index-37d3fd60.js} +2 -2
  45. package/dist/{Index-abb29c87.js → Index-485b35e8.js} +26 -26
  46. package/dist/{Index-cb10ca9b.js → Index-5ff95ead.js} +8 -8
  47. package/dist/{Index-0a9e95d6.js → Index-62ea070e.js} +2 -2
  48. package/dist/{Index-81eeecba.js → Index-6c5de42a.js} +2 -2
  49. package/dist/{Index-5688e5e1.js → Index-6ca4a7e4.js} +14 -14
  50. package/dist/{Index-610a54bf.js → Index-6d61f98d.js} +25 -25
  51. package/dist/{Index-a0de23fe.js → Index-77a7d639.js} +5 -5
  52. package/dist/{Index-a8faf552.js → Index-7c421b05.js} +4 -4
  53. package/dist/{Index-d841c396.js → Index-7d2fe1bd.js} +5 -5
  54. package/dist/{Index-a8b60741.js → Index-87cd4771.js} +4 -4
  55. package/dist/{Index-ad024dc9.js → Index-8882ee1b.js} +5 -5
  56. package/dist/{Index-7317f443.js → Index-8c254496.js} +4 -4
  57. package/dist/{Index-168790bc.js → Index-9ccce76f.js} +4 -4
  58. package/dist/{Index-7a56c885.js → Index-a7871ea6.js} +4 -4
  59. package/dist/{Index-61b794ca.js → Index-a9f197a7.js} +4 -4
  60. package/dist/{Index-f3af647f.js → Index-af3a9b66.js} +4 -4
  61. package/dist/{Index-cb1efaaa.js → Index-b9b80eae.js} +6 -6
  62. package/dist/{Index-4cae2241.js → Index-bf23d7a9.js} +11 -11
  63. package/dist/{Index-c5b9ad7f.js → Index-c3a619f4.js} +4 -4
  64. package/dist/{Index-193a4968.js → Index-d3225e03.js} +5 -5
  65. package/dist/{Index-d56d4b7b.js → Index-d76bf229.js} +1 -1
  66. package/dist/{Index-d2d40188.js → Index-e2919ed0.js} +4 -4
  67. package/dist/{Index-8b02f74f.js → Index-ee558d21.js} +1 -1
  68. package/dist/{Index-44764dbb.js → Index-efa47af4.js} +7 -7
  69. package/dist/{Index-901f2f68.js → Index-f14261e7.js} +3 -3
  70. package/dist/{Index-83597574.js → Index-fd947a18.js} +10 -10
  71. package/dist/{InputToggleRow-3bba2a55.js → InputToggleRow-ee713437.js} +1 -1
  72. package/dist/IsPremiumPreStep-9b5a0a01.js +3669 -0
  73. package/dist/{MediaWrapper-574eca05.js → MediaWrapper-45257b41.js} +3 -3
  74. package/dist/{NotBindingText-f2acdb51.js → NotBindingText-c2f7c9cb.js} +2 -2
  75. package/dist/{PackageGroup-625d7093.js → PackageGroup-b2aa42da.js} +12 -12
  76. package/dist/{PdfTerms-05e6491e.js → PdfTerms-2d66043e.js} +4 -4
  77. package/dist/{PdfViewer-4d32b0f1.js → PdfViewer-947ee278.js} +2 -2
  78. package/dist/{PlainHtml-c2e1feca.js → PlainHtml-a3d47a45.js} +1 -1
  79. package/dist/{PriceHeader-ce8bb22c.js → PriceHeader-b6a99a57.js} +11 -11
  80. package/dist/{SearchApi-b7e03288.js → SearchApi-c6511bc3.js} +2 -2
  81. package/dist/Setup-60ec3c2a.js +54 -0
  82. package/dist/{TermsSettings-de33fad6.js → TermsSettings-836555da.js} +6 -6
  83. package/dist/{ThemeColorRow-52efe243.js → ThemeColorRow-672086c3.js} +11 -20
  84. package/dist/{ToggleBinding-ec8d351f.js → ToggleBinding-3c581fbb.js} +3 -3
  85. package/dist/{UploadModal-463188b1.js → UploadModal-b3933203.js} +3 -3
  86. package/dist/{VideoPlayerInput-9314dfa5.js → VideoPlayerInput-5ad13a27.js} +3 -3
  87. package/dist/{VideoPlayerSettings-e7978498.js → VideoPlayerSettings-e964804b.js} +4 -4
  88. package/dist/{VideoSelectModal-72e1e4e2.js → VideoSelectModal-321b2270.js} +12 -12
  89. package/dist/{answerDocumentMixin-d65059b8.js → answerDocumentMixin-76224b35.js} +3 -3
  90. package/dist/{cssMode-88d0146a.js → cssMode-2bf89988.js} +15 -19
  91. package/dist/{focusDrawerMixin-46eade80.js → focusDrawerMixin-dffff858.js} +1 -1
  92. package/dist/{formComponentsInstall-0cfab48e.js → formComponentsInstall-57c30f22.js} +263 -258
  93. package/dist/{formValidationMixin-94fb3562.js → formValidationMixin-9d5c1283.js} +1 -1
  94. package/dist/{freemarker2-fb187d64.js → freemarker2-503b066f.js} +19 -23
  95. package/dist/{handlebars-4a1a8024.js → handlebars-8c0c0a90.js} +11 -15
  96. package/dist/{html-00e90fc7.js → html-5b503855.js} +14 -18
  97. package/dist/{htmlMode-cfbebdc7.js → htmlMode-b751a462.js} +19 -23
  98. package/dist/image-a902f5a5.js +18 -0
  99. package/dist/index-1c1cefec.js +14 -0
  100. package/dist/{index-93fd29b3.js → index-771f5571.js} +4 -4
  101. package/dist/index-9a5227ef.js +82 -0
  102. package/dist/{index-7a30802a.js → index-a9f8e647.js} +7 -7
  103. package/dist/{index-de7702a8.js → index-d81be181.js} +15 -15
  104. package/dist/index.es.js +4 -4
  105. package/dist/index.umd.js +600 -597
  106. package/dist/{javascript-3213b923.js → javascript-2d18f43b.js} +11 -15
  107. package/dist/{jsonMode-afc781d8.js → jsonMode-95421c7a.js} +19 -23
  108. package/dist/{liquid-dc5a4df5.js → liquid-47ff3277.js} +14 -18
  109. package/dist/{main-abeba7c1.js → main-5532481e.js} +26942 -26704
  110. package/dist/{mapFormMixin-e82f943f.js → mapFormMixin-218f9749.js} +1 -1
  111. package/dist/{publicSenderState-2f11c080.js → publicSenderState-7c91d66d.js} +1 -1
  112. package/dist/{python-4bce1745.js → python-afd06bc4.js} +11 -15
  113. package/dist/{razor-f57062fd.js → razor-28875ccf.js} +18 -22
  114. package/dist/{simplebar.min-07c0e6b7.js → simplebar.min-3682e5c9.js} +1 -1
  115. package/dist/style.css +2 -2
  116. package/dist/template-cd101772.js +526 -0
  117. package/dist/throttle-3a262479.js +18 -0
  118. package/dist/{tinycolor-0084a04e.js → tinycolor-ca02e626.js} +6 -6
  119. package/dist/{tippy.esm-2bcbed04.js → tippy.esm-a7740684.js} +5 -5
  120. package/dist/{tsMode-c0486e4e.js → tsMode-bc258439.js} +15 -19
  121. package/dist/{typescript-50a48698.js → typescript-ac68850c.js} +11 -15
  122. package/dist/{utils-d907da71.js → utils-b0646315.js} +5 -5
  123. package/dist/{vuedraggable.umd-c326d90c.js → vuedraggable.umd-934a0379.js} +48 -48
  124. package/dist/{xml-0ef7a70a.js → xml-a8591419.js} +14 -18
  125. package/package.json +10 -8
  126. package/dist/IsPremiumPreStep-1657f1ce.js +0 -2443
  127. package/dist/Setup-e92daff6.js +0 -50
  128. package/dist/assets/article-options-10522.png +0 -0
  129. package/dist/assets/bg-base-11995.png +0 -0
  130. package/dist/assets/bg-pro-89155.png +0 -0
  131. package/dist/assets/bg-start-17372.png +0 -0
  132. package/dist/assets/blank-95062.png +0 -0
  133. package/dist/assets/block-options-11378.png +0 -0
  134. package/dist/assets/columnGallery.image-14820.png +0 -0
  135. package/dist/assets/doc-send-25589.png +0 -0
  136. package/dist/assets/drag-block-21107.png +0 -0
  137. package/dist/assets/headerCircularGradient.image-79345.png +0 -0
  138. package/dist/assets/roiCalculator.image-13673.png +0 -0
  139. package/dist/assets/text-bubble-21606.png +0 -0
  140. package/dist/index-e9d870d0.js +0 -17
  141. package/dist/regions-29ee6964.js +0 -1250
  142. package/dist/template-3600893b.js +0 -528
  143. package/dist/throttle-1bf5bb97.js +0 -18
@@ -1,528 +0,0 @@
1
- import { P as s, L as d, k as l } from "./main-abeba7c1.js";
2
- import c from "/Users/rang.ali/Projects/cling-vue/widget/dist/assets/headerCircularGradient.image-79345.png";
3
- import g from "/Users/rang.ali/Projects/cling-vue/widget/dist/assets/columnGallery.image-14820.png";
4
- import p from "/Users/rang.ali/Projects/cling-vue/widget/dist/assets/roiCalculator.image-13673.png";
5
- import u from "/Users/rang.ali/Projects/cling-vue/widget/dist/assets/blank-95062.png";
6
- function t(e) {
7
- return btoa(encodeURIComponent(e));
8
- }
9
- function $(e) {
10
- return decodeURIComponent(atob(e));
11
- }
12
- const h = {
13
- previewUrl: `<div style="position: relative;"><img src="${c}" style="width: 100%; height: auto;"></div>`,
14
- data: {
15
- html: t(`
16
- <!-- Add your HTML code here -->
17
- <div class="root">
18
- <div class="outer-container">
19
- <div class="inner-container">
20
- <div class="title">Proposal Title</div>
21
- <div class="text">Prepared for Name Namesson</div>
22
- <div class="logo">
23
- Logo
24
- </div>
25
- </div>
26
- </div>
27
- </div>
28
- `),
29
- css: t(`
30
- @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');
31
-
32
- body,html {
33
- margin: 0;
34
- font-family: 'Poppins', sans-serif;
35
- font-size: 16px;
36
- }
37
-
38
- .root {
39
- background-color: green;
40
- background-image: radial-gradient(100% 150% at 13.58% 44.42%, #001855 0%, #00917d 100%);
41
- position: relative;
42
- display: grid;
43
- place-items: center;
44
- padding: 120px 100px;
45
- overflow: hidden;
46
- }
47
- .root::before {
48
- position: absolute;
49
- content: '';
50
- height: 100%;
51
- width: 40%;
52
- right: -10%;
53
- top: 20%;
54
- pointer-events: none;
55
- border-radius: 100%;
56
- background-color: rgb(0, 255, 200);
57
- filter: blur(200px);
58
- }
59
- .root::after {
60
- position: absolute;
61
- content: '';
62
- height: 200vh;
63
- width: 200vh;
64
- right: 40%;
65
- top: 0;
66
- transform: translateY(-40%);
67
- pointer-events: none;
68
- border-radius: 100%;
69
- background: radial-gradient(46.29% 46.29% at 47.93% 53.28%, #00449c 0%, rgba(4, 200, 207, 0.404) 100%);
70
- box-shadow: 0px 0px 250px 250px rgba(4, 76, 124, 0.8);
71
- }
72
- .outer-container {
73
- position: relative;
74
- z-index: 1;
75
- background-color: red;
76
- background: radial-gradient(100% 100% at 50% 0%, #220081 0%, #00b7cf 100%);
77
- box-shadow: 0 20px 50px 10px rgba(0,0,0,0.1);
78
- overflow: hidden;
79
- width: 100%;
80
- max-width: 1000px;
81
- }
82
- .outer-container::after {
83
- content: '';
84
- position: absolute;
85
- pointer-events: none;
86
- background: radial-gradient(46.29% 46.29% at 50% 50%, #00ffc8 0%, rgb(116, 4, 207) 100%);
87
- width: 200%;
88
- border-radius: 50%;
89
- height: 300%;
90
- top: -20%;
91
- right: 15%;
92
- }
93
- .inner-container {
94
- position: relative;
95
- z-index: 1;
96
- margin: 80px;
97
- padding: 60px;
98
- background-color: #FFFFFF;
99
- box-shadow: 0 20px 50px rgba(0,0,0,0.1);
100
- }
101
- .title {
102
- font-size: 2.8rem;
103
- font-weight: 400;
104
- padding-top: 13rem;
105
- }
106
- .text {
107
- color: #3b385f;
108
- font-weight: 300;
109
- }
110
- .logo {
111
- color: rgb(180, 180, 206);
112
- position: absolute;
113
- right: 40px;
114
- top: 40px;
115
- border: 3px solid currentColor;
116
- padding: 4px;
117
- line-height: 1;
118
- font-size: 11px;
119
- text-transform: uppercase;
120
- font-weight: 700;
121
- }
122
- `),
123
- javascript: t("")
124
- }
125
- }, m = {
126
- previewUrl: `<div style="position: relative;"><img src="${g}" style="width: 100%; height: auto;"></div>`,
127
- data: {
128
- html: t(`
129
- <div class="container">
130
- <div class="header">
131
- <div class="title">A title</div>
132
- <div class="text">This is where you can add some more text.</div>
133
- </div>
134
- <div class="grid">
135
- <div class="column-xs-12 column-md-4">
136
- <figure class="img-container">
137
- <img src="https://images.unsplash.com/photo-1526170375885-4d8ecf77b99f?crop=entropy&cs=tinysrgb&fm=jpg&ixlib=rb-1.2.1&q=80&raw_url=true&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=800" />
138
- </figure>
139
- <div class="img-text">
140
- This is a description.
141
- </div>
142
- </div>
143
- <div class="column-xs-12 column-md-4">
144
- <figure class="img-container">
145
- <img src="https://images.unsplash.com/photo-1526170286768-b3c80b34b036?ixlib=rb-1.2.1&raw_url=true&q=80&fm=jpg&crop=entropy&cs=tinysrgb&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=800" />
146
- </figure>
147
- <div class="img-text">
148
- This is a description.
149
- </div>
150
- </div>
151
- <div class="column-xs-12 column-md-4">
152
- <figure class="img-container">
153
- <img src="https://images.unsplash.com/photo-1526170160160-1a5eb242ab58?ixlib=rb-1.2.1&raw_url=true&q=80&fm=jpg&crop=entropy&cs=tinysrgb&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=800">
154
- </figure>
155
- <div class="img-text">
156
- This is a description.
157
- </div>
158
- </div>
159
- </div>
160
- </div>
161
- `),
162
- css: t(`
163
- @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;700&display=swap');
164
-
165
- body, html {
166
- margin: 0;
167
- font-size: 16px;
168
- font-family: 'Space Grotesk', sans-serif;
169
- }
170
-
171
- .container {
172
- padding: 60px 1rem;
173
- }
174
-
175
- .header {
176
- text-align: center;
177
- padding-bottom: 40px;
178
- }
179
-
180
- .title {
181
- font-size: 2.5rem;
182
- font-weight: 700;
183
- padding-bottom: 0.25em;
184
- }
185
-
186
- .text {
187
- color: hsla(0, 0%, 35%);
188
- font-weight: 300;
189
- }
190
-
191
- .grid {
192
- display: grid;
193
- grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
194
- grid-gap: 30px;
195
- max-width: 1000px;
196
- margin: 0 auto;
197
- }
198
-
199
- .img-container {
200
- width: 100%;
201
- height: 400px;
202
- overflow: hidden;
203
- margin: 0;
204
- border-radius: 6px;
205
- box-shadow: 0 4px 12px -4px rgba(0,0,0,0.15);
206
- }
207
-
208
- img {
209
- width: 100%;
210
- height: 400px;
211
- object-fit: cover;
212
- }
213
-
214
- .img-text {
215
- font-size: 14px;
216
- padding-top: 8px;
217
- text-align: center;
218
- color: hsla(0, 0%, 45%);
219
- }
220
- `),
221
- javascript: t("")
222
- }
223
- }, v = {
224
- previewUrl: `<div style="position: relative;"><img src="${p}" style="width: 100%; height: auto;"></div>`,
225
- data: {
226
- html: t(`
227
- <section class="root">
228
- <div class="container">
229
- <h2>Savings calculator</h2>
230
- <h1>
231
- $<span class="savings-amount"></span>
232
- </h1>
233
- <p>Savings per year.</p>
234
- <div class="range-slider">
235
- <div class="range-slider__range-base"></div>
236
- <div class="range-slider__range-filled"></div>
237
- <input
238
- class="range-slider__range"
239
- type="range"
240
- value="100"
241
- min="10"
242
- max="500"
243
- step="1"
244
- />
245
- </div>
246
- <h4>
247
- Number of seats: <span class="value-amount"></span>
248
- </h4>
249
- </div>
250
- </section>
251
- `),
252
- css: t(`
253
- html, body {
254
- margin: 0;
255
- font-family: sans-serif;
256
- color: white;
257
- }
258
-
259
- .root {
260
- background-color: hsl(0, 0%, 95%);
261
- padding: 100px 0;
262
- background: linear-gradient(hsla(0, 0%, 0%, 0.2), hsla(0, 0%, 0%, 0.6)), url(https://images.unsplash.com/photo-1497366811353-6870744d04b2?crop=entropy&cs=tinysrgb&fm=jpg&ixlib=rb-1.2.1&q=80&raw_url=true&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1400);
263
- background-repeat: no-repeat;
264
- background-size: cover;
265
- background-position: center;
266
- }
267
-
268
- .container {
269
- padding: 20px;
270
- text-align: center;
271
- max-width: 800px;
272
- margin: 0 auto;
273
- }
274
-
275
- h1 {
276
- font-size: 4.25rem;
277
- margin: 0;
278
- line-height: 1.2;
279
- padding: 0;
280
- }
281
- h2 {
282
- font-size: 1.25rem;
283
- padding: 0 0 1rem 0;
284
- margin: 0;
285
- color: hsl(35, 100%, 70%);
286
- font-weight: normal;
287
- }
288
-
289
- h4 {
290
- font-size: 1rem;
291
- padding: 0;
292
- margin: 1rem 0 0 0;
293
- font-weight: normal;
294
- opacity: 0.85;
295
- }
296
-
297
- p {
298
- font-size: 18px;
299
- padding: 0;
300
- margin: 0;
301
- line-height: 1.5;
302
- padding-bottom: 3rem;
303
- opacity: 0.8;
304
- font-weight: lighter;
305
- }
306
-
307
-
308
- /* Input slider */
309
- :root {
310
- --range-width: 100%;
311
- --range-max-width: 460px;
312
- --range-handle-color: white;
313
- --range-handle-color-hover: hsl(0, 0%, 95%);
314
- --range-handle-size: 34px;
315
- --range-filled-color: hsl(35, 100%, 60%);
316
- --range-track-color: hsla(0, 0%, 100%, 0.4);
317
- --range-track-height: 10px;
318
- }
319
- .range-slider {
320
- width: var(--range-width);
321
- max-width: var(--range-max-width);
322
- margin: 0 auto;
323
- position: relative;
324
- height: 2em;
325
- }
326
-
327
- .range-slider__range {
328
- -webkit-appearance: none;
329
- width: 100%;
330
- height: 100%;
331
- background-color: transparent;
332
- outline: none;
333
- padding: 0;
334
- margin: 0;
335
- position: relative;
336
-
337
- }
338
- .range-slider__range-base {
339
- width: 100%;
340
- height: var(--range-track-height);
341
- border-radius: 5px;
342
- background: var(--range-track-color);
343
- position: absolute;
344
- left: 0;
345
- top: 50%;
346
- pointer-events: none;
347
- transform: translateY(-50%);
348
- }
349
- .range-slider__range-filled {
350
- height: var(--range-track-height);
351
- border-radius: 5px;
352
- background: var(--range-filled-color);
353
- position: absolute;
354
- left: 0;
355
- top: 50%;
356
- pointer-events: none;
357
- transform: translateY(-50%);
358
- }
359
-
360
- /* Range Handle */
361
- .range-slider__range::-webkit-slider-thumb {
362
- appearance: none;
363
- width: var(--range-handle-size);
364
- height: var(--range-handle-size);
365
- border-radius: 50%;
366
- background: var(--range-handle-color);
367
- cursor: pointer;
368
- transition: background 0.15s ease-in-out;
369
- box-shadow: 0 2px 3px hsla(0, 0%, 0%, 0.2);
370
- }
371
- .range-slider__range::-webkit-slider-thumb:hover {
372
- background: var(--range-handle-color-hover);
373
- }
374
-
375
- .range-slider__range:active::-webkit-slider-thumb {
376
- background: var(--range-handle-color-hover);
377
- }
378
-
379
- .range-slider__range::-moz-range-thumb {
380
- width: var(--range-handle-size);
381
- height: var(--range-handle-size);
382
- border: 0;
383
- border-radius: 50%;
384
- background: var(--range-handle-color);
385
- cursor: pointer;
386
- transition: background 0.15s ease-in-out;
387
- box-shadow: 0 2px 3px hsla(0, 0%, 0%, 0.2);
388
-
389
- }
390
- .range-slider__range::-moz-range-thumb:hover {
391
- background: var(--range-handle-color-hover);
392
- }
393
-
394
- .range-slider__range:active::-moz-range-thumb {
395
- background: var(--range-handle-color-hover);
396
- }
397
-
398
- /* Focus state */
399
- .range-slider__range:focus::-webkit-slider-thumb {
400
- box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
401
- }
402
-
403
- /* Firefox Overrides */
404
- ::-moz-range-track {
405
- background: var(--range-track-color);
406
- border: 0;
407
- }
408
-
409
- input::-moz-focus-inner,
410
- input::-moz-focus-outer {
411
- border: 0;
412
- }
413
- `),
414
- javascript: t(`
415
- const inputSlider = document.querySelector('.range-slider__range');
416
- const sliderFill = document.querySelector('.range-slider__range-filled');
417
- const savingsAmount = document.querySelector('.savings-amount');
418
- const valueAmount = document.querySelector('.value-amount');
419
-
420
-
421
- function setContent(input) {
422
- const newWidth = Math.min((100 * (parseInt(input.value, 10) - parseInt(input.min, 10))) / (parseInt(input.max, 10) - parseInt(input.min, 10)), 100) + '%';
423
- sliderFill.style.width = newWidth;
424
-
425
- const savingsPerSeat = 300;
426
- savingsAmount.innerText = new Intl.NumberFormat().format(savingsPerSeat * input.value);
427
- valueAmount.innerText = new Intl.NumberFormat().format(input.value);
428
- }
429
-
430
- function onInput(event) {
431
- const el = event.target;
432
- setContent(el);
433
- }
434
-
435
- inputSlider.addEventListener('input', onInput);
436
-
437
- setContent(inputSlider);
438
- `)
439
- }
440
- }, f = [
441
- h,
442
- v,
443
- m
444
- ], r = "custom", n = () => ({
445
- javascript: t(`// Add your javascript here
446
- // You can also access all the document data
447
- // from the global variable doc
448
-
449
- // To see what's available, uncomment the line below:
450
- // console.log(window.doc);
451
-
452
- // Listen to the event 'docUpdate' to detect updates on doc
453
- // window.addEventListener('docUpdate', function(e) {
454
- // // A change has been detected on doc
455
- // });`),
456
- html: t(`
457
- <!--
458
- Type your HTML inside this tab.
459
-
460
- Tip: You can access variables with the following syntax: {{PATH_TO_VARIABLE}}
461
-
462
- For example:
463
- - {{data.name}} // Prints the document name
464
- - {{data.clients[0].name}} // Prints the name of the first client
465
-
466
- To see all available data variables and paths, switch to the Data-tab,
467
- -->
468
- `),
469
- css: t("/* Add your CSS code here */")
470
- }), b = (e) => [{
471
- itemId: r,
472
- itemType: r,
473
- value: {
474
- custom: `data.${r}-${e}`
475
- },
476
- parentId: "0",
477
- nodeId: d()
478
- }], x = (e) => [{
479
- key: `${r}-${e}`,
480
- defaultValue: n(),
481
- $ref: `${l.api.baseUrl}/schemas/custom/1.json`
482
- }], w = (e) => ({
483
- [`data.${r}-${e}`]: n()
484
- }), A = ({ includeMockData: e = !1, contentData: i = null } = {}) => {
485
- const a = d();
486
- let o = null;
487
- return typeof i == "function" ? o = i(a) : e && (o = w(a)), {
488
- readView: b(a),
489
- validation: x(a),
490
- ...o && {
491
- data: o
492
- }
493
- };
494
- };
495
- s.loadOptions({
496
- namespaces: "customTemplate",
497
- messages: {
498
- en: {
499
- title: "Custom"
500
- },
501
- sv: {
502
- title: "Custom"
503
- }
504
- }
505
- });
506
- const y = {
507
- previewUrl: `
508
- <div style="position: relative;">
509
- <img src="${u}" style="width: 100%; height: auto;">
510
- <div class="submenu-item-badge">
511
- ${s.t("customTemplate:title")}
512
- </div>
513
- </div>
514
- `,
515
- data: n()
516
- }, H = ({ language: e = "en" } = {}) => [y, ...f].map((i) => ({
517
- previewUrl: i.previewUrl,
518
- contentData: (a) => ({
519
- [`data.${r}-${a}`]: i.data
520
- })
521
- }));
522
- export {
523
- n as a,
524
- $ as b,
525
- H as c,
526
- t as d,
527
- A as g
528
- };
@@ -1,18 +0,0 @@
1
- import { f as n, i as l } from "./main-abeba7c1.js";
2
- import { a as o } from "./CDropdownItem-bb7f1de7.js";
3
- var f = o, g = l, c = "Expected a function";
4
- function u(a, i, t) {
5
- var r = !0, e = !0;
6
- if (typeof a != "function")
7
- throw new TypeError(c);
8
- return g(t) && (r = "leading" in t ? !!t.leading : r, e = "trailing" in t ? !!t.trailing : e), f(a, i, {
9
- leading: r,
10
- maxWait: i,
11
- trailing: e
12
- });
13
- }
14
- var d = u;
15
- const _ = /* @__PURE__ */ n(d);
16
- export {
17
- _ as t
18
- };