@bigz-app/booking-widget 0.3.10 → 0.3.11
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/dist/booking-widget.js
CHANGED
|
@@ -12707,10 +12707,12 @@
|
|
|
12707
12707
|
}, [currentStep, shouldRenderInstanceSelection, shouldRenderBookingForm]);
|
|
12708
12708
|
// Promo dialog: show Xmas promo once per user during holiday season, prevent double-opening across multiple widgets
|
|
12709
12709
|
y$1(() => {
|
|
12710
|
-
// Only show during holiday season (December and January)
|
|
12710
|
+
// Only show during holiday season (December and early January - New Years week)
|
|
12711
12711
|
const now = new Date();
|
|
12712
12712
|
const month = now.getMonth(); // 0 = January, 11 = December
|
|
12713
|
-
const
|
|
12713
|
+
const day = now.getDate();
|
|
12714
|
+
// Show in December (entire month) or January 1-2 (New Years holiday)
|
|
12715
|
+
const isHolidaySeason = month === 11 || (month === 0 && day <= 2);
|
|
12714
12716
|
if (!isHolidaySeason) {
|
|
12715
12717
|
return;
|
|
12716
12718
|
}
|