@cling-se/widget 0.9.3 → 0.9.5

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 (145) hide show
  1. package/dist/{AddClientCallout-746899d9.js → AddClientCallout-e4e9874f.js} +5 -5
  2. package/dist/{AnswerModal-fdfea0f8.js → AnswerModal-acd3b9c0.js} +248 -248
  3. package/dist/{AttachmentItem-5671c64d.js → AttachmentItem-34e91526.js} +8 -8
  4. package/dist/{BaseDatePicker-a9240306.js → BaseDatePicker-581297bc.js} +43 -43
  5. package/dist/{BaseInput-d3c3688b.js → BaseInput-29d88150.js} +1 -1
  6. package/dist/{BaseUpload-8e7a2b72.js → BaseUpload-84d3b68b.js} +27 -26
  7. package/dist/{BlockMedia-b613a2a4.js → BlockMedia-319932b8.js} +1 -1
  8. package/dist/{CCallout-e9ff903a.js → CCallout-88ae9c08.js} +6 -6
  9. package/dist/{CDropdownItem-05d84f95.js → CDropdownItem-d46bf062.js} +76 -75
  10. package/dist/{CField-cd4dcae9.js → CField-be05883b.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-383db616.js → CSlider.vue_vue_type_style_index_0_lang-df4c839e.js} +1 -1
  12. package/dist/{ClientAutocomplete-421a2216.js → ClientAutocomplete-68f76bfc.js} +4 -4
  13. package/dist/{ClientModal-11341b1c.js → ClientModal-73086005.js} +16 -16
  14. package/dist/{ColorPicker-f90939b5.js → ColorPicker-11ee76f0.js} +2 -2
  15. package/dist/{CompanyModal-2bfd21b8.js → CompanyModal-0fec4480.js} +8 -8
  16. package/dist/{ContentWrapper-4aae35b2.js → ContentWrapper-fba78b6f.js} +19 -19
  17. package/dist/{CoverBlockSettings-1f917be3.js → CoverBlockSettings-7ffa15b1.js} +19 -19
  18. package/dist/{DocForm-0891c6b2.js → DocForm-e56b3a0c.js} +1208 -832
  19. package/dist/{DocFormSend-2b35999d.js → DocFormSend-cdc4eaf8.js} +14 -14
  20. package/dist/{DocModalBase-225e2f2d.js → DocModalBase-e473b946.js} +4 -4
  21. package/dist/DocPrint-6d8b1f14.js +222 -0
  22. package/dist/{DocReceipt-1391c17a.js → DocReceipt-c8a543f8.js} +1 -1
  23. package/dist/{DocSendReminder-c488842d.js → DocSendReminder-70effa09.js} +1 -1
  24. package/dist/{DocTextEditor-2538e1ab.js → DocTextEditor-cce51e7c.js} +19 -19
  25. package/dist/{DocTimeline-69ada0de.js → DocTimeline-c2cbd773.js} +11 -11
  26. package/dist/{DocumentClient-74b8f25b.js → DocumentClient-611c8c1c.js} +8 -6
  27. package/dist/{formValidationMixin-df38771c.js → DocumentLayout-86c367d1.js} +1617 -1709
  28. package/dist/{DocumentLogotype-e89b53fb.js → DocumentLogotype-441a9fdb.js} +3 -3
  29. package/dist/{EmbedInput-b7fefe5e.js → EmbedInput-a5938c25.js} +2 -2
  30. package/dist/{EmbedSettings-4957252f.js → EmbedSettings-141ab53c.js} +10 -10
  31. package/dist/ErrorCallout-7dea37df.js +30 -0
  32. package/dist/{FilePreviewModal-75693619.js → FilePreviewModal-875fd8c9.js} +8 -7
  33. package/dist/{HeaderSettings-9b69eada.js → HeaderSettings-0364b6df.js} +29 -29
  34. package/dist/{ImageSelectModal-94d4dc7f.js → ImageSelectModal-2d3a69db.js} +11 -11
  35. package/dist/{ImageUploadWrapper-a144b042.js → ImageUploadWrapper-7c70045f.js} +4 -4
  36. package/dist/{Index-023c3119.js → Index-006a27da.js} +10 -10
  37. package/dist/{Index-ec8d534f.js → Index-0313a553.js} +2 -2
  38. package/dist/{Index-4563d3fa.js → Index-06bd31c3.js} +26 -26
  39. package/dist/Index-07ae23ce.js +54 -0
  40. package/dist/{Index-62936c19.js → Index-0f4c9eb4.js} +34 -34
  41. package/dist/{Index-3dff19dd.js → Index-1e0cf88a.js} +10 -9
  42. package/dist/{Index-37a9183b.js → Index-1fc54467.js} +4 -4
  43. package/dist/{Index-abb8c6e4.js → Index-205dd368.js} +14 -14
  44. package/dist/{Index-b7def77a.js → Index-245f88ff.js} +10 -10
  45. package/dist/{Index-9a243eb8.js → Index-28bdb859.js} +2 -2
  46. package/dist/{Index-90492f19.js → Index-2a0c06b1.js} +3 -3
  47. package/dist/{Index-2cb8fa22.js → Index-3d84a32c.js} +9 -9
  48. package/dist/{Index-9ffe9766.js → Index-418c517f.js} +4 -4
  49. package/dist/{Index-f9b5f03c.js → Index-5196628a.js} +27 -27
  50. package/dist/{Index-dbe97658.js → Index-532b8844.js} +2 -2
  51. package/dist/{Index-96f39afc.js → Index-53348c92.js} +4 -4
  52. package/dist/{Index-cec7d4f1.js → Index-54962a1e.js} +15 -15
  53. package/dist/{Index-a37beb03.js → Index-5de564da.js} +2 -2
  54. package/dist/{Index-d68a28da.js → Index-6f957f7e.js} +15 -15
  55. package/dist/{Index-304c45be.js → Index-710d1132.js} +8 -8
  56. package/dist/{Index-a86ea774.js → Index-7a2f20fd.js} +9 -9
  57. package/dist/{Index-693005f0.js → Index-818ef607.js} +4 -4
  58. package/dist/Index-875e7805.js +79 -0
  59. package/dist/{Index-f453850f.js → Index-889b6a45.js} +18 -19
  60. package/dist/{Index-a554b58c.js → Index-8975cd1e.js} +4 -4
  61. package/dist/{Index-97d1f2f3.js → Index-affdb14c.js} +11 -10
  62. package/dist/{Index-3ee2e944.js → Index-b80ab22f.js} +2 -2
  63. package/dist/{Index-53da7be8.js → Index-ba48e68b.js} +8 -8
  64. package/dist/{Index-35387450.js → Index-beb43a1a.js} +95 -95
  65. package/dist/{Index-00ef9241.js → Index-c746dc64.js} +13 -13
  66. package/dist/{Index-1bafafca.js → Index-cf54ef50.js} +2 -2
  67. package/dist/{Index-4440fe3d.js → Index-dbf5c34c.js} +4 -4
  68. package/dist/{Index-bcc478b3.js → Index-fa01557d.js} +12 -12
  69. package/dist/{Index-78f13416.js → Index-ff60354c.js} +7 -7
  70. package/dist/{InputToggleRow-68320d9f.js → InputToggleRow-c520bed9.js} +5 -5
  71. package/dist/IsPremiumPreStep-d4739d6a.js +2443 -0
  72. package/dist/{MediaWrapper-c50879c2.js → MediaWrapper-722723f7.js} +3 -3
  73. package/dist/{NotBindingText-8f2d9244.js → NotBindingText-613399b6.js} +2 -2
  74. package/dist/{PackageGroup-2c49e99b.js → PackageGroup-1085c76c.js} +56 -56
  75. package/dist/{PdfTerms-94153a5f.js → PdfTerms-f98a6f75.js} +8 -7
  76. package/dist/{PdfViewer-701ad40e.js → PdfViewer-096bbf00.js} +5 -4
  77. package/dist/{PlainHtml-04a6d7f9.js → PlainHtml-752bc8d6.js} +1 -1
  78. package/dist/PriceHeader-e25df5eb.js +337 -0
  79. package/dist/{SearchApi-ffe5b697.js → SearchApi-20629627.js} +2 -2
  80. package/dist/{TermsSettings-b1bf19e9.js → TermsSettings-4cc4a9ee.js} +11 -11
  81. package/dist/{ThemeColorRow-913497f6.js → ThemeColorRow-c292abc6.js} +3 -3
  82. package/dist/{ToggleBinding-6518935d.js → ToggleBinding-406175fb.js} +3 -3
  83. package/dist/{UploadModal-3c399d25.js → UploadModal-0cbd0c8f.js} +16 -16
  84. package/dist/{VideoPlayerInput-b54845a4.js → VideoPlayerInput-d7b5fe4b.js} +3 -3
  85. package/dist/{VideoPlayerSettings-496e9e79.js → VideoPlayerSettings-51c75143.js} +12 -12
  86. package/dist/VideoSelectModal-e34cde4b.js +111 -0
  87. package/dist/{answerDocumentMixin-0e5e4dbb.js → answerDocumentMixin-574c5304.js} +3 -3
  88. package/dist/assets/article-options-10291.png +0 -0
  89. package/dist/assets/bg-base-13048.png +0 -0
  90. package/dist/assets/bg-pro-81076.png +0 -0
  91. package/dist/assets/bg-start-20630.png +0 -0
  92. package/dist/assets/blank-10674.png +0 -0
  93. package/dist/assets/block-options-17322.png +0 -0
  94. package/dist/assets/columnGallery.image-24825.png +0 -0
  95. package/dist/assets/doc-send-94456.png +0 -0
  96. package/dist/assets/drag-block-17194.png +0 -0
  97. package/dist/assets/headerCircularGradient.image-13878.png +0 -0
  98. package/dist/assets/roiCalculator.image-14704.png +0 -0
  99. package/dist/assets/text-bubble-53861.png +0 -0
  100. package/dist/{cssMode-c0865919.js → cssMode-eda08630.js} +19 -15
  101. package/dist/dom-068d1a7b.js +59 -0
  102. package/dist/{focusDrawerMixin-298861bc.js → focusDrawerMixin-72f8dd7a.js} +1 -1
  103. package/dist/{formComponentsInstall-1be6791d.js → formComponentsInstall-3f1c6477.js} +40 -40
  104. package/dist/formValidationMixin-d4e84872.js +49 -0
  105. package/dist/{freemarker2-85dde97c.js → freemarker2-42cdfba5.js} +23 -19
  106. package/dist/{handlebars-6aa1e52b.js → handlebars-b4515777.js} +15 -11
  107. package/dist/{html-f0c735cd.js → html-ea5d1845.js} +18 -14
  108. package/dist/{htmlMode-7b3bd7c9.js → htmlMode-1cc3531d.js} +23 -19
  109. package/dist/{index-1ef6f423.js → index-07377b76.js} +45 -45
  110. package/dist/index-676b9274.js +17 -0
  111. package/dist/{index-431938de.js → index-762349d7.js} +7 -7
  112. package/dist/{index-30808a2c.js → index-7adda710.js} +31 -31
  113. package/dist/index.es.js +8 -8
  114. package/dist/index.umd.js +537 -533
  115. package/dist/{javascript-9c54ad9e.js → javascript-185ef2e0.js} +15 -11
  116. package/dist/{jsonMode-1d1176fa.js → jsonMode-59ea4e99.js} +23 -19
  117. package/dist/{liquid-0738c73d.js → liquid-517f2a7c.js} +18 -14
  118. package/dist/{main-2d9b8259.js → main-95207159.js} +15376 -12887
  119. package/dist/{mapFormMixin-308bbdab.js → mapFormMixin-a245a297.js} +1 -1
  120. package/dist/{publicSenderState-9eecb11f.js → publicSenderState-bea5980b.js} +1 -1
  121. package/dist/{python-588c9e64.js → python-eb6703d8.js} +15 -11
  122. package/dist/{razor-fbaa1d21.js → razor-4c5b7deb.js} +22 -18
  123. package/dist/simplebar.min-97b539d6.js +71 -0
  124. package/dist/style.css +2 -2
  125. package/dist/template-b3af7583.js +528 -0
  126. package/dist/{throttle-d7bed81a.js → throttle-a0ce8f66.js} +2 -2
  127. package/dist/{tinycolor-ef496244.js → tinycolor-65e7dc2e.js} +1 -1
  128. package/dist/{FormInputRow-09d450e3.js → tippy.esm-3c111ba9.js} +285 -285
  129. package/dist/{tsMode-c1de8e10.js → tsMode-a4a0e653.js} +19 -15
  130. package/dist/{typescript-737827aa.js → typescript-aeab7849.js} +15 -11
  131. package/dist/{utils-69c41ae9.js → utils-580c7144.js} +1 -1
  132. package/dist/{vuedraggable.umd-67b8cddf.js → vuedraggable.umd-2c22e5f8.js} +41 -41
  133. package/dist/{xml-30e811a1.js → xml-098907e6.js} +18 -14
  134. package/package.json +3 -2
  135. package/stats.html +1 -1
  136. package/vite-plugin-library-asset-external/index.js +134 -0
  137. package/dist/ErrorCallout-42e45ec0.js +0 -30
  138. package/dist/Index-42e26b46.js +0 -79
  139. package/dist/Index-f2b66b79.js +0 -47
  140. package/dist/IsPremiumPreStep-0c7032a3.js +0 -1919
  141. package/dist/PriceHeader-7f92d5a7.js +0 -336
  142. package/dist/VideoSelectModal-3a566398.js +0 -111
  143. package/dist/index-6d08eac3.js +0 -14
  144. package/dist/simplebar.min-75960401.js +0 -2429
  145. package/dist/template-b877debf.js +0 -526
