@cling-se/widget 0.9.27 → 0.9.29

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 (123) hide show
  1. package/dist/{AddClientCallout-dd99d0d5.js → AddClientCallout-ce5f5f46.js} +6 -12
  2. package/dist/{AnswerModal-6afa03a5.js → AnswerModal-3221683b.js} +37 -37
  3. package/dist/{AttachmentItem-f77592a9.js → AttachmentItem-2c1174e0.js} +3 -3
  4. package/dist/{BaseDatePicker-8a39d0c2.js → BaseDatePicker-a82aba1b.js} +654 -624
  5. package/dist/{BaseInput-dbd3178b.js → BaseInput-489bd05b.js} +1 -1
  6. package/dist/{BaseUpload-38ad6097.js → BaseUpload-dc4efbd3.js} +13 -13
  7. package/dist/{BlockMedia-843990e1.js → BlockMedia-d91bb4a5.js} +1 -1
  8. package/dist/{CCallout-c0f901a7.js → CCallout-3d3df80b.js} +2 -2
  9. package/dist/{CDropdownItem-fa88e012.js → CDropdownItem-80d6f1d6.js} +18 -16
  10. package/dist/{CField-3a437b10.js → CField-617ee7e0.js} +1 -1
  11. package/dist/{CPhoneFormat-a9139d94.js → CPhoneFormat-8e8c1862.js} +1 -1
  12. package/dist/{CSlider.vue_vue_type_style_index_0_lang-76a4be84.js → CSlider.vue_vue_type_style_index_0_lang-61beea49.js} +1 -1
  13. package/dist/{ClientAutocomplete-7cb8a2e1.js → ClientAutocomplete-2b46278b.js} +2 -2
  14. package/dist/{ClientModal-26774205.js → ClientModal-3d6a6254.js} +116 -63
  15. package/dist/{ColorPicker-98baa7d4.js → ColorPicker-b5a7c17d.js} +1 -1
  16. package/dist/{CompanyModal-897f5534.js → CompanyModal-72197be9.js} +3 -3
  17. package/dist/{ContentWrapper-e1e093b7.js → ContentWrapper-0ef2034e.js} +13 -13
  18. package/dist/{CoverBlockSettings-97d062e1.js → CoverBlockSettings-fea5025d.js} +26 -36
  19. package/dist/{DocAnswer-a8c69056.js → DocAnswer-f07000a5.js} +4 -4
  20. package/dist/{DocDetails-f092d872.js → DocDetails-fc0f6699.js} +4 -4
  21. package/dist/{DocForm-889f2750.js → DocForm-1465fccc.js} +202 -197
  22. package/dist/{DocFormSend-58b44424.js → DocFormSend-8608a153.js} +22 -23
  23. package/dist/{DocLinks-1bdb3110.js → DocLinks-2b0860fb.js} +2 -2
  24. package/dist/{DocModalBase-afd069cd.js → DocModalBase-5ccf22f3.js} +1 -1
  25. package/dist/{DocPrint-3ff914fd.js → DocPrint-1700274a.js} +1 -1
  26. package/dist/{DocReceipt-19de0274.js → DocReceipt-44197299.js} +2 -2
  27. package/dist/{DocSendReminder-23716d0b.js → DocSendReminder-af802c73.js} +1 -1
  28. package/dist/{DocTextEditor-6b614e43.js → DocTextEditor-1704fa97.js} +8 -8
  29. package/dist/{DocTimeline-df7cb5f4.js → DocTimeline-63b452ad.js} +5 -5
  30. package/dist/{DocumentClient-61d7e50f.js → DocumentClient-38e59b20.js} +7 -7
  31. package/dist/{DocumentLayout-86646c16.js → DocumentLayout-3aa5beb7.js} +143 -143
  32. package/dist/{DocumentLogotype-14929724.js → DocumentLogotype-577bc574.js} +3 -3
  33. package/dist/{DocumentVoided-a9d41411.js → DocumentVoided-8c1fde51.js} +1 -1
  34. package/dist/{EmbedInput-71fd2f2a.js → EmbedInput-a13d0bd9.js} +2 -2
  35. package/dist/{EmbedSettings-2254a7c3.js → EmbedSettings-a89ca29c.js} +3 -3
  36. package/dist/{ErrorCallout-b482d289.js → ErrorCallout-4f239204.js} +1 -1
  37. package/dist/{FilePreviewModal-1802c766.js → FilePreviewModal-4c3604dd.js} +5 -5
  38. package/dist/Flag-bc43bb0c.js +116 -0
  39. package/dist/{HeaderSettings-10cfcc90.js → HeaderSettings-c4f142e8.js} +26 -36
  40. package/dist/{ImageSelectModal-594227d6.js → ImageSelectModal-c6313667.js} +17 -18
  41. package/dist/{ImageUploadWrapper-452e463d.js → ImageUploadWrapper-58b96176.js} +2 -2
  42. package/dist/{Index-84a484ed.js → Index-183a68e0.js} +9 -9
  43. package/dist/{Index-f1afee11.js → Index-2578fbeb.js} +7 -6
  44. package/dist/{Index-be92553f.js → Index-309834c5.js} +4 -4
  45. package/dist/{Index-dceaf93a.js → Index-37404666.js} +4 -4
  46. package/dist/{Index-a7b08aa1.js → Index-3c821630.js} +2 -2
  47. package/dist/{Index-8fc860de.js → Index-445088b5.js} +6 -6
  48. package/dist/{Index-88854d18.js → Index-5009df0b.js} +18 -17
  49. package/dist/{Index-a8206849.js → Index-5176befe.js} +2 -2
  50. package/dist/{Index-d036b1fb.js → Index-523a447e.js} +2 -2
  51. package/dist/{Index-3ee432f2.js → Index-57c10afa.js} +6 -6
  52. package/dist/{Index-780a5e8f.js → Index-5bffe550.js} +2 -2
  53. package/dist/{Index-235cb5f0.js → Index-6f556e68.js} +9 -9
  54. package/dist/{Index-354b4c80.js → Index-812afc8c.js} +2 -2
  55. package/dist/{Index-225e8cef.js → Index-83f30e6e.js} +10 -10
  56. package/dist/{Index-d645b179.js → Index-8ab66f25.js} +4 -4
  57. package/dist/{Index-28ce2c21.js → Index-9587b1a0.js} +3 -3
  58. package/dist/{Index-529ba57d.js → Index-a1c30649.js} +2 -2
  59. package/dist/{Index-9fd01853.js → Index-a6919f89.js} +4 -4
  60. package/dist/{Index-2131fa69.js → Index-a6afc0fb.js} +4 -4
  61. package/dist/{Index-c1d06810.js → Index-ac8b139d.js} +7 -7
  62. package/dist/{Index-83ef778b.js → Index-b0022178.js} +4 -4
  63. package/dist/{Index-0966b580.js → Index-b11034d9.js} +8 -8
  64. package/dist/{Index-5736c4f7.js → Index-bd08a626.js} +22 -22
  65. package/dist/{Index-2564d031.js → Index-bd748f4d.js} +5 -5
  66. package/dist/{Index-0f8c36f0.js → Index-c29ce250.js} +2 -2
  67. package/dist/{Index-2621d373.js → Index-c913c838.js} +4 -4
  68. package/dist/{Index-fe07902d.js → Index-c96b800d.js} +4 -4
  69. package/dist/{Index-5d37606d.js → Index-cc632439.js} +14 -14
  70. package/dist/{Index-e361a308.js → Index-cf86c57e.js} +1 -1
  71. package/dist/{Index-ddfe7813.js → Index-daf40983.js} +13 -15
  72. package/dist/{Index-17b82242.js → Index-ea4a220f.js} +16 -16
  73. package/dist/{Index-2e9bbe9d.js → Index-ed8d3227.js} +4 -4
  74. package/dist/{Index-5921d2de.js → Index-fe4ea35d.js} +7 -7
  75. package/dist/{Index-098078af.js → Index-ffbe09d0.js} +2 -2
  76. package/dist/{InputToggleRow-04cc08de.js → InputToggleRow-7ec3607f.js} +1 -1
  77. package/dist/{IsPremiumPreStep-94901e25.js → IsPremiumPreStep-178406ae.js} +30 -31
  78. package/dist/{ManualPopover-2fb96f78.js → ManualPopover-8b6a226d.js} +1 -1
  79. package/dist/{MediaWrapper-abd398c1.js → MediaWrapper-67b73943.js} +3 -3
  80. package/dist/{NotBindingText-92aa597b.js → NotBindingText-1e509df6.js} +2 -2
  81. package/dist/{PackageGroup-ea7e992f.js → PackageGroup-1d065d95.js} +15 -15
  82. package/dist/{PdfTerms-aa7ad8cd.js → PdfTerms-f4ec7376.js} +5 -5
  83. package/dist/{PdfViewer-a0c897a2.js → PdfViewer-a54231e8.js} +2 -2
  84. package/dist/{PlainHtml-234e0e43.js → PlainHtml-ae92cb56.js} +1 -1
  85. package/dist/{PriceHeader-1b81d019.js → PriceHeader-7c0bc252.js} +13 -13
  86. package/dist/{SearchApi-953a1b13.js → SearchApi-95506360.js} +2 -2
  87. package/dist/{Setup-7928d952.js → Setup-c4a6727b.js} +1 -1
  88. package/dist/{TermsSettings-d40ea3f3.js → TermsSettings-daaccf0c.js} +7 -7
  89. package/dist/{ThemeColorRow-0a8e8f1d.js → ThemeColorRow-8aa93760.js} +3 -3
  90. package/dist/{ToggleBinding-1d872e1c.js → ToggleBinding-5ea20a6d.js} +3 -3
  91. package/dist/{UploadModal-006e32ff.js → UploadModal-471296cd.js} +3 -3
  92. package/dist/{VideoPlayerInput-d2418095.js → VideoPlayerInput-a813f371.js} +3 -3
  93. package/dist/{VideoPlayerSettings-d1fa2cde.js → VideoPlayerSettings-e4675b6c.js} +4 -4
  94. package/dist/{VideoSelectModal-84cc0824.js → VideoSelectModal-0f75c3e9.js} +24 -24
  95. package/dist/{answerDocumentMixin-a896581b.js → answerDocumentMixin-e4d38bf0.js} +3 -3
  96. package/dist/{debounce-b30e6f76.js → debounce-249438e8.js} +9 -9
  97. package/dist/{focusDrawerMixin-8b4c70e5.js → focusDrawerMixin-88ff00cf.js} +1 -1
  98. package/dist/{formComponentsInstall-07c350b0.js → formComponentsInstall-f602ecc3.js} +158 -200
  99. package/dist/{formDrawerState-e3da6074.js → formDrawerState-8a5d45a8.js} +1 -1
  100. package/dist/{formValidationMixin-05028cb3.js → formValidationMixin-4c12cbd6.js} +1 -1
  101. package/dist/{index-3197309d.js → index-02573377.js} +7 -8
  102. package/dist/index-12a0fc1b.js +171 -0
  103. package/dist/index-23806d5a.js +14 -0
  104. package/dist/{index-a03d80b9.js → index-54f4fd56.js} +9 -9
  105. package/dist/{index-8a437f3d.js → index-8a009539.js} +44 -44
  106. package/dist/{index-7300a7f5.js → index-dce39a81.js} +1 -1
  107. package/dist/index.es.js +3 -3
  108. package/dist/index.umd.js +203 -209
  109. package/dist/{main-989855f4.js → main-8fe92642.js} +9880 -9285
  110. package/dist/{mapFormMixin-e6b8b5ef.js → mapFormMixin-18916025.js} +1 -1
  111. package/dist/{publicSenderState-4d6c69b4.js → publicSenderState-8aa670bb.js} +1 -1
  112. package/dist/style.css +2 -2
  113. package/dist/{throttle-440ddd80.js → throttle-780e6241.js} +2 -2
  114. package/dist/{tinycolor-f6c2d00e.js → tinycolor-2d236fc9.js} +1 -1
  115. package/dist/{tippy.esm-75dfd42d.js → tippy.esm-27ce514a.js} +5 -5
  116. package/dist/{utils-e1c6e4eb.js → utils-9be5e71d.js} +1 -1
  117. package/dist/{vuedraggable.umd-909ba53a.js → vuedraggable.umd-455d2d1d.js} +1 -1
  118. package/package.json +1 -1
  119. package/dist/image-1b55e804.js +0 -18
  120. package/dist/index-71ec8e8e.js +0 -15
  121. package/dist/index-fe840ba4.js +0 -166
  122. package/dist/simplebar.min-1ce579b3.js +0 -71
  123. package/dist/template-641a5e0d.js +0 -535
