"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.canTransition = void 0;
var _EXPERIENCE_STATE_TRANSITIONS = require("./EXPERIENCE_STATE_TRANSITIONS");
/**
 * Validates whether a state transition is allowed.
 *
 * @param fromState - The current state
 * @param toState - The target state to transition to
 * @returns true if the transition is valid, false otherwise
 */
var canTransition = exports.canTransition = function canTransition(fromState, toState) {
  var _EXPERIENCE_STATE_TRA, _EXPERIENCE_STATE_TRA2;
  return (_EXPERIENCE_STATE_TRA = (_EXPERIENCE_STATE_TRA2 = _EXPERIENCE_STATE_TRANSITIONS.EXPERIENCE_STATE_TRANSITIONS[fromState]) === null || _EXPERIENCE_STATE_TRA2 === void 0 ? void 0 : _EXPERIENCE_STATE_TRA2.includes(toState)) !== null && _EXPERIENCE_STATE_TRA !== void 0 ? _EXPERIENCE_STATE_TRA : false;
};