@duskmoon-dev/el-art-flower-animation 0.9.0

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.
@@ -0,0 +1,1049 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
8
+ var __toCommonJS = (from) => {
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
10
+ if (entry)
11
+ return entry;
12
+ entry = __defProp({}, "__esModule", { value: true });
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ __moduleCache.set(from, entry);
22
+ return entry;
23
+ };
24
+ var __moduleCache;
25
+ var __returnValue = (v) => v;
26
+ function __exportSetter(name, newValue) {
27
+ this[name] = __returnValue.bind(null, newValue);
28
+ }
29
+ var __export = (target, all) => {
30
+ for (var name in all)
31
+ __defProp(target, name, {
32
+ get: all[name],
33
+ enumerable: true,
34
+ configurable: true,
35
+ set: __exportSetter.bind(all, name)
36
+ });
37
+ };
38
+
39
+ // src/index.ts
40
+ var exports_src = {};
41
+ __export(exports_src, {
42
+ register: () => register,
43
+ ElDmArtFlowerAnimation: () => ElDmArtFlowerAnimation
44
+ });
45
+ module.exports = __toCommonJS(exports_src);
46
+
47
+ // src/el-dm-art-flower-animation.ts
48
+ var import_el_base = require("@duskmoon-dev/el-base");
49
+
50
+ // ../../node_modules/.bun/@duskmoon-dev+css-art@0.3.0/node_modules/@duskmoon-dev/css-art/dist/art/flower-animation.css
51
+ var flower_animation_default = `@layer css-art {
52
+ /* ── Keyframes ── */
53
+
54
+ @keyframes art-flower-animation-moving-flower-1 {
55
+ 0%, 100% { transform: rotate(3deg); }
56
+ 50% { transform: rotate(0deg); }
57
+ }
58
+
59
+ @keyframes art-flower-animation-moving-flower-2 {
60
+ 0%, 100% { transform: rotate(20deg); }
61
+ 50% { transform: rotate(23deg); }
62
+ }
63
+
64
+ @keyframes art-flower-animation-moving-flower-3 {
65
+ 0%, 100% { transform: rotate(-15deg); }
66
+ 50% { transform: rotate(-18deg); }
67
+ }
68
+
69
+ @keyframes art-flower-animation-blooming-leaf-right {
70
+ 0% { transform-origin: left; transform: rotate(70deg) rotateY(30deg) scaleX(0); }
71
+ }
72
+
73
+ @keyframes art-flower-animation-blooming-leaf-left {
74
+ 0% { transform-origin: right; transform: rotate(-70deg) rotateY(30deg) scaleX(0); }
75
+ }
76
+
77
+ @keyframes art-flower-animation-blooming-flower {
78
+ 0% { transform: scale(0); opacity: 0; }
79
+ }
80
+
81
+ @keyframes art-flower-animation-light-ans {
82
+ 0% { opacity: 0; transform: translateY(0); }
83
+ 25% { opacity: 1; }
84
+ 100% { opacity: 0; transform: translateY(-15em) translateX(3em); }
85
+ }
86
+
87
+ @keyframes art-flower-animation-grow-flower-tree {
88
+ 0% { transform: scaleY(0); transform-origin: bottom center; }
89
+ }
90
+
91
+ @keyframes art-flower-animation-grow-ans {
92
+ 0% { transform: scaleY(0); transform-origin: bottom center; }
93
+ }
94
+
95
+ @keyframes art-flower-animation-moving-grass {
96
+ 0%, 100% { transform: rotate(-48deg) rotateY(40deg); }
97
+ 50% { transform: rotate(-50deg) rotateY(40deg); }
98
+ }
99
+
100
+ @keyframes art-flower-animation-moving-grass--2 {
101
+ 0%, 100% { transform: scale(0.5) rotate(75deg) rotateX(10deg) rotateY(-200deg); }
102
+ 50% { transform: scale(0.5) rotate(80deg) rotateX(10deg) rotateY(-200deg); }
103
+ }
104
+
105
+ @keyframes art-flower-animation-flower-g-long-ans {
106
+ 0%, 100% { transform: rotate(-30deg) rotateY(-20deg); }
107
+ 50% { transform: rotate(-32deg) rotateY(-20deg); }
108
+ }
109
+
110
+ @keyframes art-flower-animation-flower-g-right-ans {
111
+ 0%, 100% { transform: rotate(20deg); }
112
+ 50% { transform: rotate(24deg) rotateX(-20deg); }
113
+ }
114
+
115
+ @keyframes art-flower-animation-flower-g-right-ans--2 {
116
+ 0%, 100% { transform: rotateY(-180deg) rotate(0deg) rotateX(-20deg); }
117
+ 50% { transform: rotateY(-180deg) rotate(6deg) rotateX(-20deg); }
118
+ }
119
+
120
+ @keyframes art-flower-animation-flower-g-front-ans {
121
+ 0%, 100% { transform: rotate(-28deg) rotateY(30deg) scale(1.04); }
122
+ 50% { transform: rotate(-35deg) rotateY(40deg) scale(1.04); }
123
+ }
124
+
125
+ @keyframes art-flower-animation-flower-g-front-leaf-ans {
126
+ 0% { transform: rotate(10deg) scale(0); }
127
+ }
128
+
129
+ @keyframes art-flower-animation-flower-g-front-leaf-left-ans {
130
+ 0% { transform: rotateY(-180deg) rotate(5deg) scale(0); }
131
+ }
132
+
133
+ @keyframes art-flower-animation-flower-g-front-leaf-left-ans-2 {
134
+ 0% { transform: rotateY(-180deg) scale(0); }
135
+ }
136
+
137
+ @keyframes art-flower-animation-flower-g-fr-ans {
138
+ 0%, 100% { transform: rotate(2deg); }
139
+ 50% { transform: rotate(4deg); }
140
+ }
141
+
142
+ @keyframes art-flower-animation-flower-g-fr-leaf-ans-1 {
143
+ 0% { transform-origin: left; transform: rotate(45deg) scale(0); }
144
+ }
145
+
146
+ @keyframes art-flower-animation-flower-g-fr-leaf-ans-5 {
147
+ 0% { transform-origin: left; transform: rotate(55deg) scale(0); }
148
+ }
149
+
150
+ @keyframes art-flower-animation-flower-g-fr-leaf-ans-6 {
151
+ 0% { transform-origin: right; transform: rotate(25deg) rotateY(-180deg) scale(0); }
152
+ }
153
+
154
+ @keyframes art-flower-animation-flower-g-fr-leaf-ans-7 {
155
+ 0% { transform-origin: left; transform: rotate(45deg) scale(0); }
156
+ }
157
+
158
+ @keyframes art-flower-animation-flower-g-fr-leaf-ans-8 {
159
+ 0% { transform-origin: right; transform: rotate(15deg) rotateY(-180deg) scale(0); }
160
+ }
161
+
162
+ @keyframes art-flower-animation-growing-grass-1 {
163
+ 0% { transform-origin: bottom left; transform: rotate(-20deg) scale(0); }
164
+ }
165
+ @keyframes art-flower-animation-growing-grass-2 {
166
+ 0% { transform-origin: bottom right; transform: rotate(10deg) scale(0); }
167
+ }
168
+ @keyframes art-flower-animation-growing-grass-3 {
169
+ 0% { transform-origin: bottom left; transform: rotate(-18deg) rotateX(-20deg) scale(0); }
170
+ }
171
+ @keyframes art-flower-animation-growing-grass-4 {
172
+ 0% { transform-origin: bottom right; transform: rotate(2deg) scale(0); }
173
+ }
174
+ @keyframes art-flower-animation-growing-grass-5 {
175
+ 0% { transform-origin: bottom left; transform: rotate(-24deg) rotateX(-20deg) scale(0); }
176
+ }
177
+ @keyframes art-flower-animation-growing-grass-6 {
178
+ 0% { transform-origin: bottom right; transform: rotate(10deg) scale(0); }
179
+ }
180
+ @keyframes art-flower-animation-growing-grass-7 {
181
+ 0% { transform-origin: bottom left; transform: rotate(-10deg) scale(0); }
182
+ }
183
+ @keyframes art-flower-animation-growing-grass-8 {
184
+ 0% { transform-origin: bottom right; transform: rotate(10deg) scale(0); }
185
+ }
186
+
187
+ /* Bubble float-up (replaces original JS animation) */
188
+ @keyframes art-flower-animation-bubble {
189
+ 0% { transform: translateY(0) scale(0.3); opacity: 0; }
190
+ 10% { opacity: 1; }
191
+ 80% { opacity: 0.6; }
192
+ 100% { transform: translateY(-70em) scale(1); opacity: 0; }
193
+ }
194
+
195
+ /* ── Root container ── */
196
+
197
+ .art-flower-animation {
198
+ --art-flower-animation-size: 600px;
199
+ --art-flower-animation-bg: #010113;
200
+
201
+ position: relative;
202
+ font-size: calc(var(--art-flower-animation-size) / 100);
203
+ width: var(--art-flower-animation-size);
204
+ height: calc(var(--art-flower-animation-size) * 1.1);
205
+ overflow: hidden;
206
+ background-color: var(--art-flower-animation-bg);
207
+ perspective: 1000px;
208
+ display: flex;
209
+ align-items: flex-end;
210
+ justify-content: center;
211
+ }
212
+
213
+ .art-flower-animation-sm { --art-flower-animation-size: 300px; }
214
+ .art-flower-animation-lg { --art-flower-animation-size: 900px; }
215
+
216
+ /* ── Night sky background ── */
217
+
218
+ .art-flower-animation .night {
219
+ position: absolute;
220
+ left: 50%;
221
+ top: 0;
222
+ transform: translateX(-50%);
223
+ width: 100%;
224
+ height: 100%;
225
+ filter: blur(0.1em);
226
+ background-image:
227
+ radial-gradient(ellipse at top, transparent 0%, var(--art-flower-animation-bg)),
228
+ radial-gradient(ellipse at bottom, var(--art-flower-animation-bg), rgba(145, 233, 255, 0.2)),
229
+ repeating-linear-gradient(220deg, rgb(0, 0, 0) 0px, rgb(0, 0, 0) 19px, transparent 19px, transparent 22px),
230
+ repeating-linear-gradient(189deg, rgb(0, 0, 0) 0px, rgb(0, 0, 0) 19px, transparent 19px, transparent 22px),
231
+ repeating-linear-gradient(148deg, rgb(0, 0, 0) 0px, rgb(0, 0, 0) 19px, transparent 19px, transparent 22px),
232
+ linear-gradient(90deg, rgb(255, 94, 0), rgb(240, 240, 240));
233
+ }
234
+
235
+ /* ── Flowers container ── */
236
+
237
+ .art-flower-animation .flowers {
238
+ position: relative;
239
+ transform: scale(0.9);
240
+ }
241
+
242
+ /* ── Individual flowers ── */
243
+
244
+ .art-flower-animation .flower {
245
+ position: absolute;
246
+ bottom: 10em;
247
+ transform-origin: bottom center;
248
+ z-index: 10;
249
+ --fl-speed: 0.8s;
250
+ }
251
+
252
+ .art-flower-animation .flower--1 {
253
+ animation: art-flower-animation-moving-flower-1 4s linear infinite;
254
+ }
255
+ .art-flower-animation .flower--1 .flower__line {
256
+ height: 70em;
257
+ animation-delay: 0.3s;
258
+ }
259
+ .art-flower-animation .flower--1 .flower__line__leaf--1 {
260
+ animation: art-flower-animation-blooming-leaf-right var(--fl-speed) 1.6s backwards;
261
+ }
262
+ .art-flower-animation .flower--1 .flower__line__leaf--2 {
263
+ animation: art-flower-animation-blooming-leaf-right var(--fl-speed) 1.4s backwards;
264
+ }
265
+ .art-flower-animation .flower--1 .flower__line__leaf--3 {
266
+ animation: art-flower-animation-blooming-leaf-left var(--fl-speed) 1.2s backwards;
267
+ }
268
+ .art-flower-animation .flower--1 .flower__line__leaf--4 {
269
+ animation: art-flower-animation-blooming-leaf-left var(--fl-speed) 1s backwards;
270
+ }
271
+ .art-flower-animation .flower--1 .flower__line__leaf--5 {
272
+ animation: art-flower-animation-blooming-leaf-right var(--fl-speed) 1.8s backwards;
273
+ }
274
+ .art-flower-animation .flower--1 .flower__line__leaf--6 {
275
+ animation: art-flower-animation-blooming-leaf-left var(--fl-speed) 2s backwards;
276
+ }
277
+
278
+ .art-flower-animation .flower--2 {
279
+ left: 50%;
280
+ transform: rotate(20deg);
281
+ animation: art-flower-animation-moving-flower-2 4s linear infinite;
282
+ }
283
+ .art-flower-animation .flower--2 .flower__line {
284
+ height: 60em;
285
+ animation-delay: 0.6s;
286
+ }
287
+ .art-flower-animation .flower--2 .flower__line__leaf--1 {
288
+ animation: art-flower-animation-blooming-leaf-right var(--fl-speed) 1.9s backwards;
289
+ }
290
+ .art-flower-animation .flower--2 .flower__line__leaf--2 {
291
+ animation: art-flower-animation-blooming-leaf-right var(--fl-speed) 1.7s backwards;
292
+ }
293
+ .art-flower-animation .flower--2 .flower__line__leaf--3 {
294
+ animation: art-flower-animation-blooming-leaf-left var(--fl-speed) 1.5s backwards;
295
+ }
296
+ .art-flower-animation .flower--2 .flower__line__leaf--4 {
297
+ animation: art-flower-animation-blooming-leaf-left var(--fl-speed) 1.3s backwards;
298
+ }
299
+
300
+ .art-flower-animation .flower--3 {
301
+ left: 50%;
302
+ transform: rotate(-15deg);
303
+ animation: art-flower-animation-moving-flower-3 4s linear infinite;
304
+ }
305
+ .art-flower-animation .flower--3 .flower__line {
306
+ animation-delay: 0.9s;
307
+ }
308
+ .art-flower-animation .flower--3 .flower__line__leaf--1 {
309
+ animation: art-flower-animation-blooming-leaf-right var(--fl-speed) 2.5s backwards;
310
+ }
311
+ .art-flower-animation .flower--3 .flower__line__leaf--2 {
312
+ animation: art-flower-animation-blooming-leaf-right var(--fl-speed) 2.3s backwards;
313
+ }
314
+ .art-flower-animation .flower--3 .flower__line__leaf--3 {
315
+ animation: art-flower-animation-blooming-leaf-left var(--fl-speed) 2.1s backwards;
316
+ }
317
+ .art-flower-animation .flower--3 .flower__line__leaf--4 {
318
+ animation: art-flower-animation-blooming-leaf-left var(--fl-speed) 1.9s backwards;
319
+ }
320
+
321
+ .art-flower-animation .flower--4 {
322
+ left: -30%;
323
+ transform: rotate(-15deg) scaleX(-1);
324
+ animation: art-flower-animation-moving-flower-3 4s linear infinite;
325
+ }
326
+ .art-flower-animation .flower--4 .flower__line {
327
+ animation-delay: 1.2s;
328
+ }
329
+ .art-flower-animation .flower--4 .flower__line__leaf--1 {
330
+ animation: art-flower-animation-blooming-leaf-right var(--fl-speed) 2.8s backwards;
331
+ }
332
+ .art-flower-animation .flower--4 .flower__line__leaf--2 {
333
+ animation: art-flower-animation-blooming-leaf-right var(--fl-speed) 2.6s backwards;
334
+ }
335
+ .art-flower-animation .flower--4 .flower__line__leaf--3 {
336
+ animation: art-flower-animation-blooming-leaf-left var(--fl-speed) 2.4s backwards;
337
+ }
338
+ .art-flower-animation .flower--4 .flower__line__leaf--4 {
339
+ animation: art-flower-animation-blooming-leaf-left var(--fl-speed) 2.2s backwards;
340
+ }
341
+
342
+ /* ── Petals ── */
343
+
344
+ .art-flower-animation .flower__leafs {
345
+ position: relative;
346
+ animation: art-flower-animation-blooming-flower 2s backwards;
347
+ }
348
+ .art-flower-animation .flower__leafs--1 { animation-delay: 1.1s; }
349
+ .art-flower-animation .flower__leafs--2 { animation-delay: 1.4s; }
350
+ .art-flower-animation .flower__leafs--3 { animation-delay: 1.7s; }
351
+
352
+ .art-flower-animation .flower__leafs::after {
353
+ content: "";
354
+ position: absolute;
355
+ left: 0;
356
+ top: 0;
357
+ transform: translate(-50%, -100%);
358
+ width: 8em;
359
+ height: 8em;
360
+ background-color: #e7b201;
361
+ filter: blur(10em);
362
+ }
363
+
364
+ .art-flower-animation .flower__leaf {
365
+ position: absolute;
366
+ bottom: 0;
367
+ left: 50%;
368
+ width: 8em;
369
+ height: 11em;
370
+ border-radius: 51% 49% 47% 53% / 44% 45% 55% 69%;
371
+ background-color: #e6f331;
372
+ background-image: linear-gradient(to top, #e6f331, #e6f331);
373
+ transform-origin: bottom center;
374
+ opacity: 0.9;
375
+ box-shadow: inset 0 0 2em rgba(255, 255, 255, 0.5);
376
+ }
377
+ .art-flower-animation .flower__leaf--1 { transform: translate(-10%, 1%) rotateY(40deg) rotateX(-50deg); }
378
+ .art-flower-animation .flower__leaf--2 { transform: translate(-50%, -4%) rotateX(40deg); }
379
+ .art-flower-animation .flower__leaf--3 { transform: translate(-90%, 0%) rotateY(45deg) rotateX(50deg); }
380
+ .art-flower-animation .flower__leaf--4 {
381
+ width: 8em;
382
+ height: 8em;
383
+ transform-origin: bottom left;
384
+ border-radius: 4em 10em 4em 4em;
385
+ transform: translate(0%, 18%) rotateX(70deg) rotate(-43deg);
386
+ background-image: linear-gradient(to top, #e6f331, #e6f331);
387
+ z-index: 1;
388
+ opacity: 0.8;
389
+ }
390
+
391
+ /* ── Flower center ── */
392
+
393
+ .art-flower-animation .flower__white-circle {
394
+ position: absolute;
395
+ left: -3.5em;
396
+ top: -3em;
397
+ width: 9em;
398
+ height: 4em;
399
+ border-radius: 50%;
400
+ background-color: #fff;
401
+ }
402
+ .art-flower-animation .flower__white-circle::after {
403
+ content: "";
404
+ position: absolute;
405
+ left: 50%;
406
+ top: 45%;
407
+ transform: translate(-50%, -50%);
408
+ width: 60%;
409
+ height: 60%;
410
+ border-radius: inherit;
411
+ background-image:
412
+ repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 12px),
413
+ repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 12px),
414
+ repeating-linear-gradient(67.5deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 12px),
415
+ repeating-linear-gradient(112.5deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 12px),
416
+ repeating-linear-gradient(157.5deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 12px),
417
+ repeating-linear-gradient(22.5deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 12px),
418
+ linear-gradient(90deg, rgb(255, 235, 18), rgb(255, 206, 0));
419
+ }
420
+
421
+ /* ── Stem ── */
422
+
423
+ .art-flower-animation .flower__line {
424
+ height: 55em;
425
+ width: 1.5em;
426
+ background-image:
427
+ linear-gradient(to left, rgba(0,0,0,0.2), transparent, rgba(255,255,255,0.2)),
428
+ linear-gradient(to top, transparent 10%, #056d24, #028137);
429
+ box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
430
+ animation: art-flower-animation-grow-flower-tree 4s backwards;
431
+ }
432
+
433
+ .art-flower-animation .flower__line__leaf {
434
+ --w: 7em;
435
+ --h: calc(var(--w) + 2em);
436
+ position: absolute;
437
+ top: 20%;
438
+ left: 90%;
439
+ width: var(--w);
440
+ height: var(--h);
441
+ border-top-right-radius: var(--h);
442
+ border-bottom-left-radius: var(--h);
443
+ background-image: linear-gradient(to top, rgba(12, 94, 32, 0.4), #028137);
444
+ }
445
+ .art-flower-animation .flower__line__leaf--1 { transform: rotate(70deg) rotateY(30deg); }
446
+ .art-flower-animation .flower__line__leaf--2 { top: 45%; transform: rotate(70deg) rotateY(30deg); }
447
+ .art-flower-animation .flower__line__leaf--3,
448
+ .art-flower-animation .flower__line__leaf--4,
449
+ .art-flower-animation .flower__line__leaf--6 {
450
+ border-top-right-radius: 0;
451
+ border-bottom-left-radius: 0;
452
+ border-top-left-radius: var(--h);
453
+ border-bottom-right-radius: var(--h);
454
+ left: -460%;
455
+ top: 12%;
456
+ transform: rotate(-70deg) rotateY(30deg);
457
+ }
458
+ .art-flower-animation .flower__line__leaf--4 { top: 40%; }
459
+ .art-flower-animation .flower__line__leaf--5 {
460
+ top: 0;
461
+ transform-origin: left;
462
+ transform: rotate(70deg) rotateY(30deg) scale(0.6);
463
+ }
464
+ .art-flower-animation .flower__line__leaf--6 {
465
+ top: -2%;
466
+ left: -450%;
467
+ transform-origin: right;
468
+ transform: rotate(-70deg) rotateY(30deg) scale(0.6);
469
+ }
470
+
471
+ /* ── Light particles ── */
472
+
473
+ .art-flower-animation .flower__light {
474
+ position: absolute;
475
+ bottom: 0;
476
+ width: 1em;
477
+ height: 1em;
478
+ background-color: rgb(255, 251, 0);
479
+ border-radius: 50%;
480
+ filter: blur(0.2em);
481
+ animation: art-flower-animation-light-ans 4s linear infinite backwards;
482
+ }
483
+ .art-flower-animation .flower__light:nth-child(odd) { background-color: #028137; }
484
+ .art-flower-animation .flower__light--1 { left: -2em; animation-delay: 1s; }
485
+ .art-flower-animation .flower__light--2 { left: 3em; animation-delay: 0.5s; }
486
+ .art-flower-animation .flower__light--3 { left: -6em; animation-delay: 0.3s; }
487
+ .art-flower-animation .flower__light--4 { left: 6em; animation-delay: 0.9s; }
488
+ .art-flower-animation .flower__light--5 { left: -1em; animation-delay: 1.5s; }
489
+ .art-flower-animation .flower__light--6 { left: -4em; animation-delay: 3s; }
490
+ .art-flower-animation .flower__light--7 { left: 3em; animation-delay: 2s; }
491
+ .art-flower-animation .flower__light--8 { left: -6em; animation-delay: 3.5s; }
492
+
493
+ /* ── Grass ── */
494
+
495
+ .art-flower-animation .flower__grass {
496
+ --c: #028137;
497
+ --line-w: 1.5em;
498
+ position: absolute;
499
+ bottom: 12em;
500
+ left: -7em;
501
+ display: flex;
502
+ flex-direction: column;
503
+ align-items: flex-end;
504
+ z-index: 20;
505
+ transform-origin: bottom center;
506
+ transform: rotate(-48deg) rotateY(40deg);
507
+ }
508
+ .art-flower-animation .flower__grass--1 {
509
+ animation: art-flower-animation-moving-grass 2s linear infinite;
510
+ }
511
+ .art-flower-animation .flower__grass--2 {
512
+ left: 2em;
513
+ bottom: 10em;
514
+ transform: scale(0.5) rotate(75deg) rotateX(10deg) rotateY(-200deg);
515
+ opacity: 0.8;
516
+ z-index: 0;
517
+ animation: art-flower-animation-moving-grass--2 1.5s linear infinite;
518
+ }
519
+ .art-flower-animation .flower__grass--top {
520
+ width: 7em;
521
+ height: 10em;
522
+ border-top-right-radius: 100%;
523
+ border-right: var(--line-w) solid var(--c);
524
+ transform-origin: bottom center;
525
+ transform: rotate(-2deg);
526
+ }
527
+ .art-flower-animation .flower__grass--bottom {
528
+ margin-top: -2px;
529
+ width: var(--line-w);
530
+ height: 25em;
531
+ background-image: linear-gradient(to top, transparent, var(--c));
532
+ }
533
+
534
+ .art-flower-animation .flower__grass__leaf {
535
+ --size: 10em;
536
+ position: absolute;
537
+ width: calc(var(--size) * 2.1);
538
+ height: var(--size);
539
+ border-top-left-radius: var(--size);
540
+ border-top-right-radius: var(--size);
541
+ background-image: linear-gradient(to top, transparent, transparent 30%, var(--c));
542
+ z-index: 100;
543
+ }
544
+ .art-flower-animation .flower__grass__leaf--1 {
545
+ top: -6%; left: 30%; --size: 6em;
546
+ transform: rotate(-20deg);
547
+ animation: art-flower-animation-growing-grass-1 2s 2.6s backwards;
548
+ }
549
+ .art-flower-animation .flower__grass__leaf--2 {
550
+ top: -5%; left: -110%; --size: 6em;
551
+ transform: rotate(10deg);
552
+ animation: art-flower-animation-growing-grass-2 2s 2.4s linear backwards;
553
+ }
554
+ .art-flower-animation .flower__grass__leaf--3 {
555
+ top: 5%; left: 60%; --size: 8em;
556
+ transform: rotate(-18deg) rotateX(-20deg);
557
+ animation: art-flower-animation-growing-grass-3 2s 2.2s linear backwards;
558
+ }
559
+ .art-flower-animation .flower__grass__leaf--4 {
560
+ top: 6%; left: -135%; --size: 8em;
561
+ transform: rotate(2deg);
562
+ animation: art-flower-animation-growing-grass-4 2s 2s linear backwards;
563
+ }
564
+ .art-flower-animation .flower__grass__leaf--5 {
565
+ top: 20%; left: 60%; --size: 10em;
566
+ transform: rotate(-24deg) rotateX(-20deg);
567
+ animation: art-flower-animation-growing-grass-5 2s 1.8s linear backwards;
568
+ }
569
+ .art-flower-animation .flower__grass__leaf--6 {
570
+ top: 22%; left: -180%; --size: 10em;
571
+ transform: rotate(10deg);
572
+ animation: art-flower-animation-growing-grass-6 2s 1.6s linear backwards;
573
+ }
574
+ .art-flower-animation .flower__grass__leaf--7 {
575
+ top: 39%; left: 70%; --size: 10em;
576
+ transform: rotate(-10deg);
577
+ animation: art-flower-animation-growing-grass-7 2s 1.4s linear backwards;
578
+ }
579
+ .art-flower-animation .flower__grass__leaf--8 {
580
+ top: 40%; left: -215%; --size: 11em;
581
+ transform: rotate(10deg);
582
+ animation: art-flower-animation-growing-grass-8 2s 1.2s linear backwards;
583
+ }
584
+ .art-flower-animation .flower__grass__overlay {
585
+ position: absolute;
586
+ top: -10%; right: 0%;
587
+ width: 100%; height: 100%;
588
+ background-color: rgba(0, 0, 0, 0.6);
589
+ filter: blur(1.5em);
590
+ z-index: 100;
591
+ }
592
+
593
+ /* ── Long grass stem ── */
594
+
595
+ .art-flower-animation .flower__g-long {
596
+ --w: 2em;
597
+ --h: 6em;
598
+ --c: #0d6632;
599
+ position: absolute;
600
+ bottom: 10em;
601
+ left: -3em;
602
+ transform-origin: bottom center;
603
+ transform: rotate(-30deg) rotateY(-20deg);
604
+ display: flex;
605
+ flex-direction: column;
606
+ align-items: flex-end;
607
+ animation: art-flower-animation-flower-g-long-ans 3s linear infinite;
608
+ }
609
+ .art-flower-animation .flower__g-long__top {
610
+ width: calc(var(--w) + 1em);
611
+ height: var(--h);
612
+ border-top-right-radius: 100%;
613
+ border-right: 0.7em solid var(--c);
614
+ transform: translate(-0.7em, 1em);
615
+ }
616
+ .art-flower-animation .flower__g-long__bottom {
617
+ width: var(--w);
618
+ height: 50em;
619
+ transform-origin: bottom center;
620
+ background-image: linear-gradient(to top, transparent 30%, var(--c));
621
+ box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
622
+ clip-path: polygon(35% 0, 65% 1%, 100% 100%, 0% 100%);
623
+ }
624
+
625
+ /* ── Right grass ── */
626
+
627
+ .art-flower-animation .flower__g-right {
628
+ position: absolute;
629
+ bottom: 6em;
630
+ left: -2em;
631
+ transform-origin: bottom left;
632
+ transform: rotate(20deg);
633
+ }
634
+ .art-flower-animation .flower__g-right .leaf {
635
+ width: 30em;
636
+ height: 50em;
637
+ border-top-left-radius: 100%;
638
+ border-left: 2em solid #028137;
639
+ background-image: linear-gradient(to bottom, transparent, var(--art-flower-animation-bg) 60%);
640
+ -webkit-mask-image: linear-gradient(to top, transparent 30%, #028137 60%);
641
+ mask-image: linear-gradient(to top, transparent 30%, #028137 60%);
642
+ }
643
+ .art-flower-animation .flower__g-right--1 {
644
+ animation: art-flower-animation-flower-g-right-ans 2.5s linear infinite;
645
+ }
646
+ .art-flower-animation .flower__g-right--2 {
647
+ left: 5em;
648
+ transform: rotateY(-180deg);
649
+ animation: art-flower-animation-flower-g-right-ans--2 3s linear infinite;
650
+ }
651
+ .art-flower-animation .flower__g-right--2 .leaf {
652
+ height: 75em;
653
+ filter: blur(0.3em);
654
+ opacity: 0.8;
655
+ }
656
+
657
+ /* ── Front grass ── */
658
+
659
+ .art-flower-animation .flower__g-front {
660
+ position: absolute;
661
+ bottom: 6em;
662
+ left: 2.5em;
663
+ z-index: 100;
664
+ transform-origin: bottom center;
665
+ transform: rotate(-28deg) rotateY(30deg) scale(1.04);
666
+ animation: art-flower-animation-flower-g-front-ans 2s linear infinite;
667
+ }
668
+ .art-flower-animation .flower__g-front__line {
669
+ width: 0.3em;
670
+ height: 20em;
671
+ background-image: linear-gradient(to top, transparent, #028137, transparent 100%);
672
+ position: relative;
673
+ }
674
+ .art-flower-animation .flower__g-front__leaf-wrapper {
675
+ position: absolute;
676
+ top: 0;
677
+ left: 0;
678
+ transform-origin: bottom left;
679
+ transform: rotate(10deg);
680
+ }
681
+ .art-flower-animation .flower__g-front__leaf-wrapper:nth-child(even) {
682
+ left: 0;
683
+ transform: rotateY(-180deg) rotate(5deg);
684
+ animation: art-flower-animation-flower-g-front-leaf-left-ans 1s ease-in backwards;
685
+ }
686
+ .art-flower-animation .flower__g-front__leaf-wrapper:nth-child(odd) {
687
+ animation: art-flower-animation-flower-g-front-leaf-ans 1s ease-in backwards;
688
+ }
689
+ .art-flower-animation .flower__g-front__leaf-wrapper--1 {
690
+ top: -8em;
691
+ transform: scale(0.7);
692
+ animation: art-flower-animation-flower-g-front-leaf-ans 1s 5.5s ease-in backwards !important;
693
+ }
694
+ .art-flower-animation .flower__g-front__leaf-wrapper--2 {
695
+ top: -8em;
696
+ transform: rotateY(-180deg) scale(0.7) !important;
697
+ animation: art-flower-animation-flower-g-front-leaf-left-ans-2 1s 5.2s ease-in backwards !important;
698
+ }
699
+ .art-flower-animation .flower__g-front__leaf-wrapper--3 {
700
+ top: -3em;
701
+ animation: art-flower-animation-flower-g-front-leaf-ans 1s 4.9s ease-in backwards !important;
702
+ }
703
+ .art-flower-animation .flower__g-front__leaf-wrapper--4 {
704
+ top: -3em;
705
+ transform: rotateY(-180deg) scale(0.9) !important;
706
+ animation: art-flower-animation-flower-g-front-leaf-left-ans-2 1s 4.6s ease-in backwards !important;
707
+ }
708
+ .art-flower-animation .flower__g-front__leaf-wrapper--5,
709
+ .art-flower-animation .flower__g-front__leaf-wrapper--6 { top: 2em; }
710
+ .art-flower-animation .flower__g-front__leaf-wrapper--7,
711
+ .art-flower-animation .flower__g-front__leaf-wrapper--8 { top: 6.5em; }
712
+ .art-flower-animation .flower__g-front__leaf-wrapper--5 { animation-delay: 4.3s !important; }
713
+ .art-flower-animation .flower__g-front__leaf-wrapper--6 { animation-delay: 4.1s !important; }
714
+ .art-flower-animation .flower__g-front__leaf-wrapper--7 { animation-delay: 3.8s !important; }
715
+ .art-flower-animation .flower__g-front__leaf-wrapper--8 { animation-delay: 3.5s !important; }
716
+
717
+ .art-flower-animation .flower__g-front__leaf {
718
+ width: 10em;
719
+ height: 10em;
720
+ border-radius: 100% 0% 0% 100% / 100% 100% 0% 0%;
721
+ box-shadow: inset 0 2px 1em hsla(150, 97%, 14%, 0.2);
722
+ background-image:
723
+ linear-gradient(to bottom left, transparent, var(--art-flower-animation-bg)),
724
+ linear-gradient(to bottom right, #028137 50%, transparent 50%, transparent);
725
+ -webkit-mask-image: linear-gradient(to bottom right, #028137 50%, transparent 50%, transparent);
726
+ mask-image: linear-gradient(to bottom right, #028137 50%, transparent 50%, transparent);
727
+ }
728
+
729
+ /* ── Front-right grass ── */
730
+
731
+ .art-flower-animation .flower__g-fr {
732
+ position: absolute;
733
+ bottom: -4em;
734
+ left: 0;
735
+ transform-origin: bottom left;
736
+ z-index: 10;
737
+ animation: art-flower-animation-flower-g-fr-ans 2s linear infinite;
738
+ }
739
+ .art-flower-animation .flower__g-fr .leaf {
740
+ width: 30em;
741
+ height: 50em;
742
+ border-top-left-radius: 100%;
743
+ border-left: 2em solid #028137;
744
+ -webkit-mask-image: linear-gradient(to top, transparent 25%, #028137 50%);
745
+ mask-image: linear-gradient(to top, transparent 25%, #028137 50%);
746
+ position: relative;
747
+ z-index: 1;
748
+ }
749
+ .art-flower-animation .flower__g-fr__leaf {
750
+ position: absolute;
751
+ top: 0;
752
+ left: 0;
753
+ width: 10em;
754
+ height: 10em;
755
+ border-radius: 100% 0% 0% 100% / 100% 100% 0% 0%;
756
+ box-shadow: inset 0 2px 1em hsla(184deg, 97%, 58%, 0.2);
757
+ background-image:
758
+ linear-gradient(to bottom left, transparent, var(--art-flower-animation-bg) 98%),
759
+ linear-gradient(to bottom right, #028137 45%, transparent 50%, transparent);
760
+ -webkit-mask-image: linear-gradient(135deg, #028137 40%, transparent 50%, transparent);
761
+ mask-image: linear-gradient(135deg, #028137 40%, transparent 50%, transparent);
762
+ }
763
+ .art-flower-animation .flower__g-fr__leaf--1 {
764
+ left: 20em; transform: rotate(45deg);
765
+ animation: art-flower-animation-flower-g-fr-leaf-ans-1 0.5s 5.2s linear backwards;
766
+ }
767
+ .art-flower-animation .flower__g-fr__leaf--2 {
768
+ left: 12em; top: -7em;
769
+ transform: rotate(25deg) rotateY(-180deg);
770
+ animation: art-flower-animation-flower-g-fr-leaf-ans-6 0.5s 5s linear backwards;
771
+ }
772
+ .art-flower-animation .flower__g-fr__leaf--3 {
773
+ left: 15em; top: 6em;
774
+ transform: rotate(55deg);
775
+ animation: art-flower-animation-flower-g-fr-leaf-ans-5 0.5s 4.8s linear backwards;
776
+ }
777
+ .art-flower-animation .flower__g-fr__leaf--4 {
778
+ left: 6em; top: -2em;
779
+ transform: rotate(25deg) rotateY(-180deg);
780
+ animation: art-flower-animation-flower-g-fr-leaf-ans-6 0.5s 4.6s linear backwards;
781
+ }
782
+ .art-flower-animation .flower__g-fr__leaf--5 {
783
+ left: 10em; top: 14em;
784
+ transform: rotate(55deg);
785
+ animation: art-flower-animation-flower-g-fr-leaf-ans-5 0.5s 4.4s linear backwards;
786
+ }
787
+ .art-flower-animation .flower__g-fr__leaf--6 {
788
+ left: 0; top: 6em;
789
+ transform: rotate(25deg) rotateY(-180deg);
790
+ animation: art-flower-animation-flower-g-fr-leaf-ans-6 0.5s 4.2s linear backwards;
791
+ }
792
+ .art-flower-animation .flower__g-fr__leaf--7 {
793
+ left: 5em; top: 22em;
794
+ transform: rotate(45deg);
795
+ animation: art-flower-animation-flower-g-fr-leaf-ans-7 0.5s 4s linear backwards;
796
+ }
797
+ .art-flower-animation .flower__g-fr__leaf--8 {
798
+ left: -4em; top: 15em;
799
+ transform: rotate(15deg) rotateY(-180deg);
800
+ animation: art-flower-animation-flower-g-fr-leaf-ans-8 0.5s 3.8s linear backwards;
801
+ }
802
+
803
+ /* ── Tall background grasses ── */
804
+
805
+ .art-flower-animation .long-g {
806
+ position: absolute;
807
+ bottom: 25em;
808
+ left: -42em;
809
+ transform-origin: bottom left;
810
+ }
811
+ .art-flower-animation .long-g .leaf {
812
+ --w: 3em;
813
+ --h: 40em;
814
+ position: absolute;
815
+ bottom: 0;
816
+ left: 0;
817
+ width: var(--w);
818
+ background-image: linear-gradient(to top, transparent 10%, #056d24 60%, #028137);
819
+ clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
820
+ transform-origin: bottom center;
821
+ height: var(--h);
822
+ }
823
+ .art-flower-animation .long-g .leaf--0 {
824
+ --h: 40em;
825
+ transform: rotate(-5deg) rotateX(5deg);
826
+ }
827
+ .art-flower-animation .long-g .leaf--1 {
828
+ --h: 45em;
829
+ left: 2em;
830
+ transform: rotate(3deg) rotateX(5deg);
831
+ }
832
+ .art-flower-animation .long-g .leaf--2 {
833
+ --h: 38em;
834
+ left: 1em;
835
+ transform: rotate(-8deg) rotateX(5deg);
836
+ }
837
+ .art-flower-animation .long-g .leaf--3 {
838
+ --h: 35em;
839
+ left: 3em;
840
+ transform: rotate(6deg) rotateX(5deg);
841
+ }
842
+ .art-flower-animation .long-g--1 {
843
+ bottom: 0;
844
+ transform: scale(0.8) rotate(-5deg);
845
+ }
846
+ .art-flower-animation .long-g--1 .leaf {
847
+ -webkit-mask-image: linear-gradient(to top, transparent 40%, #028137 80%) !important;
848
+ mask-image: linear-gradient(to top, transparent 40%, #028137 80%) !important;
849
+ }
850
+ .art-flower-animation .long-g--1 .leaf--1 {
851
+ --w: 5em;
852
+ --h: 60em;
853
+ left: -2em;
854
+ transform: rotate(3deg) rotateY(-180deg);
855
+ }
856
+ .art-flower-animation .long-g--2 {
857
+ bottom: -3em;
858
+ left: -35em;
859
+ transform: rotate(3deg);
860
+ }
861
+ .art-flower-animation .long-g--3 {
862
+ bottom: -3em;
863
+ left: -25em;
864
+ transform: rotate(0deg);
865
+ }
866
+ .art-flower-animation .long-g--4 {
867
+ bottom: 0;
868
+ left: -23em;
869
+ transform: rotate(-3deg);
870
+ }
871
+ .art-flower-animation .long-g--5 {
872
+ bottom: -3em;
873
+ left: -17em;
874
+ transform: scale(0.8) rotate(-5deg);
875
+ }
876
+ .art-flower-animation .long-g--6 {
877
+ bottom: 0;
878
+ left: -12em;
879
+ transform: rotate(-4deg);
880
+ }
881
+ .art-flower-animation .long-g--7 {
882
+ bottom: 0;
883
+ left: -5em;
884
+ transform: rotate(2deg);
885
+ }
886
+
887
+ /* ── grow-ans utility ── */
888
+
889
+ .art-flower-animation .grow-ans {
890
+ animation: art-flower-animation-grow-ans 2s var(--d, 0s) backwards;
891
+ }
892
+
893
+ /* ── Growing grass wrapper ── */
894
+
895
+ .art-flower-animation .growing-grass {
896
+ position: absolute;
897
+ bottom: 0;
898
+ }
899
+
900
+ /* ── Bubbles (floating hearts) ── */
901
+
902
+ .art-flower-animation .bubbles {
903
+ position: absolute;
904
+ bottom: 10em;
905
+ left: 50%;
906
+ transform: translateX(-50%);
907
+ width: 40em;
908
+ height: 0;
909
+ z-index: 20;
910
+ }
911
+ .art-flower-animation .bubble {
912
+ position: absolute;
913
+ bottom: 0;
914
+ animation: art-flower-animation-bubble 8s ease-in infinite;
915
+ opacity: 0;
916
+ }
917
+ .art-flower-animation .bubble .heart {
918
+ width: 2em;
919
+ height: 2em;
920
+ fill: rgba(255, 100, 150, 0.8);
921
+ filter: drop-shadow(0 0 0.5em rgba(255, 100, 150, 0.5));
922
+ }
923
+ .art-flower-animation .bubble:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 7s; }
924
+ .art-flower-animation .bubble:nth-child(2) { left: 10%; animation-delay: 0.5s; animation-duration: 8s; }
925
+ .art-flower-animation .bubble:nth-child(3) { left: 20%; animation-delay: 1s; animation-duration: 6.5s; }
926
+ .art-flower-animation .bubble:nth-child(4) { left: 30%; animation-delay: 1.5s; animation-duration: 9s; }
927
+ .art-flower-animation .bubble:nth-child(5) { left: 40%; animation-delay: 2s; animation-duration: 7.5s; }
928
+ .art-flower-animation .bubble:nth-child(6) { left: 50%; animation-delay: 2.5s; animation-duration: 8.5s; }
929
+ .art-flower-animation .bubble:nth-child(7) { left: 60%; animation-delay: 3s; animation-duration: 7s; }
930
+ .art-flower-animation .bubble:nth-child(8) { left: 70%; animation-delay: 3.5s; animation-duration: 9.5s; }
931
+ .art-flower-animation .bubble:nth-child(9) { left: 75%; animation-delay: 4s; animation-duration: 6s; }
932
+ .art-flower-animation .bubble:nth-child(10) { left: 80%; animation-delay: 4.5s; animation-duration: 8s; }
933
+ .art-flower-animation .bubble:nth-child(11) { left: 15%; animation-delay: 5s; animation-duration: 7.5s; }
934
+ .art-flower-animation .bubble:nth-child(12) { left: 25%; animation-delay: 5.5s; animation-duration: 9s; }
935
+ .art-flower-animation .bubble:nth-child(13) { left: 35%; animation-delay: 6s; animation-duration: 8s; }
936
+ .art-flower-animation .bubble:nth-child(14) { left: 45%; animation-delay: 6.5s; animation-duration: 7s; }
937
+ .art-flower-animation .bubble:nth-child(15) { left: 55%; animation-delay: 0.3s; animation-duration: 9.5s; }
938
+ .art-flower-animation .bubble:nth-child(16) { left: 65%; animation-delay: 1.3s; animation-duration: 6.5s; }
939
+ .art-flower-animation .bubble:nth-child(17) { left: 72%; animation-delay: 2.2s; animation-duration: 8.5s; }
940
+ .art-flower-animation .bubble:nth-child(18) { left: 8%; animation-delay: 3.3s; animation-duration: 7.5s; }
941
+ .art-flower-animation .bubble:nth-child(19) { left: 88%; animation-delay: 4.2s; animation-duration: 9s; }
942
+ .art-flower-animation .bubble:nth-child(20) { left: 93%; animation-delay: 5.8s; animation-duration: 6s; }
943
+ }
944
+ `;
945
+
946
+ // src/el-dm-art-flower-animation.ts
947
+ var layerMatch = flower_animation_default.match(/@layer\s+css-art\s*\{([\s\S]*)\}\s*$/);
948
+ var coreCss = layerMatch ? layerMatch[1] : flower_animation_default;
949
+ var styles = import_el_base.css`
950
+ :host {
951
+ display: inline-block;
952
+ }
953
+ :host([hidden]) {
954
+ display: none !important;
955
+ }
956
+ ${coreCss}
957
+ `;
958
+ var HEART_SVG = `<svg class="heart" viewBox="0 0 32 32"><path d="M23.6 2c-3.363 0-6.258 2.736-7.599 5.594-1.342-2.858-4.237-5.594-7.601-5.594-4.637 0-8.4 3.764-8.4 8.401 0 9.433 9.516 11.906 16.001 21.232 6.13-9.268 15.999-12.1 15.999-21.232 0-4.637-3.763-8.401-8.4-8.401z"></path></svg>`;
959
+ var lights = (count) => Array.from({ length: count }, (_, i) => `<div class="flower__light flower__light--${i + 1}"></div>`).join("");
960
+ var lineLeaves = (count) => Array.from({ length: count }, (_, i) => `<div class="flower__line__leaf flower__line__leaf--${i + 1}"></div>`).join("");
961
+ var flower = (num, leafsNum, lineLeafCount) => `
962
+ <div class="flower flower--${num}">
963
+ <div class="flower__leafs flower__leafs--${leafsNum}">
964
+ <div class="flower__leaf flower__leaf--1"></div>
965
+ <div class="flower__leaf flower__leaf--2"></div>
966
+ <div class="flower__leaf flower__leaf--3"></div>
967
+ <div class="flower__leaf flower__leaf--4"></div>
968
+ <div class="flower__white-circle"></div>
969
+ ${lights(8)}
970
+ </div>
971
+ <div class="flower__line">
972
+ ${lineLeaves(lineLeafCount)}
973
+ </div>
974
+ </div>`;
975
+ var grassLeaves = (count) => Array.from({ length: count }, (_, i) => `<div class="flower__grass__leaf flower__grass__leaf--${i + 1}"></div>`).join("");
976
+ var grass = (variant) => `
977
+ <div class="growing-grass">
978
+ <div class="flower__grass flower__grass--${variant}">
979
+ <div class="flower__grass--top"></div>
980
+ <div class="flower__grass--bottom"></div>
981
+ ${grassLeaves(8)}
982
+ <div class="flower__grass__overlay"></div>
983
+ </div>
984
+ </div>`;
985
+ var grow = (d, inner) => `<div class="grow-ans" style="--d:${d}">${inner}</div>`;
986
+ var longG = (variant, delays) => `
987
+ <div class="long-g long-g--${variant}">
988
+ ${delays.map((d, i) => grow(d, `<div class="leaf leaf--${i}"></div>`)).join("")}
989
+ </div>`;
990
+ var gFrontLeafs = (count) => Array.from({ length: count }, (_, i) => `<div class="flower__g-front__leaf-wrapper flower__g-front__leaf-wrapper--${i + 1}"><div class="flower__g-front__leaf"></div></div>`).join("");
991
+ var gFrLeafs = (count) => Array.from({ length: count }, (_, i) => `<div class="flower__g-fr__leaf flower__g-fr__leaf--${i + 1}"></div>`).join("");
992
+ var bubbles = (count) => Array.from({ length: count }, () => `<div class="bubble">${HEART_SVG}</div>`).join("");
993
+
994
+ class ElDmArtFlowerAnimation extends import_el_base.BaseElement {
995
+ static properties = {
996
+ size: { type: String, reflect: true }
997
+ };
998
+ constructor() {
999
+ super();
1000
+ this.attachStyles(styles);
1001
+ }
1002
+ render() {
1003
+ const classes = ["art-flower-animation"];
1004
+ if (this.size && this.size !== "md")
1005
+ classes.push(`art-flower-animation-${this.size}`);
1006
+ return `
1007
+ <div class="${classes.join(" ")}">
1008
+ <div class="night"></div>
1009
+ <div class="flowers">
1010
+ ${flower(1, 1, 6)}
1011
+ ${flower(2, 2, 4)}
1012
+ ${flower(3, 3, 4)}
1013
+ ${flower(4, 3, 4)}
1014
+ ${grow("1.2s", '<div class="flower__g-long"><div class="flower__g-long__top"></div><div class="flower__g-long__bottom"></div></div>')}
1015
+ ${grass(1)}
1016
+ ${grass(2)}
1017
+ ${grow("2.4s", '<div class="flower__g-right flower__g-right--1"><div class="leaf"></div></div>')}
1018
+ ${grow("2.8s", '<div class="flower__g-right flower__g-right--2"><div class="leaf"></div></div>')}
1019
+ ${grow("2.8s", `<div class="flower__g-front">${gFrontLeafs(8)}<div class="flower__g-front__line"></div></div>`)}
1020
+ ${grow("3.2s", `<div class="flower__g-fr"><div class="leaf"></div>${gFrLeafs(8)}</div>`)}
1021
+ ${longG(0, ["3s", "2.2s", "3.4s", "3.6s"])}
1022
+ ${longG(1, ["3.6s", "3.8s", "4s", "4.2s"])}
1023
+ ${longG(2, ["4s", "4.2s", "4.4s", "4.6s"])}
1024
+ ${longG(3, ["4s", "4.2s", "3s", "3.6s"])}
1025
+ ${longG(4, ["4s", "4.2s", "3s", "3.6s"])}
1026
+ ${longG(5, ["4s", "4.2s", "3s", "3.6s"])}
1027
+ ${longG(6, ["4.2s", "4.4s", "4.6s", "4.8s"])}
1028
+ ${longG(7, ["3s", "3.2s", "3.5s", "3.6s"])}
1029
+ </div>
1030
+ <div class="bubbles">
1031
+ ${bubbles(20)}
1032
+ </div>
1033
+ </div>
1034
+ `;
1035
+ }
1036
+ }
1037
+
1038
+ // src/index.ts
1039
+ function register() {
1040
+ if (!customElements.get("el-dm-art-flower-animation")) {
1041
+ customElements.define("el-dm-art-flower-animation", ElDmArtFlowerAnimation);
1042
+ }
1043
+ }
1044
+
1045
+ // src/register.ts
1046
+ register();
1047
+
1048
+ //# debugId=2F1F10D5DB5003AD64756E2164756E21
1049
+ //# sourceMappingURL=register.js.map