@@ -1,535 +0,0 @@
1
- import { Y as d, P as l, c } from "./main-989855f4.js";
2
- import { g as o } from "./image-1b55e804.js";
3
- function t(e) {
4
- return btoa(encodeURIComponent(e));
5
- }
6
- function y(e) {
7
- return decodeURIComponent(atob(e));
8
- }
9
- const g = {
10
- previewUrl: `<div style="position: relative;"><img src="${o(
11
- "/account/document/custom/headerCircularGradient.image.png"
12
- )}" style="width: 100%; height: auto;"></div>`,
13
- data: {
14
- html: t(`
15
- <!-- Add your HTML code here -->
16
- <div class="root">
17
- <div class="outer-container">
18
- <div class="inner-container">
19
- <div class="title">Proposal Title</div>
20
- <div class="text">Prepared for Name Namesson</div>
21
- <div class="logo">
22
- Logo
23
- </div>
24
- </div>
25
- </div>
26
- </div>
27
- `),
28
- css: t(`
29
- @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');
30
-
31
- body,html {
32
- margin: 0;
33
- font-family: 'Poppins', sans-serif;
34
- font-size: 16px;
35
- }
36
-
37
- .root {
38
- background-color: green;
39
- background-image: radial-gradient(100% 150% at 13.58% 44.42%, #001855 0%, #00917d 100%);
40
- position: relative;
41
- display: grid;
42
- place-items: center;
43
- padding: 120px 100px;
44
- overflow: hidden;
45
- }
46
- .root::before {
47
- position: absolute;
48
- content: '';
49
- height: 100%;
50
- width: 40%;
51
- right: -10%;
52
- top: 20%;
53
- pointer-events: none;
54
- border-radius: 100%;
55
- background-color: rgb(0, 255, 200);
56
- filter: blur(200px);
57
- }
58
- .root::after {
59
- position: absolute;
60
- content: '';
61
- height: 200vh;
62
- width: 200vh;
63
- right: 40%;
64
- top: 0;
65
- transform: translateY(-40%);
66
- pointer-events: none;
67
- border-radius: 100%;
68
- background: radial-gradient(46.29% 46.29% at 47.93% 53.28%, #00449c 0%, rgba(4, 200, 207, 0.404) 100%);
69
- box-shadow: 0px 0px 250px 250px rgba(4, 76, 124, 0.8);
70
- }
71
- .outer-container {
72
- position: relative;
73
- z-index: 1;
74
- background-color: red;
75
- background: radial-gradient(100% 100% at 50% 0%, #220081 0%, #00b7cf 100%);
76
- box-shadow: 0 20px 50px 10px rgba(0,0,0,0.1);
77
- overflow: hidden;
78
- width: 100%;
79
- max-width: 1000px;
80
- }
81
- .outer-container::after {
82
- content: '';
83
- position: absolute;
84
- pointer-events: none;
85
- background: radial-gradient(46.29% 46.29% at 50% 50%, #00ffc8 0%, rgb(116, 4, 207) 100%);
86
- width: 200%;
87
- border-radius: 50%;
88
- height: 300%;
89
- top: -20%;
90
- right: 15%;
91
- }
92
- .inner-container {
93
- position: relative;
94
- z-index: 1;
95
- margin: 80px;
96
- padding: 60px;
97
- background-color: #FFFFFF;
98
- box-shadow: 0 20px 50px rgba(0,0,0,0.1);
99
- }
100
- .title {
101
- font-size: 2.8rem;
102
- font-weight: 400;
103
- padding-top: 13rem;
104
- }
105
- .text {
106
- color: #3b385f;
107
- font-weight: 300;
108
- }
109
- .logo {
110
- color: rgb(180, 180, 206);
111
- position: absolute;
112
- right: 40px;
113
- top: 40px;
114
- border: 3px solid currentColor;
115
- padding: 4px;
116
- line-height: 1;
117
- font-size: 11px;
118
- text-transform: uppercase;
119
- font-weight: 700;
120
- }
121
- `),
122
- javascript: t("")
123
- }
124
- }, p = {
125
- previewUrl: `<div style="position: relative;"><img src="${o(
126
- "/account/document/custom/columnGallery.image.png"
127
- )}" style="width: 100%; height: auto;"></div>`,
128
- data: {
129
- html: t(`
130
- <div class="container">
131
- <div class="header">
132
- <div class="title">A title</div>
133
- <div class="text">This is where you can add some more text.</div>
134
- </div>
135
- <div class="grid">
136
- <div class="column-xs-12 column-md-4">
137
- <figure class="img-container">
138
- <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" />
139
- </figure>
140
- <div class="img-text">
141
- This is a description.
142
- </div>
143
- </div>
144
- <div class="column-xs-12 column-md-4">
145
- <figure class="img-container">
146
- <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" />
147
- </figure>
148
- <div class="img-text">
149
- This is a description.
150
- </div>
151
- </div>
152
- <div class="column-xs-12 column-md-4">
153
- <figure class="img-container">
154
- <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">
155
- </figure>
156
- <div class="img-text">
157
- This is a description.
158
- </div>
159
- </div>
160
- </div>
161
- </div>
162
- `),
163
- css: t(`
164
- @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;700&display=swap');
165
-
166
- body, html {
167
- margin: 0;
168
- font-size: 16px;
169
- font-family: 'Space Grotesk', sans-serif;
170
- }
171
-
172
- .container {
173
- padding: 60px 1rem;
174
- }
175
-
176
- .header {
177
- text-align: center;
178
- padding-bottom: 40px;
179
- }
180
-
181
- .title {
182
- font-size: 2.5rem;
183
- font-weight: 700;
184
- padding-bottom: 0.25em;
185
- }
186
-
187
- .text {
188
- color: hsla(0, 0%, 35%);
189
- font-weight: 300;
190
- }
191
-
192
- .grid {
193
- display: grid;
194
- grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
195
- grid-gap: 30px;
196
- max-width: 1000px;
197
- margin: 0 auto;
198
- }
199
-
200
- .img-container {
201
- width: 100%;
202
- height: 400px;
203
- overflow: hidden;
204
- margin: 0;
205
- border-radius: 6px;
206
- box-shadow: 0 4px 12px -4px rgba(0,0,0,0.15);
207
- }
208
-
209
- img {
210
- width: 100%;
211
- height: 400px;
212
- object-fit: cover;
213
- }
214
-
215
- .img-text {
216
- font-size: 14px;
217
- padding-top: 8px;
218
- text-align: center;
219
- color: hsla(0, 0%, 45%);
220
- }
221
- `),
222
- javascript: t("")
223
- }
224
- }, u = {
225
- previewUrl: `<div style="position: relative;"><img src="${o(
226
- "/account/document/custom/roiCalculator.image.png"
227
- )}" style="width: 100%; height: auto;"></div>`,
228
- data: {
229
- html: t(`
230
- <section class="root">
231
- <div class="container">
232
- <h2>Savings calculator</h2>
233
- <h1>
234
- $<span class="savings-amount"></span>
235
- </h1>
236
- <p>Savings per year.</p>
237
- <div class="range-slider">
238
- <div class="range-slider__range-base"></div>
239
- <div class="range-slider__range-filled"></div>
240
- <input
241
- class="range-slider__range"
242
- type="range"
243
- value="100"
244
- min="10"
245
- max="500"
246
- step="1"
247
- />
248
- </div>
249
- <h4>
250
- Number of seats: <span class="value-amount"></span>
251
- </h4>
252
- </div>
253
- </section>
254
- `),
255
- css: t(`
256
- html, body {
257
- margin: 0;
258
- font-family: sans-serif;
259
- color: white;
260
- }
261
-
262
- .root {
263
- background-color: hsl(0, 0%, 95%);
264
- padding: 100px 0;
265
- 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);
266
- background-repeat: no-repeat;
267
- background-size: cover;
268
- background-position: center;
269
- }
270
-
271
- .container {
272
- padding: 20px;
273
- text-align: center;
274
- max-width: 800px;
275
- margin: 0 auto;
276
- }
277
-
278
- h1 {
279
- font-size: 4.25rem;
280
- margin: 0;
281
- line-height: 1.2;
282
- padding: 0;
283
- }
284
- h2 {
285
- font-size: 1.25rem;
286
- padding: 0 0 1rem 0;
287
- margin: 0;
288
- color: hsl(35, 100%, 70%);
289
- font-weight: normal;
290
- }
291
-
292
- h4 {
293
- font-size: 1rem;
294
- padding: 0;
295
- margin: 1rem 0 0 0;
296
- font-weight: normal;
297
- opacity: 0.85;
298
- }
299
-
300
- p {
301
- font-size: 18px;
302
- padding: 0;
303
- margin: 0;
304
- line-height: 1.5;
305
- padding-bottom: 3rem;
306
- opacity: 0.8;
307
- font-weight: lighter;
308
- }
309
-
310
-
311
- /* Input slider */
312
- :root {
313
- --range-width: 100%;
314
- --range-max-width: 460px;
315
- --range-handle-color: white;
316
- --range-handle-color-hover: hsl(0, 0%, 95%);
317
- --range-handle-size: 34px;
318
- --range-filled-color: hsl(35, 100%, 60%);
319
- --range-track-color: hsla(0, 0%, 100%, 0.4);
320
- --range-track-height: 10px;
321
- }
322
- .range-slider {
323
- width: var(--range-width);
324
- max-width: var(--range-max-width);
325
- margin: 0 auto;
326
- position: relative;
327
- height: 2em;
328
- }
329
-
330
- .range-slider__range {
331
- -webkit-appearance: none;
332
- width: 100%;
333
- height: 100%;
334
- background-color: transparent;
335
- outline: none;
336
- padding: 0;
337
- margin: 0;
338
- position: relative;
339
-
340
- }
341
- .range-slider__range-base {
342
- width: 100%;
343
- height: var(--range-track-height);
344
- border-radius: 5px;
345
- background: var(--range-track-color);
346
- position: absolute;
347
- left: 0;
348
- top: 50%;
349
- pointer-events: none;
350
- transform: translateY(-50%);
351
- }
352
- .range-slider__range-filled {
353
- height: var(--range-track-height);
354
- border-radius: 5px;
355
- background: var(--range-filled-color);
356
- position: absolute;
357
- left: 0;
358
- top: 50%;
359
- pointer-events: none;
360
- transform: translateY(-50%);
361
- }
362
-
363
- /* Range Handle */
364
- .range-slider__range::-webkit-slider-thumb {
365
- appearance: none;
366
- width: var(--range-handle-size);
367
- height: var(--range-handle-size);
368
- border-radius: 50%;
369
- background: var(--range-handle-color);
370
- cursor: pointer;
371
- transition: background 0.15s ease-in-out;
372
- box-shadow: 0 2px 3px hsla(0, 0%, 0%, 0.2);
373
- }
374
- .range-slider__range::-webkit-slider-thumb:hover {
375
- background: var(--range-handle-color-hover);
376
- }
377
-
378
- .range-slider__range:active::-webkit-slider-thumb {
379
- background: var(--range-handle-color-hover);
380
- }
381
-
382
- .range-slider__range::-moz-range-thumb {
383
- width: var(--range-handle-size);
384
- height: var(--range-handle-size);
385
- border: 0;
386
- border-radius: 50%;
387
- background: var(--range-handle-color);
388
- cursor: pointer;
389
- transition: background 0.15s ease-in-out;
390
- box-shadow: 0 2px 3px hsla(0, 0%, 0%, 0.2);
391
-
392
- }
393
- .range-slider__range::-moz-range-thumb:hover {
394
- background: var(--range-handle-color-hover);
395
- }
396
-
397
- .range-slider__range:active::-moz-range-thumb {
398
- background: var(--range-handle-color-hover);
399
- }
400
-
401
- /* Focus state */
402
- .range-slider__range:focus::-webkit-slider-thumb {
403
- box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
404
- }
405
-
406
- /* Firefox Overrides */
407
- ::-moz-range-track {
408
- background: var(--range-track-color);
409
- border: 0;
410
- }
411
-
412
- input::-moz-focus-inner,
413
- input::-moz-focus-outer {
414
- border: 0;
415
- }
416
- `),
417
- javascript: t(`
418
- const inputSlider = document.querySelector('.range-slider__range');
419
- const sliderFill = document.querySelector('.range-slider__range-filled');
420
- const savingsAmount = document.querySelector('.savings-amount');
421
- const valueAmount = document.querySelector('.value-amount');
422
-
423
-
424
- function setContent(input) {
425
- const newWidth = Math.min((100 * (parseInt(input.value, 10) - parseInt(input.min, 10))) / (parseInt(input.max, 10) - parseInt(input.min, 10)), 100) + '%';
426
- sliderFill.style.width = newWidth;
427
-
428
- const savingsPerSeat = 300;
429
- savingsAmount.innerText = new Intl.NumberFormat().format(savingsPerSeat * input.value);
430
- valueAmount.innerText = new Intl.NumberFormat().format(input.value);
431
- }
432
-
433
- function onInput(event) {
434
- const el = event.target;
435
- setContent(el);
436
- }
437
-
438
- inputSlider.addEventListener('input', onInput);
439
-
440
- setContent(inputSlider);
441
- `)
442
- }
443
- }, m = [
444
- g,
445
- u,
446
- p
447
- ], r = "custom", s = () => ({
448
- javascript: t(`// Add your javascript here
449
- // You can also access all the document data
450
- // from the global variable doc
451
-
452
- // To see what's available, uncomment the line below:
453
- // console.log(window.doc);
454
-
455
- // Listen to the event 'docUpdate' to detect updates on doc
456
- // window.addEventListener('docUpdate', function(e) {
457
- // // A change has been detected on doc
458
- // });`),
459
- html: t(`
460
- <!--
461
- Type your HTML inside this tab.
462
-
463
- Tip: You can access variables with the following syntax: {{PATH_TO_VARIABLE}}
464
-
465
- For example:
466
- - {{data.name}} // Prints the document name
467
- - {{data.clients[0].name}} // Prints the name of the first client
468
-
469
- To see all available data variables and paths, switch to the Data-tab,
470
- -->
471
- `),
472
- css: t("/* Add your CSS code here */")
473
- }), h = (e) => [
474
- {
475
- itemId: r,
476
- itemType: r,
477
- value: {
478
- custom: `data.${r}-${e}`
479
- },
480
- parentId: "0",
481
- nodeId: l()
482
- }
483
- ], v = (e) => [
484
- {
485
- key: `${r}-${e}`,
486
- defaultValue: s(),
487
- $ref: `${c.api.baseUrl}/schemas/custom/1.json`
488
- }
489
- ], b = (e) => ({
490
- [`data.${r}-${e}`]: s()
491
- }), k = ({ includeMockData: e = !1, contentData: i = null } = {}) => {
492
- const a = l();
493
- let n = null;
494
- return typeof i == "function" ? n = i(a) : e && (n = b(a)), {
495
- readView: h(a),
496
- validation: v(a),
497
- ...n && { data: n }
498
- };
499
- };
500
- d.loadOptions({
501
- namespaces: "customTemplate",
502
- messages: {
503
- en: {
504
- title: "Custom"
505
- },
506
- sv: {
507
- title: "Custom"
508
- }
509
- }
510
- });
511
- const f = {
512
- previewUrl: `
513
- <div style="position: relative;">
514
- <img src="${o(
515
- "/account/document/custom/blank.png"
516
- )}" style="width: 100%; height: auto;">
517
- <div class="submenu-item-badge">
518
- ${d.t("customTemplate:title")}
519
- </div>
520
- </div>
521
- `,
522
- data: s()
523
- }, _ = ({ language: e = "en" } = {}) => [f, ...m].map((i) => ({
524
- previewUrl: i.previewUrl,
525
- contentData: (a) => ({
526
- [`data.${r}-${a}`]: i.data
527
- })
528
- }));
529
- export {
530
- t as a,
531
- y as b,
532
- _ as c,
533
- k as d,
534
- s as g
535
- };