@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
|
@@ -85,47 +85,73 @@ var l = {
|
|
|
85
85
|
"Can’t catch me! 💨",
|
|
86
86
|
"Pretty please? 💖"
|
|
87
87
|
], d = {
|
|
88
|
-
|
|
88
|
+
fontStyle: "classic",
|
|
89
|
+
accentColor: "#ec4899",
|
|
90
|
+
cardStyle: "glass",
|
|
91
|
+
motionIntensity: "festive",
|
|
92
|
+
patternOverlay: "none",
|
|
93
|
+
viewStyle: "scroll"
|
|
94
|
+
}, f = {
|
|
95
|
+
templateId: "tpl_kanchipuram_silk",
|
|
89
96
|
defaultLanguage: "en",
|
|
90
97
|
languages: t,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
themeStyle: {
|
|
99
|
+
fontStyle: "classic",
|
|
100
|
+
accentColor: "#d97706",
|
|
101
|
+
cardStyle: "glass",
|
|
102
|
+
motionIntensity: "festive",
|
|
103
|
+
patternOverlay: "glow",
|
|
104
|
+
viewStyle: "scroll"
|
|
105
|
+
},
|
|
106
|
+
blocks: [
|
|
107
|
+
{
|
|
108
|
+
id: "blk_hero_1",
|
|
109
|
+
type: "hero_header",
|
|
110
|
+
data: {
|
|
111
|
+
badge: "WEDDING INVITATION",
|
|
112
|
+
names: "Aarav & Meera",
|
|
113
|
+
subtitle: "Together with their families, invite you to celebrate"
|
|
114
|
+
},
|
|
115
|
+
translations: { ta: {
|
|
116
|
+
badge: "திருமண அழைப்பிதழ்",
|
|
117
|
+
names: "ஆரவ் & மீரா",
|
|
118
|
+
subtitle: "குடும்பத்தாருடன் இணைந்து எங்கள் திருமண விழாவிற்கு அன்புடன் அழைக்கிறோம்"
|
|
119
|
+
} }
|
|
98
120
|
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
type: "event_details",
|
|
107
|
-
data: {
|
|
108
|
-
date: "2026-12-20",
|
|
109
|
-
time: "06:30 PM",
|
|
110
|
-
venue: "The Lotus Pavilion, ECR, Chennai"
|
|
121
|
+
{
|
|
122
|
+
id: "blk_cartoon_1",
|
|
123
|
+
type: "cartoon_scene_anim",
|
|
124
|
+
data: {
|
|
125
|
+
scene: "cartoon_mandap",
|
|
126
|
+
caption: "Two Souls, One Auspicious Beginning 🌺"
|
|
127
|
+
}
|
|
111
128
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
129
|
+
{
|
|
130
|
+
id: "blk_event_1",
|
|
131
|
+
type: "event_details",
|
|
132
|
+
data: {
|
|
133
|
+
date: "2026-12-20",
|
|
134
|
+
time: "06:30 PM",
|
|
135
|
+
venue: "The Lotus Pavilion, ECR, Chennai"
|
|
136
|
+
},
|
|
137
|
+
translations: { ta: {
|
|
138
|
+
time: "மாலை 06:30 மணி",
|
|
139
|
+
venue: "தி லோட்டஸ் பெவிலியன், இ.சி.ஆர், சென்னை"
|
|
140
|
+
} }
|
|
141
|
+
}
|
|
142
|
+
]
|
|
117
143
|
};
|
|
118
|
-
function
|
|
119
|
-
if (!e) return
|
|
144
|
+
function p(e) {
|
|
145
|
+
if (!e) return f;
|
|
120
146
|
if (typeof e == "string") try {
|
|
121
147
|
let t = JSON.parse(e);
|
|
122
148
|
if (t && typeof t == "object") return t;
|
|
123
149
|
} catch {
|
|
124
|
-
return
|
|
150
|
+
return f;
|
|
125
151
|
}
|
|
126
|
-
return typeof e == "object" ? e :
|
|
152
|
+
return typeof e == "object" && Object.keys(e).length > 0 ? e : f;
|
|
127
153
|
}
|
|
128
|
-
function
|
|
154
|
+
function m({ label: e, targetDate: t }) {
|
|
129
155
|
let [n, a] = o(() => Date.now());
|
|
130
156
|
i(() => {
|
|
131
157
|
let e = window.setInterval(() => a(Date.now()), 1e3);
|
|
@@ -160,9 +186,490 @@ function p({ label: e, targetDate: t }) {
|
|
|
160
186
|
})]
|
|
161
187
|
});
|
|
162
188
|
}
|
|
163
|
-
function
|
|
189
|
+
function h({ scene: e }) {
|
|
190
|
+
return e === "cartoon_couple" ? /* @__PURE__ */ c("svg", {
|
|
191
|
+
viewBox: "0 0 280 116",
|
|
192
|
+
className: r.cartoonSvg,
|
|
193
|
+
"aria-hidden": "true",
|
|
194
|
+
children: [
|
|
195
|
+
/* @__PURE__ */ s("ellipse", {
|
|
196
|
+
cx: "90",
|
|
197
|
+
cy: "102",
|
|
198
|
+
rx: "24",
|
|
199
|
+
ry: "5",
|
|
200
|
+
fill: "rgba(15,23,42,0.16)"
|
|
201
|
+
}),
|
|
202
|
+
/* @__PURE__ */ s("ellipse", {
|
|
203
|
+
cx: "190",
|
|
204
|
+
cy: "102",
|
|
205
|
+
rx: "24",
|
|
206
|
+
ry: "5",
|
|
207
|
+
fill: "rgba(15,23,42,0.16)"
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ c("g", {
|
|
210
|
+
className: r.chibiLeft,
|
|
211
|
+
children: [
|
|
212
|
+
/* @__PURE__ */ s("rect", {
|
|
213
|
+
x: "74",
|
|
214
|
+
y: "66",
|
|
215
|
+
width: "32",
|
|
216
|
+
height: "30",
|
|
217
|
+
rx: "14",
|
|
218
|
+
fill: "#3b82f6"
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ s("circle", {
|
|
221
|
+
cx: "90",
|
|
222
|
+
cy: "46",
|
|
223
|
+
r: "21",
|
|
224
|
+
fill: "#fed7aa",
|
|
225
|
+
stroke: "#fff",
|
|
226
|
+
strokeWidth: "2"
|
|
227
|
+
}),
|
|
228
|
+
/* @__PURE__ */ s("path", {
|
|
229
|
+
d: "M71 42 C75 24, 105 24, 109 42 Z",
|
|
230
|
+
fill: "#1e293b"
|
|
231
|
+
}),
|
|
232
|
+
/* @__PURE__ */ s("circle", {
|
|
233
|
+
cx: "83",
|
|
234
|
+
cy: "47",
|
|
235
|
+
r: "2.6",
|
|
236
|
+
fill: "#1e293b"
|
|
237
|
+
}),
|
|
238
|
+
/* @__PURE__ */ s("circle", {
|
|
239
|
+
cx: "97",
|
|
240
|
+
cy: "47",
|
|
241
|
+
r: "2.6",
|
|
242
|
+
fill: "#1e293b"
|
|
243
|
+
}),
|
|
244
|
+
/* @__PURE__ */ s("ellipse", {
|
|
245
|
+
cx: "77",
|
|
246
|
+
cy: "52",
|
|
247
|
+
rx: "3.8",
|
|
248
|
+
ry: "2.2",
|
|
249
|
+
fill: "#fb7185",
|
|
250
|
+
opacity: "0.6"
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ s("ellipse", {
|
|
253
|
+
cx: "103",
|
|
254
|
+
cy: "52",
|
|
255
|
+
rx: "3.8",
|
|
256
|
+
ry: "2.2",
|
|
257
|
+
fill: "#fb7185",
|
|
258
|
+
opacity: "0.6"
|
|
259
|
+
}),
|
|
260
|
+
/* @__PURE__ */ s("path", {
|
|
261
|
+
d: "M85 55 Q90 60 95 55",
|
|
262
|
+
stroke: "#7c2d12",
|
|
263
|
+
strokeWidth: "2",
|
|
264
|
+
strokeLinecap: "round",
|
|
265
|
+
fill: "none"
|
|
266
|
+
})
|
|
267
|
+
]
|
|
268
|
+
}),
|
|
269
|
+
/* @__PURE__ */ c("g", {
|
|
270
|
+
className: r.chibiRight,
|
|
271
|
+
children: [
|
|
272
|
+
/* @__PURE__ */ s("path", {
|
|
273
|
+
d: "M174 66 L206 66 L212 96 L168 96 Z",
|
|
274
|
+
fill: "#ec4899"
|
|
275
|
+
}),
|
|
276
|
+
/* @__PURE__ */ s("circle", {
|
|
277
|
+
cx: "190",
|
|
278
|
+
cy: "46",
|
|
279
|
+
r: "21",
|
|
280
|
+
fill: "#fed7aa",
|
|
281
|
+
stroke: "#fff",
|
|
282
|
+
strokeWidth: "2"
|
|
283
|
+
}),
|
|
284
|
+
/* @__PURE__ */ s("path", {
|
|
285
|
+
d: "M168 45 C170 22, 210 22, 212 45 Z",
|
|
286
|
+
fill: "#312e81"
|
|
287
|
+
}),
|
|
288
|
+
/* @__PURE__ */ s("circle", {
|
|
289
|
+
cx: "183",
|
|
290
|
+
cy: "47",
|
|
291
|
+
r: "2.6",
|
|
292
|
+
fill: "#1e293b"
|
|
293
|
+
}),
|
|
294
|
+
/* @__PURE__ */ s("circle", {
|
|
295
|
+
cx: "197",
|
|
296
|
+
cy: "47",
|
|
297
|
+
r: "2.6",
|
|
298
|
+
fill: "#1e293b"
|
|
299
|
+
}),
|
|
300
|
+
/* @__PURE__ */ s("ellipse", {
|
|
301
|
+
cx: "177",
|
|
302
|
+
cy: "52",
|
|
303
|
+
rx: "3.8",
|
|
304
|
+
ry: "2.2",
|
|
305
|
+
fill: "#fb7185",
|
|
306
|
+
opacity: "0.65"
|
|
307
|
+
}),
|
|
308
|
+
/* @__PURE__ */ s("ellipse", {
|
|
309
|
+
cx: "203",
|
|
310
|
+
cy: "52",
|
|
311
|
+
rx: "3.8",
|
|
312
|
+
ry: "2.2",
|
|
313
|
+
fill: "#fb7185",
|
|
314
|
+
opacity: "0.65"
|
|
315
|
+
}),
|
|
316
|
+
/* @__PURE__ */ s("path", {
|
|
317
|
+
d: "M185 55 Q190 60 195 55",
|
|
318
|
+
stroke: "#7c2d12",
|
|
319
|
+
strokeWidth: "2",
|
|
320
|
+
strokeLinecap: "round",
|
|
321
|
+
fill: "none"
|
|
322
|
+
})
|
|
323
|
+
]
|
|
324
|
+
}),
|
|
325
|
+
/* @__PURE__ */ s("g", {
|
|
326
|
+
className: r.cartoonHeartPulse,
|
|
327
|
+
children: /* @__PURE__ */ s("path", {
|
|
328
|
+
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",
|
|
329
|
+
fill: "#f43f5e"
|
|
330
|
+
})
|
|
331
|
+
})
|
|
332
|
+
]
|
|
333
|
+
}) : e === "cartoon_proposal" ? /* @__PURE__ */ c("svg", {
|
|
334
|
+
viewBox: "0 0 280 116",
|
|
335
|
+
className: r.cartoonSvg,
|
|
336
|
+
"aria-hidden": "true",
|
|
337
|
+
children: [
|
|
338
|
+
/* @__PURE__ */ c("g", {
|
|
339
|
+
className: r.chibiKneel,
|
|
340
|
+
children: [
|
|
341
|
+
/* @__PURE__ */ s("rect", {
|
|
342
|
+
x: "74",
|
|
343
|
+
y: "74",
|
|
344
|
+
width: "28",
|
|
345
|
+
height: "24",
|
|
346
|
+
rx: "10",
|
|
347
|
+
fill: "#6366f1"
|
|
348
|
+
}),
|
|
349
|
+
/* @__PURE__ */ s("circle", {
|
|
350
|
+
cx: "88",
|
|
351
|
+
cy: "54",
|
|
352
|
+
r: "19",
|
|
353
|
+
fill: "#fed7aa",
|
|
354
|
+
stroke: "#fff",
|
|
355
|
+
strokeWidth: "2"
|
|
356
|
+
}),
|
|
357
|
+
/* @__PURE__ */ s("path", {
|
|
358
|
+
d: "M71 49 C75 33, 101 33, 105 49 Z",
|
|
359
|
+
fill: "#1e293b"
|
|
360
|
+
}),
|
|
361
|
+
/* @__PURE__ */ s("circle", {
|
|
362
|
+
cx: "83",
|
|
363
|
+
cy: "54",
|
|
364
|
+
r: "2.4",
|
|
365
|
+
fill: "#1e293b"
|
|
366
|
+
}),
|
|
367
|
+
/* @__PURE__ */ s("circle", {
|
|
368
|
+
cx: "95",
|
|
369
|
+
cy: "54",
|
|
370
|
+
r: "2.4",
|
|
371
|
+
fill: "#1e293b"
|
|
372
|
+
}),
|
|
373
|
+
/* @__PURE__ */ s("circle", {
|
|
374
|
+
cx: "124",
|
|
375
|
+
cy: "62",
|
|
376
|
+
r: "7.5",
|
|
377
|
+
fill: "none",
|
|
378
|
+
stroke: "#f59e0b",
|
|
379
|
+
strokeWidth: "3.2"
|
|
380
|
+
}),
|
|
381
|
+
/* @__PURE__ */ s("polygon", {
|
|
382
|
+
points: "124,48 130,54 124,59 118,54",
|
|
383
|
+
fill: "#38bdf8",
|
|
384
|
+
stroke: "#fff",
|
|
385
|
+
strokeWidth: "1"
|
|
386
|
+
})
|
|
387
|
+
]
|
|
388
|
+
}),
|
|
389
|
+
/* @__PURE__ */ c("g", {
|
|
390
|
+
className: r.chibiJump,
|
|
391
|
+
children: [
|
|
392
|
+
/* @__PURE__ */ s("path", {
|
|
393
|
+
d: "M176 66 L208 66 L214 96 L170 96 Z",
|
|
394
|
+
fill: "#f43f5e"
|
|
395
|
+
}),
|
|
396
|
+
/* @__PURE__ */ s("circle", {
|
|
397
|
+
cx: "192",
|
|
398
|
+
cy: "46",
|
|
399
|
+
r: "20",
|
|
400
|
+
fill: "#fed7aa",
|
|
401
|
+
stroke: "#fff",
|
|
402
|
+
strokeWidth: "2"
|
|
403
|
+
}),
|
|
404
|
+
/* @__PURE__ */ s("path", {
|
|
405
|
+
d: "M171 44 C173 21, 211 21, 213 44 Z",
|
|
406
|
+
fill: "#4c1d95"
|
|
407
|
+
}),
|
|
408
|
+
/* @__PURE__ */ s("text", {
|
|
409
|
+
x: "180",
|
|
410
|
+
y: "50",
|
|
411
|
+
fontSize: "9",
|
|
412
|
+
children: "💖"
|
|
413
|
+
}),
|
|
414
|
+
/* @__PURE__ */ s("text", {
|
|
415
|
+
x: "193",
|
|
416
|
+
y: "50",
|
|
417
|
+
fontSize: "9",
|
|
418
|
+
children: "💖"
|
|
419
|
+
})
|
|
420
|
+
]
|
|
421
|
+
}),
|
|
422
|
+
/* @__PURE__ */ s("text", {
|
|
423
|
+
x: "134",
|
|
424
|
+
y: "32",
|
|
425
|
+
fontSize: "15",
|
|
426
|
+
className: r.cartoonSparkle,
|
|
427
|
+
children: "✨"
|
|
428
|
+
})
|
|
429
|
+
]
|
|
430
|
+
}) : e === "cartoon_mandap" ? /* @__PURE__ */ c("svg", {
|
|
431
|
+
viewBox: "0 0 280 116",
|
|
432
|
+
className: r.cartoonSvg,
|
|
433
|
+
"aria-hidden": "true",
|
|
434
|
+
children: [
|
|
435
|
+
/* @__PURE__ */ s("path", {
|
|
436
|
+
d: "M36 102 L36 30 Q140 4 244 30 L244 102",
|
|
437
|
+
fill: "none",
|
|
438
|
+
stroke: "#f59e0b",
|
|
439
|
+
strokeWidth: "5.5",
|
|
440
|
+
strokeLinecap: "round"
|
|
441
|
+
}),
|
|
442
|
+
/* @__PURE__ */ s("path", {
|
|
443
|
+
d: "M46 32 Q92 46 140 28 Q188 46 234 32",
|
|
444
|
+
fill: "none",
|
|
445
|
+
stroke: "#f97316",
|
|
446
|
+
strokeWidth: "4.5",
|
|
447
|
+
strokeDasharray: "8 6"
|
|
448
|
+
}),
|
|
449
|
+
/* @__PURE__ */ c("g", {
|
|
450
|
+
className: r.chibiSwayA,
|
|
451
|
+
children: [
|
|
452
|
+
/* @__PURE__ */ s("rect", {
|
|
453
|
+
x: "92",
|
|
454
|
+
y: "68",
|
|
455
|
+
width: "30",
|
|
456
|
+
height: "30",
|
|
457
|
+
rx: "10",
|
|
458
|
+
fill: "#fef3c7",
|
|
459
|
+
stroke: "#d97706",
|
|
460
|
+
strokeWidth: "2"
|
|
461
|
+
}),
|
|
462
|
+
/* @__PURE__ */ s("circle", {
|
|
463
|
+
cx: "107",
|
|
464
|
+
cy: "50",
|
|
465
|
+
r: "18",
|
|
466
|
+
fill: "#fed7aa",
|
|
467
|
+
stroke: "#fff",
|
|
468
|
+
strokeWidth: "2"
|
|
469
|
+
}),
|
|
470
|
+
/* @__PURE__ */ s("path", {
|
|
471
|
+
d: "M91 46 C95 31, 119 31, 123 46 Z",
|
|
472
|
+
fill: "#1e293b"
|
|
473
|
+
}),
|
|
474
|
+
/* @__PURE__ */ s("circle", {
|
|
475
|
+
cx: "101",
|
|
476
|
+
cy: "51",
|
|
477
|
+
r: "2.3",
|
|
478
|
+
fill: "#1e293b"
|
|
479
|
+
}),
|
|
480
|
+
/* @__PURE__ */ s("circle", {
|
|
481
|
+
cx: "113",
|
|
482
|
+
cy: "51",
|
|
483
|
+
r: "2.3",
|
|
484
|
+
fill: "#1e293b"
|
|
485
|
+
})
|
|
486
|
+
]
|
|
487
|
+
}),
|
|
488
|
+
/* @__PURE__ */ c("g", {
|
|
489
|
+
className: r.chibiSwayB,
|
|
490
|
+
children: [
|
|
491
|
+
/* @__PURE__ */ s("path", {
|
|
492
|
+
d: "M156 68 L188 68 L194 98 L150 98 Z",
|
|
493
|
+
fill: "#be123c",
|
|
494
|
+
stroke: "#fbbf24",
|
|
495
|
+
strokeWidth: "2"
|
|
496
|
+
}),
|
|
497
|
+
/* @__PURE__ */ s("circle", {
|
|
498
|
+
cx: "172",
|
|
499
|
+
cy: "50",
|
|
500
|
+
r: "18",
|
|
501
|
+
fill: "#fed7aa",
|
|
502
|
+
stroke: "#fff",
|
|
503
|
+
strokeWidth: "2"
|
|
504
|
+
}),
|
|
505
|
+
/* @__PURE__ */ s("path", {
|
|
506
|
+
d: "M154 48 C156 29, 188 29, 190 48 Z",
|
|
507
|
+
fill: "#1e1b4b"
|
|
508
|
+
}),
|
|
509
|
+
/* @__PURE__ */ s("circle", {
|
|
510
|
+
cx: "172",
|
|
511
|
+
cy: "43",
|
|
512
|
+
r: "2.1",
|
|
513
|
+
fill: "#e11d48"
|
|
514
|
+
}),
|
|
515
|
+
/* @__PURE__ */ s("circle", {
|
|
516
|
+
cx: "166",
|
|
517
|
+
cy: "51",
|
|
518
|
+
r: "2.3",
|
|
519
|
+
fill: "#1e293b"
|
|
520
|
+
}),
|
|
521
|
+
/* @__PURE__ */ s("circle", {
|
|
522
|
+
cx: "178",
|
|
523
|
+
cy: "51",
|
|
524
|
+
r: "2.3",
|
|
525
|
+
fill: "#1e293b"
|
|
526
|
+
})
|
|
527
|
+
]
|
|
528
|
+
}),
|
|
529
|
+
/* @__PURE__ */ s("text", {
|
|
530
|
+
x: "132",
|
|
531
|
+
y: "64",
|
|
532
|
+
fontSize: "14",
|
|
533
|
+
className: r.cartoonHeartPulse,
|
|
534
|
+
children: "🌺"
|
|
535
|
+
})
|
|
536
|
+
]
|
|
537
|
+
}) : e === "cartoon_birthday" ? /* @__PURE__ */ c("svg", {
|
|
538
|
+
viewBox: "0 0 280 116",
|
|
539
|
+
className: r.cartoonSvg,
|
|
540
|
+
"aria-hidden": "true",
|
|
541
|
+
children: [/* @__PURE__ */ c("g", {
|
|
542
|
+
className: r.chibiJump,
|
|
543
|
+
children: [
|
|
544
|
+
/* @__PURE__ */ s("polygon", {
|
|
545
|
+
points: "102,12 88,34 116,34",
|
|
546
|
+
fill: "#8b5cf6",
|
|
547
|
+
stroke: "#fbbf24",
|
|
548
|
+
strokeWidth: "2"
|
|
549
|
+
}),
|
|
550
|
+
/* @__PURE__ */ s("rect", {
|
|
551
|
+
x: "86",
|
|
552
|
+
y: "70",
|
|
553
|
+
width: "32",
|
|
554
|
+
height: "28",
|
|
555
|
+
rx: "12",
|
|
556
|
+
fill: "#0ea5e9"
|
|
557
|
+
}),
|
|
558
|
+
/* @__PURE__ */ s("circle", {
|
|
559
|
+
cx: "102",
|
|
560
|
+
cy: "50",
|
|
561
|
+
r: "20",
|
|
562
|
+
fill: "#ffedd5",
|
|
563
|
+
stroke: "#fff",
|
|
564
|
+
strokeWidth: "2"
|
|
565
|
+
}),
|
|
566
|
+
/* @__PURE__ */ s("circle", {
|
|
567
|
+
cx: "95",
|
|
568
|
+
cy: "49",
|
|
569
|
+
r: "2.6",
|
|
570
|
+
fill: "#1e293b"
|
|
571
|
+
}),
|
|
572
|
+
/* @__PURE__ */ s("circle", {
|
|
573
|
+
cx: "109",
|
|
574
|
+
cy: "49",
|
|
575
|
+
r: "2.6",
|
|
576
|
+
fill: "#1e293b"
|
|
577
|
+
})
|
|
578
|
+
]
|
|
579
|
+
}), /* @__PURE__ */ c("g", {
|
|
580
|
+
className: r.cartoonSparkle,
|
|
581
|
+
children: [
|
|
582
|
+
/* @__PURE__ */ s("rect", {
|
|
583
|
+
x: "164",
|
|
584
|
+
y: "64",
|
|
585
|
+
width: "52",
|
|
586
|
+
height: "34",
|
|
587
|
+
rx: "8",
|
|
588
|
+
fill: "#f472b6"
|
|
589
|
+
}),
|
|
590
|
+
/* @__PURE__ */ s("rect", {
|
|
591
|
+
x: "164",
|
|
592
|
+
y: "64",
|
|
593
|
+
width: "52",
|
|
594
|
+
height: "11",
|
|
595
|
+
rx: "5",
|
|
596
|
+
fill: "#fef3c7"
|
|
597
|
+
}),
|
|
598
|
+
/* @__PURE__ */ s("rect", {
|
|
599
|
+
x: "187",
|
|
600
|
+
y: "46",
|
|
601
|
+
width: "6",
|
|
602
|
+
height: "18",
|
|
603
|
+
rx: "2",
|
|
604
|
+
fill: "#38bdf8"
|
|
605
|
+
}),
|
|
606
|
+
/* @__PURE__ */ s("ellipse", {
|
|
607
|
+
cx: "190",
|
|
608
|
+
cy: "41",
|
|
609
|
+
rx: "4.5",
|
|
610
|
+
ry: "6.5",
|
|
611
|
+
fill: "#fbbf24",
|
|
612
|
+
className: r.flameFlicker
|
|
613
|
+
})
|
|
614
|
+
]
|
|
615
|
+
})]
|
|
616
|
+
}) : /* @__PURE__ */ c("svg", {
|
|
617
|
+
viewBox: "0 0 280 116",
|
|
618
|
+
className: r.cartoonSvg,
|
|
619
|
+
"aria-hidden": "true",
|
|
620
|
+
children: [
|
|
621
|
+
/* @__PURE__ */ c("g", {
|
|
622
|
+
className: r.chibiBabyWalk,
|
|
623
|
+
children: [
|
|
624
|
+
/* @__PURE__ */ s("rect", {
|
|
625
|
+
x: "56",
|
|
626
|
+
y: "70",
|
|
627
|
+
width: "28",
|
|
628
|
+
height: "22",
|
|
629
|
+
rx: "11",
|
|
630
|
+
fill: "#38bdf8"
|
|
631
|
+
}),
|
|
632
|
+
/* @__PURE__ */ s("circle", {
|
|
633
|
+
cx: "70",
|
|
634
|
+
cy: "50",
|
|
635
|
+
r: "19",
|
|
636
|
+
fill: "#ffedd5",
|
|
637
|
+
stroke: "#fff",
|
|
638
|
+
strokeWidth: "2"
|
|
639
|
+
}),
|
|
640
|
+
/* @__PURE__ */ s("circle", {
|
|
641
|
+
cx: "63",
|
|
642
|
+
cy: "50",
|
|
643
|
+
r: "2.6",
|
|
644
|
+
fill: "#1e293b"
|
|
645
|
+
}),
|
|
646
|
+
/* @__PURE__ */ s("circle", {
|
|
647
|
+
cx: "77",
|
|
648
|
+
cy: "50",
|
|
649
|
+
r: "2.6",
|
|
650
|
+
fill: "#1e293b"
|
|
651
|
+
})
|
|
652
|
+
]
|
|
653
|
+
}),
|
|
654
|
+
/* @__PURE__ */ s("text", {
|
|
655
|
+
x: "218",
|
|
656
|
+
y: "84",
|
|
657
|
+
fontSize: "24",
|
|
658
|
+
children: "🍼"
|
|
659
|
+
}),
|
|
660
|
+
/* @__PURE__ */ s("text", {
|
|
661
|
+
x: "200",
|
|
662
|
+
y: "38",
|
|
663
|
+
fontSize: "15",
|
|
664
|
+
className: r.cartoonSparkle,
|
|
665
|
+
children: "⭐"
|
|
666
|
+
})
|
|
667
|
+
]
|
|
668
|
+
});
|
|
669
|
+
}
|
|
670
|
+
function g({ scene: e = "cartoon_couple", caption: t = "", leftEmoji: n = "🤵", rightEmoji: a = "👰", spriteSheetUrl: l = "" }) {
|
|
164
671
|
let [u, d] = o(!0), [f, p] = o(0);
|
|
165
|
-
|
|
672
|
+
i(() => {
|
|
166
673
|
if (!u || e !== "custom_sprite" || !l) return;
|
|
167
674
|
let t = window.setInterval(() => p((e) => (e + 1) % 6), 140);
|
|
168
675
|
return () => window.clearInterval(t);
|
|
@@ -170,12 +677,15 @@ function m({ scene: e = "couple_hands", caption: t = "", leftEmoji: n = "🤵",
|
|
|
170
677
|
u,
|
|
171
678
|
e,
|
|
172
679
|
l
|
|
173
|
-
])
|
|
680
|
+
]);
|
|
681
|
+
let m = e.startsWith("cartoon_");
|
|
682
|
+
return /* @__PURE__ */ c("div", {
|
|
174
683
|
className: `${r.spriteBox} ${u ? "" : r.spritePaused}`,
|
|
175
684
|
children: [/* @__PURE__ */ c("div", {
|
|
176
685
|
className: r.spriteStage,
|
|
177
686
|
"aria-hidden": "true",
|
|
178
687
|
children: [
|
|
688
|
+
m && /* @__PURE__ */ s(h, { scene: e }),
|
|
179
689
|
e === "couple_hands" && /* @__PURE__ */ c("div", {
|
|
180
690
|
className: r.coupleScene,
|
|
181
691
|
children: [
|
|
@@ -295,7 +805,7 @@ function m({ scene: e = "couple_hands", caption: t = "", leftEmoji: n = "🤵",
|
|
|
295
805
|
})]
|
|
296
806
|
});
|
|
297
807
|
}
|
|
298
|
-
function
|
|
808
|
+
function _({ mediaMode: e, youtubeUrl: t, title: i, autoPlay: l = !1, loop: u = !0 }) {
|
|
299
809
|
let [d, f] = o(!!l), [p, m] = o(!1), h = a(() => n(t), [t]), g = a(() => {
|
|
300
810
|
if (!h) return "";
|
|
301
811
|
if (e === "audio") return d ? `https://www.youtube.com/embed/${h}?${new URLSearchParams({
|
|
@@ -393,20 +903,24 @@ function h({ mediaMode: e, youtubeUrl: t, title: i, autoPlay: l = !1, loop: u =
|
|
|
393
903
|
children: [e === "audio" ? "🎵" : "🎬", " No valid YouTube URL or video ID configured."]
|
|
394
904
|
});
|
|
395
905
|
}
|
|
396
|
-
function
|
|
397
|
-
let
|
|
906
|
+
function v({ themeMode: n = "light", pageData: f, viewportMode: h = "desktop", initialLanguage: v, onRsvpSubmit: y, onProposalAccept: b }) {
|
|
907
|
+
let x = a(() => p(f), [f]), S = a(() => Array.isArray(x.languages) && x.languages.length > 0 ? x.languages : t, [x.languages]), C = x.defaultLanguage || S[0]?.code || "en", [w, T] = o(v || C), [E, D] = o(0);
|
|
398
908
|
i(() => {
|
|
399
|
-
|
|
400
|
-
}, [
|
|
401
|
-
let
|
|
909
|
+
T(v || C);
|
|
910
|
+
}, [v, C]);
|
|
911
|
+
let O = a(() => e.find((e) => e.id === x.templateId) || e[0], [x.templateId]), k = {
|
|
912
|
+
...d,
|
|
913
|
+
accentColor: O.defaultAccent || d.accentColor,
|
|
914
|
+
...x.themeStyle || {}
|
|
915
|
+
}, A = l[O.floatingStyle] || l.hearts, j = k.motionIntensity === "off" ? 0 : k.motionIntensity === "gentle" ? 6 : 16, M = Array.isArray(x.blocks) ? x.blocks : [], [N, P] = o({}), [F, I] = o({}), [L, R] = o({}), z = (e, t, n = "") => {
|
|
402
916
|
let r = e.data || {};
|
|
403
|
-
if (
|
|
404
|
-
let n = e.translations?.[
|
|
917
|
+
if (w !== C) {
|
|
918
|
+
let n = e.translations?.[w]?.[t];
|
|
405
919
|
if (typeof n == "string" && n.trim() !== "") return n;
|
|
406
920
|
}
|
|
407
921
|
let i = r[t];
|
|
408
922
|
return i == null ? n : String(i);
|
|
409
|
-
},
|
|
923
|
+
}, B = (e, t) => {
|
|
410
924
|
let n = e.id || `pub_blk_${t}`, i = e.data || {};
|
|
411
925
|
if (e.type === "text_banner") return /* @__PURE__ */ c("div", {
|
|
412
926
|
className: r.cardHero,
|
|
@@ -417,11 +931,11 @@ function g({ themeMode: n = "light", pageData: d, viewportMode: g = "desktop", i
|
|
|
417
931
|
}),
|
|
418
932
|
/* @__PURE__ */ s("h2", {
|
|
419
933
|
className: r.heroNames,
|
|
420
|
-
children:
|
|
934
|
+
children: z(e, "heading", "Celebration Title")
|
|
421
935
|
}),
|
|
422
936
|
/* @__PURE__ */ s("p", {
|
|
423
937
|
className: r.heroSub,
|
|
424
|
-
children:
|
|
938
|
+
children: z(e, "subtext", "")
|
|
425
939
|
})
|
|
426
940
|
]
|
|
427
941
|
});
|
|
@@ -429,35 +943,35 @@ function g({ themeMode: n = "light", pageData: d, viewportMode: g = "desktop", i
|
|
|
429
943
|
className: r.letterBox,
|
|
430
944
|
children: [/* @__PURE__ */ s("div", {
|
|
431
945
|
className: r.letterGreeting,
|
|
432
|
-
children:
|
|
946
|
+
children: z(e, "title", "Our Story")
|
|
433
947
|
}), /* @__PURE__ */ s("p", {
|
|
434
948
|
className: r.letterBody,
|
|
435
|
-
children:
|
|
949
|
+
children: z(e, "body", "")
|
|
436
950
|
})]
|
|
437
951
|
});
|
|
438
952
|
if (e.type === "rich_quote") return /* @__PURE__ */ c("blockquote", {
|
|
439
953
|
className: r.quoteCard,
|
|
440
954
|
children: [/* @__PURE__ */ s("p", {
|
|
441
955
|
className: r.quoteText,
|
|
442
|
-
children:
|
|
956
|
+
children: z(e, "quote", "")
|
|
443
957
|
}), /* @__PURE__ */ c("footer", {
|
|
444
958
|
className: r.quoteAuthor,
|
|
445
|
-
children: ["— ",
|
|
959
|
+
children: ["— ", z(e, "author", "")]
|
|
446
960
|
})]
|
|
447
961
|
});
|
|
448
962
|
if (e.type === "milestone_timeline") {
|
|
449
963
|
let t = [
|
|
450
964
|
{
|
|
451
|
-
title:
|
|
452
|
-
note:
|
|
965
|
+
title: z(e, "step1Title"),
|
|
966
|
+
note: z(e, "step1Note")
|
|
453
967
|
},
|
|
454
968
|
{
|
|
455
|
-
title:
|
|
456
|
-
note:
|
|
969
|
+
title: z(e, "step2Title"),
|
|
970
|
+
note: z(e, "step2Note")
|
|
457
971
|
},
|
|
458
972
|
{
|
|
459
|
-
title:
|
|
460
|
-
note:
|
|
973
|
+
title: z(e, "step3Title"),
|
|
974
|
+
note: z(e, "step3Note")
|
|
461
975
|
}
|
|
462
976
|
].filter((e) => e.title || e.note);
|
|
463
977
|
return /* @__PURE__ */ s("div", {
|
|
@@ -482,15 +996,15 @@ function g({ themeMode: n = "light", pageData: d, viewportMode: g = "desktop", i
|
|
|
482
996
|
children: [
|
|
483
997
|
/* @__PURE__ */ s("span", {
|
|
484
998
|
className: r.heroBadge,
|
|
485
|
-
children:
|
|
999
|
+
children: z(e, "badge", "INVITATION")
|
|
486
1000
|
}),
|
|
487
1001
|
/* @__PURE__ */ s("h2", {
|
|
488
1002
|
className: r.heroNames,
|
|
489
|
-
children:
|
|
1003
|
+
children: z(e, "names", "Your Names")
|
|
490
1004
|
}),
|
|
491
1005
|
/* @__PURE__ */ s("p", {
|
|
492
1006
|
className: r.heroSub,
|
|
493
|
-
children:
|
|
1007
|
+
children: z(e, "subtitle", "")
|
|
494
1008
|
})
|
|
495
1009
|
]
|
|
496
1010
|
});
|
|
@@ -509,19 +1023,19 @@ function g({ themeMode: n = "light", pageData: d, viewportMode: g = "desktop", i
|
|
|
509
1023
|
children: [/* @__PURE__ */ s("span", {
|
|
510
1024
|
className: r.detailLbl,
|
|
511
1025
|
children: "TIME"
|
|
512
|
-
}), /* @__PURE__ */ c("strong", { children: ["⏰ ",
|
|
1026
|
+
}), /* @__PURE__ */ c("strong", { children: ["⏰ ", z(e, "time", "TBD")] })]
|
|
513
1027
|
}),
|
|
514
1028
|
/* @__PURE__ */ c("div", {
|
|
515
1029
|
className: r.detailCellWide,
|
|
516
1030
|
children: [/* @__PURE__ */ s("span", {
|
|
517
1031
|
className: r.detailLbl,
|
|
518
1032
|
children: "VENUE"
|
|
519
|
-
}), /* @__PURE__ */ c("strong", { children: ["📍 ",
|
|
1033
|
+
}), /* @__PURE__ */ c("strong", { children: ["📍 ", z(e, "venue", "Location TBD")] })]
|
|
520
1034
|
})
|
|
521
1035
|
]
|
|
522
1036
|
});
|
|
523
|
-
if (e.type === "countdown_timer") return /* @__PURE__ */ s(
|
|
524
|
-
label:
|
|
1037
|
+
if (e.type === "countdown_timer") return /* @__PURE__ */ s(m, {
|
|
1038
|
+
label: z(e, "label", "Countdown"),
|
|
525
1039
|
targetDate: String(i.targetDate || "")
|
|
526
1040
|
});
|
|
527
1041
|
if (e.type === "dress_code_card") return /* @__PURE__ */ c("div", {
|
|
@@ -533,21 +1047,21 @@ function g({ themeMode: n = "light", pageData: d, viewportMode: g = "desktop", i
|
|
|
533
1047
|
}),
|
|
534
1048
|
/* @__PURE__ */ s("div", {
|
|
535
1049
|
className: r.dressTheme,
|
|
536
|
-
children:
|
|
1050
|
+
children: z(e, "dressCode", "Festive Attire")
|
|
537
1051
|
}),
|
|
538
1052
|
/* @__PURE__ */ s("p", {
|
|
539
1053
|
className: r.heroSub,
|
|
540
|
-
children:
|
|
1054
|
+
children: z(e, "note", "")
|
|
541
1055
|
})
|
|
542
1056
|
]
|
|
543
1057
|
});
|
|
544
1058
|
if (e.type === "rsvp_card") {
|
|
545
|
-
let t =
|
|
1059
|
+
let t = L[n];
|
|
546
1060
|
return /* @__PURE__ */ c("div", {
|
|
547
1061
|
className: r.rsvpBox,
|
|
548
1062
|
children: [/* @__PURE__ */ c("h3", {
|
|
549
1063
|
className: r.blockHeading,
|
|
550
|
-
children: ["📋 ",
|
|
1064
|
+
children: ["📋 ", z(e, "heading", "Will You Join Us?")]
|
|
551
1065
|
}), t ? /* @__PURE__ */ c("div", {
|
|
552
1066
|
className: r.rsvpDone,
|
|
553
1067
|
children: [
|
|
@@ -560,10 +1074,10 @@ function g({ themeMode: n = "light", pageData: d, viewportMode: g = "desktop", i
|
|
|
560
1074
|
onSubmit: (e) => {
|
|
561
1075
|
e.preventDefault();
|
|
562
1076
|
let t = new FormData(e.currentTarget), r = String(t.get("guestName") || "Guest").trim() || "Guest", i = Math.max(1, Math.min(10, Number(t.get("party")) || 1));
|
|
563
|
-
|
|
1077
|
+
R((e) => ({
|
|
564
1078
|
...e,
|
|
565
1079
|
[n]: r
|
|
566
|
-
})),
|
|
1080
|
+
})), y?.({
|
|
567
1081
|
blockId: n,
|
|
568
1082
|
guestName: r,
|
|
569
1083
|
party: i
|
|
@@ -586,7 +1100,7 @@ function g({ themeMode: n = "light", pageData: d, viewportMode: g = "desktop", i
|
|
|
586
1100
|
/* @__PURE__ */ s("button", {
|
|
587
1101
|
type: "submit",
|
|
588
1102
|
className: r.primaryMiniBtn,
|
|
589
|
-
children:
|
|
1103
|
+
children: z(e, "buttonLabel", "Confirm RSVP")
|
|
590
1104
|
})
|
|
591
1105
|
]
|
|
592
1106
|
})]
|
|
@@ -597,27 +1111,27 @@ function g({ themeMode: n = "light", pageData: d, viewportMode: g = "desktop", i
|
|
|
597
1111
|
children: [
|
|
598
1112
|
/* @__PURE__ */ s("div", {
|
|
599
1113
|
className: r.letterGreeting,
|
|
600
|
-
children:
|
|
1114
|
+
children: z(e, "greeting", "Dear You,")
|
|
601
1115
|
}),
|
|
602
1116
|
/* @__PURE__ */ s("p", {
|
|
603
1117
|
className: r.letterBody,
|
|
604
|
-
children:
|
|
1118
|
+
children: z(e, "body", "")
|
|
605
1119
|
}),
|
|
606
1120
|
/* @__PURE__ */ c("div", {
|
|
607
1121
|
className: r.letterSig,
|
|
608
|
-
children: ["— ",
|
|
1122
|
+
children: ["— ", z(e, "signature", "Forever Yours")]
|
|
609
1123
|
})
|
|
610
1124
|
]
|
|
611
1125
|
});
|
|
612
1126
|
if (e.type === "photo_polaroids") {
|
|
613
1127
|
let t = [{
|
|
614
1128
|
url: String(i.photoOneUrl || ""),
|
|
615
|
-
cap:
|
|
1129
|
+
cap: z(e, "captionOne", "Memory 1"),
|
|
616
1130
|
icon: "💑",
|
|
617
1131
|
rot: -2.5
|
|
618
1132
|
}, {
|
|
619
1133
|
url: String(i.photoTwoUrl || ""),
|
|
620
|
-
cap:
|
|
1134
|
+
cap: z(e, "captionTwo", "Memory 2"),
|
|
621
1135
|
icon: "💍",
|
|
622
1136
|
rot: 2.5
|
|
623
1137
|
}];
|
|
@@ -641,12 +1155,12 @@ function g({ themeMode: n = "light", pageData: d, viewportMode: g = "desktop", i
|
|
|
641
1155
|
});
|
|
642
1156
|
}
|
|
643
1157
|
if (e.type === "flying_proposal") {
|
|
644
|
-
let t = !!
|
|
1158
|
+
let t = !!N[n], i = F[n] || {
|
|
645
1159
|
count: 0,
|
|
646
1160
|
top: 50,
|
|
647
1161
|
left: 68
|
|
648
1162
|
}, a = () => {
|
|
649
|
-
|
|
1163
|
+
I((e) => ({
|
|
650
1164
|
...e,
|
|
651
1165
|
[n]: {
|
|
652
1166
|
count: (e[n]?.count || 0) + 1,
|
|
@@ -659,11 +1173,11 @@ function g({ themeMode: n = "light", pageData: d, viewportMode: g = "desktop", i
|
|
|
659
1173
|
className: r.proposalBox,
|
|
660
1174
|
children: [/* @__PURE__ */ s("h3", {
|
|
661
1175
|
className: r.proposalQ,
|
|
662
|
-
children: t ?
|
|
1176
|
+
children: t ? z(e, "acceptedText", "YAY!! 💍💖") : z(e, "question", "Will You Marry Me?")
|
|
663
1177
|
}), t ? /* @__PURE__ */ s("button", {
|
|
664
1178
|
type: "button",
|
|
665
1179
|
className: r.ghostMiniBtn,
|
|
666
|
-
onClick: () =>
|
|
1180
|
+
onClick: () => P((e) => ({
|
|
667
1181
|
...e,
|
|
668
1182
|
[n]: !1
|
|
669
1183
|
})),
|
|
@@ -675,15 +1189,15 @@ function g({ themeMode: n = "light", pageData: d, viewportMode: g = "desktop", i
|
|
|
675
1189
|
className: r.yesMiniBtn,
|
|
676
1190
|
style: { transform: `scale(${Math.min(1.35, 1 + i.count * .07)})` },
|
|
677
1191
|
onClick: () => {
|
|
678
|
-
|
|
1192
|
+
P((e) => ({
|
|
679
1193
|
...e,
|
|
680
1194
|
[n]: !0
|
|
681
|
-
})),
|
|
1195
|
+
})), b?.({
|
|
682
1196
|
blockId: n,
|
|
683
1197
|
dodgeCount: i.count
|
|
684
1198
|
});
|
|
685
1199
|
},
|
|
686
|
-
children:
|
|
1200
|
+
children: z(e, "yesLabel", "Yes! 💖")
|
|
687
1201
|
}), /* @__PURE__ */ s("button", {
|
|
688
1202
|
type: "button",
|
|
689
1203
|
className: r.noMiniBtn,
|
|
@@ -698,69 +1212,108 @@ function g({ themeMode: n = "light", pageData: d, viewportMode: g = "desktop", i
|
|
|
698
1212
|
e.preventDefault(), a();
|
|
699
1213
|
},
|
|
700
1214
|
onClick: a,
|
|
701
|
-
children: i.count === 0 ?
|
|
1215
|
+
children: i.count === 0 ? z(e, "noLabel", "No 🙈") : u[i.count % u.length]
|
|
702
1216
|
})]
|
|
703
1217
|
})]
|
|
704
1218
|
});
|
|
705
1219
|
}
|
|
706
|
-
return e.type === "couple_hands_anim" || e.type === "baby_walk_anim" || e.type === "story_sprite_anim" ? /* @__PURE__ */ s(
|
|
707
|
-
scene: String(i.scene || "
|
|
708
|
-
caption:
|
|
1220
|
+
return e.type === "cartoon_scene_anim" || e.type === "couple_hands_anim" || e.type === "baby_walk_anim" || e.type === "story_sprite_anim" ? /* @__PURE__ */ s(g, {
|
|
1221
|
+
scene: String(i.scene || "cartoon_couple"),
|
|
1222
|
+
caption: z(e, "caption", ""),
|
|
709
1223
|
leftEmoji: String(i.leftEmoji || "🤵"),
|
|
710
1224
|
rightEmoji: String(i.rightEmoji || "👰"),
|
|
711
1225
|
spriteSheetUrl: String(i.spriteSheetUrl || "")
|
|
712
|
-
}) : e.type === "youtube_audio" ? /* @__PURE__ */ s(
|
|
1226
|
+
}) : e.type === "youtube_audio" ? /* @__PURE__ */ s(_, {
|
|
713
1227
|
mediaMode: "audio",
|
|
714
1228
|
youtubeUrl: String(i.youtubeUrl || ""),
|
|
715
|
-
title:
|
|
1229
|
+
title: z(e, "title", "Background Song"),
|
|
716
1230
|
autoPlay: !!i.autoPlay,
|
|
717
1231
|
loop: !0
|
|
718
|
-
}) : e.type === "youtube_video" ? /* @__PURE__ */ s(
|
|
1232
|
+
}) : e.type === "youtube_video" ? /* @__PURE__ */ s(_, {
|
|
719
1233
|
mediaMode: "video",
|
|
720
1234
|
youtubeUrl: String(i.youtubeUrl || ""),
|
|
721
|
-
title:
|
|
1235
|
+
title: z(e, "title", "Our Story Video"),
|
|
722
1236
|
autoPlay: !1,
|
|
723
1237
|
loop: !!i.loop
|
|
724
1238
|
}) : /* @__PURE__ */ c("div", {
|
|
725
1239
|
className: r.customFallback,
|
|
726
|
-
children: [/* @__PURE__ */ c("strong", { children: ["🧩 ", e.type] }), /* @__PURE__ */ s("p", { children: Object.keys(i).map((t) =>
|
|
1240
|
+
children: [/* @__PURE__ */ c("strong", { children: ["🧩 ", e.type] }), /* @__PURE__ */ s("p", { children: Object.keys(i).map((t) => z(e, t)).filter(Boolean).join(" • ") })]
|
|
727
1241
|
});
|
|
728
|
-
};
|
|
1242
|
+
}, V = k.viewStyle === "story_slides" && M.length > 0 ? [M[Math.min(E, M.length - 1)]] : M;
|
|
729
1243
|
return /* @__PURE__ */ s("div", {
|
|
730
1244
|
className: `${r.outer} ${r[`mode_${n}`] || r.mode_light}`,
|
|
1245
|
+
style: { "--sm-accent": k.accentColor },
|
|
731
1246
|
children: /* @__PURE__ */ c("div", {
|
|
732
|
-
className:
|
|
733
|
-
|
|
1247
|
+
className: [
|
|
1248
|
+
r.pageSurface,
|
|
1249
|
+
r[`surf_${O.surfaceKey}`] || r.surf_blush,
|
|
1250
|
+
r[`font_${k.fontStyle}`] || r.font_classic,
|
|
1251
|
+
r[`pat_${k.patternOverlay}`] || "",
|
|
1252
|
+
k.viewStyle === "poster" ? r.viewPoster : "",
|
|
1253
|
+
h === "mobile" ? r.widthMobile : h === "tablet" ? r.widthTablet : r.widthDesktop
|
|
1254
|
+
].filter(Boolean).join(" "),
|
|
1255
|
+
children: [j > 0 && /* @__PURE__ */ s("div", {
|
|
734
1256
|
className: r.floatingLayer,
|
|
735
1257
|
"aria-hidden": "true",
|
|
736
|
-
children: Array.from({ length:
|
|
1258
|
+
children: Array.from({ length: j }, (e, t) => /* @__PURE__ */ s("span", {
|
|
737
1259
|
className: r.floater,
|
|
738
1260
|
style: {
|
|
739
1261
|
left: `${(t * 31 + 7) % 92}%`,
|
|
740
1262
|
animationDelay: `${t % 6 * .6}s`,
|
|
741
1263
|
animationDuration: `${4.2 + t % 4}s`
|
|
742
1264
|
},
|
|
743
|
-
children:
|
|
744
|
-
}, `${
|
|
1265
|
+
children: A[t % A.length]
|
|
1266
|
+
}, `${O.id}-${t}`))
|
|
745
1267
|
}), /* @__PURE__ */ c("div", {
|
|
746
|
-
className: r.pageStack
|
|
747
|
-
children: [
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
1268
|
+
className: `${r.pageStack} ${k.viewStyle === "poster" ? r.posterInner : ""}`,
|
|
1269
|
+
children: [
|
|
1270
|
+
S.length > 1 && /* @__PURE__ */ s("div", {
|
|
1271
|
+
className: r.langBar,
|
|
1272
|
+
role: "group",
|
|
1273
|
+
"aria-label": "Switch page language",
|
|
1274
|
+
children: S.map((e) => /* @__PURE__ */ s("button", {
|
|
1275
|
+
type: "button",
|
|
1276
|
+
className: `${r.langBtn} ${w === e.code ? r.activeLang : ""}`,
|
|
1277
|
+
onClick: () => T(e.code),
|
|
1278
|
+
children: e.label
|
|
1279
|
+
}, e.code))
|
|
1280
|
+
}),
|
|
1281
|
+
k.viewStyle === "story_slides" && M.length > 1 && /* @__PURE__ */ c("div", {
|
|
1282
|
+
className: r.slideNavBar,
|
|
1283
|
+
children: [
|
|
1284
|
+
/* @__PURE__ */ s("button", {
|
|
1285
|
+
type: "button",
|
|
1286
|
+
className: r.slideBtn,
|
|
1287
|
+
disabled: E <= 0,
|
|
1288
|
+
onClick: () => D((e) => Math.max(0, e - 1)),
|
|
1289
|
+
children: "← Prev"
|
|
1290
|
+
}),
|
|
1291
|
+
/* @__PURE__ */ s("div", {
|
|
1292
|
+
className: r.slideDots,
|
|
1293
|
+
children: M.map((e, t) => /* @__PURE__ */ s("button", {
|
|
1294
|
+
type: "button",
|
|
1295
|
+
"aria-label": `Slide ${t + 1}`,
|
|
1296
|
+
className: `${r.slideDot} ${t === E ? r.activeSlideDot : ""}`,
|
|
1297
|
+
onClick: () => D(t)
|
|
1298
|
+
}, e.id || t))
|
|
1299
|
+
}),
|
|
1300
|
+
/* @__PURE__ */ s("button", {
|
|
1301
|
+
type: "button",
|
|
1302
|
+
className: r.slideBtn,
|
|
1303
|
+
disabled: E >= M.length - 1,
|
|
1304
|
+
onClick: () => D((e) => Math.min(M.length - 1, e + 1)),
|
|
1305
|
+
children: "Next →"
|
|
1306
|
+
})
|
|
1307
|
+
]
|
|
1308
|
+
}),
|
|
1309
|
+
V.map((e, t) => /* @__PURE__ */ s("div", {
|
|
1310
|
+
className: `${r.blockCard} ${r[`card_${k.cardStyle}`] || r.card_glass}`,
|
|
1311
|
+
children: B(e, t)
|
|
1312
|
+
}, e.id || `pub_blk_${t}`))
|
|
1313
|
+
]
|
|
761
1314
|
})]
|
|
762
1315
|
})
|
|
763
1316
|
});
|
|
764
1317
|
}
|
|
765
1318
|
//#endregion
|
|
766
|
-
export {
|
|
1319
|
+
export { v as default };
|