@cling-se/widget 0.9.5 → 0.9.6

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 (138) hide show
  1. package/dist/{AddClientCallout-e4e9874f.js → AddClientCallout-d8f5bc53.js} +5 -5
  2. package/dist/{AnswerModal-acd3b9c0.js → AnswerModal-5f83562b.js} +3 -3
  3. package/dist/{AttachmentItem-34e91526.js → AttachmentItem-79eb718b.js} +3 -3
  4. package/dist/{BaseDatePicker-581297bc.js → BaseDatePicker-ae7aebf1.js} +1 -1
  5. package/dist/{BaseInput-29d88150.js → BaseInput-2c476604.js} +1 -1
  6. package/dist/{BaseUpload-84d3b68b.js → BaseUpload-9e15729d.js} +2 -2
  7. package/dist/{BlockMedia-319932b8.js → BlockMedia-a3f00a2f.js} +1 -1
  8. package/dist/{CCallout-88ae9c08.js → CCallout-04e2c8c6.js} +2 -2
  9. package/dist/{CDropdownItem-d46bf062.js → CDropdownItem-5532f8af.js} +1 -1
  10. package/dist/{CField-be05883b.js → CField-0bc9de28.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-df4c839e.js → CSlider.vue_vue_type_style_index_0_lang-d9c2f582.js} +1 -1
  12. package/dist/{ClientAutocomplete-68f76bfc.js → ClientAutocomplete-e13c2753.js} +2 -2
  13. package/dist/{ClientModal-73086005.js → ClientModal-da9fddf9.js} +4 -4
  14. package/dist/{ColorPicker-11ee76f0.js → ColorPicker-06b731b7.js} +1 -1
  15. package/dist/{CompanyModal-0fec4480.js → CompanyModal-b7c42f2a.js} +3 -3
  16. package/dist/{ContentWrapper-fba78b6f.js → ContentWrapper-fe4a67bc.js} +11 -11
  17. package/dist/{CoverBlockSettings-7ffa15b1.js → CoverBlockSettings-2024e993.js} +6 -6
  18. package/dist/DocForm-af03179d.js +7012 -0
  19. package/dist/{DocFormSend-cdc4eaf8.js → DocFormSend-44161541.js} +14 -14
  20. package/dist/{DocModalBase-e473b946.js → DocModalBase-9eb0f26f.js} +1 -1
  21. package/dist/{DocPrint-6d8b1f14.js → DocPrint-92d12950.js} +1 -1
  22. package/dist/{DocReceipt-c8a543f8.js → DocReceipt-4df57e1d.js} +1 -1
  23. package/dist/{DocSendReminder-70effa09.js → DocSendReminder-041af744.js} +1 -1
  24. package/dist/{DocTextEditor-cce51e7c.js → DocTextEditor-b07dd391.js} +7 -7
  25. package/dist/{DocTimeline-c2cbd773.js → DocTimeline-2ae2ca63.js} +5 -5
  26. package/dist/{DocumentClient-611c8c1c.js → DocumentClient-3a1aecf2.js} +5 -5
  27. package/dist/{DocumentLayout-86c367d1.js → DocumentLayout-ae49ac7a.js} +3 -3
  28. package/dist/{DocumentLogotype-441a9fdb.js → DocumentLogotype-91436523.js} +3 -3
  29. package/dist/{EmbedInput-a5938c25.js → EmbedInput-05e22228.js} +2 -2
  30. package/dist/{EmbedSettings-141ab53c.js → EmbedSettings-9dabb6d4.js} +3 -3
  31. package/dist/{ErrorCallout-7dea37df.js → ErrorCallout-c7f69cd9.js} +1 -1
  32. package/dist/{FilePreviewModal-875fd8c9.js → FilePreviewModal-167a40c8.js} +4 -4
  33. package/dist/{HeaderSettings-0364b6df.js → HeaderSettings-e9b177e0.js} +13 -13
  34. package/dist/{ImageSelectModal-2d3a69db.js → ImageSelectModal-8565c461.js} +9 -9
  35. package/dist/{ImageUploadWrapper-7c70045f.js → ImageUploadWrapper-1e61e8da.js} +2 -2
  36. package/dist/{Index-fa01557d.js → Index-0708b238.js} +5 -5
  37. package/dist/{Index-889b6a45.js → Index-0799eaba.js} +2 -2
  38. package/dist/{Index-affdb14c.js → Index-1f3de208.js} +8 -8
  39. package/dist/{Index-28bdb859.js → Index-27a05d76.js} +2 -2
  40. package/dist/{Index-c746dc64.js → Index-43899daf.js} +8 -8
  41. package/dist/{Index-1e0cf88a.js → Index-4446581c.js} +7 -7
  42. package/dist/{Index-b80ab22f.js → Index-49766088.js} +2 -2
  43. package/dist/{Index-beb43a1a.js → Index-630600c9.js} +12 -12
  44. package/dist/{Index-53348c92.js → Index-6b63686e.js} +4 -4
  45. package/dist/{Index-245f88ff.js → Index-716dbe24.js} +5 -5
  46. package/dist/{Index-006a27da.js → Index-72bcad54.js} +4 -4
  47. package/dist/{Index-532b8844.js → Index-84820d3d.js} +2 -2
  48. package/dist/{Index-205dd368.js → Index-85e8119e.js} +6 -6
  49. package/dist/{Index-07ae23ce.js → Index-88e175bf.js} +2 -2
  50. package/dist/{Index-5196628a.js → Index-89addabd.js} +11 -11
  51. package/dist/{Index-5de564da.js → Index-8b29bd10.js} +1 -1
  52. package/dist/{Index-1fc54467.js → Index-8d1c62be.js} +4 -4
  53. package/dist/{Index-3d84a32c.js → Index-96a07794.js} +5 -5
  54. package/dist/{Index-2a0c06b1.js → Index-9bbfa37b.js} +3 -3
  55. package/dist/{Index-0f4c9eb4.js → Index-a7a6f91c.js} +8 -8
  56. package/dist/{Index-7a2f20fd.js → Index-a987a099.js} +6 -6
  57. package/dist/{Index-710d1132.js → Index-b6b60b81.js} +8 -8
  58. package/dist/{Index-ba48e68b.js → Index-ba0c8eaa.js} +2 -2
  59. package/dist/{Index-06bd31c3.js → Index-c038406f.js} +25 -25
  60. package/dist/{Index-875e7805.js → Index-c53330d6.js} +1 -1
  61. package/dist/{Index-54962a1e.js → Index-c58260f8.js} +11 -11
  62. package/dist/{Index-cf54ef50.js → Index-c893d091.js} +2 -2
  63. package/dist/{Index-818ef607.js → Index-ca112d97.js} +4 -4
  64. package/dist/{Index-ff60354c.js → Index-e728d2f7.js} +4 -4
  65. package/dist/{Index-0313a553.js → Index-ecf93915.js} +2 -2
  66. package/dist/{Index-dbf5c34c.js → Index-eda700f4.js} +4 -4
  67. package/dist/{Index-8975cd1e.js → Index-ee75e74a.js} +4 -4
  68. package/dist/{Index-6f957f7e.js → Index-f75b1dd5.js} +4 -4
  69. package/dist/{Index-418c517f.js → Index-fc722547.js} +4 -4
  70. package/dist/{InputToggleRow-c520bed9.js → InputToggleRow-483acc75.js} +1 -1
  71. package/dist/IsPremiumPreStep-aa08f8c8.js +2343 -0
  72. package/dist/{MediaWrapper-722723f7.js → MediaWrapper-ed7db800.js} +3 -3
  73. package/dist/{NotBindingText-613399b6.js → NotBindingText-a99b4f85.js} +2 -2
  74. package/dist/{PackageGroup-1085c76c.js → PackageGroup-8cae78f1.js} +10 -10
  75. package/dist/{PdfTerms-f98a6f75.js → PdfTerms-9c1c806e.js} +4 -4
  76. package/dist/{PdfViewer-096bbf00.js → PdfViewer-1227dda6.js} +2 -2
  77. package/dist/{PlainHtml-752bc8d6.js → PlainHtml-647219e9.js} +1 -1
  78. package/dist/{PriceHeader-e25df5eb.js → PriceHeader-cfb22169.js} +11 -11
  79. package/dist/{SearchApi-20629627.js → SearchApi-c0067742.js} +2 -2
  80. package/dist/{TermsSettings-4cc4a9ee.js → TermsSettings-a0282ad7.js} +6 -6
  81. package/dist/{ThemeColorRow-c292abc6.js → ThemeColorRow-71af67bd.js} +2 -2
  82. package/dist/{ToggleBinding-406175fb.js → ToggleBinding-16c2879e.js} +3 -3
  83. package/dist/{UploadModal-0cbd0c8f.js → UploadModal-084e3c2e.js} +3 -3
  84. package/dist/{VideoPlayerInput-d7b5fe4b.js → VideoPlayerInput-fe87698e.js} +3 -3
  85. package/dist/{VideoPlayerSettings-51c75143.js → VideoPlayerSettings-06cfaccc.js} +4 -4
  86. package/dist/{VideoSelectModal-e34cde4b.js → VideoSelectModal-fa81fb92.js} +7 -7
  87. package/dist/{answerDocumentMixin-574c5304.js → answerDocumentMixin-ef48c7eb.js} +3 -3
  88. package/dist/{cssMode-eda08630.js → cssMode-916ae2c1.js} +15 -19
  89. package/dist/{focusDrawerMixin-72f8dd7a.js → focusDrawerMixin-24942dd1.js} +1 -1
  90. package/dist/{formComponentsInstall-3f1c6477.js → formComponentsInstall-2dfa2def.js} +26 -26
  91. package/dist/{formValidationMixin-d4e84872.js → formValidationMixin-82793652.js} +1 -1
  92. package/dist/{freemarker2-42cdfba5.js → freemarker2-6fd30e77.js} +19 -23
  93. package/dist/{handlebars-b4515777.js → handlebars-ff07e526.js} +11 -15
  94. package/dist/{html-ea5d1845.js → html-5ad143f9.js} +14 -18
  95. package/dist/{htmlMode-1cc3531d.js → htmlMode-adc834ff.js} +19 -23
  96. package/dist/{index-7adda710.js → index-045c9c73.js} +1 -1
  97. package/dist/index-1f068e8e.js +14 -0
  98. package/dist/{index-762349d7.js → index-6eda8be0.js} +4 -4
  99. package/dist/{index-07377b76.js → index-b3fb8f92.js} +7 -7
  100. package/dist/index.es.js +2 -2
  101. package/dist/index.umd.js +539 -539
  102. package/dist/{javascript-185ef2e0.js → javascript-9c241e8d.js} +11 -15
  103. package/dist/{jsonMode-59ea4e99.js → jsonMode-36a8e1fd.js} +19 -23
  104. package/dist/{liquid-517f2a7c.js → liquid-da99d7af.js} +14 -18
  105. package/dist/{main-95207159.js → main-2dc98356.js} +45 -45
  106. package/dist/{mapFormMixin-a245a297.js → mapFormMixin-4ac649c2.js} +1 -1
  107. package/dist/{publicSenderState-bea5980b.js → publicSenderState-1db8a50c.js} +1 -1
  108. package/dist/{python-eb6703d8.js → python-15d86041.js} +11 -15
  109. package/dist/{razor-4c5b7deb.js → razor-19e0207f.js} +18 -22
  110. package/dist/{simplebar.min-97b539d6.js → simplebar.min-9f5e0b8a.js} +1 -1
  111. package/dist/style.css +1 -1
  112. package/dist/template-069f0890.js +526 -0
  113. package/dist/{throttle-a0ce8f66.js → throttle-f8ef830f.js} +2 -2
  114. package/dist/{tinycolor-65e7dc2e.js → tinycolor-78c3e3d5.js} +1 -1
  115. package/dist/{tippy.esm-3c111ba9.js → tippy.esm-d2a6f864.js} +5 -5
  116. package/dist/{tsMode-a4a0e653.js → tsMode-7fcdffc4.js} +15 -19
  117. package/dist/{typescript-aeab7849.js → typescript-f492bdab.js} +11 -15
  118. package/dist/{utils-580c7144.js → utils-aab0bc31.js} +1 -1
  119. package/dist/{vuedraggable.umd-2c22e5f8.js → vuedraggable.umd-eb01eee5.js} +1 -1
  120. package/dist/{xml-098907e6.js → xml-976a8723.js} +14 -18
  121. package/package.json +1 -1
  122. package/stats.html +1 -1
  123. package/dist/DocForm-e56b3a0c.js +0 -7143
  124. package/dist/IsPremiumPreStep-d4739d6a.js +0 -2443
  125. package/dist/assets/article-options-10291.png +0 -0
  126. package/dist/assets/bg-base-13048.png +0 -0
  127. package/dist/assets/bg-pro-81076.png +0 -0
  128. package/dist/assets/bg-start-20630.png +0 -0
  129. package/dist/assets/blank-10674.png +0 -0
  130. package/dist/assets/block-options-17322.png +0 -0
  131. package/dist/assets/columnGallery.image-24825.png +0 -0
  132. package/dist/assets/doc-send-94456.png +0 -0
  133. package/dist/assets/drag-block-17194.png +0 -0
  134. package/dist/assets/headerCircularGradient.image-13878.png +0 -0
  135. package/dist/assets/roiCalculator.image-14704.png +0 -0
  136. package/dist/assets/text-bubble-53861.png +0 -0
  137. package/dist/index-676b9274.js +0 -17
  138. package/dist/template-b3af7583.js +0 -528
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,17 +0,0 @@
1
- import { C, P as I, a as c, I as l, s as x } from "./IsPremiumPreStep-d4739d6a.js";
2
- import "./main-95207159.js";
3
- import "./vuex.esm-4a0fff7c.js";
4
- import "./anime.es-e284c852.js";
5
- import "./index-7adda710.js";
6
- import "./index-805c56e4.js";
7
- import "./regions-29ee6964.js";
8
- import "/Users/max.antonsson/Documents/Github/cling-vue/widget/dist/assets/bg-pro-81076.png";
9
- import "/Users/max.antonsson/Documents/Github/cling-vue/widget/dist/assets/bg-base-13048.png";
10
- import "/Users/max.antonsson/Documents/Github/cling-vue/widget/dist/assets/bg-start-20630.png";
11
- export {
12
- C as CalloutLegacy,
13
- I as Checkout,
14
- c as IsPremium,
15
- l as IsPremiumPreStep,
16
- x as stripeMixin
17
- };
@@ -1,528 +0,0 @@
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
- };