Files
HotelRaxa/wp-content/plugins/elementor/assets/js/text-editor.2f2f7e0ea1e16387a004.bundle.js
Hotel Raxa Dev 5b1e2453c7 Hotel Raxa - Advanced Booking System Implementation
🏨 Hotel Booking Enhancements:
- Implemented Eagle Booking Advanced Pricing add-on
- Added Booking.com-style rate management system
- Created professional calendar interface for pricing
- Integrated deals and discounts functionality

💰 Advanced Pricing Features:
- Dynamic pricing models (per room, per person, per adult)
- Base rates, adult rates, and child rates management
- Length of stay discounts and early bird deals
- Mobile rates and secret deals implementation
- Seasonal promotions and flash sales

📅 Availability Management:
- Real-time availability tracking
- Stop sell and restriction controls
- Closed to arrival/departure functionality
- Minimum/maximum stay requirements
- Automatic sold-out management

💳 Payment Integration:
- Maintained Redsys payment gateway integration
- Seamless integration with existing Eagle Booking
- No modifications to core Eagle Booking plugin

🛠️ Technical Implementation:
- Custom database tables for advanced pricing
- WordPress hooks and filters integration
- AJAX-powered admin interface
- Data migration from existing Eagle Booking
- Professional calendar view for revenue management

📊 Admin Interface:
- Booking.com-style management dashboard
- Visual rate and availability calendar
- Bulk operations for date ranges
- Statistics and analytics dashboard
- Modal dialogs for quick editing

🔧 Code Quality:
- WordPress coding standards compliance
- Secure database operations with prepared statements
- Proper input validation and sanitization
- Error handling and logging
- Responsive admin interface

🤖 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-11 07:43:22 +02:00

94 lines
2.7 KiB
JavaScript

/*! elementor - v3.24.0 - 15-10-2024 */
"use strict";
(self["webpackChunkelementor"] = self["webpackChunkelementor"] || []).push([["text-editor"],{
/***/ "../assets/dev/js/frontend/handlers/text-editor.js":
/*!*********************************************************!*\
!*** ../assets/dev/js/frontend/handlers/text-editor.js ***!
\*********************************************************/
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports["default"] = void 0;
class TextEditor extends elementorModules.frontend.handlers.Base {
getDefaultSettings() {
return {
selectors: {
paragraph: 'p:first'
},
classes: {
dropCap: 'elementor-drop-cap',
dropCapLetter: 'elementor-drop-cap-letter'
}
};
}
getDefaultElements() {
const selectors = this.getSettings('selectors'),
classes = this.getSettings('classes'),
$dropCap = jQuery('<span>', {
class: classes.dropCap
}),
$dropCapLetter = jQuery('<span>', {
class: classes.dropCapLetter
});
$dropCap.append($dropCapLetter);
return {
$paragraph: this.$element.find(selectors.paragraph),
$dropCap,
$dropCapLetter
};
}
wrapDropCap() {
const isDropCapEnabled = this.getElementSettings('drop_cap');
if (!isDropCapEnabled) {
// If there is an old drop cap inside the paragraph
if (this.dropCapLetter) {
this.elements.$dropCap.remove();
this.elements.$paragraph.prepend(this.dropCapLetter);
this.dropCapLetter = '';
}
return;
}
const $paragraph = this.elements.$paragraph;
if (!$paragraph.length) {
return;
}
const paragraphContent = $paragraph.html().replace(/&nbsp;/g, ' '),
firstLetterMatch = paragraphContent.match(/^ *([^ ] ?)/);
if (!firstLetterMatch) {
return;
}
const firstLetter = firstLetterMatch[1],
trimmedFirstLetter = firstLetter.trim();
// Don't apply drop cap when the content starting with an HTML tag
if ('<' === trimmedFirstLetter) {
return;
}
this.dropCapLetter = firstLetter;
this.elements.$dropCapLetter.text(trimmedFirstLetter);
const restoredParagraphContent = paragraphContent.slice(firstLetter.length).replace(/^ */, match => {
return new Array(match.length + 1).join('&nbsp;');
});
$paragraph.html(restoredParagraphContent).prepend(this.elements.$dropCap);
}
onInit() {
super.onInit(...arguments);
this.wrapDropCap();
}
onElementChange(propertyName) {
if ('drop_cap' === propertyName) {
this.wrapDropCap();
}
}
}
exports["default"] = TextEditor;
/***/ })
}]);
//# sourceMappingURL=text-editor.2f2f7e0ea1e16387a004.bundle.js.map