@@ -0,0 +1,528 @@
1
+ import { P as s, L as d, k as l } from "./main-95207159.js";
2
+ import c from "/Users/max.antonsson/Documents/Github/cling-vue/widget/dist/assets/headerCircularGradient.image-13878.png";
3
+ import g from "/Users/max.antonsson/Documents/Github/cling-vue/widget/dist/assets/columnGallery.image-24825.png";
4
+ import p from "/Users/max.antonsson/Documents/Github/cling-vue/widget/dist/assets/roiCalculator.image-14704.png";
5
+ import u from "/Users/max.antonsson/Documents/Github/cling-vue/widget/dist/assets/blank-10674.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,5 +1,5 @@
1
- import { f as n, i as l } from "./main-2d9b8259.js";
2
- import { a as o } from "./CDropdownItem-05d84f95.js";
1
+ import { f as n, i as l } from "./main-95207159.js";
2
+ import { a as o } from "./CDropdownItem-d46bf062.js";
3
3
  var f = o, g = l, c = "Expected a function";
4
4
  function u(a, i, t) {
5
5
  var r = !0, e = !0;
@@ -1,4 +1,4 @@
1
- import { f as he } from "./main-2d9b8259.js";
1
+ import { f as he } from "./main-95207159.js";
2
2
  var N = { exports: {} };
3
3
  (function(R) {
4
4
  (function(c) {