@rudra-studio/smileyyfy-core 1.0.0 → 1.1.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.
- package/components/AnimatedStorySprite/index.d.ts +1 -1
- package/components/AnimatedStorySprite/index.js +730 -24
- package/components/AnimatedStorySprite/styles.css +1 -1
- package/components/AnimatedStorySprite/styles.js +58 -37
- package/components/PageCanvasBuilder/index.d.ts +1 -1
- package/components/PageCanvasBuilder/index.js +1358 -376
- package/components/PageCanvasBuilder/styles.css +1 -1
- package/components/PageCanvasBuilder/styles.js +203 -143
- package/components/PublishedPageViewer/index.d.ts +2 -2
- package/components/PublishedPageViewer/index.js +664 -111
- package/components/PublishedPageViewer/styles.css +1 -1
- package/components/PublishedPageViewer/styles.js +165 -119
- package/package.json +1 -1
- package/utils/SmileyyfyBaseTemplate.d.ts +3 -0
- package/utils/SmileyyfyPageSnapshot.d.ts +2 -0
- package/utils/SmileyyfyPublishedPageData.d.ts +2 -0
- package/utils/SmileyyfyThemeStyle.d.ts +9 -0
- package/utils/StarterPresetType.d.ts +1 -1
- package/utils/StorySpriteScene.d.ts +1 -1
- package/utils/SurfaceKeyType.d.ts +1 -1
- package/utils/TemplateCategoryType.d.ts +2 -0
- package/utils/buildStarterBlocks.js +28 -7
- package/utils/defaultBaseTemplates.js +88 -0
- package/utils/defaultWidgetRegistry.js +67 -1
- package/utils/getPresetTemplateId.js +4 -2
|
@@ -2,28 +2,734 @@ import e from "./styles.js";
|
|
|
2
2
|
import { useEffect as t, useState as n } from "react";
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/AnimatedStorySprite/index.tsx
|
|
5
|
-
function a({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
function a({ scene: t }) {
|
|
6
|
+
return t === "cartoon_couple" ? /* @__PURE__ */ i("svg", {
|
|
7
|
+
viewBox: "0 0 280 120",
|
|
8
|
+
className: e.cartoonSvg,
|
|
9
|
+
"aria-hidden": "true",
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ i("defs", { children: [/* @__PURE__ */ i("radialGradient", {
|
|
12
|
+
id: "asSkinA",
|
|
13
|
+
cx: "40%",
|
|
14
|
+
cy: "30%",
|
|
15
|
+
r: "70%",
|
|
16
|
+
children: [/* @__PURE__ */ r("stop", {
|
|
17
|
+
offset: "0%",
|
|
18
|
+
stopColor: "#ffedd5"
|
|
19
|
+
}), /* @__PURE__ */ r("stop", {
|
|
20
|
+
offset: "100%",
|
|
21
|
+
stopColor: "#fdba74"
|
|
22
|
+
})]
|
|
23
|
+
}), /* @__PURE__ */ i("linearGradient", {
|
|
24
|
+
id: "asHeartG",
|
|
25
|
+
x1: "0",
|
|
26
|
+
y1: "0",
|
|
27
|
+
x2: "1",
|
|
28
|
+
y2: "1",
|
|
29
|
+
children: [/* @__PURE__ */ r("stop", {
|
|
30
|
+
offset: "0%",
|
|
31
|
+
stopColor: "#fb7185"
|
|
32
|
+
}), /* @__PURE__ */ r("stop", {
|
|
33
|
+
offset: "100%",
|
|
34
|
+
stopColor: "#e11d48"
|
|
35
|
+
})]
|
|
36
|
+
})] }),
|
|
37
|
+
/* @__PURE__ */ r("ellipse", {
|
|
38
|
+
cx: "90",
|
|
39
|
+
cy: "106",
|
|
40
|
+
rx: "26",
|
|
41
|
+
ry: "5",
|
|
42
|
+
fill: "rgba(15,23,42,0.16)"
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ r("ellipse", {
|
|
45
|
+
cx: "190",
|
|
46
|
+
cy: "106",
|
|
47
|
+
rx: "26",
|
|
48
|
+
ry: "5",
|
|
49
|
+
fill: "rgba(15,23,42,0.16)"
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ i("g", {
|
|
52
|
+
className: e.chibiLeft,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ r("rect", {
|
|
55
|
+
x: "74",
|
|
56
|
+
y: "68",
|
|
57
|
+
width: "32",
|
|
58
|
+
height: "32",
|
|
59
|
+
rx: "14",
|
|
60
|
+
fill: "#3b82f6"
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ r("circle", {
|
|
63
|
+
cx: "90",
|
|
64
|
+
cy: "48",
|
|
65
|
+
r: "22",
|
|
66
|
+
fill: "url(#asSkinA)",
|
|
67
|
+
stroke: "#fff7ed",
|
|
68
|
+
strokeWidth: "2"
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ r("path", {
|
|
71
|
+
d: "M70 43 C74 24, 106 24, 110 43 C102 35, 78 35, 70 43 Z",
|
|
72
|
+
fill: "#1e293b"
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ r("circle", {
|
|
75
|
+
cx: "83",
|
|
76
|
+
cy: "49",
|
|
77
|
+
r: "2.8",
|
|
78
|
+
fill: "#1e293b"
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ r("circle", {
|
|
81
|
+
cx: "97",
|
|
82
|
+
cy: "49",
|
|
83
|
+
r: "2.8",
|
|
84
|
+
fill: "#1e293b"
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ r("ellipse", {
|
|
87
|
+
cx: "77",
|
|
88
|
+
cy: "54",
|
|
89
|
+
rx: "4",
|
|
90
|
+
ry: "2.4",
|
|
91
|
+
fill: "#fb7185",
|
|
92
|
+
opacity: "0.6"
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ r("ellipse", {
|
|
95
|
+
cx: "103",
|
|
96
|
+
cy: "54",
|
|
97
|
+
rx: "4",
|
|
98
|
+
ry: "2.4",
|
|
99
|
+
fill: "#fb7185",
|
|
100
|
+
opacity: "0.6"
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ r("path", {
|
|
103
|
+
d: "M85 57 Q90 62 95 57",
|
|
104
|
+
stroke: "#7c2d12",
|
|
105
|
+
strokeWidth: "2.2",
|
|
106
|
+
strokeLinecap: "round",
|
|
107
|
+
fill: "none"
|
|
108
|
+
})
|
|
109
|
+
]
|
|
110
|
+
}),
|
|
111
|
+
/* @__PURE__ */ i("g", {
|
|
112
|
+
className: e.chibiRight,
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ r("path", {
|
|
115
|
+
d: "M174 68 L206 68 L212 100 L168 100 Z",
|
|
116
|
+
fill: "#ec4899"
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ r("circle", {
|
|
119
|
+
cx: "190",
|
|
120
|
+
cy: "48",
|
|
121
|
+
r: "22",
|
|
122
|
+
fill: "url(#asSkinA)",
|
|
123
|
+
stroke: "#fff7ed",
|
|
124
|
+
strokeWidth: "2"
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ r("path", {
|
|
127
|
+
d: "M167 47 C168 22, 212 22, 213 47 C210 34, 170 34, 167 47 Z",
|
|
128
|
+
fill: "#312e81"
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ r("circle", {
|
|
131
|
+
cx: "183",
|
|
132
|
+
cy: "49",
|
|
133
|
+
r: "2.8",
|
|
134
|
+
fill: "#1e293b"
|
|
135
|
+
}),
|
|
136
|
+
/* @__PURE__ */ r("circle", {
|
|
137
|
+
cx: "197",
|
|
138
|
+
cy: "49",
|
|
139
|
+
r: "2.8",
|
|
140
|
+
fill: "#1e293b"
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ r("ellipse", {
|
|
143
|
+
cx: "177",
|
|
144
|
+
cy: "54",
|
|
145
|
+
rx: "4",
|
|
146
|
+
ry: "2.4",
|
|
147
|
+
fill: "#fb7185",
|
|
148
|
+
opacity: "0.65"
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ r("ellipse", {
|
|
151
|
+
cx: "203",
|
|
152
|
+
cy: "54",
|
|
153
|
+
rx: "4",
|
|
154
|
+
ry: "2.4",
|
|
155
|
+
fill: "#fb7185",
|
|
156
|
+
opacity: "0.65"
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ r("path", {
|
|
159
|
+
d: "M185 57 Q190 62 195 57",
|
|
160
|
+
stroke: "#7c2d12",
|
|
161
|
+
strokeWidth: "2.2",
|
|
162
|
+
strokeLinecap: "round",
|
|
163
|
+
fill: "none"
|
|
164
|
+
})
|
|
165
|
+
]
|
|
166
|
+
}),
|
|
167
|
+
/* @__PURE__ */ i("g", {
|
|
168
|
+
className: e.cartoonHeartPulse,
|
|
169
|
+
children: [
|
|
170
|
+
/* @__PURE__ */ r("path", {
|
|
171
|
+
d: "M140 52 C140 44, 128 40, 125 49 C122 57, 140 69, 140 69 C140 69, 158 57, 155 49 C152 40, 140 44, 140 52 Z",
|
|
172
|
+
fill: "url(#asHeartG)"
|
|
173
|
+
}),
|
|
174
|
+
/* @__PURE__ */ r("circle", {
|
|
175
|
+
cx: "140",
|
|
176
|
+
cy: "24",
|
|
177
|
+
r: "3",
|
|
178
|
+
fill: "#f59e0b"
|
|
179
|
+
}),
|
|
180
|
+
/* @__PURE__ */ r("circle", {
|
|
181
|
+
cx: "122",
|
|
182
|
+
cy: "30",
|
|
183
|
+
r: "2.2",
|
|
184
|
+
fill: "#ec4899"
|
|
185
|
+
}),
|
|
186
|
+
/* @__PURE__ */ r("circle", {
|
|
187
|
+
cx: "158",
|
|
188
|
+
cy: "30",
|
|
189
|
+
r: "2.2",
|
|
190
|
+
fill: "#ec4899"
|
|
191
|
+
})
|
|
192
|
+
]
|
|
193
|
+
})
|
|
194
|
+
]
|
|
195
|
+
}) : t === "cartoon_proposal" ? /* @__PURE__ */ i("svg", {
|
|
196
|
+
viewBox: "0 0 280 120",
|
|
197
|
+
className: e.cartoonSvg,
|
|
198
|
+
"aria-hidden": "true",
|
|
199
|
+
children: [
|
|
200
|
+
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ i("radialGradient", {
|
|
201
|
+
id: "asSkinP",
|
|
202
|
+
cx: "40%",
|
|
203
|
+
cy: "30%",
|
|
204
|
+
r: "70%",
|
|
205
|
+
children: [/* @__PURE__ */ r("stop", {
|
|
206
|
+
offset: "0%",
|
|
207
|
+
stopColor: "#ffedd5"
|
|
208
|
+
}), /* @__PURE__ */ r("stop", {
|
|
209
|
+
offset: "100%",
|
|
210
|
+
stopColor: "#fdba74"
|
|
211
|
+
})]
|
|
212
|
+
}) }),
|
|
213
|
+
/* @__PURE__ */ r("ellipse", {
|
|
214
|
+
cx: "88",
|
|
215
|
+
cy: "108",
|
|
216
|
+
rx: "28",
|
|
217
|
+
ry: "5",
|
|
218
|
+
fill: "rgba(15,23,42,0.16)"
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ r("ellipse", {
|
|
221
|
+
cx: "192",
|
|
222
|
+
cy: "108",
|
|
223
|
+
rx: "26",
|
|
224
|
+
ry: "5",
|
|
225
|
+
fill: "rgba(15,23,42,0.16)"
|
|
226
|
+
}),
|
|
227
|
+
/* @__PURE__ */ i("g", {
|
|
228
|
+
className: e.chibiKneel,
|
|
229
|
+
children: [
|
|
230
|
+
/* @__PURE__ */ r("rect", {
|
|
231
|
+
x: "74",
|
|
232
|
+
y: "76",
|
|
233
|
+
width: "28",
|
|
234
|
+
height: "26",
|
|
235
|
+
rx: "10",
|
|
236
|
+
fill: "#6366f1"
|
|
237
|
+
}),
|
|
238
|
+
/* @__PURE__ */ r("circle", {
|
|
239
|
+
cx: "88",
|
|
240
|
+
cy: "56",
|
|
241
|
+
r: "20",
|
|
242
|
+
fill: "url(#asSkinP)",
|
|
243
|
+
stroke: "#fff",
|
|
244
|
+
strokeWidth: "2"
|
|
245
|
+
}),
|
|
246
|
+
/* @__PURE__ */ r("path", {
|
|
247
|
+
d: "M70 50 C74 34, 102 34, 106 50 Z",
|
|
248
|
+
fill: "#1e293b"
|
|
249
|
+
}),
|
|
250
|
+
/* @__PURE__ */ r("circle", {
|
|
251
|
+
cx: "83",
|
|
252
|
+
cy: "56",
|
|
253
|
+
r: "2.5",
|
|
254
|
+
fill: "#1e293b"
|
|
255
|
+
}),
|
|
256
|
+
/* @__PURE__ */ r("circle", {
|
|
257
|
+
cx: "95",
|
|
258
|
+
cy: "56",
|
|
259
|
+
r: "2.5",
|
|
260
|
+
fill: "#1e293b"
|
|
261
|
+
}),
|
|
262
|
+
/* @__PURE__ */ r("path", {
|
|
263
|
+
d: "M84 64 Q89 68 94 64",
|
|
264
|
+
stroke: "#7c2d12",
|
|
265
|
+
strokeWidth: "2",
|
|
266
|
+
strokeLinecap: "round",
|
|
267
|
+
fill: "none"
|
|
268
|
+
}),
|
|
269
|
+
/* @__PURE__ */ r("circle", {
|
|
270
|
+
cx: "124",
|
|
271
|
+
cy: "64",
|
|
272
|
+
r: "8",
|
|
273
|
+
fill: "none",
|
|
274
|
+
stroke: "#f59e0b",
|
|
275
|
+
strokeWidth: "3.5"
|
|
276
|
+
}),
|
|
277
|
+
/* @__PURE__ */ r("polygon", {
|
|
278
|
+
points: "124,49 130,56 124,61 118,56",
|
|
279
|
+
fill: "#38bdf8",
|
|
280
|
+
stroke: "#fff",
|
|
281
|
+
strokeWidth: "1"
|
|
282
|
+
})
|
|
283
|
+
]
|
|
284
|
+
}),
|
|
285
|
+
/* @__PURE__ */ i("g", {
|
|
286
|
+
className: e.chibiJump,
|
|
287
|
+
children: [
|
|
288
|
+
/* @__PURE__ */ r("path", {
|
|
289
|
+
d: "M176 68 L208 68 L214 100 L170 100 Z",
|
|
290
|
+
fill: "#f43f5e"
|
|
291
|
+
}),
|
|
292
|
+
/* @__PURE__ */ r("circle", {
|
|
293
|
+
cx: "192",
|
|
294
|
+
cy: "48",
|
|
295
|
+
r: "21",
|
|
296
|
+
fill: "url(#asSkinP)",
|
|
297
|
+
stroke: "#fff",
|
|
298
|
+
strokeWidth: "2"
|
|
299
|
+
}),
|
|
300
|
+
/* @__PURE__ */ r("path", {
|
|
301
|
+
d: "M170 46 C172 22, 212 22, 214 46 Z",
|
|
302
|
+
fill: "#4c1d95"
|
|
303
|
+
}),
|
|
304
|
+
/* @__PURE__ */ r("text", {
|
|
305
|
+
x: "180",
|
|
306
|
+
y: "52",
|
|
307
|
+
fontSize: "9",
|
|
308
|
+
children: "💖"
|
|
309
|
+
}),
|
|
310
|
+
/* @__PURE__ */ r("text", {
|
|
311
|
+
x: "193",
|
|
312
|
+
y: "52",
|
|
313
|
+
fontSize: "9",
|
|
314
|
+
children: "💖"
|
|
315
|
+
}),
|
|
316
|
+
/* @__PURE__ */ r("path", {
|
|
317
|
+
d: "M187 58 Q192 64 197 58",
|
|
318
|
+
stroke: "#7c2d12",
|
|
319
|
+
strokeWidth: "2.2",
|
|
320
|
+
strokeLinecap: "round",
|
|
321
|
+
fill: "none"
|
|
322
|
+
})
|
|
323
|
+
]
|
|
324
|
+
}),
|
|
325
|
+
/* @__PURE__ */ i("g", {
|
|
326
|
+
className: e.cartoonSparkle,
|
|
327
|
+
children: [/* @__PURE__ */ r("text", {
|
|
328
|
+
x: "134",
|
|
329
|
+
y: "34",
|
|
330
|
+
fontSize: "16",
|
|
331
|
+
children: "✨"
|
|
332
|
+
}), /* @__PURE__ */ r("text", {
|
|
333
|
+
x: "150",
|
|
334
|
+
y: "26",
|
|
335
|
+
fontSize: "14",
|
|
336
|
+
children: "💘"
|
|
337
|
+
})]
|
|
338
|
+
})
|
|
339
|
+
]
|
|
340
|
+
}) : t === "cartoon_mandap" ? /* @__PURE__ */ i("svg", {
|
|
341
|
+
viewBox: "0 0 280 120",
|
|
342
|
+
className: e.cartoonSvg,
|
|
343
|
+
"aria-hidden": "true",
|
|
344
|
+
children: [
|
|
345
|
+
/* @__PURE__ */ r("path", {
|
|
346
|
+
d: "M36 106 L36 32 Q140 4 244 32 L244 106",
|
|
347
|
+
fill: "none",
|
|
348
|
+
stroke: "#f59e0b",
|
|
349
|
+
strokeWidth: "6",
|
|
350
|
+
strokeLinecap: "round"
|
|
351
|
+
}),
|
|
352
|
+
/* @__PURE__ */ r("path", {
|
|
353
|
+
d: "M46 34 Q92 48 140 30 Q188 48 234 34",
|
|
354
|
+
fill: "none",
|
|
355
|
+
stroke: "#f97316",
|
|
356
|
+
strokeWidth: "5",
|
|
357
|
+
strokeDasharray: "8 6"
|
|
358
|
+
}),
|
|
359
|
+
/* @__PURE__ */ r("circle", {
|
|
360
|
+
cx: "70",
|
|
361
|
+
cy: "36",
|
|
362
|
+
r: "6",
|
|
363
|
+
fill: "#fbbf24"
|
|
364
|
+
}),
|
|
365
|
+
/* @__PURE__ */ r("circle", {
|
|
366
|
+
cx: "140",
|
|
367
|
+
cy: "24",
|
|
368
|
+
r: "7",
|
|
369
|
+
fill: "#ec4899"
|
|
370
|
+
}),
|
|
371
|
+
/* @__PURE__ */ r("circle", {
|
|
372
|
+
cx: "210",
|
|
373
|
+
cy: "36",
|
|
374
|
+
r: "6",
|
|
375
|
+
fill: "#fbbf24"
|
|
376
|
+
}),
|
|
377
|
+
/* @__PURE__ */ i("g", {
|
|
378
|
+
className: e.chibiSwayA,
|
|
379
|
+
children: [
|
|
380
|
+
/* @__PURE__ */ r("rect", {
|
|
381
|
+
x: "92",
|
|
382
|
+
y: "70",
|
|
383
|
+
width: "30",
|
|
384
|
+
height: "32",
|
|
385
|
+
rx: "10",
|
|
386
|
+
fill: "#fef3c7",
|
|
387
|
+
stroke: "#d97706",
|
|
388
|
+
strokeWidth: "2"
|
|
389
|
+
}),
|
|
390
|
+
/* @__PURE__ */ r("circle", {
|
|
391
|
+
cx: "107",
|
|
392
|
+
cy: "52",
|
|
393
|
+
r: "19",
|
|
394
|
+
fill: "#fed7aa",
|
|
395
|
+
stroke: "#fff",
|
|
396
|
+
strokeWidth: "2"
|
|
397
|
+
}),
|
|
398
|
+
/* @__PURE__ */ r("path", {
|
|
399
|
+
d: "M90 48 C94 32, 120 32, 124 48 Z",
|
|
400
|
+
fill: "#1e293b"
|
|
401
|
+
}),
|
|
402
|
+
/* @__PURE__ */ r("circle", {
|
|
403
|
+
cx: "101",
|
|
404
|
+
cy: "53",
|
|
405
|
+
r: "2.4",
|
|
406
|
+
fill: "#1e293b"
|
|
407
|
+
}),
|
|
408
|
+
/* @__PURE__ */ r("circle", {
|
|
409
|
+
cx: "113",
|
|
410
|
+
cy: "53",
|
|
411
|
+
r: "2.4",
|
|
412
|
+
fill: "#1e293b"
|
|
413
|
+
}),
|
|
414
|
+
/* @__PURE__ */ r("path", {
|
|
415
|
+
d: "M102 60 Q107 64 112 60",
|
|
416
|
+
stroke: "#7c2d12",
|
|
417
|
+
strokeWidth: "2",
|
|
418
|
+
strokeLinecap: "round",
|
|
419
|
+
fill: "none"
|
|
420
|
+
})
|
|
421
|
+
]
|
|
422
|
+
}),
|
|
423
|
+
/* @__PURE__ */ i("g", {
|
|
424
|
+
className: e.chibiSwayB,
|
|
425
|
+
children: [
|
|
426
|
+
/* @__PURE__ */ r("path", {
|
|
427
|
+
d: "M156 70 L188 70 L194 102 L150 102 Z",
|
|
428
|
+
fill: "#be123c",
|
|
429
|
+
stroke: "#fbbf24",
|
|
430
|
+
strokeWidth: "2"
|
|
431
|
+
}),
|
|
432
|
+
/* @__PURE__ */ r("circle", {
|
|
433
|
+
cx: "172",
|
|
434
|
+
cy: "52",
|
|
435
|
+
r: "19",
|
|
436
|
+
fill: "#fed7aa",
|
|
437
|
+
stroke: "#fff",
|
|
438
|
+
strokeWidth: "2"
|
|
439
|
+
}),
|
|
440
|
+
/* @__PURE__ */ r("path", {
|
|
441
|
+
d: "M153 50 C155 30, 189 30, 191 50 Z",
|
|
442
|
+
fill: "#1e1b4b"
|
|
443
|
+
}),
|
|
444
|
+
/* @__PURE__ */ r("circle", {
|
|
445
|
+
cx: "172",
|
|
446
|
+
cy: "45",
|
|
447
|
+
r: "2.2",
|
|
448
|
+
fill: "#e11d48"
|
|
449
|
+
}),
|
|
450
|
+
/* @__PURE__ */ r("circle", {
|
|
451
|
+
cx: "166",
|
|
452
|
+
cy: "53",
|
|
453
|
+
r: "2.4",
|
|
454
|
+
fill: "#1e293b"
|
|
455
|
+
}),
|
|
456
|
+
/* @__PURE__ */ r("circle", {
|
|
457
|
+
cx: "178",
|
|
458
|
+
cy: "53",
|
|
459
|
+
r: "2.4",
|
|
460
|
+
fill: "#1e293b"
|
|
461
|
+
}),
|
|
462
|
+
/* @__PURE__ */ r("path", {
|
|
463
|
+
d: "M167 60 Q172 64 177 60",
|
|
464
|
+
stroke: "#7c2d12",
|
|
465
|
+
strokeWidth: "2",
|
|
466
|
+
strokeLinecap: "round",
|
|
467
|
+
fill: "none"
|
|
468
|
+
})
|
|
469
|
+
]
|
|
470
|
+
}),
|
|
471
|
+
/* @__PURE__ */ r("text", {
|
|
472
|
+
x: "132",
|
|
473
|
+
y: "66",
|
|
474
|
+
fontSize: "15",
|
|
475
|
+
className: e.cartoonHeartPulse,
|
|
476
|
+
children: "🌺"
|
|
477
|
+
})
|
|
478
|
+
]
|
|
479
|
+
}) : t === "cartoon_birthday" ? /* @__PURE__ */ i("svg", {
|
|
480
|
+
viewBox: "0 0 280 120",
|
|
481
|
+
className: e.cartoonSvg,
|
|
482
|
+
"aria-hidden": "true",
|
|
483
|
+
children: [
|
|
484
|
+
/* @__PURE__ */ r("ellipse", {
|
|
485
|
+
cx: "102",
|
|
486
|
+
cy: "108",
|
|
487
|
+
rx: "28",
|
|
488
|
+
ry: "5",
|
|
489
|
+
fill: "rgba(15,23,42,0.16)"
|
|
490
|
+
}),
|
|
491
|
+
/* @__PURE__ */ i("g", {
|
|
492
|
+
className: e.chibiJump,
|
|
493
|
+
children: [
|
|
494
|
+
/* @__PURE__ */ r("polygon", {
|
|
495
|
+
points: "102,12 88,36 116,36",
|
|
496
|
+
fill: "#8b5cf6",
|
|
497
|
+
stroke: "#fbbf24",
|
|
498
|
+
strokeWidth: "2"
|
|
499
|
+
}),
|
|
500
|
+
/* @__PURE__ */ r("circle", {
|
|
501
|
+
cx: "102",
|
|
502
|
+
cy: "12",
|
|
503
|
+
r: "4",
|
|
504
|
+
fill: "#fbbf24"
|
|
505
|
+
}),
|
|
506
|
+
/* @__PURE__ */ r("rect", {
|
|
507
|
+
x: "86",
|
|
508
|
+
y: "72",
|
|
509
|
+
width: "32",
|
|
510
|
+
height: "30",
|
|
511
|
+
rx: "12",
|
|
512
|
+
fill: "#0ea5e9"
|
|
513
|
+
}),
|
|
514
|
+
/* @__PURE__ */ r("circle", {
|
|
515
|
+
cx: "102",
|
|
516
|
+
cy: "52",
|
|
517
|
+
r: "21",
|
|
518
|
+
fill: "#ffedd5",
|
|
519
|
+
stroke: "#fff",
|
|
520
|
+
strokeWidth: "2"
|
|
521
|
+
}),
|
|
522
|
+
/* @__PURE__ */ r("circle", {
|
|
523
|
+
cx: "95",
|
|
524
|
+
cy: "51",
|
|
525
|
+
r: "2.8",
|
|
526
|
+
fill: "#1e293b"
|
|
527
|
+
}),
|
|
528
|
+
/* @__PURE__ */ r("circle", {
|
|
529
|
+
cx: "109",
|
|
530
|
+
cy: "51",
|
|
531
|
+
r: "2.8",
|
|
532
|
+
fill: "#1e293b"
|
|
533
|
+
}),
|
|
534
|
+
/* @__PURE__ */ r("ellipse", {
|
|
535
|
+
cx: "88",
|
|
536
|
+
cy: "56",
|
|
537
|
+
rx: "4",
|
|
538
|
+
ry: "2.4",
|
|
539
|
+
fill: "#fb7185",
|
|
540
|
+
opacity: "0.65"
|
|
541
|
+
}),
|
|
542
|
+
/* @__PURE__ */ r("ellipse", {
|
|
543
|
+
cx: "116",
|
|
544
|
+
cy: "56",
|
|
545
|
+
rx: "4",
|
|
546
|
+
ry: "2.4",
|
|
547
|
+
fill: "#fb7185",
|
|
548
|
+
opacity: "0.65"
|
|
549
|
+
}),
|
|
550
|
+
/* @__PURE__ */ r("path", {
|
|
551
|
+
d: "M95 59 Q102 67 109 59",
|
|
552
|
+
stroke: "#7c2d12",
|
|
553
|
+
strokeWidth: "2.4",
|
|
554
|
+
strokeLinecap: "round",
|
|
555
|
+
fill: "none"
|
|
556
|
+
})
|
|
557
|
+
]
|
|
558
|
+
}),
|
|
559
|
+
/* @__PURE__ */ i("g", {
|
|
560
|
+
className: e.cartoonSparkle,
|
|
561
|
+
children: [
|
|
562
|
+
/* @__PURE__ */ r("rect", {
|
|
563
|
+
x: "164",
|
|
564
|
+
y: "66",
|
|
565
|
+
width: "54",
|
|
566
|
+
height: "36",
|
|
567
|
+
rx: "8",
|
|
568
|
+
fill: "#f472b6"
|
|
569
|
+
}),
|
|
570
|
+
/* @__PURE__ */ r("rect", {
|
|
571
|
+
x: "164",
|
|
572
|
+
y: "66",
|
|
573
|
+
width: "54",
|
|
574
|
+
height: "12",
|
|
575
|
+
rx: "6",
|
|
576
|
+
fill: "#fef3c7"
|
|
577
|
+
}),
|
|
578
|
+
/* @__PURE__ */ r("rect", {
|
|
579
|
+
x: "188",
|
|
580
|
+
y: "48",
|
|
581
|
+
width: "6",
|
|
582
|
+
height: "18",
|
|
583
|
+
rx: "2",
|
|
584
|
+
fill: "#38bdf8"
|
|
585
|
+
}),
|
|
586
|
+
/* @__PURE__ */ r("ellipse", {
|
|
587
|
+
cx: "191",
|
|
588
|
+
cy: "43",
|
|
589
|
+
rx: "5",
|
|
590
|
+
ry: "7",
|
|
591
|
+
fill: "#fbbf24",
|
|
592
|
+
className: e.flameFlicker
|
|
593
|
+
}),
|
|
594
|
+
/* @__PURE__ */ r("text", {
|
|
595
|
+
x: "140",
|
|
596
|
+
y: "34",
|
|
597
|
+
fontSize: "15",
|
|
598
|
+
children: "🎉"
|
|
599
|
+
}),
|
|
600
|
+
/* @__PURE__ */ r("text", {
|
|
601
|
+
x: "220",
|
|
602
|
+
y: "42",
|
|
603
|
+
fontSize: "15",
|
|
604
|
+
children: "🎈"
|
|
605
|
+
})
|
|
606
|
+
]
|
|
607
|
+
})
|
|
608
|
+
]
|
|
609
|
+
}) : /* @__PURE__ */ i("svg", {
|
|
610
|
+
viewBox: "0 0 280 120",
|
|
611
|
+
className: e.cartoonSvg,
|
|
612
|
+
"aria-hidden": "true",
|
|
613
|
+
children: [
|
|
614
|
+
/* @__PURE__ */ r("line", {
|
|
615
|
+
x1: "28",
|
|
616
|
+
y1: "104",
|
|
617
|
+
x2: "252",
|
|
618
|
+
y2: "104",
|
|
619
|
+
stroke: "rgba(148,163,184,0.35)",
|
|
620
|
+
strokeWidth: "2",
|
|
621
|
+
strokeDasharray: "6 6"
|
|
622
|
+
}),
|
|
623
|
+
/* @__PURE__ */ i("g", {
|
|
624
|
+
className: e.chibiBabyWalk,
|
|
625
|
+
children: [
|
|
626
|
+
/* @__PURE__ */ r("ellipse", {
|
|
627
|
+
cx: "70",
|
|
628
|
+
cy: "102",
|
|
629
|
+
rx: "18",
|
|
630
|
+
ry: "4",
|
|
631
|
+
fill: "rgba(15,23,42,0.14)"
|
|
632
|
+
}),
|
|
633
|
+
/* @__PURE__ */ r("rect", {
|
|
634
|
+
x: "56",
|
|
635
|
+
y: "72",
|
|
636
|
+
width: "28",
|
|
637
|
+
height: "24",
|
|
638
|
+
rx: "12",
|
|
639
|
+
fill: "#38bdf8"
|
|
640
|
+
}),
|
|
641
|
+
/* @__PURE__ */ r("circle", {
|
|
642
|
+
cx: "70",
|
|
643
|
+
cy: "52",
|
|
644
|
+
r: "20",
|
|
645
|
+
fill: "#ffedd5",
|
|
646
|
+
stroke: "#fff",
|
|
647
|
+
strokeWidth: "2"
|
|
648
|
+
}),
|
|
649
|
+
/* @__PURE__ */ r("path", {
|
|
650
|
+
d: "M64 33 Q70 24 76 34",
|
|
651
|
+
stroke: "#92400e",
|
|
652
|
+
strokeWidth: "3",
|
|
653
|
+
strokeLinecap: "round",
|
|
654
|
+
fill: "none"
|
|
655
|
+
}),
|
|
656
|
+
/* @__PURE__ */ r("circle", {
|
|
657
|
+
cx: "63",
|
|
658
|
+
cy: "52",
|
|
659
|
+
r: "2.8",
|
|
660
|
+
fill: "#1e293b"
|
|
661
|
+
}),
|
|
662
|
+
/* @__PURE__ */ r("circle", {
|
|
663
|
+
cx: "77",
|
|
664
|
+
cy: "52",
|
|
665
|
+
r: "2.8",
|
|
666
|
+
fill: "#1e293b"
|
|
667
|
+
}),
|
|
668
|
+
/* @__PURE__ */ r("ellipse", {
|
|
669
|
+
cx: "57",
|
|
670
|
+
cy: "57",
|
|
671
|
+
rx: "4",
|
|
672
|
+
ry: "2.5",
|
|
673
|
+
fill: "#fb7185",
|
|
674
|
+
opacity: "0.65"
|
|
675
|
+
}),
|
|
676
|
+
/* @__PURE__ */ r("ellipse", {
|
|
677
|
+
cx: "83",
|
|
678
|
+
cy: "57",
|
|
679
|
+
rx: "4",
|
|
680
|
+
ry: "2.5",
|
|
681
|
+
fill: "#fb7185",
|
|
682
|
+
opacity: "0.65"
|
|
683
|
+
}),
|
|
684
|
+
/* @__PURE__ */ r("circle", {
|
|
685
|
+
cx: "70",
|
|
686
|
+
cy: "60",
|
|
687
|
+
r: "3.2",
|
|
688
|
+
fill: "#f472b6"
|
|
689
|
+
})
|
|
690
|
+
]
|
|
691
|
+
}),
|
|
692
|
+
/* @__PURE__ */ r("text", {
|
|
693
|
+
x: "218",
|
|
694
|
+
y: "88",
|
|
695
|
+
fontSize: "26",
|
|
696
|
+
children: "🍼"
|
|
697
|
+
}),
|
|
698
|
+
/* @__PURE__ */ r("text", {
|
|
699
|
+
x: "200",
|
|
700
|
+
y: "40",
|
|
701
|
+
fontSize: "16",
|
|
702
|
+
className: e.cartoonSparkle,
|
|
703
|
+
children: "⭐"
|
|
704
|
+
})
|
|
705
|
+
]
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
function o({ themeMode: o = "light", scene: s = "cartoon_couple", caption: c = "Our Cute Forever Story Begins! 💖", leftEmoji: l = "🤵", rightEmoji: u = "👰", spriteSheetUrl: d = "" }) {
|
|
709
|
+
let [f, p] = n(!0), [m, h] = n(0);
|
|
710
|
+
t(() => {
|
|
711
|
+
if (!f || s !== "custom_sprite" || !d) return;
|
|
712
|
+
let e = window.setInterval(() => h((e) => (e + 1) % 6), 140);
|
|
10
713
|
return () => window.clearInterval(e);
|
|
11
714
|
}, [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
])
|
|
16
|
-
|
|
715
|
+
f,
|
|
716
|
+
s,
|
|
717
|
+
d
|
|
718
|
+
]);
|
|
719
|
+
let g = s.startsWith("cartoon_");
|
|
720
|
+
return /* @__PURE__ */ i("div", {
|
|
721
|
+
className: `${e.box} ${e[`mode_${o}`] || e.mode_light} ${f ? "" : e.paused}`,
|
|
17
722
|
children: [/* @__PURE__ */ i("div", {
|
|
18
723
|
className: e.stage,
|
|
19
724
|
"aria-hidden": "true",
|
|
20
725
|
children: [
|
|
21
|
-
|
|
726
|
+
g && /* @__PURE__ */ r(a, { scene: s }),
|
|
727
|
+
s === "couple_hands" && /* @__PURE__ */ i("div", {
|
|
22
728
|
className: e.coupleScene,
|
|
23
729
|
children: [
|
|
24
730
|
/* @__PURE__ */ r("span", {
|
|
25
731
|
className: e.leftChar,
|
|
26
|
-
children:
|
|
732
|
+
children: l || "🤵"
|
|
27
733
|
}),
|
|
28
734
|
/* @__PURE__ */ r("span", {
|
|
29
735
|
className: e.handsBridge,
|
|
@@ -35,11 +741,11 @@ function a({ themeMode: a = "light", scene: o = "couple_hands", caption: s = "Wa
|
|
|
35
741
|
}),
|
|
36
742
|
/* @__PURE__ */ r("span", {
|
|
37
743
|
className: e.rightChar,
|
|
38
|
-
children:
|
|
744
|
+
children: u || "👰"
|
|
39
745
|
})
|
|
40
746
|
]
|
|
41
747
|
}),
|
|
42
|
-
|
|
748
|
+
s === "baby_walk" && /* @__PURE__ */ i("div", {
|
|
43
749
|
className: e.babyScene,
|
|
44
750
|
children: [
|
|
45
751
|
/* @__PURE__ */ r("div", {
|
|
@@ -56,7 +762,7 @@ function a({ themeMode: a = "light", scene: o = "couple_hands", caption: s = "Wa
|
|
|
56
762
|
})
|
|
57
763
|
]
|
|
58
764
|
}),
|
|
59
|
-
|
|
765
|
+
s === "ring_sparkle" && /* @__PURE__ */ i("div", {
|
|
60
766
|
className: e.ringScene,
|
|
61
767
|
children: [
|
|
62
768
|
/* @__PURE__ */ r("span", {
|
|
@@ -73,7 +779,7 @@ function a({ themeMode: a = "light", scene: o = "couple_hands", caption: s = "Wa
|
|
|
73
779
|
})
|
|
74
780
|
]
|
|
75
781
|
}),
|
|
76
|
-
|
|
782
|
+
s === "dancing_hearts" && /* @__PURE__ */ i("div", {
|
|
77
783
|
className: e.danceScene,
|
|
78
784
|
children: [
|
|
79
785
|
/* @__PURE__ */ r("span", {
|
|
@@ -94,7 +800,7 @@ function a({ themeMode: a = "light", scene: o = "couple_hands", caption: s = "Wa
|
|
|
94
800
|
})
|
|
95
801
|
]
|
|
96
802
|
}),
|
|
97
|
-
|
|
803
|
+
s === "cake_celebration" && /* @__PURE__ */ i("div", {
|
|
98
804
|
className: e.cakeScene,
|
|
99
805
|
children: [
|
|
100
806
|
/* @__PURE__ */ r("span", {
|
|
@@ -111,12 +817,12 @@ function a({ themeMode: a = "light", scene: o = "couple_hands", caption: s = "Wa
|
|
|
111
817
|
})
|
|
112
818
|
]
|
|
113
819
|
}),
|
|
114
|
-
|
|
820
|
+
s === "custom_sprite" && (d ? /* @__PURE__ */ r("div", {
|
|
115
821
|
className: e.customSpriteFrame,
|
|
116
822
|
style: {
|
|
117
|
-
backgroundImage: `url(${
|
|
823
|
+
backgroundImage: `url(${d})`,
|
|
118
824
|
backgroundSize: "600% 100%",
|
|
119
|
-
backgroundPosition: `${
|
|
825
|
+
backgroundPosition: `${m / 5 * 100}% 0%`
|
|
120
826
|
}
|
|
121
827
|
}) : /* @__PURE__ */ r("div", {
|
|
122
828
|
className: e.customStub,
|
|
@@ -127,15 +833,15 @@ function a({ themeMode: a = "light", scene: o = "couple_hands", caption: s = "Wa
|
|
|
127
833
|
className: e.footer,
|
|
128
834
|
children: [/* @__PURE__ */ r("span", {
|
|
129
835
|
className: e.caption,
|
|
130
|
-
children:
|
|
836
|
+
children: c
|
|
131
837
|
}), /* @__PURE__ */ r("button", {
|
|
132
838
|
type: "button",
|
|
133
839
|
className: e.toggleBtn,
|
|
134
|
-
onClick: () =>
|
|
135
|
-
children:
|
|
840
|
+
onClick: () => p((e) => !e),
|
|
841
|
+
children: f ? "⏸ Pause" : "▶ Play"
|
|
136
842
|
})]
|
|
137
843
|
})]
|
|
138
844
|
});
|
|
139
845
|
}
|
|
140
846
|
//#endregion
|
|
141
|
-
export {
|
|
847
|
+
export { o as default };
|