Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return this.bookingObject.left;
}
get right() {
return this.bookingObject.right;
}
get prices(): PriceItemRender[] {
return this.bookingObject.priceItemsRender;
}
get priceVolatilities(): PriceItemRender[] {
return this.bookingObject.priceVolatilityItemsRender;
}
@Provide()
get min() {
return getBounding(this.booking.baseNightCheckInTime, true);
}
@Provide()
get max() {
return getBounding(this.booking.baseDayCheckOutTime, false);
}
get days() {
const { min, max } = this;
return Array.from(
{ length: duration(max.diff(min)).asDays() },
(v, index) =>
min
}
get prices(): PriceItemRender[] {
return this.bookingObject.priceItemsRender;
}
get priceVolatilities(): PriceItemRender[] {
return this.bookingObject.priceVolatilityItemsRender;
}
@Provide()
get min() {
return getBounding(this.booking.baseNightCheckInTime, true);
}
@Provide()
get max() {
return getBounding(this.booking.baseDayCheckOutTime, false);
}
get days() {
const { min, max } = this;
return Array.from(
{ length: duration(max.diff(min)).asDays() },
(v, index) =>
min
.clone()
.add(index + 1, 'day')
.format('DD/MM'),
);
}