vviinn-widgets 2.18.21 → 2.19.1

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 (183) hide show
  1. package/dist/cjs/{index-cb410762.js → Campaign-a94a827a.js} +17 -1
  2. package/dist/cjs/cropper-handler_29.cjs.entry.js +1418 -0
  3. package/dist/cjs/{imageSearch.store-98824653.js → index-48c94264.js} +16016 -11171
  4. package/dist/cjs/{index-7f1325a7.js → index-a4becaff.js} +683 -303
  5. package/dist/cjs/loader.cjs.js +4 -3
  6. package/dist/cjs/{vviinn-carousel_3.cjs.entry.js → vviinn-carousel_2.cjs.entry.js} +150 -270
  7. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +14 -8
  8. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +12 -14
  9. package/dist/cjs/vviinn-widgets.cjs.js +10 -3
  10. package/dist/collection/Image/sizing.spec.js +66 -0
  11. package/dist/collection/collection-manifest.json +2 -2
  12. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +2 -16
  13. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +11 -7
  14. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -1
  15. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +40 -37
  16. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +73 -67
  17. package/dist/collection/components/image-search/search-filters/search-filters.css +4 -23
  18. package/dist/collection/components/image-search/search-filters/search-filters.js +97 -91
  19. package/dist/collection/components/vviinn-button/vviinn-button.js +34 -31
  20. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +1 -2
  21. package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +161 -156
  22. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +12 -14
  23. package/dist/collection/components/vviinn-error/vviinn-error.js +12 -12
  24. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +35 -30
  25. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +35 -30
  26. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +129 -121
  27. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +75 -75
  28. package/dist/collection/components/vviinn-icons/index.js +10 -27
  29. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +120 -67
  30. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +81 -69
  31. package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -1
  32. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +27 -28
  33. package/dist/collection/components/vviinn-modal/vviinn-modal.css +7 -36
  34. package/dist/collection/components/vviinn-modal/vviinn-modal.js +115 -93
  35. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +12 -14
  36. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +12 -14
  37. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +12 -14
  38. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +12 -17
  39. package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +1 -12
  40. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +12 -9
  41. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +107 -78
  42. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +1 -11
  43. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +11 -7
  44. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -1
  45. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +12 -16
  46. package/dist/collection/components/vviinn-product-card/render-helpers.js +6 -14
  47. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +425 -415
  48. package/dist/collection/components/vviinn-slider/arrow.js +1 -2
  49. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +12 -9
  50. package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -1
  51. package/dist/collection/components/vviinn-slider/vviinn-slider.js +87 -82
  52. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +12 -18
  53. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +12 -64
  54. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +371 -360
  55. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +448 -444
  56. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +545 -542
  57. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +2 -0
  58. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +368 -332
  59. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -5
  60. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.e2e.js +26 -0
  61. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +502 -425
  62. package/dist/collection/geometry/Clip.spec.js +16 -0
  63. package/dist/collection/geometry/Rectangle.spec.js +66 -0
  64. package/dist/collection/geometry/Sized.spec.js +16 -0
  65. package/dist/collection/interfaces/generated.js +0 -4
  66. package/dist/collection/network/ion/Form.spec.js +43 -0
  67. package/dist/esm/{index-b31d86ce.js → Campaign-4aa53f29.js} +15 -2
  68. package/dist/esm/cropper-handler_29.entry.js +1386 -0
  69. package/dist/esm/{index-590cb67e.js → index-48ef9564.js} +683 -304
  70. package/dist/esm/{imageSearch.store-9dde5360.js → index-976acf7e.js} +16124 -11292
  71. package/dist/esm/loader.js +4 -3
  72. package/dist/esm/polyfills/css-shim.js +1 -1
  73. package/dist/esm/{vviinn-carousel_3.entry.js → vviinn-carousel_2.entry.js} +106 -225
  74. package/dist/esm/vviinn-recommendations-sidebar.entry.js +13 -7
  75. package/dist/esm/vviinn-vpr-button.entry.js +11 -13
  76. package/dist/esm/vviinn-widgets.js +7 -3
  77. package/dist/loader/index.d.ts +9 -0
  78. package/dist/loader/package.json +1 -0
  79. package/dist/types/Image/sizing.d.ts +4 -4
  80. package/dist/types/campaign/Campaign.d.ts +5 -5
  81. package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -1
  82. package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +2 -2
  83. package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +4 -0
  84. package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +2 -0
  85. package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +2 -0
  86. package/dist/types/components/vviinn-product-card/render-helpers.d.ts +3 -3
  87. package/dist/types/components/vviinn-slider/arrow.d.ts +2 -2
  88. package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +2 -2
  89. package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +9 -4
  90. package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +8 -0
  91. package/dist/types/components.d.ts +154 -54
  92. package/dist/types/error.d.ts +1 -1
  93. package/dist/types/geometry/Point.d.ts +1 -1
  94. package/dist/types/geometry/Rectangle.d.ts +1 -1
  95. package/dist/types/geometry/Sized.d.ts +1 -1
  96. package/dist/types/interfaces/generated.d.ts +192 -371
  97. package/dist/types/network/ion/File.d.ts +2 -2
  98. package/dist/types/network/ion/Form.d.ts +5 -5
  99. package/dist/types/network/ion/Link.d.ts +1 -1
  100. package/dist/types/network/ion/ValueObject.d.ts +4 -4
  101. package/dist/types/network/utils.d.ts +3 -3
  102. package/dist/types/recommendation/events.d.ts +5 -5
  103. package/dist/types/recommendation/recommendation.d.ts +1 -1
  104. package/dist/types/searchSession/searchSession.d.ts +7 -7
  105. package/dist/types/slider/GridMode.d.ts +1 -1
  106. package/dist/types/stencil-public-runtime.d.ts +98 -23
  107. package/dist/types/store/imageSearch.store.d.ts +1 -1
  108. package/dist/types/tracking/models.d.ts +2 -2
  109. package/dist/types/utils/event/Events.d.ts +1 -1
  110. package/dist/vviinn-widgets/p-312b0eb7.entry.js +1 -0
  111. package/dist/vviinn-widgets/p-414b2291.js +1 -0
  112. package/dist/vviinn-widgets/p-5b50c7e5.entry.js +1 -0
  113. package/dist/vviinn-widgets/p-8deaa5da.entry.js +1 -0
  114. package/dist/vviinn-widgets/p-c6209bc1.entry.js +1 -0
  115. package/{www/build/p-2f9ee951.js → dist/vviinn-widgets/p-d08ce429.js} +1 -1
  116. package/dist/vviinn-widgets/p-fa17e81f.js +2 -0
  117. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
  118. package/package.json +12 -12
  119. package/www/build/p-312b0eb7.entry.js +1 -0
  120. package/www/build/p-414b2291.js +1 -0
  121. package/www/build/p-5b50c7e5.entry.js +1 -0
  122. package/www/build/p-8deaa5da.entry.js +1 -0
  123. package/www/build/p-c6209bc1.entry.js +1 -0
  124. package/{dist/vviinn-widgets/p-2f9ee951.js → www/build/p-d08ce429.js} +1 -1
  125. package/www/build/p-d39b7d70.js +161 -0
  126. package/www/build/p-fa17e81f.js +2 -0
  127. package/www/build/vviinn-widgets.esm.js +1 -1
  128. package/www/index.html +2 -2
  129. package/dist/cjs/Campaign-13258569.js +0 -18
  130. package/dist/cjs/Handler-176539c8.js +0 -331
  131. package/dist/cjs/cropper-handler.cjs.entry.js +0 -27
  132. package/dist/cjs/customized-slots-6e56c354.js +0 -54
  133. package/dist/cjs/highlight-box_22.cjs.entry.js +0 -770
  134. package/dist/cjs/index-a99edb90.js +0 -3235
  135. package/dist/cjs/vviinn-button.cjs.entry.js +0 -21
  136. package/dist/cjs/vviinn-error.cjs.entry.js +0 -19
  137. package/dist/cjs/vviinn-preloader.cjs.entry.js +0 -26
  138. package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -65
  139. package/dist/cjs/vviinn-vps-widget.cjs.entry.js +0 -251
  140. package/dist/esm/Campaign-90ba7e06.js +0 -14
  141. package/dist/esm/Handler-f9b8735c.js +0 -309
  142. package/dist/esm/cropper-handler.entry.js +0 -23
  143. package/dist/esm/customized-slots-00afe247.js +0 -51
  144. package/dist/esm/highlight-box_22.entry.js +0 -745
  145. package/dist/esm/index-4d5b52ba.js +0 -3224
  146. package/dist/esm/vviinn-button.entry.js +0 -17
  147. package/dist/esm/vviinn-error.entry.js +0 -15
  148. package/dist/esm/vviinn-preloader.entry.js +0 -22
  149. package/dist/esm/vviinn-vps-button.entry.js +0 -61
  150. package/dist/esm/vviinn-vps-widget.entry.js +0 -247
  151. package/dist/vviinn-widgets/p-11f61564.js +0 -1
  152. package/dist/vviinn-widgets/p-12851e97.entry.js +0 -1
  153. package/dist/vviinn-widgets/p-18fd769b.js +0 -1
  154. package/dist/vviinn-widgets/p-339c6838.js +0 -1
  155. package/dist/vviinn-widgets/p-3b2c91c0.entry.js +0 -1
  156. package/dist/vviinn-widgets/p-45df9f28.entry.js +0 -1
  157. package/dist/vviinn-widgets/p-57ed5303.entry.js +0 -1
  158. package/dist/vviinn-widgets/p-69850e5b.js +0 -1
  159. package/dist/vviinn-widgets/p-7c2f762a.entry.js +0 -1
  160. package/dist/vviinn-widgets/p-7c3b7388.entry.js +0 -1
  161. package/dist/vviinn-widgets/p-85006f41.entry.js +0 -1
  162. package/dist/vviinn-widgets/p-8a3dd76d.entry.js +0 -1
  163. package/dist/vviinn-widgets/p-99e58be7.entry.js +0 -1
  164. package/dist/vviinn-widgets/p-a2b450b6.entry.js +0 -1
  165. package/dist/vviinn-widgets/p-bcc1ccf0.js +0 -1
  166. package/dist/vviinn-widgets/p-e6fee8d2.js +0 -1
  167. package/www/build/p-11f61564.js +0 -1
  168. package/www/build/p-12851e97.entry.js +0 -1
  169. package/www/build/p-18fd769b.js +0 -1
  170. package/www/build/p-339c6838.js +0 -1
  171. package/www/build/p-3b2c91c0.entry.js +0 -1
  172. package/www/build/p-45df9f28.entry.js +0 -1
  173. package/www/build/p-57ed5303.entry.js +0 -1
  174. package/www/build/p-69850e5b.js +0 -1
  175. package/www/build/p-7c2f762a.entry.js +0 -1
  176. package/www/build/p-7c3b7388.entry.js +0 -1
  177. package/www/build/p-85006f41.entry.js +0 -1
  178. package/www/build/p-8a3dd76d.entry.js +0 -1
  179. package/www/build/p-99e58be7.entry.js +0 -1
  180. package/www/build/p-9e2c131a.js +0 -125
  181. package/www/build/p-a2b450b6.entry.js +0 -1
  182. package/www/build/p-bcc1ccf0.js +0 -1
  183. package/www/build/p-e6fee8d2.js +0 -1
