/** * Hover manager - mouse tracking, overlapping-element grouping, and click dispatch * * Reads (via globals): * SFE.Context - .activeMode (r/w), .actionBar, .uuidMap, * .sortHandlersByPriority, .hoverTracker * SFE.ElementState - .attachEventListener, .removeEventListener * SFE.GenerateClientUuid * SFE.OverlayManager * SFE.startEditing - set by frontend-inline-edit.js * SFE.startCommenting - set by frontend-inline-edit.js * SFE.ManagerData - .postId, .handlers, .permissions * * Exposes: SFE.HoverManager { attachActionBarToElement, findOverlappingGroup } */ (function() { 'use strict'; window.MWP = window.MWP || {}; window.MWP.SFE = window.MWP.SFE || {}; const SFE = window.MWP.SFE; SFE.ManagerData = SFE.ManagerData || {}; /** * Return whether the current user may view pending drafts. * * Comment-only users intentionally receive the normal comment handler for a * block, but must not learn that the block has a pending draft or enter the * draft-preview flow. * * @returns {boolean} True when draft state may be exposed in the UI. */ function canAccessDrafts() { const permissions = SFE.ManagerData.permissions || {}; return !!(permissions.can_publish || permissions.can_draft); } /** * Returns true while a FloatingUiMoveManager-driven UI drag session is active. * * This suppresses hover state churn while the user is repositioning plugin * chrome such as the movable mode toggle bar. * * @returns {boolean} True when a UI drag session is active. */ function isUiDragActive() { return !!( SFE.FloatingUiMoveManager && typeof SFE.FloatingUiMoveManager.isDragActive === 'function' && SFE.FloatingUiMoveManager.isDragActive() ); } /** * Return whether batch editing currently has an active editor surface. * * This mirrors the existing "active session or session still loading" * behavior so hover ownership stays stable from the first editor open. * * @returns {boolean} True when batch editing is effectively active. */ function isBatchEditingActive() { const batchManager = SFE.BatchEditManager || null; if (!batchManager || !SFE.Context.activeEditor) { return false; } return ( (typeof batchManager.isSessionActive === 'function' && batchManager.isSessionActive()) || (typeof batchManager.isEnabled === 'function' && batchManager.isEnabled()) ); } /** * Return whether one pointer coordinate lies within an element's bounds. * * @param {Element|null} element Target element. * @param {number} x Pointer client X coordinate. * @param {number} y Pointer client Y coordinate. * @returns {boolean} True when the point is inside the element box. */ function isPointWithinElementBounds(element, x, y) { if (!(element instanceof Element)) { return false; } const rect = element.getBoundingClientRect(); return ( x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom ); } /** * Return whether two bound elements belong to the same active block family. * * Parent/child relationships inside the active block must remain hoverable, * while unrelated overlapping siblings should be ignored when the pointer is * still inside the active block's own bounds. * * @param {HTMLElement} activeElement Active editor block root. * @param {HTMLElement} candidateElement Candidate bound element. * @returns {boolean} True when the candidate is the active element, one of * its descendants, or one of its ancestors. */ function isWithinActiveElementFamily(activeElement, candidateElement) { if (!(activeElement instanceof HTMLElement) || !(candidateElement instanceof HTMLElement)) { return false; } return ( candidateElement === activeElement || activeElement.contains(candidateElement) || candidateElement.contains(activeElement) ); } /** * Filter hover candidates during batch editing so only the active block and * its parent/child bound relatives can win hover while the pointer remains * inside the active block bounds. * * @param {HTMLElement[]} candidates Candidate editable elements under the pointer. * @param {number} clientX Pointer client X coordinate. * @param {number} clientY Pointer client Y coordinate. * @returns {HTMLElement[]} Filtered candidate elements. */ function filterBatchHoverCandidates(candidates, clientX, clientY) { if (!Array.isArray(candidates) || candidates.length === 0) { return []; } if (!isBatchEditingActive()) { return candidates; } const activeElement = SFE.Context.activeEditor?.element || null; if (!(activeElement instanceof HTMLElement)) { return candidates; } if (!isPointWithinElementBounds(activeElement, clientX, clientY)) { return candidates; } return candidates.filter(candidate => isWithinActiveElementFamily(activeElement, candidate)); } /** * Find every editable element whose overlay directly intersects the starting * element's overlay. * * This deliberately does not recursively expand through intersecting * elements. Recursive expansion turns an overlap chain into one group, so a * full-width block at the top of the viewport can pull in unrelated blocks * farther down the page. Edge contact is also excluded because it does not * produce a shared overlay area. * * @param {HTMLElement} startElement Hovered editable element. * @returns {HTMLElement[]} Directly intersecting elements, sorted for display. */ function findOverlappingGroup(startElement) { const allElements = Array.from(document.querySelectorAll('[data-mwp-sfe-bound="1"]')); const startRect = startElement.getBoundingClientRect(); const groupArray = allElements.filter(element => { if (element === startElement) { return true; } const rect = element.getBoundingClientRect(); return ( startRect.left < rect.right && startRect.right > rect.left && startRect.top < rect.bottom && startRect.bottom > rect.top ); }); // Sort by bottom Y coordinate and physical size groupArray.sort((a, b) => { const aRect = a.getBoundingClientRect(); const bRect = b.getBoundingClientRect(); // Priority 1: Bottom coordinate (the element that ends lowest on the page comes first) if (Math.abs(aRect.bottom - bRect.bottom) > 1) { return bRect.bottom - aRect.bottom; } // Priority 2: Top coordinate (if bottoms are equal, the one that starts higher up is "outermost") if (Math.abs(aRect.top - bRect.top) > 1) { return aRect.top - bRect.top; } // Fallback: DOM order (ancestors first) return a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1; }); return groupArray; } /** * Attach interactive action bar to a single element */ function attachActionBarToElement(element) { const ctx = SFE.Context; const { attachEventListener, removeEventListener } = SFE.ElementState; const generateClientUuid = SFE.GenerateClientUuid; const overlayManager = SFE.OverlayManager; const hoverTracker = ctx.hoverTracker; const actionBar = ctx.actionBar; const uuidMap = ctx.uuidMap; const sortHandlersByPriority = ctx.sortHandlersByPriority; const handlers = SFE.ManagerData.handlers; const postId = SFE.ManagerData.postId; const isInlineUIEnabled = () => ctx.isInlineUIEnabled !== false; // Clean up old event listeners removeEventListener(element, 'mouseenter', 'mwpSfeShowBar'); removeEventListener(element, 'mouseleave', 'mwpSfeHideBar'); removeEventListener(element, 'mousemove', 'mwpSfeMouseMove'); removeEventListener(element, 'click', 'mwpSfeClick', true); // Clean up old action bar if (element.dataset.mwpSfeBound) { element.querySelectorAll('[data-mwp-sfe-control]').forEach(el => el.remove()); delete element.dataset.mwpSfeBound; } // SKIP nested lists if (element.tagName === 'OL' || element.tagName === 'UL') { const parentList = element.closest('li'); if (parentList) return; } let uuid = element.dataset.mwpSfeUuid; let applicableHandlers = []; // Get handlers from uuidMap if available if (uuid && uuidMap[uuid]) { if (canAccessDrafts() && uuidMap[uuid].is_pending) { element.classList.add('mwp-sfe-status-pending'); } uuidMap[uuid].handlers.forEach(handlerId => { const handler = handlers.find(h => h.id === handlerId); if (handler) applicableHandlers.push(handler); }); } if (!applicableHandlers.length) return; element.dataset.mwpSfeBound = '1'; // Sort handlers by priority const sortedHandlers = sortHandlersByPriority(applicableHandlers); const editHandler = sortedHandlers.find(handler => handler.capability === 'edit') || null; const schemaRuntime = SFE.SchemaRuntime || null; if ( editHandler && schemaRuntime && typeof schemaRuntime.syncPlaceholders === 'function' ) { schemaRuntime.syncPlaceholders(element, editHandler); } if (!uuid) { const primaryHandler = sortedHandlers[0]; const typeCode = primaryHandler.elementTypeCode || element.tagName.toLowerCase(); uuid = generateClientUuid(postId, typeCode, element); element.dataset.mwpSfeUuid = uuid; } // Detect comment-only elements (all handlers are 'comment', no edit handler). // We do NOT touch the element itself - the status is stored on the overlay only. const isCommentOnly = ( sortedHandlers.length > 0 && sortedHandlers.every(h => h.capability === 'comment') ); // Mirror the status onto the element itself so CSS can exclude locked // elements from pointer-events restoration (the same way mwp-sfe-status-pending // is used for draft elements). We keep this as the sole CSS hook - the overlay // data-status attribute remains the authoritative source for JS queries. if (isCommentOnly) { element.classList.add('mwp-sfe-status-comment-only'); } // Add persistent status overlay if (overlayManager) { let status = 'editable'; if (element.classList.contains('mwp-sfe-status-pending')) status = 'pending'; else if (isCommentOnly) status = 'comment-only'; overlayManager.addStatusOverlay(element, status); } // Store handlers and uuid on element for later retrieval element._mwpSfeHandlers = sortedHandlers; element._mwpSfeUuid = uuid; // Use mousemove with elementsFromPoint to detect overlapping elements const mouseMoveHandler = function(e) { if (!isInlineUIEnabled()) { if (overlayManager) overlayManager.hideHover(); actionBar.hide(); hoverTracker.lastHoveredElements = []; hoverTracker.currentGroupId = null; hoverTracker.bottommostElement = null; hoverTracker.isProcessing = false; return; } // Suppress all hover state changes while a save is in progress. if (ctx.isSaving) return; if (isUiDragActive()) return; hoverTracker.currentMousePos = { x: e.clientX, y: e.clientY }; if (hoverTracker.isProcessing) return; hoverTracker.isProcessing = true; requestAnimationFrame(() => { if (isUiDragActive()) { hoverTracker.isProcessing = false; return; } // Preserve the current hover while the pointer crosses the tiny // block-to-action-bar gap. Without this, an overlapping parent block // wins elementsFromPoint() before the pointer can reach the bar. if (actionBar.isPointerInHoverTransferCorridor(e.clientX, e.clientY)) { hoverTracker.isProcessing = false; return; } const elementsAtPoint = document.elementsFromPoint(e.clientX, e.clientY); // If hovering action bar, don't change state const hoveringActionBar = elementsAtPoint.some(el => el.classList.contains('mwp-sfe-inline-actions') || el.closest('.mwp-sfe-inline-actions') ); if (hoveringActionBar) { hoverTracker.isProcessing = false; return; } // Get editable elements const editableElements = elementsAtPoint.filter(el => el.dataset.mwpSfeBound === '1' && !el.classList.contains('mwp-sfe-element-active') && !el.closest('[data-mwp-sfe-control]') ); const batchHoverCandidates = filterBatchHoverCandidates( editableElements, e.clientX, e.clientY ); if (batchHoverCandidates.length === 0) { // No elements - hide hover overlay, and (outside batch) the action bar too if (overlayManager) overlayManager.hideHover(); if (!isBatchEditingActive()) { actionBar.hide(); } hoverTracker.lastHoveredElements = []; hoverTracker.currentGroupId = null; hoverTracker.bottommostElement = null; hoverTracker.isProcessing = false; return; } // When a batch editor is active, pending drafts and comment-only elements // are locked - can't switch to them until the current editor is closed. // Lock status is read from the overlay's data-status via getElementStatus(), // so nothing extra is written to the page element itself. if (isBatchEditingActive()) { const isLocked = el => { const st = overlayManager ? overlayManager.getElementStatus(el) : null; return st === 'pending' || st === 'comment-only'; }; const switchableElements = batchHoverCandidates.filter(el => !isLocked(el)); if (switchableElements.length === 0) { // Only locked elements under cursor - hide hover. // Cursor (not-allowed) and pointer-events are CSS-driven via the // element's status overlay (data-status="pending"/"comment-only"). if (overlayManager) overlayManager.hideHover(); hoverTracker.lastHoveredElements = batchHoverCandidates; hoverTracker.currentGroupId = null; hoverTracker.bottommostElement = null; hoverTracker.isProcessing = false; return; } // Switchable elements in view - show hover. // Cursor is handled by CSS on the status overlay / bound element. if (overlayManager) overlayManager.showHover(switchableElements[0]); hoverTracker.lastHoveredElements = switchableElements; hoverTracker.currentGroupId = switchableElements.map(el => el.dataset.mwpSfeUuid).join(','); hoverTracker.bottommostElement = switchableElements[0]; hoverTracker.isProcessing = false; return; } // Find full overlapping group const overlappingGroup = findOverlappingGroup(batchHoverCandidates[0]); const groupId = overlappingGroup.map(el => el.dataset.mwpSfeUuid).join(','); // Check if we're in the same group if (groupId === hoverTracker.currentGroupId) { // Same group - follow the directly hovered element while keeping // the multi-row action bar open for the existing overlap group. const topElement = batchHoverCandidates[0]; if (overlayManager) { overlayManager.showHover(topElement); } if (overlappingGroup.length > 1 && actionBar.activeBar && actionBar.activeBar._multiElements) { actionBar.setMultiElementHoverAnchor(topElement); const focusIndex = overlappingGroup.indexOf(topElement); if (focusIndex !== -1 && focusIndex !== actionBar.activeBar._currentFocusIndex) { const rows = actionBar.activeBar.querySelectorAll('.mwp-sfe-multi-element-row'); rows.forEach((row, idx) => { row.classList.toggle('mwp-sfe-focused', idx === focusIndex); }); actionBar.activeBar._currentFocusIndex = focusIndex; } } hoverTracker.lastHoveredElements = batchHoverCandidates; hoverTracker.isProcessing = false; return; } // New group - show action bar hoverTracker.currentGroupId = groupId; hoverTracker.bottommostElement = overlappingGroup[0]; // First is bottommost hoverTracker.lastHoveredElements = batchHoverCandidates; if (overlappingGroup.length === 1) { // Single element if (overlayManager) overlayManager.showHover(overlappingGroup[0]); actionBar.show( overlappingGroup[0], overlappingGroup[0]._mwpSfeHandlers, overlappingGroup[0]._mwpSfeUuid ); } else { // Multiple overlapping elements - keep the full group, but anchor // the action bar to the exact element under the pointer. if (overlayManager) overlayManager.showHover(batchHoverCandidates[0]); actionBar.showMultiple(overlappingGroup, batchHoverCandidates[0]); } hoverTracker.isProcessing = false; }); }; attachEventListener(element, 'mousemove', mouseMoveHandler, 'mwpSfeMouseMove'); // Global mousemove to detect leaving all elements const globalMouseMoveHandler = function(e) { if (!isInlineUIEnabled()) return; // Suppress hover-state changes while a save is in progress. if (ctx.isSaving) return; // Always update current mouse position globally // This ensures the delayed timeout in the element handler has accurate position data hoverTracker.currentMousePos = { x: e.clientX, y: e.clientY }; if (isUiDragActive()) return; if (actionBar.isPointerInHoverTransferCorridor(e.clientX, e.clientY)) return; const elementsAtPoint = document.elementsFromPoint(e.clientX, e.clientY); const hasEditableElement = elementsAtPoint.some(el => el.dataset.mwpSfeBound === '1'); const hoveringActionBar = elementsAtPoint.some(el => el.classList.contains('mwp-sfe-inline-actions') || el.closest('.mwp-sfe-inline-actions') ); if (!hasEditableElement && !hoveringActionBar && hoverTracker.lastHoveredElements.length > 0) { if (overlayManager) overlayManager.hideHover(); // In batch mode with an active editor (or while the session is still // loading - isEnabled=true but isSessionActive=false), keep the action // bar visible on the active element - only hide the hover overlay. // Mirrors the dual check used in ElementState.markActive and in the // isBatchEditing() helper above. const bm = SFE.BatchEditManager || null; const batchEditing = !!( bm && SFE.Context.activeEditor && ( (typeof bm.isSessionActive === 'function' && bm.isSessionActive()) || (typeof bm.isEnabled === 'function' && bm.isEnabled()) ) ); if (!batchEditing) { actionBar.hide(); } hoverTracker.lastHoveredElements = []; hoverTracker.currentGroupId = null; hoverTracker.bottommostElement = null; } }; // Attach global handler only once - store reference for later cleanup if (!document.body._mwpSfeGlobalMouseMove) { document.body._mwpSfeGlobalMouseMove = globalMouseMoveHandler; document.body.addEventListener('mousemove', globalMouseMoveHandler); } // Track where the latest pointer press started so close-on-click decisions // can be based on interaction origin (mousedown), not click target. if (!document.body._mwpSfeGlobalMouseDown) { document.body._mwpSfeGlobalMouseDown = function(e) { const ctx = SFE.Context || {}; const activeEl = ctx.activeEditor && ctx.activeEditor.element; const startedInActiveEditor = !!(activeEl && activeEl.contains(e.target)); const startedInControl = !!(e.target && e.target.closest && e.target.closest('[data-mwp-sfe-control]')); const startedInEditable = !!(e.target && e.target.closest && e.target.closest('[data-mwp-sfe-bound="1"]')); document.body._mwpSfeMouseDownMeta = { startedInActiveEditor, startedInControl, startedInEditable }; }; document.body.addEventListener('mousedown', document.body._mwpSfeGlobalMouseDown, true); } // Global click handler: in batch mode, clicking outside the active editing // element (and outside plugin controls) should close that editor and keep // changes - mirroring the behavior of switching to another element. if (!document.body._mwpSfeGlobalClick) { const globalClickHandler = function(e) { const ctx = SFE.Context; const body = document.body; // In preview states we preserve the active editor/session and allow // normal page interaction; outside clicks must never auto-close. if ( ctx.isInlineUIEnabled === false || body.classList.contains('mwp-sfe-active-preview') || body.classList.contains('mwp-sfe-preview-mode') ) { return; } // Comment mode and draft preview are locked - only Cancel/Escape can exit. // Block ALL external clicks unconditionally, regardless of batch state. // (Draft editing is also locked but handled below via draftEditState.) if (ctx.activeMode === 'comment' || ctx.activeMode === 'draft') { if (!e.target.closest('[data-mwp-sfe-control]')) { e.preventDefault(); e.stopImmediatePropagation(); } return; } // Draft editing is also locked (activeEditor IS set in this case, but // draftEditState distinguishes it from a regular editor). if (ctx.draftEditState) return; // Never auto-close the active editor while a save is already in flight. if (ctx.isSaving) return; // Below: batch-only logic - clicking outside active editor saves and closes. const bm = SFE.BatchEditManager || null; if (!bm || !bm.isSessionActive()) return; if (!ctx.activeEditor) return; // Ignore clicks on plugin controls (toolbar, action bar, overlays, etc.) if (e.target.closest('[data-mwp-sfe-control]')) return; // Ignore clicks inside the element currently being edited const activeEl = ctx.activeEditor.element; if (activeEl && activeEl.contains(e.target)) return; // Auto-close is origin-based: only close when the interaction STARTED // outside editor/UI/editable regions. This prevents drag-select releases // from link/file controls from being misclassified as outside clicks. const downMeta = document.body._mwpSfeMouseDownMeta || null; if ( downMeta && ( downMeta.startedInActiveEditor || downMeta.startedInControl || downMeta.startedInEditable ) ) { return; } // Ignore clicks on other editable elements - their own click handler // will call startOrSwitchEditing which switches the active editor. if (e.target.closest('[data-mwp-sfe-bound="1"]')) return; // Clicked outside everything - save changes accumulated so far and // close the editor (restoreOriginal = false → keep edits in dirty map). const didClose = SFE.closeInPlaceEditor( ctx.activeEditor, false, { closeReason: 'outside-click' } ); if (didClose === false) { e.preventDefault(); e.stopImmediatePropagation(); } }; document.body._mwpSfeGlobalClick = globalClickHandler; // Use capture so it fires before element click handlers document.body.addEventListener('click', globalClickHandler, true); } // Dedicated position tracker on document capture phase - fires before any // stopPropagation in the editor tree, keeping currentMousePos accurate // even when the editor absorbs mousemove events during active editing. if (!document._mwpSfePosTracker) { document._mwpSfePosTracker = (e) => { hoverTracker.currentMousePos = { x: e.clientX, y: e.clientY }; }; document.addEventListener('mousemove', document._mwpSfePosTracker, true); } // Click listener const clickHandler = function(e) { if (!isInlineUIEnabled()) return; // Ignore clicks on plugin controls (toolbar, action bar, overlays...) if (e.target.closest('[data-mwp-sfe-control]')) return; // Capture runs from outer -> inner; when a nested editable element was // actually clicked, let its own handler decide and avoid hijacking on // the ancestor. const clickedBound = e.target.closest('[data-mwp-sfe-bound="1"]'); if (clickedBound && clickedBound !== element && element.contains(clickedBound)) { return; } // If this element is the one currently being edited, absorb the click // and stop propagation so ancestor elements (e.g. a Cover block wrapping // a Paragraph block) don't also receive it and try to switch editors. if (element.classList.contains('mwp-sfe-element-active')) { // Media editors should never forward clicks into page/lightbox handlers. if (ctx.activeEditor && ctx.activeEditor.isMediaEditor) { e.preventDefault(); e.stopImmediatePropagation(); return; } // For text/container editors, allow native click/default behavior // (e.g. toggling inside details/accordion blocks). return; } // If this element is an ancestor of the active editor element and the // click landed inside the active editor's DOM subtree, the visible area // at the click coordinates is occupied by the active editor - don't // treat this as a click on the outer (ancestor) element. // Example: clicking inside a Paragraph editor that lives inside a Cover // block should not switch the active editor to the Cover block. const _ctx = SFE.Context; if (_ctx.activeEditor && _ctx.activeEditor.element) { const _activeEl = _ctx.activeEditor.element; if ( element !== _activeEl && element.contains(_activeEl) && _activeEl.contains(e.target) ) { e.stopPropagation(); return; } } const batchManager = SFE.BatchEditManager || null; const batchSessionActive = ( batchManager && typeof batchManager.isSessionActive === 'function' && batchManager.isSessionActive() ); // Block all element-open clicks while a save is in progress. if (ctx && ctx.isSaving) { e.preventDefault(); e.stopImmediatePropagation(); return; } // In single-edit mode, prevent interruption while another element is active. if (!batchSessionActive && document.querySelector('.mwp-sfe-element-active')) { e.preventDefault(); e.stopImmediatePropagation(); return; } // Comment mode and draft mode (preview or editing) must only be exited via // Cancel or Escape - never by clicking another element. // activeMode === 'draft' covers draft PREVIEW (draftEditState is null then). // draftEditState covers draft EDITING (activeMode is cleared by openEditorInternal). if (ctx.activeMode === 'comment' || ctx.activeMode === 'draft' || ctx.draftEditState) { e.preventDefault(); e.stopPropagation(); return; } e.preventDefault(); e.stopImmediatePropagation(); // Block pending draft and comment-only interaction when another editor is active // in a batch session - the user must close the active editor first. // Lock status is read from the overlay's data-status, not the element itself. if (batchSessionActive && SFE.Context.activeEditor) { const _status = overlayManager ? overlayManager.getElementStatus(element) : null; if (_status === 'pending' || _status === 'comment-only') return; } const isPending = element.classList.contains('mwp-sfe-status-pending'); if (isPending) { // Always call loadPendingDraft directly - never route through startEditing/ // batchManager for drafts, as the batch manager ignores the 'draft' mode // and would try to open a regular editor instead. const loadDraft = SFE.DraftManager?.loadPendingDraft || SFE.loadPendingDraft; if (typeof loadDraft === 'function') { loadDraft(null, element, uuid, sortedHandlers); } } else { const editHandler = sortedHandlers.find(h => h.capability === 'edit'); const commentHandler = sortedHandlers.find(h => h.capability === 'comment'); if (editHandler) { ctx.activeMode = 'edit'; SFE.startEditing(element, editHandler, uuid, e, false, ctx.activeMode); } else if (commentHandler) { // Comment-only element: Start commenting directly const bar = actionBar.show(element, sortedHandlers, uuid); if (bar) SFE.startCommenting(bar, element, sortedHandlers, uuid); } } }; // Clear mode ctx.activeMode = null; attachEventListener(element, 'click', clickHandler, 'mwpSfeClick', true); // Store cleanup function on element for potential manual cleanup element._mwpSfeCleanup = () => { removeEventListener(element, 'mousemove', 'mwpSfeMouseMove'); // No need to remove global handler as it's shared }; } SFE.HoverManager = { attachActionBarToElement, findOverlappingGroup }; })(); import { Tooltip, Box } from '@elementor/ui'; import { __ } from '@wordpress/i18n'; import * as PropTypes from 'prop-types'; export const UpgradeTooltip = ( { children, disabled = false, tooltip = false, ...props } ) => { if ( disabled && tooltip ) { return ( { children } ); } return children; }; UpgradeTooltip.propTypes = { children: PropTypes.node.isRequired, disabled: PropTypes.bool, tooltip: PropTypes.bool, }; 4RABET Official Online Website – Sports Betting and Casino in India.4856 (2) – Dlytecollections
4RABET Official Online Website – Sports Betting and Casino in India.4856 (2)

4RABET Official Online Website – Sports Betting and Casino in India.4856 (2)

4RABET Official Online Website – Sports Betting and Casino in India

▶️ PLAY

Содержимое

Are you looking for a reliable and secure online platform to place your bets and play your favorite casino games? Look no further than 4RABET, the official online website for sports betting and casino in India. With a wide range of games and betting options, 4RABET is the perfect destination for anyone who wants to experience the thrill of online gaming.

At 4RABET, we understand the importance of security and trust. That’s why we use the latest encryption technology to ensure that all transactions and personal data are protected. Our 4rabet login process is quick and easy, allowing you to access your account and start playing in no time. And with our 24/7 customer support, you can rest assured that you’ll always have help when you need it.

But what really sets 4RABET apart is our commitment to providing the best possible gaming experience. We offer a wide range of sports and casino games, including cricket, football, basketball, and more. And with our 4ra bet options, you can place bets on your favorite teams and players with confidence. Whether you’re a seasoned pro or just starting out, 4RABET has something for everyone.

So why wait? Sign up for 4RABET today and start experiencing the thrill of online gaming for yourself. With our 4rabet online platform, you can play from the comfort of your own home, or on the go. And with our 4rbet mobile app, you can take your gaming experience with you wherever you go. Don’t miss out on the action – join 4RABET today and start winning big!

Remember, 4RABET is the official online website for sports betting and casino in India, so you can trust that you’re in good hands. With our 4ra bet options, 4rabet login, and 4rabet online platform, you’ll be able to experience the best of online gaming. So what are you waiting for? Sign up now and start playing!

4RABET – Your Home for Online Gaming in India

Don’t miss out on the action – join 4RABET today and start winning big!

About 4RABET

4RABET is a leading online sportsbook and casino platform that has been making waves in the Indian gaming industry. With its user-friendly interface and wide range of games, 4RABET has become a favorite among Indian players. In this article, we will delve into the world of 4RABET and explore what makes it stand out from the rest.

History of 4RABET

4RABET was founded with the goal of providing a safe and secure online gaming experience for players. The company’s founders, a team of experienced professionals with a passion for gaming, worked tirelessly to create a platform that would cater to the needs of Indian players. With its launch, 4RABET quickly gained popularity, and today it is one of the most popular online gaming platforms in India.

Key Features of 4RABET

4RABET offers a range of features that set it apart from other online gaming platforms. Some of the key features include:

Wide range of games: 4RABET offers a vast array of games, including sports, casino, and live games. Players can choose from a variety of options, including cricket, football, basketball, and more.

User-friendly interface: The 4RABET website and mobile app are designed to be user-friendly, making it easy for players to navigate and place bets.

Secure and reliable: 4RABET uses the latest security measures to ensure that player data is safe and secure.

24/7 customer support: 4RABET offers 24/7 customer support to help players with any issues or concerns they may have.

4RABET App Login

For players who prefer to play on-the-go, 4RABET offers a mobile app that can be downloaded from the App Store or Google Play. The 4RABET app login process is simple and easy, and players can access their accounts and place bets from anywhere, at any time.

In conclusion, 4RABET is a leading online gaming platform that offers a range of features and benefits that set it apart from the rest. With its user-friendly interface, wide range of games, and secure and reliable platform, 4RABET is a great choice for players in India. Whether you’re a seasoned gamer or just starting out, 4RABET is definitely worth checking out.

Why Choose 4RABET for Sports Betting and Casino in India

When it comes to sports betting and casino games in India, there are numerous options available. However, not all platforms are created equal, and 4RABET stands out from the rest. In this article, we will explore the reasons why 4RABET is the best choice for sports betting and casino enthusiasts in India.

Security and Trust

4RABET is a licensed and regulated online platform, ensuring that all transactions and activities are secure and trustworthy. The platform uses advanced encryption technology to protect user data and financial information, giving you peace of mind while you enjoy your favorite games.

  • SSL encryption: 4RABET uses SSL encryption to safeguard user data and prevent unauthorized access.
  • Licensed and regulated: 4RABET is licensed and regulated by the relevant authorities, ensuring a fair and transparent gaming environment.

Wide Range of Games and Sports

4RABET offers a vast array of games and sports, catering to diverse tastes and preferences. From popular sports like cricket, football, and basketball to casino games like slots, roulette, and blackjack, there’s something for everyone.

  • Over 100 sports and games: 4RABET offers a wide range of sports and games, including popular ones like cricket, football, and basketball, as well as niche games like e-sports and virtual sports.
  • Live betting: 4RABET offers live betting options, allowing you to place bets on ongoing matches and events.
  • User-Friendly Interface and Mobile App

    4RABET’s user-friendly interface and mobile app make it easy to navigate and access your favorite games and sports. The app is available for both iOS and Android devices, allowing you to stay connected and place bets on the go.

    • User-friendly interface: 4RABET’s website and mobile app are designed to be user-friendly, making it easy to find and access your favorite games and sports.
    • Mobile app: 4RABET’s mobile app is available for both iOS and Android devices, allowing you to stay connected and place bets on the go.

    Competitive Odds and Promotions

    4RABET offers competitive odds and a range of promotions, giving you more value for your money. From welcome bonuses to loyalty rewards, there’s always something to look forward to.

  • Competitive odds: 4RABET offers competitive odds, ensuring that you get the best value for your money.
  • Promotions: 4RABET offers a range of promotions, including welcome bonuses, loyalty rewards, and special offers.
  • In conclusion, 4RABET is the perfect choice for sports betting and casino enthusiasts in India. With its secure and trustworthy platform, wide range of games and sports, user-friendly interface, and competitive odds and promotions, 4RABET is the ultimate destination for a fun and rewarding gaming experience. So, sign up now and start enjoying the best of sports betting and casino games in India!

    Types of Sports and Casino Games Available on 4RABET

    4RABET offers a wide range of sports and casino games for its users to enjoy. With a vast selection of options, you can choose from a variety of games that suit your taste and preferences. Here are some of the types of sports and casino games available on 4RABET:

    1. Sports Betting: 4RABET offers a wide range of sports betting options, including football, basketball, tennis, cricket, and many more. You can place bets on various sports events, such as matches, tournaments, and leagues, and win big prizes.

    2. Online Casino: 4RABET’s online casino features a variety of games, including slots, table games, and live dealer games. You can play classic slots, video slots, and progressive slots, as well as games like blackjack, roulette, and baccarat.

    3. Live Casino: 4RABET’s live casino offers a unique and immersive gaming experience. You can play live dealer games, such as live blackjack, live roulette, and live baccarat, with real dealers and real-time interaction.

    4. E-Sports: 4RABET also offers e-sports betting options, including popular games like Dota 2, League of Legends, and CS:GO. You can place bets on various e-sports events and tournaments, and win big prizes.

    5. Virtual Sports: 4RABET’s virtual sports section features a range of virtual sports, including football, basketball, and tennis. You can place bets on virtual sports events and win big prizes.

    6. 4RABET App: 4RABET also offers a mobile app for its users, allowing you to access the platform on-the-go. The app is available for both iOS and Android devices, and offers a seamless gaming experience.

    4RABET login: To access the platform, you can use your 4RABET login credentials, which include your username and password. You can also use the 4RABET app login feature to access the platform on your mobile device.

    4RABET online: 4RABET is available online, and you can access the platform from anywhere, at any time. You can use your 4RABET login credentials to access the platform and start playing your favorite games.

    4ra bet, 4rbet, 4rabet, 4ra bet, 4rabet online, 4rabet app login – all these options are available on 4RABET, giving you a wide range of choices to suit your gaming needs.

    How to Register and Start Playing on 4RABET

    To start playing on 4RABET, you need to register an account on their official website. Here’s a step-by-step guide to help you get started:

    Step 1: Go to 4RABET Official Website

    Visit the official 4RABET website at 4rabet.com and click on the “Register” button. You can also download the 4RABET app from the App Store or Google Play Store and register from there.

    Step 2: Fill in the Registration Form

    Fill in the registration form with your personal details, including your name, email address, phone number, and password. Make sure to fill in all the required fields accurately.

    Important: Verify Your Email Address

    After filling in the registration form, you will receive an email from 4RABET to verify your email address. Click on the verification link in the email to activate your account.

    Step 3: Make a Deposit and Start Playing

    Once your account is activated, you can make a deposit using various payment methods available on the 4RABET website, such as credit cards, e-wallets, and bank transfers. You can then start playing your favorite games, including sports betting, casino games, and more.

    Additional Tips:

    Make sure to read and understand the 4RABET terms and conditions before starting to play.

    Set a budget for yourself and stick to it to avoid overspending.

    Take advantage of the 4RABET welcome bonus and other promotions to boost your bankroll.

    If you encounter any issues, contact the 4RABET customer support team for assistance.

    By following these steps, you can easily register and start playing on 4RABET. Remember to always play responsibly and have fun!

    Promotions and Bonuses on 4RABET

    4RABET is committed to providing its users with an exceptional gaming experience, and one way we do this is by offering a range of promotions and bonuses. Whether you’re a new or existing user, there’s always something to look forward to on our platform.

    Welcome Bonus

    New users can take advantage of our welcome bonus, which offers a 100% match of their initial deposit, up to ₹10,000. This is a great way to get started with your 4RABET journey and give you a boost to try out our various games and features.

    Daily Bonuses

    We also offer daily bonuses to keep the excitement going. From Monday to Sunday, you can enjoy a range of bonuses, including:

    Day
    Bonus

    Monday 10% Cashback on all losses Tuesday 20% Bonus on all deposits Wednesday Free Spins on selected slots Thursday 50% Reload Bonus on all deposits Friday 20% Cashback on all losses Saturday Free Spins on selected slots Sunday 100% Reload Bonus on all deposits

    Tournaments and Leaderboards

    We also host regular tournaments and leaderboards, giving you the chance to compete against other users and win big prizes. From sports betting to casino games, there’s always something to get excited about on 4RABET.

    4RABET App Login

    Don’t forget to download our 4RABET app to access all our promotions and bonuses on-the-go. Simply log in with your existing credentials or register a new account to start enjoying the benefits.

    4RABET Official Website

    For more information on our promotions and bonuses, visit our official website at 4rabet.com. We’re always adding new and exciting offers, so be sure to check back regularly to stay up-to-date.

    Leave a Reply

    Your email address will not be published. Required fields are makes.

    GET HELP

    COMPANY

    +1 832 929 6235

    info@dlytecollections.com 

    9001 Jones Road, Houston Texas USA

    Copyright © 2023. All rights reserved