@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
|
@@ -7,9 +7,9 @@ import a from "../../utils/suggestedLanguages.js";
|
|
|
7
7
|
import o from "../../utils/extractYouTubeId.js";
|
|
8
8
|
import s from "./styles.js";
|
|
9
9
|
import { useEffect as c, useMemo as l, useState as u } from "react";
|
|
10
|
-
import {
|
|
10
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/PageCanvasBuilder/index.tsx
|
|
12
|
-
var
|
|
12
|
+
var m = {
|
|
13
13
|
hearts: [
|
|
14
14
|
"💖",
|
|
15
15
|
"💕",
|
|
@@ -82,199 +82,928 @@ var p = {
|
|
|
82
82
|
"✨",
|
|
83
83
|
"💛"
|
|
84
84
|
]
|
|
85
|
-
},
|
|
85
|
+
}, h = [
|
|
86
86
|
"No 🙈",
|
|
87
87
|
"Are you sure? 🥺",
|
|
88
88
|
"Think again! 💭",
|
|
89
89
|
"Can’t catch me! 💨",
|
|
90
90
|
"Pretty please? 💖"
|
|
91
|
-
],
|
|
91
|
+
], g = [
|
|
92
92
|
{
|
|
93
|
-
id: "
|
|
94
|
-
label: "
|
|
93
|
+
id: "invitation",
|
|
94
|
+
label: "👑 Wedding"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
|
-
id: "
|
|
98
|
-
label: "
|
|
97
|
+
id: "proposal",
|
|
98
|
+
label: "💖 Proposal"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
id: "birthday",
|
|
102
|
-
label: "🎂 Birthday
|
|
102
|
+
label: "🎂 Birthday"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: "engagement",
|
|
106
|
+
label: "💍 Engagement"
|
|
103
107
|
},
|
|
104
108
|
{
|
|
105
109
|
id: "anniversary",
|
|
106
|
-
label: "🥂 Anniversary
|
|
110
|
+
label: "🥂 Anniversary"
|
|
107
111
|
},
|
|
108
112
|
{
|
|
109
113
|
id: "baby_shower",
|
|
110
114
|
label: "🍼 Baby Shower"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: "housewarming",
|
|
118
|
+
label: "🏡 Housewarming"
|
|
119
|
+
}
|
|
120
|
+
], ee = [
|
|
121
|
+
{
|
|
122
|
+
id: "all",
|
|
123
|
+
label: "All"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: "wedding",
|
|
127
|
+
label: "💍 Wedding"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: "proposal",
|
|
131
|
+
label: "💖 Proposal"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: "birthday",
|
|
135
|
+
label: "🎂 Birthday"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: "baby",
|
|
139
|
+
label: "🍼 Baby"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: "festive",
|
|
143
|
+
label: "🪔 Festive"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: "modern",
|
|
147
|
+
label: "✨ Modern"
|
|
148
|
+
}
|
|
149
|
+
], te = [
|
|
150
|
+
{
|
|
151
|
+
hex: "#ec4899",
|
|
152
|
+
label: "Rose Pink"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
hex: "#d97706",
|
|
156
|
+
label: "Royal Gold"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
hex: "#10b981",
|
|
160
|
+
label: "Emerald"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
hex: "#8b5cf6",
|
|
164
|
+
label: "Violet"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
hex: "#f43f5e",
|
|
168
|
+
label: "Crimson"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
hex: "#0ea5e9",
|
|
172
|
+
label: "Ocean Sky"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
hex: "#ea580c",
|
|
176
|
+
label: "Marigold"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
hex: "#111827",
|
|
180
|
+
label: "Obsidian"
|
|
111
181
|
}
|
|
112
|
-
]
|
|
113
|
-
|
|
182
|
+
], _ = {
|
|
183
|
+
fontStyle: "classic",
|
|
184
|
+
accentColor: "#ec4899",
|
|
185
|
+
cardStyle: "glass",
|
|
186
|
+
motionIntensity: "festive",
|
|
187
|
+
patternOverlay: "none",
|
|
188
|
+
viewStyle: "scroll"
|
|
189
|
+
};
|
|
190
|
+
function ne(e) {
|
|
114
191
|
return typeof e.translatable == "boolean" ? e.translatable : e.type === "text" || e.type === "textarea";
|
|
115
192
|
}
|
|
116
|
-
function
|
|
193
|
+
function re({ label: e, targetDate: t }) {
|
|
117
194
|
let [n, r] = u(() => Date.now());
|
|
118
195
|
c(() => {
|
|
119
196
|
let e = window.setInterval(() => r(Date.now()), 1e3);
|
|
120
197
|
return () => window.clearInterval(e);
|
|
121
198
|
}, []);
|
|
122
|
-
let i = Date.parse(t), a = Number.isNaN(i) ? 0 : Math.max(0, i - n), o = Math.floor(a / (1e3 * 60 * 60 * 24)), l = Math.floor(a / (1e3 * 60 * 60) % 24),
|
|
123
|
-
return /* @__PURE__ */
|
|
199
|
+
let i = Date.parse(t), a = Number.isNaN(i) ? 0 : Math.max(0, i - n), o = Math.floor(a / (1e3 * 60 * 60 * 24)), l = Math.floor(a / (1e3 * 60 * 60) % 24), d = Math.floor(a / (1e3 * 60) % 60), m = Math.floor(a / 1e3 % 60);
|
|
200
|
+
return /* @__PURE__ */ p("div", {
|
|
124
201
|
className: s.countdownWrap,
|
|
125
|
-
children: [/* @__PURE__ */
|
|
202
|
+
children: [/* @__PURE__ */ p("div", {
|
|
126
203
|
className: s.countdownTitle,
|
|
127
204
|
children: ["⏳ ", e || "Countdown"]
|
|
128
|
-
}), /* @__PURE__ */
|
|
205
|
+
}), /* @__PURE__ */ p("div", {
|
|
129
206
|
className: s.countdownGrid,
|
|
130
207
|
children: [
|
|
131
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ p("div", {
|
|
132
209
|
className: s.cdCell,
|
|
133
|
-
children: [/* @__PURE__ */
|
|
210
|
+
children: [/* @__PURE__ */ f("strong", { children: o }), /* @__PURE__ */ f("span", { children: "Days" })]
|
|
134
211
|
}),
|
|
135
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ p("div", {
|
|
136
213
|
className: s.cdCell,
|
|
137
|
-
children: [/* @__PURE__ */
|
|
214
|
+
children: [/* @__PURE__ */ f("strong", { children: String(l).padStart(2, "0") }), /* @__PURE__ */ f("span", { children: "Hours" })]
|
|
138
215
|
}),
|
|
139
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ p("div", {
|
|
140
217
|
className: s.cdCell,
|
|
141
|
-
children: [/* @__PURE__ */
|
|
218
|
+
children: [/* @__PURE__ */ f("strong", { children: String(d).padStart(2, "0") }), /* @__PURE__ */ f("span", { children: "Mins" })]
|
|
142
219
|
}),
|
|
143
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ p("div", {
|
|
144
221
|
className: `${s.cdCell} ${s.cdSec}`,
|
|
145
|
-
children: [/* @__PURE__ */
|
|
222
|
+
children: [/* @__PURE__ */ f("strong", { children: String(m).padStart(2, "0") }), /* @__PURE__ */ f("span", { children: "Secs" })]
|
|
146
223
|
})
|
|
147
224
|
]
|
|
148
225
|
})]
|
|
149
226
|
});
|
|
150
227
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
153
|
-
|
|
228
|
+
function v({ scene: e }) {
|
|
229
|
+
return e === "cartoon_couple" ? /* @__PURE__ */ p("svg", {
|
|
230
|
+
viewBox: "0 0 280 116",
|
|
231
|
+
className: s.cartoonSvg,
|
|
232
|
+
"aria-hidden": "true",
|
|
233
|
+
children: [
|
|
234
|
+
/* @__PURE__ */ f("ellipse", {
|
|
235
|
+
cx: "90",
|
|
236
|
+
cy: "102",
|
|
237
|
+
rx: "24",
|
|
238
|
+
ry: "5",
|
|
239
|
+
fill: "rgba(15,23,42,0.16)"
|
|
240
|
+
}),
|
|
241
|
+
/* @__PURE__ */ f("ellipse", {
|
|
242
|
+
cx: "190",
|
|
243
|
+
cy: "102",
|
|
244
|
+
rx: "24",
|
|
245
|
+
ry: "5",
|
|
246
|
+
fill: "rgba(15,23,42,0.16)"
|
|
247
|
+
}),
|
|
248
|
+
/* @__PURE__ */ p("g", {
|
|
249
|
+
className: s.chibiLeft,
|
|
250
|
+
children: [
|
|
251
|
+
/* @__PURE__ */ f("rect", {
|
|
252
|
+
x: "74",
|
|
253
|
+
y: "66",
|
|
254
|
+
width: "32",
|
|
255
|
+
height: "30",
|
|
256
|
+
rx: "14",
|
|
257
|
+
fill: "#3b82f6"
|
|
258
|
+
}),
|
|
259
|
+
/* @__PURE__ */ f("circle", {
|
|
260
|
+
cx: "90",
|
|
261
|
+
cy: "46",
|
|
262
|
+
r: "21",
|
|
263
|
+
fill: "#fed7aa",
|
|
264
|
+
stroke: "#fff",
|
|
265
|
+
strokeWidth: "2"
|
|
266
|
+
}),
|
|
267
|
+
/* @__PURE__ */ f("path", {
|
|
268
|
+
d: "M71 42 C75 24, 105 24, 109 42 Z",
|
|
269
|
+
fill: "#1e293b"
|
|
270
|
+
}),
|
|
271
|
+
/* @__PURE__ */ f("circle", {
|
|
272
|
+
cx: "83",
|
|
273
|
+
cy: "47",
|
|
274
|
+
r: "2.6",
|
|
275
|
+
fill: "#1e293b"
|
|
276
|
+
}),
|
|
277
|
+
/* @__PURE__ */ f("circle", {
|
|
278
|
+
cx: "97",
|
|
279
|
+
cy: "47",
|
|
280
|
+
r: "2.6",
|
|
281
|
+
fill: "#1e293b"
|
|
282
|
+
}),
|
|
283
|
+
/* @__PURE__ */ f("ellipse", {
|
|
284
|
+
cx: "77",
|
|
285
|
+
cy: "52",
|
|
286
|
+
rx: "3.8",
|
|
287
|
+
ry: "2.2",
|
|
288
|
+
fill: "#fb7185",
|
|
289
|
+
opacity: "0.6"
|
|
290
|
+
}),
|
|
291
|
+
/* @__PURE__ */ f("ellipse", {
|
|
292
|
+
cx: "103",
|
|
293
|
+
cy: "52",
|
|
294
|
+
rx: "3.8",
|
|
295
|
+
ry: "2.2",
|
|
296
|
+
fill: "#fb7185",
|
|
297
|
+
opacity: "0.6"
|
|
298
|
+
}),
|
|
299
|
+
/* @__PURE__ */ f("path", {
|
|
300
|
+
d: "M85 55 Q90 60 95 55",
|
|
301
|
+
stroke: "#7c2d12",
|
|
302
|
+
strokeWidth: "2",
|
|
303
|
+
strokeLinecap: "round",
|
|
304
|
+
fill: "none"
|
|
305
|
+
})
|
|
306
|
+
]
|
|
307
|
+
}),
|
|
308
|
+
/* @__PURE__ */ p("g", {
|
|
309
|
+
className: s.chibiRight,
|
|
310
|
+
children: [
|
|
311
|
+
/* @__PURE__ */ f("path", {
|
|
312
|
+
d: "M174 66 L206 66 L212 96 L168 96 Z",
|
|
313
|
+
fill: "#ec4899"
|
|
314
|
+
}),
|
|
315
|
+
/* @__PURE__ */ f("circle", {
|
|
316
|
+
cx: "190",
|
|
317
|
+
cy: "46",
|
|
318
|
+
r: "21",
|
|
319
|
+
fill: "#fed7aa",
|
|
320
|
+
stroke: "#fff",
|
|
321
|
+
strokeWidth: "2"
|
|
322
|
+
}),
|
|
323
|
+
/* @__PURE__ */ f("path", {
|
|
324
|
+
d: "M168 45 C170 22, 210 22, 212 45 Z",
|
|
325
|
+
fill: "#312e81"
|
|
326
|
+
}),
|
|
327
|
+
/* @__PURE__ */ f("circle", {
|
|
328
|
+
cx: "183",
|
|
329
|
+
cy: "47",
|
|
330
|
+
r: "2.6",
|
|
331
|
+
fill: "#1e293b"
|
|
332
|
+
}),
|
|
333
|
+
/* @__PURE__ */ f("circle", {
|
|
334
|
+
cx: "197",
|
|
335
|
+
cy: "47",
|
|
336
|
+
r: "2.6",
|
|
337
|
+
fill: "#1e293b"
|
|
338
|
+
}),
|
|
339
|
+
/* @__PURE__ */ f("ellipse", {
|
|
340
|
+
cx: "177",
|
|
341
|
+
cy: "52",
|
|
342
|
+
rx: "3.8",
|
|
343
|
+
ry: "2.2",
|
|
344
|
+
fill: "#fb7185",
|
|
345
|
+
opacity: "0.65"
|
|
346
|
+
}),
|
|
347
|
+
/* @__PURE__ */ f("ellipse", {
|
|
348
|
+
cx: "203",
|
|
349
|
+
cy: "52",
|
|
350
|
+
rx: "3.8",
|
|
351
|
+
ry: "2.2",
|
|
352
|
+
fill: "#fb7185",
|
|
353
|
+
opacity: "0.65"
|
|
354
|
+
}),
|
|
355
|
+
/* @__PURE__ */ f("path", {
|
|
356
|
+
d: "M185 55 Q190 60 195 55",
|
|
357
|
+
stroke: "#7c2d12",
|
|
358
|
+
strokeWidth: "2",
|
|
359
|
+
strokeLinecap: "round",
|
|
360
|
+
fill: "none"
|
|
361
|
+
})
|
|
362
|
+
]
|
|
363
|
+
}),
|
|
364
|
+
/* @__PURE__ */ p("g", {
|
|
365
|
+
className: s.cartoonHeartPulse,
|
|
366
|
+
children: [/* @__PURE__ */ f("path", {
|
|
367
|
+
d: "M140 50 C140 42, 128 38, 125 47 C122 55, 140 67, 140 67 C140 67, 158 55, 155 47 C152 38, 140 42, 140 50 Z",
|
|
368
|
+
fill: "#f43f5e"
|
|
369
|
+
}), /* @__PURE__ */ f("circle", {
|
|
370
|
+
cx: "140",
|
|
371
|
+
cy: "24",
|
|
372
|
+
r: "3",
|
|
373
|
+
fill: "#f59e0b"
|
|
374
|
+
})]
|
|
375
|
+
})
|
|
376
|
+
]
|
|
377
|
+
}) : e === "cartoon_proposal" ? /* @__PURE__ */ p("svg", {
|
|
378
|
+
viewBox: "0 0 280 116",
|
|
379
|
+
className: s.cartoonSvg,
|
|
380
|
+
"aria-hidden": "true",
|
|
381
|
+
children: [
|
|
382
|
+
/* @__PURE__ */ f("ellipse", {
|
|
383
|
+
cx: "88",
|
|
384
|
+
cy: "104",
|
|
385
|
+
rx: "26",
|
|
386
|
+
ry: "5",
|
|
387
|
+
fill: "rgba(15,23,42,0.16)"
|
|
388
|
+
}),
|
|
389
|
+
/* @__PURE__ */ f("ellipse", {
|
|
390
|
+
cx: "192",
|
|
391
|
+
cy: "104",
|
|
392
|
+
rx: "24",
|
|
393
|
+
ry: "5",
|
|
394
|
+
fill: "rgba(15,23,42,0.16)"
|
|
395
|
+
}),
|
|
396
|
+
/* @__PURE__ */ p("g", {
|
|
397
|
+
className: s.chibiKneel,
|
|
398
|
+
children: [
|
|
399
|
+
/* @__PURE__ */ f("rect", {
|
|
400
|
+
x: "74",
|
|
401
|
+
y: "74",
|
|
402
|
+
width: "28",
|
|
403
|
+
height: "24",
|
|
404
|
+
rx: "10",
|
|
405
|
+
fill: "#6366f1"
|
|
406
|
+
}),
|
|
407
|
+
/* @__PURE__ */ f("circle", {
|
|
408
|
+
cx: "88",
|
|
409
|
+
cy: "54",
|
|
410
|
+
r: "19",
|
|
411
|
+
fill: "#fed7aa",
|
|
412
|
+
stroke: "#fff",
|
|
413
|
+
strokeWidth: "2"
|
|
414
|
+
}),
|
|
415
|
+
/* @__PURE__ */ f("path", {
|
|
416
|
+
d: "M71 49 C75 33, 101 33, 105 49 Z",
|
|
417
|
+
fill: "#1e293b"
|
|
418
|
+
}),
|
|
419
|
+
/* @__PURE__ */ f("circle", {
|
|
420
|
+
cx: "83",
|
|
421
|
+
cy: "54",
|
|
422
|
+
r: "2.4",
|
|
423
|
+
fill: "#1e293b"
|
|
424
|
+
}),
|
|
425
|
+
/* @__PURE__ */ f("circle", {
|
|
426
|
+
cx: "95",
|
|
427
|
+
cy: "54",
|
|
428
|
+
r: "2.4",
|
|
429
|
+
fill: "#1e293b"
|
|
430
|
+
}),
|
|
431
|
+
/* @__PURE__ */ f("path", {
|
|
432
|
+
d: "M84 62 Q89 66 94 62",
|
|
433
|
+
stroke: "#7c2d12",
|
|
434
|
+
strokeWidth: "2",
|
|
435
|
+
strokeLinecap: "round",
|
|
436
|
+
fill: "none"
|
|
437
|
+
}),
|
|
438
|
+
/* @__PURE__ */ f("circle", {
|
|
439
|
+
cx: "124",
|
|
440
|
+
cy: "62",
|
|
441
|
+
r: "7.5",
|
|
442
|
+
fill: "none",
|
|
443
|
+
stroke: "#f59e0b",
|
|
444
|
+
strokeWidth: "3.2"
|
|
445
|
+
}),
|
|
446
|
+
/* @__PURE__ */ f("polygon", {
|
|
447
|
+
points: "124,48 130,54 124,59 118,54",
|
|
448
|
+
fill: "#38bdf8",
|
|
449
|
+
stroke: "#fff",
|
|
450
|
+
strokeWidth: "1"
|
|
451
|
+
})
|
|
452
|
+
]
|
|
453
|
+
}),
|
|
454
|
+
/* @__PURE__ */ p("g", {
|
|
455
|
+
className: s.chibiJump,
|
|
456
|
+
children: [
|
|
457
|
+
/* @__PURE__ */ f("path", {
|
|
458
|
+
d: "M176 66 L208 66 L214 96 L170 96 Z",
|
|
459
|
+
fill: "#f43f5e"
|
|
460
|
+
}),
|
|
461
|
+
/* @__PURE__ */ f("circle", {
|
|
462
|
+
cx: "192",
|
|
463
|
+
cy: "46",
|
|
464
|
+
r: "20",
|
|
465
|
+
fill: "#fed7aa",
|
|
466
|
+
stroke: "#fff",
|
|
467
|
+
strokeWidth: "2"
|
|
468
|
+
}),
|
|
469
|
+
/* @__PURE__ */ f("path", {
|
|
470
|
+
d: "M171 44 C173 21, 211 21, 213 44 Z",
|
|
471
|
+
fill: "#4c1d95"
|
|
472
|
+
}),
|
|
473
|
+
/* @__PURE__ */ f("text", {
|
|
474
|
+
x: "180",
|
|
475
|
+
y: "50",
|
|
476
|
+
fontSize: "9",
|
|
477
|
+
children: "💖"
|
|
478
|
+
}),
|
|
479
|
+
/* @__PURE__ */ f("text", {
|
|
480
|
+
x: "193",
|
|
481
|
+
y: "50",
|
|
482
|
+
fontSize: "9",
|
|
483
|
+
children: "💖"
|
|
484
|
+
}),
|
|
485
|
+
/* @__PURE__ */ f("path", {
|
|
486
|
+
d: "M187 56 Q192 62 197 56",
|
|
487
|
+
stroke: "#7c2d12",
|
|
488
|
+
strokeWidth: "2",
|
|
489
|
+
strokeLinecap: "round",
|
|
490
|
+
fill: "none"
|
|
491
|
+
})
|
|
492
|
+
]
|
|
493
|
+
}),
|
|
494
|
+
/* @__PURE__ */ p("g", {
|
|
495
|
+
className: s.cartoonSparkle,
|
|
496
|
+
children: [/* @__PURE__ */ f("text", {
|
|
497
|
+
x: "134",
|
|
498
|
+
y: "32",
|
|
499
|
+
fontSize: "15",
|
|
500
|
+
children: "✨"
|
|
501
|
+
}), /* @__PURE__ */ f("text", {
|
|
502
|
+
x: "150",
|
|
503
|
+
y: "25",
|
|
504
|
+
fontSize: "13",
|
|
505
|
+
children: "💘"
|
|
506
|
+
})]
|
|
507
|
+
})
|
|
508
|
+
]
|
|
509
|
+
}) : e === "cartoon_mandap" ? /* @__PURE__ */ p("svg", {
|
|
510
|
+
viewBox: "0 0 280 116",
|
|
511
|
+
className: s.cartoonSvg,
|
|
512
|
+
"aria-hidden": "true",
|
|
513
|
+
children: [
|
|
514
|
+
/* @__PURE__ */ f("path", {
|
|
515
|
+
d: "M36 102 L36 30 Q140 4 244 30 L244 102",
|
|
516
|
+
fill: "none",
|
|
517
|
+
stroke: "#f59e0b",
|
|
518
|
+
strokeWidth: "5.5",
|
|
519
|
+
strokeLinecap: "round"
|
|
520
|
+
}),
|
|
521
|
+
/* @__PURE__ */ f("path", {
|
|
522
|
+
d: "M46 32 Q92 46 140 28 Q188 46 234 32",
|
|
523
|
+
fill: "none",
|
|
524
|
+
stroke: "#f97316",
|
|
525
|
+
strokeWidth: "4.5",
|
|
526
|
+
strokeDasharray: "8 6"
|
|
527
|
+
}),
|
|
528
|
+
/* @__PURE__ */ f("circle", {
|
|
529
|
+
cx: "70",
|
|
530
|
+
cy: "34",
|
|
531
|
+
r: "5.5",
|
|
532
|
+
fill: "#fbbf24"
|
|
533
|
+
}),
|
|
534
|
+
/* @__PURE__ */ f("circle", {
|
|
535
|
+
cx: "140",
|
|
536
|
+
cy: "23",
|
|
537
|
+
r: "6.5",
|
|
538
|
+
fill: "#ec4899"
|
|
539
|
+
}),
|
|
540
|
+
/* @__PURE__ */ f("circle", {
|
|
541
|
+
cx: "210",
|
|
542
|
+
cy: "34",
|
|
543
|
+
r: "5.5",
|
|
544
|
+
fill: "#fbbf24"
|
|
545
|
+
}),
|
|
546
|
+
/* @__PURE__ */ p("g", {
|
|
547
|
+
className: s.chibiSwayA,
|
|
548
|
+
children: [
|
|
549
|
+
/* @__PURE__ */ f("rect", {
|
|
550
|
+
x: "92",
|
|
551
|
+
y: "68",
|
|
552
|
+
width: "30",
|
|
553
|
+
height: "30",
|
|
554
|
+
rx: "10",
|
|
555
|
+
fill: "#fef3c7",
|
|
556
|
+
stroke: "#d97706",
|
|
557
|
+
strokeWidth: "2"
|
|
558
|
+
}),
|
|
559
|
+
/* @__PURE__ */ f("circle", {
|
|
560
|
+
cx: "107",
|
|
561
|
+
cy: "50",
|
|
562
|
+
r: "18",
|
|
563
|
+
fill: "#fed7aa",
|
|
564
|
+
stroke: "#fff",
|
|
565
|
+
strokeWidth: "2"
|
|
566
|
+
}),
|
|
567
|
+
/* @__PURE__ */ f("path", {
|
|
568
|
+
d: "M91 46 C95 31, 119 31, 123 46 Z",
|
|
569
|
+
fill: "#1e293b"
|
|
570
|
+
}),
|
|
571
|
+
/* @__PURE__ */ f("circle", {
|
|
572
|
+
cx: "101",
|
|
573
|
+
cy: "51",
|
|
574
|
+
r: "2.3",
|
|
575
|
+
fill: "#1e293b"
|
|
576
|
+
}),
|
|
577
|
+
/* @__PURE__ */ f("circle", {
|
|
578
|
+
cx: "113",
|
|
579
|
+
cy: "51",
|
|
580
|
+
r: "2.3",
|
|
581
|
+
fill: "#1e293b"
|
|
582
|
+
}),
|
|
583
|
+
/* @__PURE__ */ f("path", {
|
|
584
|
+
d: "M102 58 Q107 62 112 58",
|
|
585
|
+
stroke: "#7c2d12",
|
|
586
|
+
strokeWidth: "2",
|
|
587
|
+
strokeLinecap: "round",
|
|
588
|
+
fill: "none"
|
|
589
|
+
})
|
|
590
|
+
]
|
|
591
|
+
}),
|
|
592
|
+
/* @__PURE__ */ p("g", {
|
|
593
|
+
className: s.chibiSwayB,
|
|
594
|
+
children: [
|
|
595
|
+
/* @__PURE__ */ f("path", {
|
|
596
|
+
d: "M156 68 L188 68 L194 98 L150 98 Z",
|
|
597
|
+
fill: "#be123c",
|
|
598
|
+
stroke: "#fbbf24",
|
|
599
|
+
strokeWidth: "2"
|
|
600
|
+
}),
|
|
601
|
+
/* @__PURE__ */ f("circle", {
|
|
602
|
+
cx: "172",
|
|
603
|
+
cy: "50",
|
|
604
|
+
r: "18",
|
|
605
|
+
fill: "#fed7aa",
|
|
606
|
+
stroke: "#fff",
|
|
607
|
+
strokeWidth: "2"
|
|
608
|
+
}),
|
|
609
|
+
/* @__PURE__ */ f("path", {
|
|
610
|
+
d: "M154 48 C156 29, 188 29, 190 48 Z",
|
|
611
|
+
fill: "#1e1b4b"
|
|
612
|
+
}),
|
|
613
|
+
/* @__PURE__ */ f("circle", {
|
|
614
|
+
cx: "172",
|
|
615
|
+
cy: "43",
|
|
616
|
+
r: "2.1",
|
|
617
|
+
fill: "#e11d48"
|
|
618
|
+
}),
|
|
619
|
+
/* @__PURE__ */ f("circle", {
|
|
620
|
+
cx: "166",
|
|
621
|
+
cy: "51",
|
|
622
|
+
r: "2.3",
|
|
623
|
+
fill: "#1e293b"
|
|
624
|
+
}),
|
|
625
|
+
/* @__PURE__ */ f("circle", {
|
|
626
|
+
cx: "178",
|
|
627
|
+
cy: "51",
|
|
628
|
+
r: "2.3",
|
|
629
|
+
fill: "#1e293b"
|
|
630
|
+
}),
|
|
631
|
+
/* @__PURE__ */ f("path", {
|
|
632
|
+
d: "M167 58 Q172 62 177 58",
|
|
633
|
+
stroke: "#7c2d12",
|
|
634
|
+
strokeWidth: "2",
|
|
635
|
+
strokeLinecap: "round",
|
|
636
|
+
fill: "none"
|
|
637
|
+
})
|
|
638
|
+
]
|
|
639
|
+
}),
|
|
640
|
+
/* @__PURE__ */ f("text", {
|
|
641
|
+
x: "132",
|
|
642
|
+
y: "64",
|
|
643
|
+
fontSize: "14",
|
|
644
|
+
className: s.cartoonHeartPulse,
|
|
645
|
+
children: "🌺"
|
|
646
|
+
})
|
|
647
|
+
]
|
|
648
|
+
}) : e === "cartoon_birthday" ? /* @__PURE__ */ p("svg", {
|
|
649
|
+
viewBox: "0 0 280 116",
|
|
650
|
+
className: s.cartoonSvg,
|
|
651
|
+
"aria-hidden": "true",
|
|
652
|
+
children: [
|
|
653
|
+
/* @__PURE__ */ f("ellipse", {
|
|
654
|
+
cx: "102",
|
|
655
|
+
cy: "104",
|
|
656
|
+
rx: "26",
|
|
657
|
+
ry: "5",
|
|
658
|
+
fill: "rgba(15,23,42,0.16)"
|
|
659
|
+
}),
|
|
660
|
+
/* @__PURE__ */ p("g", {
|
|
661
|
+
className: s.chibiJump,
|
|
662
|
+
children: [
|
|
663
|
+
/* @__PURE__ */ f("polygon", {
|
|
664
|
+
points: "102,12 88,34 116,34",
|
|
665
|
+
fill: "#8b5cf6",
|
|
666
|
+
stroke: "#fbbf24",
|
|
667
|
+
strokeWidth: "2"
|
|
668
|
+
}),
|
|
669
|
+
/* @__PURE__ */ f("circle", {
|
|
670
|
+
cx: "102",
|
|
671
|
+
cy: "12",
|
|
672
|
+
r: "4",
|
|
673
|
+
fill: "#fbbf24"
|
|
674
|
+
}),
|
|
675
|
+
/* @__PURE__ */ f("rect", {
|
|
676
|
+
x: "86",
|
|
677
|
+
y: "70",
|
|
678
|
+
width: "32",
|
|
679
|
+
height: "28",
|
|
680
|
+
rx: "12",
|
|
681
|
+
fill: "#0ea5e9"
|
|
682
|
+
}),
|
|
683
|
+
/* @__PURE__ */ f("circle", {
|
|
684
|
+
cx: "102",
|
|
685
|
+
cy: "50",
|
|
686
|
+
r: "20",
|
|
687
|
+
fill: "#ffedd5",
|
|
688
|
+
stroke: "#fff",
|
|
689
|
+
strokeWidth: "2"
|
|
690
|
+
}),
|
|
691
|
+
/* @__PURE__ */ f("circle", {
|
|
692
|
+
cx: "95",
|
|
693
|
+
cy: "49",
|
|
694
|
+
r: "2.6",
|
|
695
|
+
fill: "#1e293b"
|
|
696
|
+
}),
|
|
697
|
+
/* @__PURE__ */ f("circle", {
|
|
698
|
+
cx: "109",
|
|
699
|
+
cy: "49",
|
|
700
|
+
r: "2.6",
|
|
701
|
+
fill: "#1e293b"
|
|
702
|
+
}),
|
|
703
|
+
/* @__PURE__ */ f("ellipse", {
|
|
704
|
+
cx: "88",
|
|
705
|
+
cy: "54",
|
|
706
|
+
rx: "3.8",
|
|
707
|
+
ry: "2.2",
|
|
708
|
+
fill: "#fb7185",
|
|
709
|
+
opacity: "0.65"
|
|
710
|
+
}),
|
|
711
|
+
/* @__PURE__ */ f("ellipse", {
|
|
712
|
+
cx: "116",
|
|
713
|
+
cy: "54",
|
|
714
|
+
rx: "3.8",
|
|
715
|
+
ry: "2.2",
|
|
716
|
+
fill: "#fb7185",
|
|
717
|
+
opacity: "0.65"
|
|
718
|
+
}),
|
|
719
|
+
/* @__PURE__ */ f("path", {
|
|
720
|
+
d: "M95 57 Q102 65 109 57",
|
|
721
|
+
stroke: "#7c2d12",
|
|
722
|
+
strokeWidth: "2.2",
|
|
723
|
+
strokeLinecap: "round",
|
|
724
|
+
fill: "none"
|
|
725
|
+
})
|
|
726
|
+
]
|
|
727
|
+
}),
|
|
728
|
+
/* @__PURE__ */ p("g", {
|
|
729
|
+
className: s.cartoonSparkle,
|
|
730
|
+
children: [
|
|
731
|
+
/* @__PURE__ */ f("rect", {
|
|
732
|
+
x: "164",
|
|
733
|
+
y: "64",
|
|
734
|
+
width: "52",
|
|
735
|
+
height: "34",
|
|
736
|
+
rx: "8",
|
|
737
|
+
fill: "#f472b6"
|
|
738
|
+
}),
|
|
739
|
+
/* @__PURE__ */ f("rect", {
|
|
740
|
+
x: "164",
|
|
741
|
+
y: "64",
|
|
742
|
+
width: "52",
|
|
743
|
+
height: "11",
|
|
744
|
+
rx: "5",
|
|
745
|
+
fill: "#fef3c7"
|
|
746
|
+
}),
|
|
747
|
+
/* @__PURE__ */ f("rect", {
|
|
748
|
+
x: "187",
|
|
749
|
+
y: "46",
|
|
750
|
+
width: "6",
|
|
751
|
+
height: "18",
|
|
752
|
+
rx: "2",
|
|
753
|
+
fill: "#38bdf8"
|
|
754
|
+
}),
|
|
755
|
+
/* @__PURE__ */ f("ellipse", {
|
|
756
|
+
cx: "190",
|
|
757
|
+
cy: "41",
|
|
758
|
+
rx: "4.5",
|
|
759
|
+
ry: "6.5",
|
|
760
|
+
fill: "#fbbf24",
|
|
761
|
+
className: s.flameFlicker
|
|
762
|
+
}),
|
|
763
|
+
/* @__PURE__ */ f("text", {
|
|
764
|
+
x: "140",
|
|
765
|
+
y: "34",
|
|
766
|
+
fontSize: "14",
|
|
767
|
+
children: "🎉"
|
|
768
|
+
}),
|
|
769
|
+
/* @__PURE__ */ f("text", {
|
|
770
|
+
x: "218",
|
|
771
|
+
y: "42",
|
|
772
|
+
fontSize: "14",
|
|
773
|
+
children: "🎈"
|
|
774
|
+
})
|
|
775
|
+
]
|
|
776
|
+
})
|
|
777
|
+
]
|
|
778
|
+
}) : /* @__PURE__ */ p("svg", {
|
|
779
|
+
viewBox: "0 0 280 116",
|
|
780
|
+
className: s.cartoonSvg,
|
|
781
|
+
"aria-hidden": "true",
|
|
782
|
+
children: [
|
|
783
|
+
/* @__PURE__ */ f("line", {
|
|
784
|
+
x1: "28",
|
|
785
|
+
y1: "100",
|
|
786
|
+
x2: "252",
|
|
787
|
+
y2: "100",
|
|
788
|
+
stroke: "rgba(148,163,184,0.35)",
|
|
789
|
+
strokeWidth: "2",
|
|
790
|
+
strokeDasharray: "6 6"
|
|
791
|
+
}),
|
|
792
|
+
/* @__PURE__ */ p("g", {
|
|
793
|
+
className: s.chibiBabyWalk,
|
|
794
|
+
children: [
|
|
795
|
+
/* @__PURE__ */ f("ellipse", {
|
|
796
|
+
cx: "70",
|
|
797
|
+
cy: "98",
|
|
798
|
+
rx: "17",
|
|
799
|
+
ry: "4",
|
|
800
|
+
fill: "rgba(15,23,42,0.14)"
|
|
801
|
+
}),
|
|
802
|
+
/* @__PURE__ */ f("rect", {
|
|
803
|
+
x: "56",
|
|
804
|
+
y: "70",
|
|
805
|
+
width: "28",
|
|
806
|
+
height: "22",
|
|
807
|
+
rx: "11",
|
|
808
|
+
fill: "#38bdf8"
|
|
809
|
+
}),
|
|
810
|
+
/* @__PURE__ */ f("circle", {
|
|
811
|
+
cx: "70",
|
|
812
|
+
cy: "50",
|
|
813
|
+
r: "19",
|
|
814
|
+
fill: "#ffedd5",
|
|
815
|
+
stroke: "#fff",
|
|
816
|
+
strokeWidth: "2"
|
|
817
|
+
}),
|
|
818
|
+
/* @__PURE__ */ f("path", {
|
|
819
|
+
d: "M64 31 Q70 23 76 32",
|
|
820
|
+
stroke: "#92400e",
|
|
821
|
+
strokeWidth: "3",
|
|
822
|
+
strokeLinecap: "round",
|
|
823
|
+
fill: "none"
|
|
824
|
+
}),
|
|
825
|
+
/* @__PURE__ */ f("circle", {
|
|
826
|
+
cx: "63",
|
|
827
|
+
cy: "50",
|
|
828
|
+
r: "2.6",
|
|
829
|
+
fill: "#1e293b"
|
|
830
|
+
}),
|
|
831
|
+
/* @__PURE__ */ f("circle", {
|
|
832
|
+
cx: "77",
|
|
833
|
+
cy: "50",
|
|
834
|
+
r: "2.6",
|
|
835
|
+
fill: "#1e293b"
|
|
836
|
+
}),
|
|
837
|
+
/* @__PURE__ */ f("ellipse", {
|
|
838
|
+
cx: "57",
|
|
839
|
+
cy: "55",
|
|
840
|
+
rx: "3.8",
|
|
841
|
+
ry: "2.3",
|
|
842
|
+
fill: "#fb7185",
|
|
843
|
+
opacity: "0.65"
|
|
844
|
+
}),
|
|
845
|
+
/* @__PURE__ */ f("ellipse", {
|
|
846
|
+
cx: "83",
|
|
847
|
+
cy: "55",
|
|
848
|
+
rx: "3.8",
|
|
849
|
+
ry: "2.3",
|
|
850
|
+
fill: "#fb7185",
|
|
851
|
+
opacity: "0.65"
|
|
852
|
+
}),
|
|
853
|
+
/* @__PURE__ */ f("circle", {
|
|
854
|
+
cx: "70",
|
|
855
|
+
cy: "58",
|
|
856
|
+
r: "3",
|
|
857
|
+
fill: "#f472b6"
|
|
858
|
+
})
|
|
859
|
+
]
|
|
860
|
+
}),
|
|
861
|
+
/* @__PURE__ */ f("text", {
|
|
862
|
+
x: "218",
|
|
863
|
+
y: "84",
|
|
864
|
+
fontSize: "24",
|
|
865
|
+
children: "🍼"
|
|
866
|
+
}),
|
|
867
|
+
/* @__PURE__ */ f("text", {
|
|
868
|
+
x: "200",
|
|
869
|
+
y: "38",
|
|
870
|
+
fontSize: "15",
|
|
871
|
+
className: s.cartoonSparkle,
|
|
872
|
+
children: "⭐"
|
|
873
|
+
})
|
|
874
|
+
]
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
function ie({ scene: e = "cartoon_couple", caption: t = "", leftEmoji: n = "🤵", rightEmoji: r = "👰", spriteSheetUrl: i = "" }) {
|
|
878
|
+
let [a, o] = u(!0), [l, d] = u(0);
|
|
879
|
+
c(() => {
|
|
154
880
|
if (!a || e !== "custom_sprite" || !i) return;
|
|
155
|
-
let t = window.setInterval(() =>
|
|
881
|
+
let t = window.setInterval(() => d((e) => (e + 1) % 6), 140);
|
|
156
882
|
return () => window.clearInterval(t);
|
|
157
883
|
}, [
|
|
158
884
|
a,
|
|
159
885
|
e,
|
|
160
886
|
i
|
|
161
|
-
])
|
|
887
|
+
]);
|
|
888
|
+
let m = e.startsWith("cartoon_");
|
|
889
|
+
return /* @__PURE__ */ p("div", {
|
|
162
890
|
className: `${s.spriteBox} ${a ? "" : s.spritePaused}`,
|
|
163
|
-
children: [/* @__PURE__ */
|
|
891
|
+
children: [/* @__PURE__ */ p("div", {
|
|
164
892
|
className: s.spriteStage,
|
|
165
893
|
"aria-hidden": "true",
|
|
166
894
|
children: [
|
|
167
|
-
|
|
895
|
+
m && /* @__PURE__ */ f(v, { scene: e }),
|
|
896
|
+
e === "couple_hands" && /* @__PURE__ */ p("div", {
|
|
168
897
|
className: s.coupleScene,
|
|
169
898
|
children: [
|
|
170
|
-
/* @__PURE__ */
|
|
899
|
+
/* @__PURE__ */ f("span", {
|
|
171
900
|
className: s.leftChar,
|
|
172
901
|
children: n || "🤵"
|
|
173
902
|
}),
|
|
174
|
-
/* @__PURE__ */
|
|
903
|
+
/* @__PURE__ */ f("span", {
|
|
175
904
|
className: s.handsBridge,
|
|
176
905
|
children: "🤝"
|
|
177
906
|
}),
|
|
178
|
-
/* @__PURE__ */
|
|
907
|
+
/* @__PURE__ */ f("span", {
|
|
179
908
|
className: s.heartPop,
|
|
180
909
|
children: "💖"
|
|
181
910
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ f("span", {
|
|
183
912
|
className: s.rightChar,
|
|
184
913
|
children: r || "👰"
|
|
185
914
|
})
|
|
186
915
|
]
|
|
187
916
|
}),
|
|
188
|
-
e === "baby_walk" && /* @__PURE__ */
|
|
917
|
+
e === "baby_walk" && /* @__PURE__ */ p("div", {
|
|
189
918
|
className: s.babyScene,
|
|
190
919
|
children: [
|
|
191
|
-
/* @__PURE__ */
|
|
920
|
+
/* @__PURE__ */ f("div", {
|
|
192
921
|
className: s.footprintTrail,
|
|
193
922
|
children: "👣 \xA0 👣 \xA0 👣"
|
|
194
923
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
924
|
+
/* @__PURE__ */ f("div", {
|
|
196
925
|
className: s.babyWalker,
|
|
197
926
|
children: "👶"
|
|
198
927
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
928
|
+
/* @__PURE__ */ f("div", {
|
|
200
929
|
className: s.babyGoal,
|
|
201
930
|
children: "🍼✨"
|
|
202
931
|
})
|
|
203
932
|
]
|
|
204
933
|
}),
|
|
205
|
-
e === "ring_sparkle" && /* @__PURE__ */
|
|
934
|
+
e === "ring_sparkle" && /* @__PURE__ */ p("div", {
|
|
206
935
|
className: s.ringScene,
|
|
207
936
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
937
|
+
/* @__PURE__ */ f("span", {
|
|
209
938
|
className: s.sparkleOrbit,
|
|
210
939
|
children: "✨"
|
|
211
940
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ f("span", {
|
|
213
942
|
className: s.ringHero,
|
|
214
943
|
children: "💍"
|
|
215
944
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ f("span", {
|
|
217
946
|
className: s.sparkleOrbitAlt,
|
|
218
947
|
children: "💖"
|
|
219
948
|
})
|
|
220
949
|
]
|
|
221
950
|
}),
|
|
222
|
-
e === "dancing_hearts" && /* @__PURE__ */
|
|
951
|
+
e === "dancing_hearts" && /* @__PURE__ */ p("div", {
|
|
223
952
|
className: s.danceScene,
|
|
224
953
|
children: [
|
|
225
|
-
/* @__PURE__ */
|
|
954
|
+
/* @__PURE__ */ f("span", {
|
|
226
955
|
className: s.musicFloat,
|
|
227
956
|
children: "🎶"
|
|
228
957
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ f("span", {
|
|
230
959
|
className: s.dancerA,
|
|
231
960
|
children: "💃"
|
|
232
961
|
}),
|
|
233
|
-
/* @__PURE__ */
|
|
962
|
+
/* @__PURE__ */ f("span", {
|
|
234
963
|
className: s.dancerB,
|
|
235
964
|
children: "🕺"
|
|
236
965
|
}),
|
|
237
|
-
/* @__PURE__ */
|
|
966
|
+
/* @__PURE__ */ f("span", {
|
|
238
967
|
className: s.musicFloatAlt,
|
|
239
968
|
children: "🎵"
|
|
240
969
|
})
|
|
241
970
|
]
|
|
242
971
|
}),
|
|
243
|
-
e === "cake_celebration" && /* @__PURE__ */
|
|
972
|
+
e === "cake_celebration" && /* @__PURE__ */ p("div", {
|
|
244
973
|
className: s.cakeScene,
|
|
245
974
|
children: [
|
|
246
|
-
/* @__PURE__ */
|
|
975
|
+
/* @__PURE__ */ f("span", {
|
|
247
976
|
className: s.balloonLeft,
|
|
248
977
|
children: "🎈"
|
|
249
978
|
}),
|
|
250
|
-
/* @__PURE__ */
|
|
979
|
+
/* @__PURE__ */ f("span", {
|
|
251
980
|
className: s.cakeHero,
|
|
252
981
|
children: "🎂"
|
|
253
982
|
}),
|
|
254
|
-
/* @__PURE__ */
|
|
983
|
+
/* @__PURE__ */ f("span", {
|
|
255
984
|
className: s.balloonRight,
|
|
256
985
|
children: "🎉"
|
|
257
986
|
})
|
|
258
987
|
]
|
|
259
988
|
}),
|
|
260
|
-
e === "custom_sprite" && (i ? /* @__PURE__ */
|
|
989
|
+
e === "custom_sprite" && (i ? /* @__PURE__ */ f("div", {
|
|
261
990
|
className: s.customSpriteFrame,
|
|
262
991
|
style: {
|
|
263
992
|
backgroundImage: `url(${i})`,
|
|
264
993
|
backgroundSize: "600% 100%",
|
|
265
994
|
backgroundPosition: `${l / 5 * 100}% 0%`
|
|
266
995
|
}
|
|
267
|
-
}) : /* @__PURE__ */
|
|
996
|
+
}) : /* @__PURE__ */ f("div", {
|
|
268
997
|
className: s.customStub,
|
|
269
998
|
children: "🖼️ Add a horizontal sprite sheet URL"
|
|
270
999
|
}))
|
|
271
1000
|
]
|
|
272
|
-
}), /* @__PURE__ */
|
|
1001
|
+
}), /* @__PURE__ */ p("div", {
|
|
273
1002
|
className: s.spriteFooter,
|
|
274
|
-
children: [/* @__PURE__ */
|
|
1003
|
+
children: [/* @__PURE__ */ f("span", {
|
|
275
1004
|
className: s.spriteCaption,
|
|
276
1005
|
children: t
|
|
277
|
-
}), /* @__PURE__ */
|
|
1006
|
+
}), /* @__PURE__ */ f("button", {
|
|
278
1007
|
type: "button",
|
|
279
1008
|
className: s.spriteToggleBtn,
|
|
280
1009
|
onClick: () => o((e) => !e),
|
|
@@ -283,8 +1012,8 @@ function te({ scene: e = "couple_hands", caption: t = "", leftEmoji: n = "🤵",
|
|
|
283
1012
|
})]
|
|
284
1013
|
});
|
|
285
1014
|
}
|
|
286
|
-
function
|
|
287
|
-
let [a, c] = u(!!r), [
|
|
1015
|
+
function ae({ mediaMode: e, youtubeUrl: t, title: n, autoPlay: r = !1, loop: i = !0 }) {
|
|
1016
|
+
let [a, c] = u(!!r), [d, m] = u(!1), h = l(() => o(t), [t]), g = l(() => {
|
|
288
1017
|
if (!h) return "";
|
|
289
1018
|
if (e === "audio") return a ? `https://www.youtube.com/embed/${h}?${new URLSearchParams({
|
|
290
1019
|
autoplay: "1",
|
|
@@ -293,7 +1022,7 @@ function ne({ mediaMode: e, youtubeUrl: t, title: n, autoPlay: r = !1, loop: i =
|
|
|
293
1022
|
controls: "0",
|
|
294
1023
|
modestbranding: "1",
|
|
295
1024
|
rel: "0",
|
|
296
|
-
mute:
|
|
1025
|
+
mute: d ? "1" : "0"
|
|
297
1026
|
}).toString()}` : "";
|
|
298
1027
|
let t = new URLSearchParams({
|
|
299
1028
|
autoplay: r ? "1" : "0",
|
|
@@ -306,47 +1035,47 @@ function ne({ mediaMode: e, youtubeUrl: t, title: n, autoPlay: r = !1, loop: i =
|
|
|
306
1035
|
h,
|
|
307
1036
|
e,
|
|
308
1037
|
a,
|
|
309
|
-
|
|
1038
|
+
d,
|
|
310
1039
|
r,
|
|
311
1040
|
i
|
|
312
1041
|
]);
|
|
313
|
-
return h ? e === "audio" ? /* @__PURE__ */
|
|
1042
|
+
return h ? e === "audio" ? /* @__PURE__ */ p("div", {
|
|
314
1043
|
className: s.ytAudioBar,
|
|
315
1044
|
children: [
|
|
316
|
-
/* @__PURE__ */
|
|
1045
|
+
/* @__PURE__ */ p("div", {
|
|
317
1046
|
className: s.ytAudioLeft,
|
|
318
|
-
children: [/* @__PURE__ */
|
|
319
|
-
className: `${s.ytEqBadge} ${a && !
|
|
1047
|
+
children: [/* @__PURE__ */ p("span", {
|
|
1048
|
+
className: `${s.ytEqBadge} ${a && !d ? s.ytEqActive : ""}`,
|
|
320
1049
|
"aria-hidden": "true",
|
|
321
1050
|
children: [
|
|
322
|
-
/* @__PURE__ */
|
|
323
|
-
/* @__PURE__ */
|
|
324
|
-
/* @__PURE__ */
|
|
1051
|
+
/* @__PURE__ */ f("span", {}),
|
|
1052
|
+
/* @__PURE__ */ f("span", {}),
|
|
1053
|
+
/* @__PURE__ */ f("span", {})
|
|
325
1054
|
]
|
|
326
|
-
}), /* @__PURE__ */
|
|
1055
|
+
}), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("div", {
|
|
327
1056
|
className: s.ytTitle,
|
|
328
1057
|
children: n || "Background Song"
|
|
329
|
-
}), /* @__PURE__ */
|
|
1058
|
+
}), /* @__PURE__ */ f("div", {
|
|
330
1059
|
className: s.ytMeta,
|
|
331
|
-
children: a ?
|
|
1060
|
+
children: a ? d ? "Muted • Repeat Loop" : "Playing Song • Repeat Loop 🔁" : "Paused • Audio-Only YouTube"
|
|
332
1061
|
})] })]
|
|
333
1062
|
}),
|
|
334
|
-
/* @__PURE__ */
|
|
1063
|
+
/* @__PURE__ */ p("div", {
|
|
335
1064
|
className: s.ytActions,
|
|
336
|
-
children: [/* @__PURE__ */
|
|
1065
|
+
children: [/* @__PURE__ */ f("button", {
|
|
337
1066
|
type: "button",
|
|
338
1067
|
className: s.primaryMiniBtn,
|
|
339
1068
|
onClick: () => c((e) => !e),
|
|
340
1069
|
children: a ? "⏸ Pause" : "▶ Play Song"
|
|
341
|
-
}), a && /* @__PURE__ */
|
|
1070
|
+
}), a && /* @__PURE__ */ f("button", {
|
|
342
1071
|
type: "button",
|
|
343
1072
|
className: s.ghostMiniBtn,
|
|
344
|
-
"aria-label":
|
|
1073
|
+
"aria-label": d ? "Unmute song" : "Mute song",
|
|
345
1074
|
onClick: () => m((e) => !e),
|
|
346
|
-
children:
|
|
1075
|
+
children: d ? "🔇" : "🔊"
|
|
347
1076
|
})]
|
|
348
1077
|
}),
|
|
349
|
-
a && g && /* @__PURE__ */
|
|
1078
|
+
a && g && /* @__PURE__ */ f("iframe", {
|
|
350
1079
|
className: s.ytHiddenFrame,
|
|
351
1080
|
src: g,
|
|
352
1081
|
title: `${n} audio player`,
|
|
@@ -355,20 +1084,20 @@ function ne({ mediaMode: e, youtubeUrl: t, title: n, autoPlay: r = !1, loop: i =
|
|
|
355
1084
|
tabIndex: -1
|
|
356
1085
|
})
|
|
357
1086
|
]
|
|
358
|
-
}) : /* @__PURE__ */
|
|
1087
|
+
}) : /* @__PURE__ */ p("div", {
|
|
359
1088
|
className: s.ytVideoCard,
|
|
360
|
-
children: [/* @__PURE__ */
|
|
1089
|
+
children: [/* @__PURE__ */ p("div", {
|
|
361
1090
|
className: s.ytVideoTop,
|
|
362
|
-
children: [/* @__PURE__ */
|
|
1091
|
+
children: [/* @__PURE__ */ p("span", {
|
|
363
1092
|
className: s.ytTitle,
|
|
364
1093
|
children: ["🎬 ", n || "Celebration Video"]
|
|
365
|
-
}), i && /* @__PURE__ */
|
|
1094
|
+
}), i && /* @__PURE__ */ f("span", {
|
|
366
1095
|
className: s.ytLoopChip,
|
|
367
1096
|
children: "🔁 Repeat On"
|
|
368
1097
|
})]
|
|
369
|
-
}), /* @__PURE__ */
|
|
1098
|
+
}), /* @__PURE__ */ f("div", {
|
|
370
1099
|
className: s.ytVideoWrap,
|
|
371
|
-
children: /* @__PURE__ */
|
|
1100
|
+
children: /* @__PURE__ */ f("iframe", {
|
|
372
1101
|
className: s.ytVideoFrame,
|
|
373
1102
|
src: g,
|
|
374
1103
|
title: n || "YouTube Video",
|
|
@@ -376,35 +1105,55 @@ function ne({ mediaMode: e, youtubeUrl: t, title: n, autoPlay: r = !1, loop: i =
|
|
|
376
1105
|
allowFullScreen: !0
|
|
377
1106
|
})
|
|
378
1107
|
})]
|
|
379
|
-
}) : /* @__PURE__ */
|
|
1108
|
+
}) : /* @__PURE__ */ p("div", {
|
|
380
1109
|
className: s.ytEmpty,
|
|
381
1110
|
children: [e === "audio" ? "🎵" : "🎬", " Paste a valid YouTube URL or 11-character video ID."]
|
|
382
1111
|
});
|
|
383
1112
|
}
|
|
384
|
-
function
|
|
385
|
-
let
|
|
386
|
-
let e = Array.isArray(
|
|
1113
|
+
function y({ themeMode: o = "light", starterPreset: v = "invitation", initialLanguages: y, customWidgets: b = [], customTemplates: x = [], onSavePage: oe }) {
|
|
1114
|
+
let S = l(() => {
|
|
1115
|
+
let e = Array.isArray(b) ? b : [], t = new Set(n.map((e) => e.type));
|
|
387
1116
|
return [...n, ...e.filter((e) => e && e.type && !t.has(e.type))];
|
|
388
|
-
}, [
|
|
389
|
-
let t = Array.isArray(
|
|
1117
|
+
}, [b]), C = l(() => {
|
|
1118
|
+
let t = Array.isArray(x) ? x : [], n = new Set(e.map((e) => e.id));
|
|
390
1119
|
return [...e, ...t.filter((e) => e && e.id && !n.has(e.id))];
|
|
391
|
-
}, [
|
|
392
|
-
|
|
393
|
-
|
|
1120
|
+
}, [x]), [w, T] = u(() => Array.isArray(y) && y.length > 0 ? y : t), E = w[0]?.code || "en", [D, O] = u(E), [se, ce] = u(!1), [le, ue] = u(""), [de, fe] = u(""), [pe, me] = u(v), [k, he] = u("base"), [A, ge] = u("all"), [j, M] = u(() => i(v)), [N, P] = u(() => {
|
|
1121
|
+
let t = e.find((e) => e.id === i(v));
|
|
1122
|
+
return {
|
|
1123
|
+
..._,
|
|
1124
|
+
accentColor: t?.defaultAccent || _.accentColor
|
|
1125
|
+
};
|
|
1126
|
+
}), [F, I] = u(() => r(v, S)), [L, R] = u(() => F[0]?.id || ""), [z, B] = u(0), [V, _e] = u(!1), [H, U] = u("desktop"), [ve, W] = u(""), [ye, G] = u(""), [be, K] = u(null), [xe, Se] = u(""), [Ce, we] = u({}), [Te, Ee] = u({}), [De, Oe] = u({}), q = C.find((e) => e.id === j) || C[0], J = F.find((e) => e.id === L) || null, Y = J && S.find((e) => e.type === J.type) || null, ke = w.find((e) => e.code === D) || w[0], Ae = l(() => A === "all" ? C : C.filter((e) => e.category === A), [C, A]);
|
|
1127
|
+
c(() => {
|
|
1128
|
+
z >= F.length && F.length > 0 && B(F.length - 1);
|
|
1129
|
+
}, [F.length, z]);
|
|
1130
|
+
let X = (e) => {
|
|
1131
|
+
P((t) => ({
|
|
1132
|
+
...t,
|
|
1133
|
+
...e
|
|
1134
|
+
}));
|
|
1135
|
+
}, je = (e) => {
|
|
1136
|
+
M(e.id), e.defaultAccent && P((t) => ({
|
|
1137
|
+
...t,
|
|
1138
|
+
accentColor: e.defaultAccent
|
|
1139
|
+
}));
|
|
1140
|
+
}, Z = (e, t, n = "") => {
|
|
1141
|
+
if (D !== E) {
|
|
1142
|
+
let n = e.translations?.[D]?.[t];
|
|
394
1143
|
if (typeof n == "string" && n.trim() !== "") return n;
|
|
395
1144
|
}
|
|
396
1145
|
let r = e.data[t];
|
|
397
1146
|
return r == null ? n : String(r);
|
|
398
|
-
},
|
|
1147
|
+
}, Me = (e, t) => {
|
|
399
1148
|
let n = e.trim().toLowerCase().replace(/[^a-z0-9-]/g, "").slice(0, 10), r = t.trim() || n.toUpperCase();
|
|
400
|
-
n && (
|
|
1149
|
+
n && (w.some((e) => e.code === n) || T((e) => [...e, {
|
|
401
1150
|
code: n,
|
|
402
1151
|
label: r
|
|
403
|
-
}]),
|
|
404
|
-
},
|
|
405
|
-
e ===
|
|
406
|
-
},
|
|
407
|
-
let n =
|
|
1152
|
+
}]), O(n), ue(""), fe(""), ce(!1));
|
|
1153
|
+
}, Ne = (e) => {
|
|
1154
|
+
e === E || w.length <= 1 || (T((t) => t.filter((t) => t.code !== e)), D === e && O(E));
|
|
1155
|
+
}, Pe = (e, t) => {
|
|
1156
|
+
let n = S.find((t) => t.type === e);
|
|
408
1157
|
if (!n) return;
|
|
409
1158
|
let r = {};
|
|
410
1159
|
n.defaultTranslations && Object.keys(n.defaultTranslations).forEach((e) => {
|
|
@@ -422,8 +1171,8 @@ function _({ themeMode: o = "light", starterPreset: c = "invitation", initialLan
|
|
|
422
1171
|
return n.splice(t, 0, i), n;
|
|
423
1172
|
}
|
|
424
1173
|
return [...e, i];
|
|
425
|
-
}), R(i.id);
|
|
426
|
-
},
|
|
1174
|
+
}), R(i.id), N.viewStyle === "story_slides" && B(F.length);
|
|
1175
|
+
}, Fe = (e) => {
|
|
427
1176
|
I((t) => {
|
|
428
1177
|
let n = t.findIndex((t) => t.id === e);
|
|
429
1178
|
if (n < 0) return t;
|
|
@@ -439,30 +1188,30 @@ function _({ themeMode: o = "light", starterPreset: c = "invitation", initialLan
|
|
|
439
1188
|
}, o = [...t];
|
|
440
1189
|
return o.splice(n + 1, 0, a), R(a.id), o;
|
|
441
1190
|
});
|
|
442
|
-
},
|
|
1191
|
+
}, Ie = (e, t) => {
|
|
443
1192
|
I((n) => {
|
|
444
1193
|
let r = n.findIndex((t) => t.id === e), i = r + t;
|
|
445
1194
|
if (r < 0 || i < 0 || i >= n.length) return n;
|
|
446
1195
|
let a = [...n], [o] = a.splice(r, 1);
|
|
447
1196
|
return a.splice(i, 0, o), a;
|
|
448
1197
|
});
|
|
449
|
-
},
|
|
1198
|
+
}, Le = (e, t) => {
|
|
450
1199
|
I((n) => {
|
|
451
1200
|
let r = n.findIndex((t) => t.id === e);
|
|
452
1201
|
if (r < 0 || r === t) return n;
|
|
453
1202
|
let i = [...n], [a] = i.splice(r, 1);
|
|
454
1203
|
return i.splice(t, 0, a), i;
|
|
455
1204
|
});
|
|
456
|
-
},
|
|
1205
|
+
}, Re = (e) => {
|
|
457
1206
|
I((t) => t.filter((t) => t.id !== e)), L === e && R("");
|
|
458
|
-
},
|
|
459
|
-
let r =
|
|
1207
|
+
}, Q = (e, t, n) => {
|
|
1208
|
+
let r = D !== E && ne(t) && typeof n == "string";
|
|
460
1209
|
I((i) => i.map((i) => i.id === e ? r ? {
|
|
461
1210
|
...i,
|
|
462
1211
|
translations: {
|
|
463
1212
|
...i.translations || {},
|
|
464
|
-
[
|
|
465
|
-
...i.translations?.[
|
|
1213
|
+
[D]: {
|
|
1214
|
+
...i.translations?.[D] || {},
|
|
466
1215
|
[t.key]: n
|
|
467
1216
|
}
|
|
468
1217
|
}
|
|
@@ -473,244 +1222,248 @@ function _({ themeMode: o = "light", starterPreset: c = "invitation", initialLan
|
|
|
473
1222
|
[t.key]: n
|
|
474
1223
|
}
|
|
475
1224
|
} : i));
|
|
476
|
-
},
|
|
1225
|
+
}, ze = (e, t) => {
|
|
477
1226
|
e.preventDefault();
|
|
478
|
-
let n = e.dataTransfer.getData("text/smileyyfy-widget") ||
|
|
479
|
-
n ?
|
|
480
|
-
},
|
|
481
|
-
|
|
482
|
-
templateId:
|
|
483
|
-
defaultLanguage:
|
|
484
|
-
languages:
|
|
485
|
-
blocks: F
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
1227
|
+
let n = e.dataTransfer.getData("text/smileyyfy-widget") || ve, r = e.dataTransfer.getData("text/smileyyfy-block") || ye;
|
|
1228
|
+
n ? Pe(n, t) : r && typeof t == "number" && Le(r, t), W(""), G(""), K(null);
|
|
1229
|
+
}, Be = () => {
|
|
1230
|
+
oe?.({
|
|
1231
|
+
templateId: q.id,
|
|
1232
|
+
defaultLanguage: E,
|
|
1233
|
+
languages: w,
|
|
1234
|
+
blocks: F,
|
|
1235
|
+
themeStyle: N
|
|
1236
|
+
}), Se(`Page saved (${F.length} blocks • ${N.viewStyle.replace("_", " ")} • ${w.length} lang${w.length > 1 ? "s" : ""})!`), window.setTimeout(() => Se(""), 2600);
|
|
1237
|
+
}, Ve = (e) => {
|
|
1238
|
+
let t = r(e, S), n = i(e), a = C.find((e) => e.id === n);
|
|
1239
|
+
me(e), I(t), M(n), a?.defaultAccent && P((e) => ({
|
|
1240
|
+
...e,
|
|
1241
|
+
accentColor: a.defaultAccent
|
|
1242
|
+
})), R(t[0]?.id || ""), B(0);
|
|
1243
|
+
}, He = (e) => {
|
|
491
1244
|
let t = e.data;
|
|
492
|
-
if (e.type === "text_banner") return /* @__PURE__ */
|
|
1245
|
+
if (e.type === "text_banner") return /* @__PURE__ */ p("div", {
|
|
493
1246
|
className: s.cardHero,
|
|
494
1247
|
children: [
|
|
495
|
-
/* @__PURE__ */
|
|
1248
|
+
/* @__PURE__ */ f("div", {
|
|
496
1249
|
className: s.ornament,
|
|
497
1250
|
children: "✦ ❀ ✦"
|
|
498
1251
|
}),
|
|
499
|
-
/* @__PURE__ */
|
|
1252
|
+
/* @__PURE__ */ f("h2", {
|
|
500
1253
|
className: s.heroNames,
|
|
501
|
-
children:
|
|
1254
|
+
children: Z(e, "heading", "Celebration Title")
|
|
502
1255
|
}),
|
|
503
|
-
/* @__PURE__ */
|
|
1256
|
+
/* @__PURE__ */ f("p", {
|
|
504
1257
|
className: s.heroSub,
|
|
505
|
-
children:
|
|
1258
|
+
children: Z(e, "subtext", "")
|
|
506
1259
|
})
|
|
507
1260
|
]
|
|
508
1261
|
});
|
|
509
|
-
if (e.type === "story_paragraph") return /* @__PURE__ */
|
|
1262
|
+
if (e.type === "story_paragraph") return /* @__PURE__ */ p("div", {
|
|
510
1263
|
className: s.letterBox,
|
|
511
|
-
children: [/* @__PURE__ */
|
|
1264
|
+
children: [/* @__PURE__ */ f("div", {
|
|
512
1265
|
className: s.letterGreeting,
|
|
513
|
-
children:
|
|
514
|
-
}), /* @__PURE__ */
|
|
1266
|
+
children: Z(e, "title", "Our Story")
|
|
1267
|
+
}), /* @__PURE__ */ f("p", {
|
|
515
1268
|
className: s.letterBody,
|
|
516
|
-
children:
|
|
1269
|
+
children: Z(e, "body", "")
|
|
517
1270
|
})]
|
|
518
1271
|
});
|
|
519
|
-
if (e.type === "rich_quote") return /* @__PURE__ */
|
|
1272
|
+
if (e.type === "rich_quote") return /* @__PURE__ */ p("blockquote", {
|
|
520
1273
|
className: s.quoteCard,
|
|
521
|
-
children: [/* @__PURE__ */
|
|
1274
|
+
children: [/* @__PURE__ */ f("p", {
|
|
522
1275
|
className: s.quoteText,
|
|
523
|
-
children:
|
|
524
|
-
}), /* @__PURE__ */
|
|
1276
|
+
children: Z(e, "quote", "")
|
|
1277
|
+
}), /* @__PURE__ */ p("footer", {
|
|
525
1278
|
className: s.quoteAuthor,
|
|
526
|
-
children: ["— ",
|
|
1279
|
+
children: ["— ", Z(e, "author", "")]
|
|
527
1280
|
})]
|
|
528
1281
|
});
|
|
529
1282
|
if (e.type === "milestone_timeline") {
|
|
530
1283
|
let t = [
|
|
531
1284
|
{
|
|
532
|
-
title:
|
|
533
|
-
note:
|
|
1285
|
+
title: Z(e, "step1Title"),
|
|
1286
|
+
note: Z(e, "step1Note")
|
|
534
1287
|
},
|
|
535
1288
|
{
|
|
536
|
-
title:
|
|
537
|
-
note:
|
|
1289
|
+
title: Z(e, "step2Title"),
|
|
1290
|
+
note: Z(e, "step2Note")
|
|
538
1291
|
},
|
|
539
1292
|
{
|
|
540
|
-
title:
|
|
541
|
-
note:
|
|
1293
|
+
title: Z(e, "step3Title"),
|
|
1294
|
+
note: Z(e, "step3Note")
|
|
542
1295
|
}
|
|
543
1296
|
].filter((e) => e.title || e.note);
|
|
544
|
-
return /* @__PURE__ */
|
|
1297
|
+
return /* @__PURE__ */ f("div", {
|
|
545
1298
|
className: s.timelineWrap,
|
|
546
|
-
children: t.map((e, t) => /* @__PURE__ */
|
|
1299
|
+
children: t.map((e, t) => /* @__PURE__ */ p("div", {
|
|
547
1300
|
className: s.timelineRow,
|
|
548
|
-
children: [/* @__PURE__ */
|
|
1301
|
+
children: [/* @__PURE__ */ f("span", {
|
|
549
1302
|
className: s.timelineDot,
|
|
550
1303
|
children: t + 1
|
|
551
|
-
}), /* @__PURE__ */
|
|
1304
|
+
}), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("div", {
|
|
552
1305
|
className: s.timelineTitle,
|
|
553
1306
|
children: e.title
|
|
554
|
-
}), /* @__PURE__ */
|
|
1307
|
+
}), /* @__PURE__ */ f("div", {
|
|
555
1308
|
className: s.timelineNote,
|
|
556
1309
|
children: e.note
|
|
557
1310
|
})] })]
|
|
558
1311
|
}, t))
|
|
559
1312
|
});
|
|
560
1313
|
}
|
|
561
|
-
if (e.type === "hero_header") return /* @__PURE__ */
|
|
1314
|
+
if (e.type === "hero_header") return /* @__PURE__ */ p("div", {
|
|
562
1315
|
className: s.cardHero,
|
|
563
1316
|
children: [
|
|
564
|
-
/* @__PURE__ */
|
|
1317
|
+
/* @__PURE__ */ f("span", {
|
|
565
1318
|
className: s.heroBadge,
|
|
566
|
-
children:
|
|
1319
|
+
children: Z(e, "badge", "INVITATION")
|
|
567
1320
|
}),
|
|
568
|
-
/* @__PURE__ */
|
|
1321
|
+
/* @__PURE__ */ f("h2", {
|
|
569
1322
|
className: s.heroNames,
|
|
570
|
-
children:
|
|
1323
|
+
children: Z(e, "names", "Your Names")
|
|
571
1324
|
}),
|
|
572
|
-
/* @__PURE__ */
|
|
1325
|
+
/* @__PURE__ */ f("p", {
|
|
573
1326
|
className: s.heroSub,
|
|
574
|
-
children:
|
|
1327
|
+
children: Z(e, "subtitle", "")
|
|
575
1328
|
})
|
|
576
1329
|
]
|
|
577
1330
|
});
|
|
578
|
-
if (e.type === "event_details") return /* @__PURE__ */
|
|
1331
|
+
if (e.type === "event_details") return /* @__PURE__ */ p("div", {
|
|
579
1332
|
className: s.detailCard,
|
|
580
1333
|
children: [
|
|
581
|
-
/* @__PURE__ */
|
|
1334
|
+
/* @__PURE__ */ p("div", {
|
|
582
1335
|
className: s.detailCell,
|
|
583
|
-
children: [/* @__PURE__ */
|
|
1336
|
+
children: [/* @__PURE__ */ f("span", {
|
|
584
1337
|
className: s.detailLbl,
|
|
585
1338
|
children: "DATE"
|
|
586
|
-
}), /* @__PURE__ */
|
|
1339
|
+
}), /* @__PURE__ */ p("strong", { children: ["📅 ", String(t.date || "TBD")] })]
|
|
587
1340
|
}),
|
|
588
|
-
/* @__PURE__ */
|
|
1341
|
+
/* @__PURE__ */ p("div", {
|
|
589
1342
|
className: s.detailCell,
|
|
590
|
-
children: [/* @__PURE__ */
|
|
1343
|
+
children: [/* @__PURE__ */ f("span", {
|
|
591
1344
|
className: s.detailLbl,
|
|
592
1345
|
children: "TIME"
|
|
593
|
-
}), /* @__PURE__ */
|
|
1346
|
+
}), /* @__PURE__ */ p("strong", { children: ["⏰ ", Z(e, "time", "TBD")] })]
|
|
594
1347
|
}),
|
|
595
|
-
/* @__PURE__ */
|
|
1348
|
+
/* @__PURE__ */ p("div", {
|
|
596
1349
|
className: s.detailCellWide,
|
|
597
|
-
children: [/* @__PURE__ */
|
|
1350
|
+
children: [/* @__PURE__ */ f("span", {
|
|
598
1351
|
className: s.detailLbl,
|
|
599
1352
|
children: "VENUE"
|
|
600
|
-
}), /* @__PURE__ */
|
|
1353
|
+
}), /* @__PURE__ */ p("strong", { children: ["📍 ", Z(e, "venue", "Location TBD")] })]
|
|
601
1354
|
})
|
|
602
1355
|
]
|
|
603
1356
|
});
|
|
604
|
-
if (e.type === "countdown_timer") return /* @__PURE__ */
|
|
605
|
-
label:
|
|
1357
|
+
if (e.type === "countdown_timer") return /* @__PURE__ */ f(re, {
|
|
1358
|
+
label: Z(e, "label", "Countdown"),
|
|
606
1359
|
targetDate: String(t.targetDate || "")
|
|
607
1360
|
});
|
|
608
|
-
if (e.type === "dress_code_card") return /* @__PURE__ */
|
|
1361
|
+
if (e.type === "dress_code_card") return /* @__PURE__ */ p("div", {
|
|
609
1362
|
className: s.dressBox,
|
|
610
1363
|
children: [
|
|
611
|
-
/* @__PURE__ */
|
|
1364
|
+
/* @__PURE__ */ f("span", {
|
|
612
1365
|
className: s.heroBadge,
|
|
613
1366
|
children: "👗 DRESS CODE"
|
|
614
1367
|
}),
|
|
615
|
-
/* @__PURE__ */
|
|
1368
|
+
/* @__PURE__ */ f("div", {
|
|
616
1369
|
className: s.dressTheme,
|
|
617
|
-
children:
|
|
1370
|
+
children: Z(e, "dressCode", "Festive Attire")
|
|
618
1371
|
}),
|
|
619
|
-
/* @__PURE__ */
|
|
1372
|
+
/* @__PURE__ */ f("p", {
|
|
620
1373
|
className: s.heroSub,
|
|
621
|
-
children:
|
|
1374
|
+
children: Z(e, "note", "")
|
|
622
1375
|
})
|
|
623
1376
|
]
|
|
624
1377
|
});
|
|
625
1378
|
if (e.type === "rsvp_card") {
|
|
626
|
-
let n =
|
|
627
|
-
return /* @__PURE__ */
|
|
1379
|
+
let n = De[e.id];
|
|
1380
|
+
return /* @__PURE__ */ p("div", {
|
|
628
1381
|
className: s.rsvpBox,
|
|
629
|
-
children: [/* @__PURE__ */
|
|
1382
|
+
children: [/* @__PURE__ */ p("h3", {
|
|
630
1383
|
className: s.blockHeading,
|
|
631
|
-
children: ["📋 ",
|
|
632
|
-
}), n ? /* @__PURE__ */
|
|
1384
|
+
children: ["📋 ", Z(e, "heading", "Will You Join Us?")]
|
|
1385
|
+
}), n ? /* @__PURE__ */ p("div", {
|
|
633
1386
|
className: s.rsvpDone,
|
|
634
1387
|
children: [
|
|
635
1388
|
"✅ Thanks, ",
|
|
636
1389
|
n,
|
|
637
1390
|
"! Your RSVP is recorded."
|
|
638
1391
|
]
|
|
639
|
-
}) : /* @__PURE__ */
|
|
1392
|
+
}) : /* @__PURE__ */ p("form", {
|
|
640
1393
|
className: s.rsvpInlineForm,
|
|
641
1394
|
onSubmit: (t) => {
|
|
642
1395
|
t.preventDefault();
|
|
643
1396
|
let n = new FormData(t.currentTarget), r = String(n.get("guestName") || "Guest").trim();
|
|
644
|
-
|
|
1397
|
+
Oe((t) => ({
|
|
645
1398
|
...t,
|
|
646
1399
|
[e.id]: r || "Guest"
|
|
647
1400
|
}));
|
|
648
1401
|
},
|
|
649
1402
|
children: [
|
|
650
|
-
/* @__PURE__ */
|
|
1403
|
+
/* @__PURE__ */ f("input", {
|
|
651
1404
|
name: "guestName",
|
|
652
1405
|
type: "text",
|
|
653
1406
|
required: !0,
|
|
654
1407
|
placeholder: "Your name"
|
|
655
1408
|
}),
|
|
656
|
-
!!t.allowPlusOne && /* @__PURE__ */
|
|
1409
|
+
!!t.allowPlusOne && /* @__PURE__ */ f("input", {
|
|
657
1410
|
name: "party",
|
|
658
1411
|
type: "number",
|
|
659
1412
|
min: 1,
|
|
660
1413
|
max: 6,
|
|
661
1414
|
defaultValue: 1
|
|
662
1415
|
}),
|
|
663
|
-
/* @__PURE__ */
|
|
1416
|
+
/* @__PURE__ */ f("button", {
|
|
664
1417
|
type: "submit",
|
|
665
1418
|
className: s.primaryMiniBtn,
|
|
666
|
-
children:
|
|
1419
|
+
children: Z(e, "buttonLabel", "Confirm RSVP")
|
|
667
1420
|
})
|
|
668
1421
|
]
|
|
669
1422
|
})]
|
|
670
1423
|
});
|
|
671
1424
|
}
|
|
672
|
-
if (e.type === "love_letter") return /* @__PURE__ */
|
|
1425
|
+
if (e.type === "love_letter") return /* @__PURE__ */ p("div", {
|
|
673
1426
|
className: s.letterBox,
|
|
674
1427
|
children: [
|
|
675
|
-
/* @__PURE__ */
|
|
1428
|
+
/* @__PURE__ */ f("div", {
|
|
676
1429
|
className: s.letterGreeting,
|
|
677
|
-
children:
|
|
1430
|
+
children: Z(e, "greeting", "Dear You,")
|
|
678
1431
|
}),
|
|
679
|
-
/* @__PURE__ */
|
|
1432
|
+
/* @__PURE__ */ f("p", {
|
|
680
1433
|
className: s.letterBody,
|
|
681
|
-
children:
|
|
1434
|
+
children: Z(e, "body", "")
|
|
682
1435
|
}),
|
|
683
|
-
/* @__PURE__ */
|
|
1436
|
+
/* @__PURE__ */ p("div", {
|
|
684
1437
|
className: s.letterSig,
|
|
685
|
-
children: ["— ",
|
|
1438
|
+
children: ["— ", Z(e, "signature", "Forever Yours")]
|
|
686
1439
|
})
|
|
687
1440
|
]
|
|
688
1441
|
});
|
|
689
1442
|
if (e.type === "photo_polaroids") {
|
|
690
1443
|
let n = [{
|
|
691
1444
|
url: String(t.photoOneUrl || ""),
|
|
692
|
-
cap:
|
|
1445
|
+
cap: Z(e, "captionOne", "Memory 1"),
|
|
693
1446
|
icon: "💑",
|
|
694
1447
|
rot: -2.5
|
|
695
1448
|
}, {
|
|
696
1449
|
url: String(t.photoTwoUrl || ""),
|
|
697
|
-
cap:
|
|
1450
|
+
cap: Z(e, "captionTwo", "Memory 2"),
|
|
698
1451
|
icon: "💍",
|
|
699
1452
|
rot: 2.5
|
|
700
1453
|
}];
|
|
701
|
-
return /* @__PURE__ */
|
|
1454
|
+
return /* @__PURE__ */ f("div", {
|
|
702
1455
|
className: s.polaroidStrip,
|
|
703
|
-
children: n.map((e, t) => /* @__PURE__ */
|
|
1456
|
+
children: n.map((e, t) => /* @__PURE__ */ p("figure", {
|
|
704
1457
|
className: s.polaroid,
|
|
705
1458
|
style: { transform: `rotate(${e.rot}deg)` },
|
|
706
|
-
children: [e.url ? /* @__PURE__ */
|
|
1459
|
+
children: [e.url ? /* @__PURE__ */ f("img", {
|
|
707
1460
|
src: e.url,
|
|
708
1461
|
alt: e.cap,
|
|
709
1462
|
className: s.polaroidImg
|
|
710
|
-
}) : /* @__PURE__ */
|
|
1463
|
+
}) : /* @__PURE__ */ f("div", {
|
|
711
1464
|
className: s.polaroidStub,
|
|
712
1465
|
children: e.icon
|
|
713
|
-
}), /* @__PURE__ */
|
|
1466
|
+
}), /* @__PURE__ */ f("figcaption", {
|
|
714
1467
|
className: s.polaroidCap,
|
|
715
1468
|
children: e.cap
|
|
716
1469
|
})]
|
|
@@ -718,12 +1471,12 @@ function _({ themeMode: o = "light", starterPreset: c = "invitation", initialLan
|
|
|
718
1471
|
});
|
|
719
1472
|
}
|
|
720
1473
|
if (e.type === "flying_proposal") {
|
|
721
|
-
let t = !!
|
|
1474
|
+
let t = !!Ce[e.id], n = Te[e.id] || {
|
|
722
1475
|
count: 0,
|
|
723
1476
|
top: 50,
|
|
724
1477
|
left: 68
|
|
725
1478
|
}, r = () => {
|
|
726
|
-
|
|
1479
|
+
Ee((t) => ({
|
|
727
1480
|
...t,
|
|
728
1481
|
[e.id]: {
|
|
729
1482
|
count: (t[e.id]?.count || 0) + 1,
|
|
@@ -732,31 +1485,31 @@ function _({ themeMode: o = "light", starterPreset: c = "invitation", initialLan
|
|
|
732
1485
|
}
|
|
733
1486
|
}));
|
|
734
1487
|
};
|
|
735
|
-
return /* @__PURE__ */
|
|
1488
|
+
return /* @__PURE__ */ p("div", {
|
|
736
1489
|
className: s.proposalBox,
|
|
737
|
-
children: [/* @__PURE__ */
|
|
1490
|
+
children: [/* @__PURE__ */ f("h3", {
|
|
738
1491
|
className: s.proposalQ,
|
|
739
|
-
children: t ?
|
|
740
|
-
}), t ? /* @__PURE__ */
|
|
1492
|
+
children: t ? Z(e, "acceptedText", "YAY!! 💍💖") : Z(e, "question", "Will You Marry Me?")
|
|
1493
|
+
}), t ? /* @__PURE__ */ f("button", {
|
|
741
1494
|
type: "button",
|
|
742
1495
|
className: s.ghostMiniBtn,
|
|
743
|
-
onClick: () =>
|
|
1496
|
+
onClick: () => we((t) => ({
|
|
744
1497
|
...t,
|
|
745
1498
|
[e.id]: !1
|
|
746
1499
|
})),
|
|
747
1500
|
children: "↺ Replay"
|
|
748
|
-
}) : /* @__PURE__ */
|
|
1501
|
+
}) : /* @__PURE__ */ p("div", {
|
|
749
1502
|
className: s.flyingArena,
|
|
750
|
-
children: [/* @__PURE__ */
|
|
1503
|
+
children: [/* @__PURE__ */ f("button", {
|
|
751
1504
|
type: "button",
|
|
752
1505
|
className: s.yesMiniBtn,
|
|
753
1506
|
style: { transform: `scale(${Math.min(1.35, 1 + n.count * .07)})` },
|
|
754
|
-
onClick: () =>
|
|
1507
|
+
onClick: () => we((t) => ({
|
|
755
1508
|
...t,
|
|
756
1509
|
[e.id]: !0
|
|
757
1510
|
})),
|
|
758
|
-
children:
|
|
759
|
-
}), /* @__PURE__ */
|
|
1511
|
+
children: Z(e, "yesLabel", "Yes! 💖")
|
|
1512
|
+
}), /* @__PURE__ */ f("button", {
|
|
760
1513
|
type: "button",
|
|
761
1514
|
className: s.noMiniBtn,
|
|
762
1515
|
style: n.count > 0 ? {
|
|
@@ -770,143 +1523,177 @@ function _({ themeMode: o = "light", starterPreset: c = "invitation", initialLan
|
|
|
770
1523
|
e.preventDefault(), r();
|
|
771
1524
|
},
|
|
772
1525
|
onClick: r,
|
|
773
|
-
children: n.count === 0 ?
|
|
1526
|
+
children: n.count === 0 ? Z(e, "noLabel", "No 🙈") : h[n.count % h.length]
|
|
774
1527
|
})]
|
|
775
1528
|
})]
|
|
776
1529
|
});
|
|
777
1530
|
}
|
|
778
|
-
if (e.type === "couple_hands_anim" || e.type === "baby_walk_anim" || e.type === "story_sprite_anim") return /* @__PURE__ */
|
|
779
|
-
scene: String(t.scene || "
|
|
780
|
-
caption:
|
|
1531
|
+
if (e.type === "cartoon_scene_anim" || e.type === "couple_hands_anim" || e.type === "baby_walk_anim" || e.type === "story_sprite_anim") return /* @__PURE__ */ f(ie, {
|
|
1532
|
+
scene: String(t.scene || "cartoon_couple"),
|
|
1533
|
+
caption: Z(e, "caption", ""),
|
|
781
1534
|
leftEmoji: String(t.leftEmoji || "🤵"),
|
|
782
1535
|
rightEmoji: String(t.rightEmoji || "👰"),
|
|
783
1536
|
spriteSheetUrl: String(t.spriteSheetUrl || "")
|
|
784
1537
|
});
|
|
785
|
-
if (e.type === "youtube_audio") return /* @__PURE__ */
|
|
1538
|
+
if (e.type === "youtube_audio") return /* @__PURE__ */ f(ae, {
|
|
786
1539
|
mediaMode: "audio",
|
|
787
1540
|
youtubeUrl: String(t.youtubeUrl || ""),
|
|
788
|
-
title:
|
|
1541
|
+
title: Z(e, "title", "Background Song"),
|
|
789
1542
|
autoPlay: !!t.autoPlay,
|
|
790
1543
|
loop: !0
|
|
791
1544
|
});
|
|
792
|
-
if (e.type === "youtube_video") return /* @__PURE__ */
|
|
1545
|
+
if (e.type === "youtube_video") return /* @__PURE__ */ f(ae, {
|
|
793
1546
|
mediaMode: "video",
|
|
794
1547
|
youtubeUrl: String(t.youtubeUrl || ""),
|
|
795
|
-
title:
|
|
1548
|
+
title: Z(e, "title", "Our Story Video"),
|
|
796
1549
|
autoPlay: !1,
|
|
797
1550
|
loop: !!t.loop
|
|
798
1551
|
});
|
|
799
|
-
let n =
|
|
800
|
-
return /* @__PURE__ */
|
|
1552
|
+
let n = S.find((t) => t.type === e.type);
|
|
1553
|
+
return /* @__PURE__ */ p("div", {
|
|
801
1554
|
className: s.customFallback,
|
|
802
|
-
children: [/* @__PURE__ */
|
|
1555
|
+
children: [/* @__PURE__ */ p("strong", { children: [
|
|
803
1556
|
n?.icon || "🧩",
|
|
804
1557
|
" ",
|
|
805
1558
|
n?.name || e.type
|
|
806
|
-
] }), /* @__PURE__ */
|
|
1559
|
+
] }), /* @__PURE__ */ f("p", { children: Object.keys(t).map((t) => Z(e, t)).filter(Boolean).join(" • ") })]
|
|
807
1560
|
});
|
|
808
|
-
},
|
|
809
|
-
return /* @__PURE__ */
|
|
1561
|
+
}, Ue = m[q.floatingStyle] || m.hearts, $ = N.motionIntensity === "off" ? 0 : N.motionIntensity === "gentle" ? 6 : 16, We = N.viewStyle === "story_slides" && F.length > 0 ? [F[Math.min(z, F.length - 1)]] : F;
|
|
1562
|
+
return /* @__PURE__ */ p("div", {
|
|
810
1563
|
className: `${s.studio} ${s[`mode_${o}`] || s.mode_light}`,
|
|
1564
|
+
style: { "--sm-accent": N.accentColor },
|
|
811
1565
|
children: [
|
|
812
|
-
/* @__PURE__ */
|
|
1566
|
+
/* @__PURE__ */ p("div", {
|
|
813
1567
|
className: s.topBar,
|
|
814
|
-
children: [/* @__PURE__ */
|
|
1568
|
+
children: [/* @__PURE__ */ p("div", {
|
|
815
1569
|
className: s.topLeft,
|
|
816
|
-
children: [/* @__PURE__ */
|
|
1570
|
+
children: [/* @__PURE__ */ f("span", {
|
|
817
1571
|
className: s.studioTitle,
|
|
818
1572
|
children: "🎨 Smileyyfy Page Canvas Builder"
|
|
819
|
-
}), /* @__PURE__ */
|
|
1573
|
+
}), /* @__PURE__ */ f("div", {
|
|
820
1574
|
className: s.presetBtns,
|
|
821
|
-
children:
|
|
1575
|
+
children: g.map((e) => /* @__PURE__ */ f("button", {
|
|
822
1576
|
type: "button",
|
|
823
|
-
className: `${s.miniPill} ${
|
|
824
|
-
onClick: () =>
|
|
1577
|
+
className: `${s.miniPill} ${pe === e.id ? s.activeMiniPill : ""}`,
|
|
1578
|
+
onClick: () => Ve(e.id),
|
|
825
1579
|
children: e.label
|
|
826
1580
|
}, e.id))
|
|
827
1581
|
})]
|
|
828
|
-
}), /* @__PURE__ */
|
|
1582
|
+
}), /* @__PURE__ */ p("div", {
|
|
829
1583
|
className: s.topRight,
|
|
830
1584
|
children: [
|
|
831
1585
|
/* @__PURE__ */ f("div", {
|
|
832
1586
|
className: s.viewportGroup,
|
|
833
1587
|
role: "group",
|
|
834
|
-
"aria-label": "
|
|
835
|
-
children: [
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
1588
|
+
"aria-label": "Presentation view mode",
|
|
1589
|
+
children: [
|
|
1590
|
+
{
|
|
1591
|
+
id: "scroll",
|
|
1592
|
+
label: "📜 Scroll"
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
id: "story_slides",
|
|
1596
|
+
label: "🃏 Slides"
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
id: "poster",
|
|
1600
|
+
label: "🖼️ Poster"
|
|
1601
|
+
}
|
|
1602
|
+
].map((e) => /* @__PURE__ */ f("button", {
|
|
841
1603
|
type: "button",
|
|
842
|
-
className: `${s.vpBtn} ${
|
|
843
|
-
onClick: () =>
|
|
844
|
-
children:
|
|
845
|
-
})
|
|
1604
|
+
className: `${s.vpBtn} ${N.viewStyle === e.id ? s.activeVpBtn : ""}`,
|
|
1605
|
+
onClick: () => X({ viewStyle: e.id }),
|
|
1606
|
+
children: e.label
|
|
1607
|
+
}, e.id))
|
|
846
1608
|
}),
|
|
847
|
-
/* @__PURE__ */
|
|
1609
|
+
/* @__PURE__ */ p("div", {
|
|
1610
|
+
className: s.viewportGroup,
|
|
1611
|
+
role: "group",
|
|
1612
|
+
"aria-label": "Canvas viewport width",
|
|
1613
|
+
children: [
|
|
1614
|
+
/* @__PURE__ */ f("button", {
|
|
1615
|
+
type: "button",
|
|
1616
|
+
className: `${s.vpBtn} ${H === "desktop" ? s.activeVpBtn : ""}`,
|
|
1617
|
+
onClick: () => U("desktop"),
|
|
1618
|
+
children: "🖥️"
|
|
1619
|
+
}),
|
|
1620
|
+
/* @__PURE__ */ f("button", {
|
|
1621
|
+
type: "button",
|
|
1622
|
+
className: `${s.vpBtn} ${H === "tablet" ? s.activeVpBtn : ""}`,
|
|
1623
|
+
onClick: () => U("tablet"),
|
|
1624
|
+
children: "📱"
|
|
1625
|
+
}),
|
|
1626
|
+
/* @__PURE__ */ f("button", {
|
|
1627
|
+
type: "button",
|
|
1628
|
+
className: `${s.vpBtn} ${H === "mobile" ? s.activeVpBtn : ""}`,
|
|
1629
|
+
onClick: () => U("mobile"),
|
|
1630
|
+
children: "📲"
|
|
1631
|
+
})
|
|
1632
|
+
]
|
|
1633
|
+
}),
|
|
1634
|
+
/* @__PURE__ */ f("button", {
|
|
848
1635
|
type: "button",
|
|
849
|
-
className: `${s.miniPill} ${
|
|
850
|
-
onClick: () =>
|
|
851
|
-
children:
|
|
1636
|
+
className: `${s.miniPill} ${V ? s.activeMiniPill : ""}`,
|
|
1637
|
+
onClick: () => _e((e) => !e),
|
|
1638
|
+
children: V ? "✏️ Editor" : "👁️ Preview"
|
|
852
1639
|
}),
|
|
853
|
-
/* @__PURE__ */
|
|
1640
|
+
/* @__PURE__ */ f("button", {
|
|
854
1641
|
type: "button",
|
|
855
1642
|
className: s.saveBtn,
|
|
856
|
-
onClick:
|
|
1643
|
+
onClick: Be,
|
|
857
1644
|
children: "✨ Save Page"
|
|
858
1645
|
})
|
|
859
1646
|
]
|
|
860
1647
|
})]
|
|
861
1648
|
}),
|
|
862
|
-
/* @__PURE__ */
|
|
1649
|
+
/* @__PURE__ */ p("div", {
|
|
863
1650
|
className: s.langBar,
|
|
864
1651
|
"aria-label": "Page languages",
|
|
865
|
-
children: [/* @__PURE__ */
|
|
1652
|
+
children: [/* @__PURE__ */ p("div", {
|
|
866
1653
|
className: s.langList,
|
|
867
1654
|
children: [
|
|
868
|
-
/* @__PURE__ */
|
|
1655
|
+
/* @__PURE__ */ f("span", {
|
|
869
1656
|
className: s.langTitle,
|
|
870
1657
|
children: "🌐 Languages:"
|
|
871
1658
|
}),
|
|
872
|
-
|
|
873
|
-
className: `${s.langChip} ${
|
|
874
|
-
children: [/* @__PURE__ */
|
|
1659
|
+
w.map((e) => /* @__PURE__ */ p("div", {
|
|
1660
|
+
className: `${s.langChip} ${D === e.code ? s.activeLangChip : ""}`,
|
|
1661
|
+
children: [/* @__PURE__ */ p("button", {
|
|
875
1662
|
type: "button",
|
|
876
1663
|
className: s.langSelectBtn,
|
|
877
|
-
onClick: () =>
|
|
1664
|
+
onClick: () => O(e.code),
|
|
878
1665
|
children: [
|
|
879
1666
|
e.label,
|
|
880
1667
|
" ",
|
|
881
|
-
/* @__PURE__ */
|
|
1668
|
+
/* @__PURE__ */ p("small", { children: [
|
|
882
1669
|
"(",
|
|
883
1670
|
e.code,
|
|
884
1671
|
")"
|
|
885
1672
|
] })
|
|
886
1673
|
]
|
|
887
|
-
}), !
|
|
1674
|
+
}), !V && e.code !== E && /* @__PURE__ */ f("button", {
|
|
888
1675
|
type: "button",
|
|
889
1676
|
className: s.langRemoveBtn,
|
|
890
1677
|
"aria-label": `Remove ${e.label}`,
|
|
891
|
-
onClick: () =>
|
|
1678
|
+
onClick: () => Ne(e.code),
|
|
892
1679
|
children: "✕"
|
|
893
1680
|
})]
|
|
894
1681
|
}, e.code)),
|
|
895
|
-
!
|
|
1682
|
+
!V && /* @__PURE__ */ f("button", {
|
|
896
1683
|
type: "button",
|
|
897
1684
|
className: s.addLangBtn,
|
|
898
|
-
onClick: () =>
|
|
899
|
-
children:
|
|
1685
|
+
onClick: () => ce((e) => !e),
|
|
1686
|
+
children: se ? "Close" : "+ Add Language"
|
|
900
1687
|
})
|
|
901
1688
|
]
|
|
902
|
-
}), !
|
|
1689
|
+
}), !V && se && /* @__PURE__ */ p("div", {
|
|
903
1690
|
className: s.addLangPanel,
|
|
904
|
-
children: [/* @__PURE__ */
|
|
1691
|
+
children: [/* @__PURE__ */ f("div", {
|
|
905
1692
|
className: s.quickLangRow,
|
|
906
|
-
children: a.filter((e) => !
|
|
1693
|
+
children: a.filter((e) => !w.some((t) => t.code === e.code)).map((e) => /* @__PURE__ */ p("button", {
|
|
907
1694
|
type: "button",
|
|
908
1695
|
className: s.quickLangChip,
|
|
909
|
-
onClick: () =>
|
|
1696
|
+
onClick: () => Me(e.code, e.label),
|
|
910
1697
|
children: [
|
|
911
1698
|
"+ ",
|
|
912
1699
|
e.label,
|
|
@@ -915,27 +1702,27 @@ function _({ themeMode: o = "light", starterPreset: c = "invitation", initialLan
|
|
|
915
1702
|
")"
|
|
916
1703
|
]
|
|
917
1704
|
}, e.code))
|
|
918
|
-
}), /* @__PURE__ */
|
|
1705
|
+
}), /* @__PURE__ */ p("form", {
|
|
919
1706
|
className: s.customLangForm,
|
|
920
1707
|
onSubmit: (e) => {
|
|
921
|
-
e.preventDefault(),
|
|
1708
|
+
e.preventDefault(), Me(le, de);
|
|
922
1709
|
},
|
|
923
1710
|
children: [
|
|
924
|
-
/* @__PURE__ */
|
|
1711
|
+
/* @__PURE__ */ f("input", {
|
|
925
1712
|
type: "text",
|
|
926
1713
|
placeholder: "Code (e.g. de, ja)",
|
|
927
|
-
value:
|
|
928
|
-
onChange: (e) =>
|
|
1714
|
+
value: le,
|
|
1715
|
+
onChange: (e) => ue(e.target.value),
|
|
929
1716
|
required: !0
|
|
930
1717
|
}),
|
|
931
|
-
/* @__PURE__ */
|
|
1718
|
+
/* @__PURE__ */ f("input", {
|
|
932
1719
|
type: "text",
|
|
933
1720
|
placeholder: "Language Name (e.g. Deutsch)",
|
|
934
|
-
value:
|
|
935
|
-
onChange: (e) =>
|
|
1721
|
+
value: de,
|
|
1722
|
+
onChange: (e) => fe(e.target.value),
|
|
936
1723
|
required: !0
|
|
937
1724
|
}),
|
|
938
|
-
/* @__PURE__ */
|
|
1725
|
+
/* @__PURE__ */ f("button", {
|
|
939
1726
|
type: "submit",
|
|
940
1727
|
className: s.primaryMiniBtn,
|
|
941
1728
|
children: "Add"
|
|
@@ -944,23 +1731,27 @@ function _({ themeMode: o = "light", starterPreset: c = "invitation", initialLan
|
|
|
944
1731
|
})]
|
|
945
1732
|
})]
|
|
946
1733
|
}),
|
|
947
|
-
|
|
1734
|
+
xe && /* @__PURE__ */ f("div", {
|
|
948
1735
|
className: s.toast,
|
|
949
1736
|
role: "status",
|
|
950
|
-
children:
|
|
1737
|
+
children: xe
|
|
951
1738
|
}),
|
|
952
|
-
/* @__PURE__ */
|
|
953
|
-
className: `${s.workspace} ${
|
|
1739
|
+
/* @__PURE__ */ p("div", {
|
|
1740
|
+
className: `${s.workspace} ${V ? s.previewOnlyGrid : ""}`,
|
|
954
1741
|
children: [
|
|
955
|
-
!
|
|
1742
|
+
!V && /* @__PURE__ */ p("aside", {
|
|
956
1743
|
className: s.palette,
|
|
957
|
-
"aria-label": "
|
|
958
|
-
children: [/* @__PURE__ */
|
|
1744
|
+
"aria-label": "Theme, style and widget palette",
|
|
1745
|
+
children: [/* @__PURE__ */ f("div", {
|
|
959
1746
|
className: s.catTabs,
|
|
960
1747
|
children: [
|
|
961
1748
|
{
|
|
962
1749
|
id: "base",
|
|
963
|
-
label: `🎨
|
|
1750
|
+
label: `🎨 Themes (${C.length})`
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
id: "style",
|
|
1754
|
+
label: "🎛️ Customize"
|
|
964
1755
|
},
|
|
965
1756
|
{
|
|
966
1757
|
id: "text",
|
|
@@ -976,107 +1767,298 @@ function _({ themeMode: o = "light", starterPreset: c = "invitation", initialLan
|
|
|
976
1767
|
},
|
|
977
1768
|
{
|
|
978
1769
|
id: "animate",
|
|
979
|
-
label: "🎭
|
|
1770
|
+
label: "🎭 Cartoon"
|
|
980
1771
|
},
|
|
981
1772
|
{
|
|
982
1773
|
id: "media",
|
|
983
1774
|
label: "🎵 Media"
|
|
984
1775
|
}
|
|
985
|
-
].map((e) => /* @__PURE__ */
|
|
1776
|
+
].map((e) => /* @__PURE__ */ f("button", {
|
|
986
1777
|
type: "button",
|
|
987
|
-
className: `${s.catBtn} ${
|
|
988
|
-
onClick: () =>
|
|
1778
|
+
className: `${s.catBtn} ${k === e.id ? s.activeCat : ""}`,
|
|
1779
|
+
onClick: () => he(e.id),
|
|
989
1780
|
children: e.label
|
|
990
1781
|
}, e.id))
|
|
991
|
-
}),
|
|
1782
|
+
}), k === "base" ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("div", {
|
|
1783
|
+
className: s.tplCatRow,
|
|
1784
|
+
children: ee.map((e) => /* @__PURE__ */ f("button", {
|
|
1785
|
+
type: "button",
|
|
1786
|
+
className: `${s.tplCatPill} ${A === e.id ? s.activeTplCat : ""}`,
|
|
1787
|
+
onClick: () => ge(e.id),
|
|
1788
|
+
children: e.label
|
|
1789
|
+
}, e.id))
|
|
1790
|
+
}), /* @__PURE__ */ f("div", {
|
|
992
1791
|
className: s.paletteList,
|
|
993
|
-
children:
|
|
1792
|
+
children: Ae.map((e) => /* @__PURE__ */ p("button", {
|
|
994
1793
|
type: "button",
|
|
995
|
-
className: `${s.tplCard} ${
|
|
996
|
-
onClick: () =>
|
|
997
|
-
children: [/* @__PURE__ */
|
|
1794
|
+
className: `${s.tplCard} ${j === e.id ? s.activeTpl : ""}`,
|
|
1795
|
+
onClick: () => je(e),
|
|
1796
|
+
children: [/* @__PURE__ */ p("div", {
|
|
998
1797
|
className: s.tplTop,
|
|
999
|
-
children: [/* @__PURE__ */
|
|
1000
|
-
}), /* @__PURE__ */
|
|
1798
|
+
children: [/* @__PURE__ */ f("strong", { children: e.name }), /* @__PURE__ */ f("span", { children: e.badge })]
|
|
1799
|
+
}), /* @__PURE__ */ f("p", { children: e.description })]
|
|
1001
1800
|
}, e.id))
|
|
1002
|
-
}) : /* @__PURE__ */
|
|
1801
|
+
})] }) : k === "style" ? /* @__PURE__ */ p("div", {
|
|
1802
|
+
className: s.customizerPanel,
|
|
1803
|
+
children: [
|
|
1804
|
+
/* @__PURE__ */ p("div", {
|
|
1805
|
+
className: s.custGroup,
|
|
1806
|
+
children: [/* @__PURE__ */ f("span", {
|
|
1807
|
+
className: s.custLabel,
|
|
1808
|
+
children: "Typography Style"
|
|
1809
|
+
}), /* @__PURE__ */ f("div", {
|
|
1810
|
+
className: s.custGrid2,
|
|
1811
|
+
children: [
|
|
1812
|
+
{
|
|
1813
|
+
id: "classic",
|
|
1814
|
+
label: "Classic Serif"
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
id: "modern",
|
|
1818
|
+
label: "Modern Sans"
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
id: "editorial",
|
|
1822
|
+
label: "Editorial"
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
id: "playful",
|
|
1826
|
+
label: "Playful"
|
|
1827
|
+
}
|
|
1828
|
+
].map((e) => /* @__PURE__ */ f("button", {
|
|
1829
|
+
type: "button",
|
|
1830
|
+
className: `${s.custBtn} ${N.fontStyle === e.id ? s.activeCustBtn : ""}`,
|
|
1831
|
+
onClick: () => X({ fontStyle: e.id }),
|
|
1832
|
+
children: e.label
|
|
1833
|
+
}, e.id))
|
|
1834
|
+
})]
|
|
1835
|
+
}),
|
|
1836
|
+
/* @__PURE__ */ p("div", {
|
|
1837
|
+
className: s.custGroup,
|
|
1838
|
+
children: [/* @__PURE__ */ f("span", {
|
|
1839
|
+
className: s.custLabel,
|
|
1840
|
+
children: "Accent Color"
|
|
1841
|
+
}), /* @__PURE__ */ p("div", {
|
|
1842
|
+
className: s.swatchRow,
|
|
1843
|
+
children: [te.map((e) => /* @__PURE__ */ f("button", {
|
|
1844
|
+
type: "button",
|
|
1845
|
+
"aria-label": e.label,
|
|
1846
|
+
title: e.label,
|
|
1847
|
+
className: `${s.swatchDot} ${N.accentColor === e.hex ? s.activeSwatch : ""}`,
|
|
1848
|
+
style: { backgroundColor: e.hex },
|
|
1849
|
+
onClick: () => X({ accentColor: e.hex })
|
|
1850
|
+
}, e.hex)), /* @__PURE__ */ f("input", {
|
|
1851
|
+
type: "color",
|
|
1852
|
+
"aria-label": "Custom accent color",
|
|
1853
|
+
className: s.colorInput,
|
|
1854
|
+
value: N.accentColor,
|
|
1855
|
+
onChange: (e) => X({ accentColor: e.target.value })
|
|
1856
|
+
})]
|
|
1857
|
+
})]
|
|
1858
|
+
}),
|
|
1859
|
+
/* @__PURE__ */ p("div", {
|
|
1860
|
+
className: s.custGroup,
|
|
1861
|
+
children: [/* @__PURE__ */ f("span", {
|
|
1862
|
+
className: s.custLabel,
|
|
1863
|
+
children: "Block Card Surface"
|
|
1864
|
+
}), /* @__PURE__ */ f("div", {
|
|
1865
|
+
className: s.custGrid2,
|
|
1866
|
+
children: [
|
|
1867
|
+
{
|
|
1868
|
+
id: "glass",
|
|
1869
|
+
label: "Frosted Glass"
|
|
1870
|
+
},
|
|
1871
|
+
{
|
|
1872
|
+
id: "solid",
|
|
1873
|
+
label: "Crisp Solid"
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
id: "bordered",
|
|
1877
|
+
label: "Framed"
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
id: "minimal",
|
|
1881
|
+
label: "Minimal"
|
|
1882
|
+
}
|
|
1883
|
+
].map((e) => /* @__PURE__ */ f("button", {
|
|
1884
|
+
type: "button",
|
|
1885
|
+
className: `${s.custBtn} ${N.cardStyle === e.id ? s.activeCustBtn : ""}`,
|
|
1886
|
+
onClick: () => X({ cardStyle: e.id }),
|
|
1887
|
+
children: e.label
|
|
1888
|
+
}, e.id))
|
|
1889
|
+
})]
|
|
1890
|
+
}),
|
|
1891
|
+
/* @__PURE__ */ p("div", {
|
|
1892
|
+
className: s.custGroup,
|
|
1893
|
+
children: [/* @__PURE__ */ f("span", {
|
|
1894
|
+
className: s.custLabel,
|
|
1895
|
+
children: "Ambient Motion"
|
|
1896
|
+
}), /* @__PURE__ */ f("div", {
|
|
1897
|
+
className: s.custGrid3,
|
|
1898
|
+
children: [
|
|
1899
|
+
"off",
|
|
1900
|
+
"gentle",
|
|
1901
|
+
"festive"
|
|
1902
|
+
].map((e) => /* @__PURE__ */ f("button", {
|
|
1903
|
+
type: "button",
|
|
1904
|
+
className: `${s.custBtn} ${N.motionIntensity === e ? s.activeCustBtn : ""}`,
|
|
1905
|
+
onClick: () => X({ motionIntensity: e }),
|
|
1906
|
+
children: e.charAt(0).toUpperCase() + e.slice(1)
|
|
1907
|
+
}, e))
|
|
1908
|
+
})]
|
|
1909
|
+
}),
|
|
1910
|
+
/* @__PURE__ */ p("div", {
|
|
1911
|
+
className: s.custGroup,
|
|
1912
|
+
children: [/* @__PURE__ */ f("span", {
|
|
1913
|
+
className: s.custLabel,
|
|
1914
|
+
children: "Background Pattern"
|
|
1915
|
+
}), /* @__PURE__ */ f("div", {
|
|
1916
|
+
className: s.custGrid2,
|
|
1917
|
+
children: [
|
|
1918
|
+
{
|
|
1919
|
+
id: "none",
|
|
1920
|
+
label: "Clean"
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
id: "dots",
|
|
1924
|
+
label: "Polka Dots"
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
id: "grid",
|
|
1928
|
+
label: "Soft Grid"
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
id: "glow",
|
|
1932
|
+
label: "Halo Glow"
|
|
1933
|
+
}
|
|
1934
|
+
].map((e) => /* @__PURE__ */ f("button", {
|
|
1935
|
+
type: "button",
|
|
1936
|
+
className: `${s.custBtn} ${N.patternOverlay === e.id ? s.activeCustBtn : ""}`,
|
|
1937
|
+
onClick: () => X({ patternOverlay: e.id }),
|
|
1938
|
+
children: e.label
|
|
1939
|
+
}, e.id))
|
|
1940
|
+
})]
|
|
1941
|
+
})
|
|
1942
|
+
]
|
|
1943
|
+
}) : /* @__PURE__ */ f("div", {
|
|
1003
1944
|
className: s.paletteList,
|
|
1004
|
-
children:
|
|
1945
|
+
children: S.filter((e) => e.category === k).map((e) => /* @__PURE__ */ p("div", {
|
|
1005
1946
|
draggable: !0,
|
|
1006
1947
|
onDragStart: (t) => {
|
|
1007
|
-
|
|
1948
|
+
W(e.type), t.dataTransfer.setData("text/smileyyfy-widget", e.type);
|
|
1008
1949
|
},
|
|
1009
1950
|
onDragEnd: () => {
|
|
1010
|
-
|
|
1951
|
+
W(""), K(null);
|
|
1011
1952
|
},
|
|
1012
1953
|
className: s.widgetTile,
|
|
1013
|
-
children: [/* @__PURE__ */
|
|
1954
|
+
children: [/* @__PURE__ */ p("div", {
|
|
1014
1955
|
className: s.widgetTileTop,
|
|
1015
|
-
children: [/* @__PURE__ */
|
|
1956
|
+
children: [/* @__PURE__ */ p("span", { children: [
|
|
1016
1957
|
e.icon,
|
|
1017
1958
|
" ",
|
|
1018
|
-
/* @__PURE__ */
|
|
1019
|
-
] }), /* @__PURE__ */
|
|
1959
|
+
/* @__PURE__ */ f("strong", { children: e.name })
|
|
1960
|
+
] }), /* @__PURE__ */ f("button", {
|
|
1020
1961
|
type: "button",
|
|
1021
1962
|
className: s.addBtn,
|
|
1022
|
-
onClick: () =>
|
|
1963
|
+
onClick: () => Pe(e.type),
|
|
1023
1964
|
children: "+ Add"
|
|
1024
1965
|
})]
|
|
1025
|
-
}), /* @__PURE__ */
|
|
1966
|
+
}), /* @__PURE__ */ f("p", {
|
|
1026
1967
|
className: s.widgetSummary,
|
|
1027
1968
|
children: e.summary
|
|
1028
1969
|
})]
|
|
1029
1970
|
}, e.type))
|
|
1030
1971
|
})]
|
|
1031
1972
|
}),
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
-
className:
|
|
1973
|
+
/* @__PURE__ */ p("main", {
|
|
1974
|
+
className: [
|
|
1975
|
+
s.canvas,
|
|
1976
|
+
s[`surf_${q.surfaceKey}`] || s.surf_blush,
|
|
1977
|
+
s[`font_${N.fontStyle}`] || s.font_classic,
|
|
1978
|
+
s[`pat_${N.patternOverlay}`] || "",
|
|
1979
|
+
N.viewStyle === "poster" ? s.viewPoster : "",
|
|
1980
|
+
H === "mobile" ? s.canvasMobile : H === "tablet" ? s.canvasTablet : ""
|
|
1981
|
+
].filter(Boolean).join(" "),
|
|
1034
1982
|
onDragOver: (e) => e.preventDefault(),
|
|
1035
|
-
onDrop: (e) =>
|
|
1036
|
-
children: [/* @__PURE__ */
|
|
1983
|
+
onDrop: (e) => ze(e),
|
|
1984
|
+
children: [$ > 0 && /* @__PURE__ */ f("div", {
|
|
1037
1985
|
className: s.floatingLayer,
|
|
1038
1986
|
"aria-hidden": "true",
|
|
1039
|
-
children: Array.from({ length:
|
|
1987
|
+
children: Array.from({ length: $ }, (e, t) => /* @__PURE__ */ f("span", {
|
|
1040
1988
|
className: s.floater,
|
|
1041
1989
|
style: {
|
|
1042
1990
|
left: `${(t * 31 + 7) % 92}%`,
|
|
1043
1991
|
animationDelay: `${t % 6 * .6}s`,
|
|
1044
1992
|
animationDuration: `${4.2 + t % 4}s`
|
|
1045
1993
|
},
|
|
1046
|
-
children:
|
|
1047
|
-
}, `${
|
|
1048
|
-
}), /* @__PURE__ */
|
|
1049
|
-
className: s.canvasStack
|
|
1050
|
-
children: F.length
|
|
1994
|
+
children: Ue[t % Ue.length]
|
|
1995
|
+
}, `${q.id}-${t}`))
|
|
1996
|
+
}), /* @__PURE__ */ p("div", {
|
|
1997
|
+
className: `${s.canvasStack} ${N.viewStyle === "poster" ? s.posterInner : ""}`,
|
|
1998
|
+
children: [N.viewStyle === "story_slides" && F.length > 0 && /* @__PURE__ */ p("div", {
|
|
1999
|
+
className: s.slideNavBar,
|
|
2000
|
+
children: [
|
|
2001
|
+
/* @__PURE__ */ f("button", {
|
|
2002
|
+
type: "button",
|
|
2003
|
+
className: s.slideBtn,
|
|
2004
|
+
disabled: z <= 0,
|
|
2005
|
+
onClick: () => B((e) => Math.max(0, e - 1)),
|
|
2006
|
+
children: "← Prev"
|
|
2007
|
+
}),
|
|
2008
|
+
/* @__PURE__ */ f("div", {
|
|
2009
|
+
className: s.slideDots,
|
|
2010
|
+
children: F.map((e, t) => /* @__PURE__ */ f("button", {
|
|
2011
|
+
type: "button",
|
|
2012
|
+
"aria-label": `Slide ${t + 1}`,
|
|
2013
|
+
className: `${s.slideDot} ${t === z ? s.activeSlideDot : ""}`,
|
|
2014
|
+
onClick: () => {
|
|
2015
|
+
B(t), V || R(e.id);
|
|
2016
|
+
}
|
|
2017
|
+
}, e.id))
|
|
2018
|
+
}),
|
|
2019
|
+
/* @__PURE__ */ f("button", {
|
|
2020
|
+
type: "button",
|
|
2021
|
+
className: s.slideBtn,
|
|
2022
|
+
disabled: z >= F.length - 1,
|
|
2023
|
+
onClick: () => B((e) => Math.min(F.length - 1, e + 1)),
|
|
2024
|
+
children: "Next →"
|
|
2025
|
+
})
|
|
2026
|
+
]
|
|
2027
|
+
}), F.length === 0 ? /* @__PURE__ */ p("div", {
|
|
1051
2028
|
className: s.dropHint,
|
|
1052
2029
|
children: [
|
|
1053
2030
|
"Drag a widget from the left palette or click ",
|
|
1054
|
-
/* @__PURE__ */
|
|
2031
|
+
/* @__PURE__ */ f("strong", { children: "+ Add" }),
|
|
1055
2032
|
" to start building your page."
|
|
1056
2033
|
]
|
|
1057
|
-
}) :
|
|
1058
|
-
let n = !
|
|
1059
|
-
return /* @__PURE__ */
|
|
1060
|
-
draggable: !
|
|
2034
|
+
}) : We.map((e) => {
|
|
2035
|
+
let t = F.findIndex((t) => t.id === e.id), n = !V && L === e.id, r = !V && be === t, i = S.find((t) => t.type === e.type);
|
|
2036
|
+
return /* @__PURE__ */ p("div", {
|
|
2037
|
+
draggable: !V,
|
|
1061
2038
|
onDragStart: (t) => {
|
|
1062
|
-
|
|
2039
|
+
G(e.id), t.dataTransfer.setData("text/smileyyfy-block", e.id);
|
|
1063
2040
|
},
|
|
1064
2041
|
onDragEnd: () => {
|
|
1065
|
-
|
|
2042
|
+
G(""), K(null);
|
|
1066
2043
|
},
|
|
1067
2044
|
onDragOver: (e) => {
|
|
1068
|
-
e.preventDefault(),
|
|
2045
|
+
e.preventDefault(), K(t);
|
|
1069
2046
|
},
|
|
1070
2047
|
onDrop: (e) => {
|
|
1071
|
-
e.stopPropagation(),
|
|
2048
|
+
e.stopPropagation(), ze(e, t);
|
|
1072
2049
|
},
|
|
1073
2050
|
onClick: () => {
|
|
1074
|
-
|
|
2051
|
+
V || R(e.id);
|
|
1075
2052
|
},
|
|
1076
|
-
className:
|
|
1077
|
-
|
|
2053
|
+
className: [
|
|
2054
|
+
s.blockShell,
|
|
2055
|
+
s[`card_${N.cardStyle}`] || s.card_glass,
|
|
2056
|
+
n ? s.selectedBlock : "",
|
|
2057
|
+
r ? s.dropActive : ""
|
|
2058
|
+
].filter(Boolean).join(" "),
|
|
2059
|
+
children: [!V && /* @__PURE__ */ p("div", {
|
|
1078
2060
|
className: s.blockChrome,
|
|
1079
|
-
children: [/* @__PURE__ */
|
|
2061
|
+
children: [/* @__PURE__ */ p("span", {
|
|
1080
2062
|
className: s.dragHandle,
|
|
1081
2063
|
children: [
|
|
1082
2064
|
"⋮⋮ ",
|
|
@@ -1084,136 +2066,136 @@ function _({ themeMode: o = "light", starterPreset: c = "invitation", initialLan
|
|
|
1084
2066
|
" ",
|
|
1085
2067
|
i?.name || e.type
|
|
1086
2068
|
]
|
|
1087
|
-
}), /* @__PURE__ */
|
|
2069
|
+
}), /* @__PURE__ */ p("div", {
|
|
1088
2070
|
className: s.blockBtns,
|
|
1089
2071
|
children: [
|
|
1090
|
-
/* @__PURE__ */
|
|
2072
|
+
/* @__PURE__ */ f("button", {
|
|
1091
2073
|
type: "button",
|
|
1092
2074
|
"aria-label": "Move up",
|
|
1093
2075
|
onClick: (t) => {
|
|
1094
|
-
t.stopPropagation(),
|
|
2076
|
+
t.stopPropagation(), Ie(e.id, -1);
|
|
1095
2077
|
},
|
|
1096
2078
|
children: "↑"
|
|
1097
2079
|
}),
|
|
1098
|
-
/* @__PURE__ */
|
|
2080
|
+
/* @__PURE__ */ f("button", {
|
|
1099
2081
|
type: "button",
|
|
1100
2082
|
"aria-label": "Move down",
|
|
1101
2083
|
onClick: (t) => {
|
|
1102
|
-
t.stopPropagation(),
|
|
2084
|
+
t.stopPropagation(), Ie(e.id, 1);
|
|
1103
2085
|
},
|
|
1104
2086
|
children: "↓"
|
|
1105
2087
|
}),
|
|
1106
|
-
/* @__PURE__ */
|
|
2088
|
+
/* @__PURE__ */ f("button", {
|
|
1107
2089
|
type: "button",
|
|
1108
2090
|
"aria-label": "Duplicate widget",
|
|
1109
2091
|
onClick: (t) => {
|
|
1110
|
-
t.stopPropagation(),
|
|
2092
|
+
t.stopPropagation(), Fe(e.id);
|
|
1111
2093
|
},
|
|
1112
2094
|
children: "⧉"
|
|
1113
2095
|
}),
|
|
1114
|
-
/* @__PURE__ */
|
|
2096
|
+
/* @__PURE__ */ f("button", {
|
|
1115
2097
|
type: "button",
|
|
1116
2098
|
"aria-label": "Remove widget",
|
|
1117
2099
|
onClick: (t) => {
|
|
1118
|
-
t.stopPropagation(),
|
|
2100
|
+
t.stopPropagation(), Re(e.id);
|
|
1119
2101
|
},
|
|
1120
2102
|
children: "✕"
|
|
1121
2103
|
})
|
|
1122
2104
|
]
|
|
1123
2105
|
})]
|
|
1124
|
-
}),
|
|
2106
|
+
}), He(e)]
|
|
1125
2107
|
}, e.id);
|
|
1126
|
-
})
|
|
2108
|
+
})]
|
|
1127
2109
|
})]
|
|
1128
2110
|
}),
|
|
1129
|
-
!
|
|
2111
|
+
!V && /* @__PURE__ */ p("aside", {
|
|
1130
2112
|
className: s.inspector,
|
|
1131
2113
|
"aria-label": "Focused widget editor",
|
|
1132
|
-
children: [/* @__PURE__ */
|
|
2114
|
+
children: [/* @__PURE__ */ p("div", {
|
|
1133
2115
|
className: s.inspHeader,
|
|
1134
|
-
children: [/* @__PURE__ */
|
|
2116
|
+
children: [/* @__PURE__ */ f("h3", {
|
|
1135
2117
|
className: s.inspTitle,
|
|
1136
2118
|
children: "⚙️ Quick Edit"
|
|
1137
|
-
}), /* @__PURE__ */
|
|
2119
|
+
}), /* @__PURE__ */ p("span", {
|
|
1138
2120
|
className: s.langPillMini,
|
|
1139
|
-
children: ["🌐 ",
|
|
2121
|
+
children: ["🌐 ", ke?.label || D]
|
|
1140
2122
|
})]
|
|
1141
|
-
}),
|
|
2123
|
+
}), J && Y ? /* @__PURE__ */ p("div", {
|
|
1142
2124
|
className: s.inspFields,
|
|
1143
2125
|
children: [
|
|
1144
|
-
/* @__PURE__ */
|
|
2126
|
+
/* @__PURE__ */ p("div", {
|
|
1145
2127
|
className: s.inspBadge,
|
|
1146
2128
|
children: [
|
|
1147
|
-
|
|
2129
|
+
Y.icon,
|
|
1148
2130
|
" ",
|
|
1149
|
-
|
|
2131
|
+
Y.name
|
|
1150
2132
|
]
|
|
1151
2133
|
}),
|
|
1152
|
-
|
|
2134
|
+
D !== E && /* @__PURE__ */ p("div", {
|
|
1153
2135
|
className: s.langHint,
|
|
1154
2136
|
children: [
|
|
1155
2137
|
"Editing ",
|
|
1156
|
-
/* @__PURE__ */
|
|
2138
|
+
/* @__PURE__ */ f("strong", { children: ke?.label }),
|
|
1157
2139
|
" text. Blank fields fall back to ",
|
|
1158
|
-
|
|
2140
|
+
w[0]?.label,
|
|
1159
2141
|
"."
|
|
1160
2142
|
]
|
|
1161
2143
|
}),
|
|
1162
|
-
|
|
1163
|
-
let t =
|
|
1164
|
-
return e.type === "boolean" ? /* @__PURE__ */
|
|
2144
|
+
Y.fields.map((e) => {
|
|
2145
|
+
let t = ne(e), n = D !== E && t, r = n ? J.translations?.[D]?.[e.key] ?? "" : J.data[e.key], i = n ? String(J.data[e.key] || e.placeholder || "") : e.placeholder;
|
|
2146
|
+
return e.type === "boolean" ? /* @__PURE__ */ p("label", {
|
|
1165
2147
|
className: s.checkField,
|
|
1166
|
-
children: [/* @__PURE__ */
|
|
2148
|
+
children: [/* @__PURE__ */ f("input", {
|
|
1167
2149
|
type: "checkbox",
|
|
1168
2150
|
checked: !!r,
|
|
1169
|
-
onChange: (t) =>
|
|
1170
|
-
}), /* @__PURE__ */
|
|
1171
|
-
}, e.key) : e.type === "select" && Array.isArray(e.options) ? /* @__PURE__ */
|
|
2151
|
+
onChange: (t) => Q(J.id, e, t.target.checked)
|
|
2152
|
+
}), /* @__PURE__ */ f("span", { children: e.label })]
|
|
2153
|
+
}, e.key) : e.type === "select" && Array.isArray(e.options) ? /* @__PURE__ */ p("label", {
|
|
1172
2154
|
className: s.textField,
|
|
1173
|
-
children: [/* @__PURE__ */
|
|
2155
|
+
children: [/* @__PURE__ */ f("span", { children: e.label }), /* @__PURE__ */ f("select", {
|
|
1174
2156
|
value: String(r || ""),
|
|
1175
|
-
onChange: (t) =>
|
|
1176
|
-
children: e.options.map((e) => /* @__PURE__ */
|
|
2157
|
+
onChange: (t) => Q(J.id, e, t.target.value),
|
|
2158
|
+
children: e.options.map((e) => /* @__PURE__ */ f("option", {
|
|
1177
2159
|
value: e.value,
|
|
1178
2160
|
children: e.label
|
|
1179
2161
|
}, e.value))
|
|
1180
2162
|
})]
|
|
1181
|
-
}, e.key) : e.type === "textarea" ? /* @__PURE__ */
|
|
2163
|
+
}, e.key) : e.type === "textarea" ? /* @__PURE__ */ p("label", {
|
|
1182
2164
|
className: s.textField,
|
|
1183
|
-
children: [/* @__PURE__ */
|
|
2165
|
+
children: [/* @__PURE__ */ p("span", { children: [
|
|
1184
2166
|
e.label,
|
|
1185
2167
|
" ",
|
|
1186
|
-
n && /* @__PURE__ */
|
|
2168
|
+
n && /* @__PURE__ */ p("em", { children: [
|
|
1187
2169
|
"(",
|
|
1188
|
-
|
|
2170
|
+
D,
|
|
1189
2171
|
")"
|
|
1190
2172
|
] })
|
|
1191
|
-
] }), /* @__PURE__ */
|
|
2173
|
+
] }), /* @__PURE__ */ f("textarea", {
|
|
1192
2174
|
rows: 3,
|
|
1193
2175
|
value: String(r || ""),
|
|
1194
2176
|
placeholder: i,
|
|
1195
|
-
onChange: (t) =>
|
|
2177
|
+
onChange: (t) => Q(J.id, e, t.target.value)
|
|
1196
2178
|
})]
|
|
1197
|
-
}, e.key) : /* @__PURE__ */
|
|
2179
|
+
}, e.key) : /* @__PURE__ */ p("label", {
|
|
1198
2180
|
className: s.textField,
|
|
1199
|
-
children: [/* @__PURE__ */
|
|
2181
|
+
children: [/* @__PURE__ */ p("span", { children: [
|
|
1200
2182
|
e.label,
|
|
1201
2183
|
" ",
|
|
1202
|
-
n && /* @__PURE__ */
|
|
2184
|
+
n && /* @__PURE__ */ p("em", { children: [
|
|
1203
2185
|
"(",
|
|
1204
|
-
|
|
2186
|
+
D,
|
|
1205
2187
|
")"
|
|
1206
2188
|
] })
|
|
1207
|
-
] }), /* @__PURE__ */
|
|
2189
|
+
] }), /* @__PURE__ */ f("input", {
|
|
1208
2190
|
type: e.type === "date" ? "date" : e.type === "url" ? "url" : "text",
|
|
1209
2191
|
value: String(r || ""),
|
|
1210
2192
|
placeholder: i,
|
|
1211
|
-
onChange: (t) =>
|
|
2193
|
+
onChange: (t) => Q(J.id, e, t.target.value)
|
|
1212
2194
|
})]
|
|
1213
2195
|
}, e.key);
|
|
1214
2196
|
})
|
|
1215
2197
|
]
|
|
1216
|
-
}) : /* @__PURE__ */
|
|
2198
|
+
}) : /* @__PURE__ */ f("p", {
|
|
1217
2199
|
className: s.inspEmpty,
|
|
1218
2200
|
children: "Click any widget on the canvas to edit its text, language content, link, or animation."
|
|
1219
2201
|
})]
|
|
@@ -1224,4 +2206,4 @@ function _({ themeMode: o = "light", starterPreset: c = "invitation", initialLan
|
|
|
1224
2206
|
});
|
|
1225
2207
|
}
|
|
1226
2208
|
//#endregion
|
|
1227
|
-
export {
|
|
2209
|
+
export { y as default };
|