"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.TEMPLATE_POST_TYPE = exports.TEMPLATE_PART_POST_TYPE = exports.TEMPLATE_PART_AREA_DEFAULT_CATEGORY = exports.TEMPLATE_PART_ALL_AREAS_CATEGORY = exports.TEMPLATE_ORIGINS = exports.POST_TYPE_LABELS = exports.PATTERN_USER_CATEGORY = exports.PATTERN_TYPES = exports.PATTERN_SYNC_TYPES = exports.PATTERN_DEFAULT_CATEGORY = exports.OPERATOR_IS_NOT = exports.OPERATOR_IS_NONE = exports.OPERATOR_IS_ANY = exports.OPERATOR_IS = exports.NAVIGATION_POST_TYPE = exports.LAYOUT_TABLE = exports.LAYOUT_LIST = exports.LAYOUT_GRID = exports.FOCUSABLE_ENTITIES = exports.EXCLUDED_PATTERN_SOURCES = void 0;
var _i18n = require("@wordpress/i18n");
var _patterns = require("@wordpress/patterns");
var _lockUnlock = require("../lock-unlock");
/**
 * WordPress dependencies
 */

/**
 * Internal dependencies
 */

// Navigation
const NAVIGATION_POST_TYPE = exports.NAVIGATION_POST_TYPE = 'wp_navigation';

// Templates.
const TEMPLATE_POST_TYPE = exports.TEMPLATE_POST_TYPE = 'wp_template';
const TEMPLATE_PART_POST_TYPE = exports.TEMPLATE_PART_POST_TYPE = 'wp_template_part';
const TEMPLATE_ORIGINS = exports.TEMPLATE_ORIGINS = {
  custom: 'custom',
  theme: 'theme',
  plugin: 'plugin'
};
const TEMPLATE_PART_AREA_DEFAULT_CATEGORY = exports.TEMPLATE_PART_AREA_DEFAULT_CATEGORY = 'uncategorized';
const TEMPLATE_PART_ALL_AREAS_CATEGORY = exports.TEMPLATE_PART_ALL_AREAS_CATEGORY = 'all-parts';

// Patterns.
const {
  PATTERN_TYPES,
  PATTERN_DEFAULT_CATEGORY,
  PATTERN_USER_CATEGORY,
  EXCLUDED_PATTERN_SOURCES,
  PATTERN_SYNC_TYPES
} = (0, _lockUnlock.unlock)(_patterns.privateApis);

// Entities that are editable in focus mode.
exports.PATTERN_SYNC_TYPES = PATTERN_SYNC_TYPES;
exports.EXCLUDED_PATTERN_SOURCES = EXCLUDED_PATTERN_SOURCES;
exports.PATTERN_USER_CATEGORY = PATTERN_USER_CATEGORY;
exports.PATTERN_DEFAULT_CATEGORY = PATTERN_DEFAULT_CATEGORY;
exports.PATTERN_TYPES = PATTERN_TYPES;
const FOCUSABLE_ENTITIES = exports.FOCUSABLE_ENTITIES = [TEMPLATE_PART_POST_TYPE, NAVIGATION_POST_TYPE, PATTERN_TYPES.user];
const POST_TYPE_LABELS = exports.POST_TYPE_LABELS = {
  [TEMPLATE_POST_TYPE]: (0, _i18n.__)('Template'),
  [TEMPLATE_PART_POST_TYPE]: (0, _i18n.__)('Template part'),
  [PATTERN_TYPES.user]: (0, _i18n.__)('Pattern'),
  [NAVIGATION_POST_TYPE]: (0, _i18n.__)('Navigation')
};

// DataViews constants
const LAYOUT_GRID = exports.LAYOUT_GRID = 'grid';
const LAYOUT_TABLE = exports.LAYOUT_TABLE = 'table';
const LAYOUT_LIST = exports.LAYOUT_LIST = 'list';
const OPERATOR_IS = exports.OPERATOR_IS = 'is';
const OPERATOR_IS_NOT = exports.OPERATOR_IS_NOT = 'isNot';
const OPERATOR_IS_ANY = exports.OPERATOR_IS_ANY = 'isAny';
const OPERATOR_IS_NONE = exports.OPERATOR_IS_NONE = 'isNone';
//# sourceMappingURL=constants.js.map