@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/index.esm.js
CHANGED
|
@@ -12622,10 +12622,12 @@ function UniversalBookingWidget({ config: baseConfig }) {
|
|
|
12622
12622
|
}, [currentStep, shouldRenderInstanceSelection, shouldRenderBookingForm]);
|
|
12623
12623
|
// Promo dialog: show Xmas promo once per user during holiday season, prevent double-opening across multiple widgets
|
|
12624
12624
|
useEffect(() => {
|
|
12625
|
-
// Only show during holiday season (December and January)
|
|
12625
|
+
// Only show during holiday season (December and early January - New Years week)
|
|
12626
12626
|
const now = new Date();
|
|
12627
12627
|
const month = now.getMonth(); // 0 = January, 11 = December
|
|
12628
|
-
const
|
|
12628
|
+
const day = now.getDate();
|
|
12629
|
+
// Show in December (entire month) or January 1-2 (New Years holiday)
|
|
12630
|
+
const isHolidaySeason = month === 11 || (month === 0 && day <= 2);
|
|
12629
12631
|
if (!isHolidaySeason) {
|
|
12630
12632
|
return;
|
|
12631
12633
|
}
|