@@ -1,309 +0,0 @@
1
- // -------------------------------------------------------------------------------------
2
- /**
3
- * @since 2.0.0
4
- */
5
- function identity(a) {
6
- return a;
7
- }
8
- function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
9
- switch (arguments.length) {
10
- case 1:
11
- return ab;
12
- case 2:
13
- return function () {
14
- return bc(ab.apply(this, arguments));
15
- };
16
- case 3:
17
- return function () {
18
- return cd(bc(ab.apply(this, arguments)));
19
- };
20
- case 4:
21
- return function () {
22
- return de(cd(bc(ab.apply(this, arguments))));
23
- };
24
- case 5:
25
- return function () {
26
- return ef(de(cd(bc(ab.apply(this, arguments)))));
27
- };
28
- case 6:
29
- return function () {
30
- return fg(ef(de(cd(bc(ab.apply(this, arguments))))));
31
- };
32
- case 7:
33
- return function () {
34
- return gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))));
35
- };
36
- case 8:
37
- return function () {
38
- return hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments))))))));
39
- };
40
- case 9:
41
- return function () {
42
- return ij(hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))))));
43
- };
44
- }
45
- return;
46
- }
47
- /**
48
- * @since 2.0.0
49
- */
50
- function tuple() {
51
- var t = [];
52
- for (var _i = 0; _i < arguments.length; _i++) {
53
- t[_i] = arguments[_i];
54
- }
55
- return t;
56
- }
57
- function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
58
- switch (arguments.length) {
59
- case 1:
60
- return a;
61
- case 2:
62
- return ab(a);
63
- case 3:
64
- return bc(ab(a));
65
- case 4:
66
- return cd(bc(ab(a)));
67
- case 5:
68
- return de(cd(bc(ab(a))));
69
- case 6:
70
- return ef(de(cd(bc(ab(a)))));
71
- case 7:
72
- return fg(ef(de(cd(bc(ab(a))))));
73
- case 8:
74
- return gh(fg(ef(de(cd(bc(ab(a)))))));
75
- case 9:
76
- return hi(gh(fg(ef(de(cd(bc(ab(a))))))));
77
- default: {
78
- var ret = arguments[0];
79
- for (var i = 1; i < arguments.length; i++) {
80
- ret = arguments[i](ret);
81
- }
82
- return ret;
83
- }
84
- }
85
- }
86
-
87
- // -------------------------------------------------------------------------------------
88
- // Option
89
- // -------------------------------------------------------------------------------------
90
- /** @internal */
91
- var isNone = function (fa) { return fa._tag === 'None'; };
92
- /** @internal */
93
- var isSome = function (fa) { return fa._tag === 'Some'; };
94
- /** @internal */
95
- var none = { _tag: 'None' };
96
- /** @internal */
97
- var some = function (a) { return ({ _tag: 'Some', value: a }); };
98
- // -------------------------------------------------------------------------------------
99
- // Either
100
- // -------------------------------------------------------------------------------------
101
- /** @internal */
102
- var isLeft = function (ma) { return ma._tag === 'Left'; };
103
- /** @internal */
104
- var left = function (e) { return ({ _tag: 'Left', left: e }); };
105
- /** @internal */
106
- var right = function (a) { return ({ _tag: 'Right', right: a }); };
107
- // -------------------------------------------------------------------------------------
108
- // Record
109
- // -------------------------------------------------------------------------------------
110
- /** @internal */
111
- var has = Object.prototype.hasOwnProperty;
112
-
113
- /**
114
- * If a type `A` can form a `Semigroup` it has an **associative** binary operation.
115
- *
116
- * ```ts
117
- * interface Semigroup<A> {
118
- * readonly concat: (x: A, y: A) => A
119
- * }
120
- * ```
121
- *
122
- * Associativity means the following equality must hold for any choice of `x`, `y`, and `z`.
123
- *
124
- * ```ts
125
- * concat(x, concat(y, z)) = concat(concat(x, y), z)
126
- * ```
127
- *
128
- * A common example of a semigroup is the type `string` with the operation `+`.
129
- *
130
- * ```ts
131
- * import { Semigroup } from 'fp-ts/Semigroup'
132
- *
133
- * const semigroupString: Semigroup<string> = {
134
- * concat: (x, y) => x + y
135
- * }
136
- *
137
- * const x = 'x'
138
- * const y = 'y'
139
- * const z = 'z'
140
- *
141
- * semigroupString.concat(x, y) // 'xy'
142
- *
143
- * semigroupString.concat(x, semigroupString.concat(y, z)) // 'xyz'
144
- *
145
- * semigroupString.concat(semigroupString.concat(x, y), z) // 'xyz'
146
- * ```
147
- *
148
- * *Adapted from https://typelevel.org/cats*
149
- *
150
- * @since 2.0.0
151
- */
152
- /**
153
- * Given a struct of semigroups returns a semigroup for the struct.
154
- *
155
- * @example
156
- * import { struct } from 'fp-ts/Semigroup'
157
- * import * as N from 'fp-ts/number'
158
- *
159
- * interface Point {
160
- * readonly x: number
161
- * readonly y: number
162
- * }
163
- *
164
- * const S = struct<Point>({
165
- * x: N.SemigroupSum,
166
- * y: N.SemigroupSum
167
- * })
168
- *
169
- * assert.deepStrictEqual(S.concat({ x: 1, y: 2 }, { x: 3, y: 4 }), { x: 4, y: 6 })
170
- *
171
- * @category combinators
172
- * @since 2.10.0
173
- */
174
- var struct = function (semigroups) { return ({
175
- concat: function (first, second) {
176
- var r = {};
177
- for (var k in semigroups) {
178
- if (has.call(semigroups, k)) {
179
- r[k] = semigroups[k].concat(first[k], second[k]);
180
- }
181
- }
182
- return r;
183
- }
184
- }); };
185
- // -------------------------------------------------------------------------------------
186
- // instances
187
- // -------------------------------------------------------------------------------------
188
- /**
189
- * Always return the first argument.
190
- *
191
- * @example
192
- * import * as S from 'fp-ts/Semigroup'
193
- *
194
- * assert.deepStrictEqual(S.first<number>().concat(1, 2), 1)
195
- *
196
- * @category instances
197
- * @since 2.10.0
198
- */
199
- var first = function () { return ({ concat: identity }); };
200
- /**
201
- * Always return the last argument.
202
- *
203
- * @example
204
- * import * as S from 'fp-ts/Semigroup'
205
- *
206
- * assert.deepStrictEqual(S.last<number>().concat(1, 2), 2)
207
- *
208
- * @category instances
209
- * @since 2.10.0
210
- */
211
- var last = function () { return ({ concat: function (_, y) { return y; } }); };
212
- /**
213
- * Use [`SemigroupSum`](./number.ts.html#SemigroupSum) instead.
214
- *
215
- * @category instances
216
- * @since 2.0.0
217
- * @deprecated
218
- */
219
- var semigroupSum = {
220
- concat: function (x, y) { return x + y; }
221
- };
222
-
223
- const semigroupDiff = {
224
- concat: (x, y) => x - y,
225
- };
226
-
227
- const fromRectangle$1 = ({ x, y }) => {
228
- return {
229
- x,
230
- y,
231
- };
232
- };
233
- const fromMouseEvent = ({ clientX, clientY }) => {
234
- return {
235
- x: clientX,
236
- y: clientY,
237
- };
238
- };
239
- const pointDiffSemigroup = struct({
240
- x: semigroupDiff,
241
- y: semigroupDiff,
242
- });
243
- const pointSumSemigroup = struct({
244
- x: semigroupSum,
245
- y: semigroupSum,
246
- });
247
-
248
- var HandlerDirection;
249
- (function (HandlerDirection) {
250
- HandlerDirection[HandlerDirection["East"] = 0] = "East";
251
- HandlerDirection[HandlerDirection["North"] = 1] = "North";
252
- HandlerDirection[HandlerDirection["NorthEast"] = 2] = "NorthEast";
253
- HandlerDirection[HandlerDirection["NorthWest"] = 3] = "NorthWest";
254
- HandlerDirection[HandlerDirection["South"] = 4] = "South";
255
- HandlerDirection[HandlerDirection["SouthEast"] = 5] = "SouthEast";
256
- HandlerDirection[HandlerDirection["SouthWest"] = 6] = "SouthWest";
257
- HandlerDirection[HandlerDirection["West"] = 7] = "West";
258
- })(HandlerDirection || (HandlerDirection = {}));
259
- const getCursorValue = (direction) => {
260
- switch (direction) {
261
- case HandlerDirection.East:
262
- return "e-resize";
263
- case HandlerDirection.North:
264
- return "n-resize";
265
- case HandlerDirection.NorthEast:
266
- return "ne-resize";
267
- case HandlerDirection.NorthWest:
268
- return "nw-resize";
269
- case HandlerDirection.South:
270
- return "s-resize";
271
- case HandlerDirection.SouthEast:
272
- return "se-resize";
273
- case HandlerDirection.SouthWest:
274
- return "sw-resize";
275
- case HandlerDirection.West:
276
- return "w-resize";
277
- default:
278
- return "pointer";
279
- }
280
- };
281
- const fromRectangle = (r) => [
282
- {
283
- position: fromRectangle$1(r),
284
- direction: HandlerDirection.NorthWest,
285
- },
286
- {
287
- position: pointSumSemigroup.concat(fromRectangle$1(r), {
288
- x: r.width,
289
- y: 0,
290
- }),
291
- direction: HandlerDirection.NorthEast,
292
- },
293
- {
294
- position: pointSumSemigroup.concat(fromRectangle$1(r), {
295
- x: 0,
296
- y: r.height,
297
- }),
298
- direction: HandlerDirection.SouthWest,
299
- },
300
- {
301
- position: pointSumSemigroup.concat(fromRectangle$1(r), {
302
- x: r.width,
303
- y: r.height,
304
- }),
305
- direction: HandlerDirection.SouthEast,
306
- },
307
- ];
308
-
309
- export { HandlerDirection as H, isLeft as a, identity as b, flow as c, struct as d, last as e, first as f, pointSumSemigroup as g, has as h, isNone as i, fromRectangle$1 as j, isSome as k, left as l, fromRectangle as m, none as n, pointDiffSemigroup as o, pipe as p, fromMouseEvent as q, right as r, some as s, tuple as t, getCursorValue as u };
@@ -1,23 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-590cb67e.js';
2
- import { u as getCursorValue } from './Handler-f9b8735c.js';
3
-
4
- const cropperHandlerCss = ":host{--size:20px;background:transparent;border:4px solid white;box-sizing:content-box;display:block;height:var(--size);touch-action:none;position:absolute;width:var(--size);z-index:4;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.disabled){opacity:0.25}:host(.nw-resize){border-bottom:none;border-right:none;top:0;left:0}:host(.ne-resize){border-left:none;border-bottom:none;right:0;top:0}:host(.sw-resize){border-right:none;border-top:none;left:0;bottom:0}:host(.se-resize){border-left:none;border-top:none;bottom:0;right:0}";
5
-
6
- let CropperHandler = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.disabled = false;
10
- }
11
- render() {
12
- return (h(Host, { part: `handle ${getCursorValue(this.handler.direction)}`, class: {
13
- disabled: this.disabled,
14
- [getCursorValue(this.handler.direction)]: true,
15
- }, style: {
16
- "--size": "20px",
17
- cursor: getCursorValue(this.handler.direction),
18
- }, draggable: false }));
19
- }
20
- };
21
- CropperHandler.style = cropperHandlerCss;
22
-
23
- export { CropperHandler as cropper_handler };
@@ -1,51 +0,0 @@
1
- import { h } from './index-590cb67e.js';
2
-
3
- const defaultSlotsNames = [
4
- "vviinn-onboarding-title",
5
- "onboarding-card-1-icon",
6
- "onboarding-card-1-text",
7
- "onboarding-card-2-icon",
8
- "onboarding-card-2-text",
9
- "onboarding-card-3-icon",
10
- "onboarding-card-3-text",
11
- "vviinn-example-images-title",
12
- "vviinn-example-images-1",
13
- "vviinn-example-images-2",
14
- "vviinn-example-images-3",
15
- "vviinn-example-images-4",
16
- "vviinn-teaser-text",
17
- "vviinn-image-upload-button-text",
18
- "vviinn-privacy-badge-text",
19
- "vviinn-image-search-modal-title",
20
- ];
21
- const renderNamedSlot = (name) => h("slot", { name: name });
22
- const SlotSkeleton = () => defaultSlotsNames.map(renderNamedSlot);
23
- const getSlots = (element) => Array.from(element.shadowRoot.querySelectorAll("slot"));
24
- const getNameAttribute = (element) => element.getAttribute("name");
25
- const getSlotAttribute = (element) => element.getAttribute("slot");
26
- const elementContainSlot = (slot) => (container) => {
27
- const name1 = getNameAttribute(slot);
28
- const name2 = getSlotAttribute(container);
29
- return name1 === name2;
30
- };
31
- const getContentToReplace = (targets) => (acc, content) => {
32
- const replaceCandidate = targets.find(elementContainSlot(content));
33
- if (replaceCandidate) {
34
- acc.set(content, replaceCandidate);
35
- }
36
- return acc;
37
- };
38
- const replaceSlotContent = (content, target) => {
39
- target.innerHTML = content.outerHTML;
40
- };
41
- const slotChangeListener = (component, element) => {
42
- component.connectedCallback = function () {
43
- document.addEventListener("globalSlotsChanged", ({ detail }) => {
44
- const slotsToReplace = getSlots(element).reduce(getContentToReplace(detail), new Map());
45
- slotsToReplace.forEach(replaceSlotContent);
46
- }, true);
47
- };
48
- component.connectedCallback.call(component);
49
- };
50
-
51
- export { SlotSkeleton as S, slotChangeListener as s };