var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.ts
var recordBoardToolBarI18n_exports = {};
__export(recordBoardToolBarI18n_exports, {
  buildResourceWallStatusSortFallbackItem: () => buildResourceWallStatusSortFallbackItem,
  getDefaultFilterValue: () => getDefaultFilterValue,
  getFilterButtonText: () => getFilterButtonText,
  getSortButtonText: () => getSortButtonText,
  getViewCalendarLabel: () => getViewCalendarLabel,
  getViewFloorMapLabel: () => getViewFloorMapLabel,
  getViewGridLabel: () => getViewGridLabel,
  getViewResourceWallLabel: () => getViewResourceWallLabel
});
module.exports = __toCommonJS(recordBoardToolBarI18n_exports);
var import_utils = require("@pisell/utils");
var import_locales = require("../../../../locales");
var import_venueWallUtils = require("../ResourceWall/venueWallUtils");
function getSortButtonText() {
  const key = "pisell2.recordBoard.toolbar.sort";
  const u = import_utils.locales.getText(key);
  return u && u !== key ? u : (0, import_locales.getText)(key) || (0, import_locales.getText)("sort-button-text");
}
function buildResourceWallStatusSortFallbackItem(sortConfig) {
  const extras = typeof sortConfig === "object" && sortConfig !== null && Array.isArray(sortConfig.resourceWallSortFieldKeys) ? sortConfig.resourceWallSortFieldKeys.map((x) => String(x).trim()).filter(Boolean) : [];
  const primaryKey = extras.length > 0 ? extras[0] : import_venueWallUtils.DEFAULT_RESOURCE_WALL_STATUS_SORT_FIELD_KEYS[0];
  return {
    name: primaryKey,
    label: (0, import_locales.getText)("pisell2.recordBoard.toolbar.sortStatus"),
    isCustom: true,
    getSortItems: () => [
      {
        key: `${primaryKey}:asc:option`,
        label: (0, import_locales.getText)("pisell2.recordBoard.toolbar.sortStatusFreeFirst")
      },
      {
        key: `${primaryKey}:desc:option`,
        label: (0, import_locales.getText)("pisell2.recordBoard.toolbar.sortStatusOccupiedFirst")
      }
    ]
  };
}
function getFilterButtonText() {
  const key = "pisell2.recordBoard.toolbar.filter";
  const u = import_utils.locales.getText(key);
  return u && u !== key ? u : (0, import_locales.getText)(key) || (0, import_locales.getText)("table-action-filter-button");
}
function getViewGridLabel() {
  const key = "pisell2.recordBoard.toolbar.viewGrid";
  const u = import_utils.locales.getText(key);
  return u && u !== key ? u : (0, import_locales.getText)(key) || "Table";
}
function getViewFloorMapLabel() {
  const key = "pisell2.recordBoard.toolbar.viewFloorMap";
  const u = import_utils.locales.getText(key);
  return u && u !== key ? u : (0, import_locales.getText)(key) || "Floor map";
}
function getViewCalendarLabel() {
  const key = "pisell2.recordBoard.toolbar.viewCalendar";
  const u = import_utils.locales.getText(key);
  return u && u !== key ? u : (0, import_locales.getText)(key) || "Calendar";
}
function getViewResourceWallLabel() {
  const key = "pisell2.recordBoard.toolbar.viewResourceWall";
  const u = import_utils.locales.getText(key);
  return u && u !== key ? u : (0, import_locales.getText)(key) || "Wall";
}
function getDefaultFilterValue() {
  return {
    quickFilter: [],
    otherFilter: []
  };
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  buildResourceWallStatusSortFallbackItem,
  getDefaultFilterValue,
  getFilterButtonText,
  getSortButtonText,
  getViewCalendarLabel,
  getViewFloorMapLabel,
  getViewGridLabel,
  getViewResourceWallLabel
});
