var _ja, _ja2, _pt, _pt2;
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import reservationLocales from "./locales/locales";
import orderListLocales from "../orderList/locales";
import salesManagementLocales from "../pisellSalesManagement/locales";
export var GRID_DS_KEY = 'tables';

/** 与 reservationMock 主画布 id 一致，用于接口 layout 回填 */
export var RESERVATION_MAIN_CANVAS_ID = 'main';

/**
 * 表格 / 平面图切换持久化 key。
 * v2：产品默认改为平面图后 bump key，避免旧版已持久化的 grid 继续覆盖默认。
 */
export var PISELL_RESERVATION_BODY_VIEW_STORAGE_KEY = 'pisell-reservation.body-view.v2';

/** HUD「画布预约」抽屉内嵌 Monitor 表格：列显隐持久化独立 key，避免与主表混用 */
export var PISELL_RESERVATION_HUD_DRAWER_COLUMN_STORAGE_KEY = 'pisell-reservation.hud-booking-drawer.columns';

/** HUD 表格：全量在内存中过滤后的本地分页默认每页条数（与主表服务端分页无关） */
export var PISELL_RESERVATION_HUD_LOCAL_PAGE_SIZE = 50;

/** RoomCard 子预约块：`closest` 解析用户点中的预约 */
export var PISELL_FLOOR_CHECKOUT_BOOKING_SELECTOR = '[data-pisell-floor-checkout-booking]';

/**
 * 时间轴默认区间：锚定日历日当日 02:00 — 次日 02:00（跨日 24h）
 * 可由 toolBar → PisellReservationScheduleBand 的 timeNavigatorProps 覆盖
 */
export var RESERVATION_TIMELINE_BUSINESS_RANGE = {
  start: '02:00',
  end: '02:00'
};

/**
 * 预约页复用 Sales Monitor 的 booking / orderList 文案 key，init 时需一并注入，
 * 否则筛排、列头等会退化为展示 key（与 PisellSalesManagement 合并策略一致）。
 */
export var PISELL_RESERVATION_PAGE_LOCALES = {
  en: _objectSpread(_objectSpread(_objectSpread({}, orderListLocales.en), salesManagementLocales.en), reservationLocales.en),
  'zh-CN': _objectSpread(_objectSpread(_objectSpread({}, orderListLocales['zh-CN']), salesManagementLocales['zh-CN']), reservationLocales['zh-CN']),
  'zh-HK': _objectSpread(_objectSpread(_objectSpread({}, orderListLocales['zh-HK']), salesManagementLocales['zh-HK']), reservationLocales['zh-HK']),
  ja: _objectSpread(_objectSpread(_objectSpread({}, (_ja = orderListLocales.ja) !== null && _ja !== void 0 ? _ja : {}), (_ja2 = salesManagementLocales.ja) !== null && _ja2 !== void 0 ? _ja2 : {}), reservationLocales.ja),
  pt: _objectSpread(_objectSpread(_objectSpread({}, (_pt = orderListLocales.pt) !== null && _pt !== void 0 ? _pt : {}), (_pt2 = salesManagementLocales.pt) !== null && _pt2 !== void 0 ? _pt2 : {}), reservationLocales.pt)
};
export var I18N_PAGE_TITLE = 'pisell-reservation.page-title';
export var I18N_PAGE_TITLE_VENUE = 'pisell-reservation.page-title-venue';
export var I18N_HUD_TABLE_DRAWER_TITLE = 'pisell-reservation.hud-table-drawer-title';
export var I18N_NEW = 'pisell-reservation.new';
export var I18N_NEW_MODAL_TITLE = 'pisell-reservation.new-modal-title';
export var I18N_NEW_MODAL_PLACEHOLDER = 'pisell-reservation.new-modal-placeholder';
export var I18N_CANCEL = 'pisell-reservation.cancel';
export var I18N_EDIT_MAP = 'pisell-reservation.edit-map';
export var I18N_EDIT_MAP_DONE = 'pisell-reservation.edit-map-done';
export var I18N_VIEW_GRID = 'pisell-reservation.view-grid';
export var I18N_VIEW_FLOOR = 'pisell-reservation.view-floor';
export var I18N_NON_CURRENT_HINT = 'pisell-reservation.non-current-hint';
export var I18N_AT_CURRENT_TIME = 'pisell-reservation.at-current-time';
export var I18N_GO_CURRENT = 'pisell-reservation.go-current';
/** 切换营业日 / 列表刷新期间，顶栏日程带遮罩文案 */
export var I18N_SCHEDULE_DATA_LOADING = 'pisell-reservation.schedule-data-loading';

/** 顶栏时间轴拖动：防抖后统一 patch / onSearch / 宿主预约列表 */
export var RESERVATION_SCHEDULE_DEBOUNCE_MS = 300;

/** RecordBoard loading 延迟展示，避免短时 true 闪烁 */
export var RESERVATION_LOADING_SHOW_DEBOUNCE_MS = 200;

/** 新建预约弹窗：从引擎路由筛出的 proCodeId */
export var RESERVATION_NEW_MODAL_PRO_CODE_IDS = new Set(['booking_ticket', 'sales2']);