this.primevue = this.primevue || {};
this.primevue.treetable = this.primevue.treetable || {};
this.primevue.treetable.style = (function (BaseStyle) {
    'use strict';

    function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

    var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);

    var theme = function theme(_ref) {
      var dt = _ref.dt;
      return "\n.p-treetable {\n    position: relative;\n}\n\n.p-treetable-table {\n    border-spacing: 0px;\n    width: 100%;\n}\n\n.p-treetable-sortable-column {\n    cursor: pointer;\n    user-select: none;\n    outline-color: transparent;\n}\n\n.p-treetable-column-title,\n.p-treetable-sort-icon,\n.p-treetable-sort-badge {\n    vertical-align: middle;\n}\n\n.p-treetable-sort-icon {\n    color: ".concat(dt('treetable.sort.icon.color'), ";\n    margin-left: 0.5rem;\n    transition: color ").concat(dt('transition.duration'), ";\n}\n\n.p-treetable-sort-badge {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    border-radius: 50%;\n    height: 1rem;\n    min-width: 1rem;\n    line-height: 1rem;\n    margin-left: 0.5rem;\n}\n\n.p-treetable-sortable-column:not(.p-treetable-column-sorted):hover {\n    background: ").concat(dt('treetable.header.cell.hover.background'), ";\n    color: ").concat(dt('treetable.header.cell.hover.color'), ";\n}\n\n.p-treetable-sortable-column:not(.p-treetable-column-sorted):hover .p-treetable-sort-icon {\n    color: ").concat(dt('treetable.sort.icon.hover.color'), ";\n}\n\n.p-treetable-column-sorted {\n    background: ").concat(dt('highlight.background'), ";\n    color: ").concat(dt('highlight.color'), ";\n}\n\n.p-treetable-sortable-column:focus-visible {\n    outline: ").concat(dt('focus.ring.width'), " ").concat(dt('focus.ring.style'), " ").concat(dt('focus.ring.color'), ";\n    outline-offset: -1px;\n}\n\n.p-treetable-column-sorted .p-treetable-sort-icon {\n    color: ").concat(dt('highlight.color'), ";\n}\n\n.p-treetable-hoverable .p-treetable-selectable-row {\n    cursor: pointer;\n}\n\n.p-treetable-scrollable > .p-treetable-table-container {\n    position: relative;\n}\n\n.p-treetable-scrollable-table > .p-treetable-thead {\n    top: 0;\n    z-index: 1;\n}\n\n.p-treetable-scrollable-table > .p-treetable-frozen-tbody {\n    position: sticky;\n    z-index: 1;\n}\n\n.p-treetable-scrollable-table>.p-treetable-tfoot {\n    bottom: 0;\n    z-index: 1;\n}\n\n.p-treetable-scrollable .p-treetable-frozen-column {\n    position: sticky;\n    background: inherit;\n}\n\n.p-treetable-scrollable th.p-treetable-frozen-column {\n    z-index: 1;\n}\n\n.p-treetable-scrollable > .p-treetable-table-container > .p-treetable-table > .p-treetable-thead,\n.p-treetable-scrollable > .p-treetable-table-container > .p-virtualscroller > .p-treetable-table > .p-treetable-thead {\n    background: ").concat(dt('treetable.header.cell.background'), ";\n}\n\n.p-treetable-scrollable > .p-treetable-table-container > .p-treetable-table > .p-treetable-tfoot,\n.p-treetable-scrollable > .p-treetable-table-container > .p-virtualscroller > .p-treetable-table > .p-treetable-tfoot {\n    background: ").concat(dt('treetable.footer.cell.background'), ";\n}\n\n.p-treetable-flex-scrollable {\n    display: flex;\n    flex-direction: column;\n    height: 100%;\n}\n\n.p-treetable-flex-scrollable>.p-treetable-table-container {\n    display: flex;\n    flex-direction: column;\n    flex: 1;\n    height: 100%;\n}\n\n.p-treetable-scrollable-table > .p-treetable-tbody > .p-treetable-row-group-header {\n    position: sticky;\n    z-index: 1;\n}\n\n/* Resizable */\n.p-treetable-resizable-table > .p-treetable-thead > tr > th,\n.p-treetable-resizable-table > .p-treetable-tfoot > tr > td,\n.p-treetable-resizable-table > .p-treetable-tbody > tr > td {\n    overflow: hidden;\n    white-space: nowrap;\n}\n\n.p-treetable-resizable-table > .p-treetable-thead > tr > th.p-treetable-resizable-column:not(.p-treetable-frozen-column) {\n    background-clip: padding-box;\n    position: relative;\n}\n\n.p-treetable-resizable-table-fit > .p-treetable-thead > tr > th.p-treetable-resizable-column:last-child .p-treetable-column-resizer {\n    display: none;\n}\n\n.p-treetable-column-resizer {\n    display: block;\n    position: absolute;\n    top: 0;\n    right: 0;\n    margin: 0;\n    width: 0.5rem;\n    height: 100%;\n    padding: 0px;\n    cursor: col-resize;\n    border: 1px solid transparent;\n}\n\n.p-treetable-column-header-content {\n    display: flex;\n    align-items: center;\n}\n\n.p-treetable-column-resize-indicator {\n    width: 1px;\n    position: absolute;\n    z-index: 10;\n    display: none;\n    background: ").concat(dt('treetable.resizer.color'), ";\n}\n\n.p-treetable-row-reorder-indicator-up,\n.p-treetable-row-reorder-indicator-down {\n    position: absolute;\n    display: none;\n}\n\n.p-treetable-reorderable-column,\n.p-treetable-reorderable-row-handle {\n    cursor: move;\n}\n\n.p-treetable-mask {\n    position: absolute;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    z-index: 2;\n}\n\n.p-treetable-virtualscroller-spacer {\n    display: flex;\n}\n\n.p-treetable .p-virtualscroller .p-virtualscroller-loading {\n    transform: none !important;\n    min-height: 0;\n    position: sticky;\n    top: 0;\n    left: 0;\n}\n\n.p-treetable-paginator-top {\n    border: solid ").concat(dt('treetable.header.border.color'), ";\n    border-width: 0 0 1px 0;\n}\n\n.p-treetable-header {\n    background: ").concat(dt('treetable.header.background'), ";\n    color: ").concat(dt('treetable.header.color'), ";\n    border: 1px solid ").concat(dt('treetable.header.border.color'), ";\n    border-width: 0 0 1px 0;\n    padding: 0.75rem 1rem;\n    font-weight: 600;\n}\n\n.p-treetable-footer {\n    background: ").concat(dt('treetable.footer.background'), ";\n    color: ").concat(dt('treetable.footer.color'), ";\n    border: 1px solid ").concat(dt('treetable.footer.border.color'), ";\n    border-width: 0 0 1px 0;\n    padding: 0.75rem 1rem;\n    font-weight: 600;\n}\n\n.p-treetable-thead > tr > th {\n    text-align: left;\n    padding: 0.75rem 1rem;\n    background: ").concat(dt('treetable.header.cell.background'), ";\n    border: 1px solid ").concat(dt('treetable.header.cell.border.color'), ";\n    border-width: 0 0 1px 0;\n    color: ").concat(dt('treetable.header.cell.color'), ";\n    font-weight: 600;\n    transition: background-color ").concat(dt('transition.duration'), ", color ").concat(dt('transition.duration'), ", border-color ").concat(dt('transition.duration'), ", box-shadow ").concat(dt('transition.duration'), ", outline-color ").concat(dt('transition.duration'), ";\n}\n\n.p-treetable-tbody > tr {\n    outline-color: transparent;\n    background: ").concat(dt('treetable.row.background'), ";\n    color: ").concat(dt('treetable.row.color'), ";\n    transition: background-color ").concat(dt('transition.duration'), ", color ").concat(dt('transition.duration'), ", border-color ").concat(dt('transition.duration'), ", box-shadow ").concat(dt('transition.duration'), ", outline-color ").concat(dt('transition.duration'), ";\n}\n\n.p-treetable-tbody > tr > td {\n    text-align: left;\n    border: 1px solid ").concat(dt('treetable.body.cell.border.color'), ";\n    border-width: 0 0 1px 0;\n    padding: 0.75rem 1rem;\n}\n\n.p-treetable-hoverable .p-treetable-tbody > tr:not(.p-treetable-row-selected):hover {\n    background: ").concat(dt('treetable.row.hover.background'), ";\n    color: ").concat(dt('treetable.row.hover.color'), ";\n}\n\n.p-treetable-tbody > tr.p-treetable-row-selected {\n    background: ").concat(dt('highlight.background'), ";\n    color: ").concat(dt('highlight.color'), ";\n}\n\n.p-treetable-tbody > tr:has(+ .p-treetable-row-selected) > td {\n    border-bottom-color: ").concat(dt('treetable.body.cell.selected.border.color'), ";\n}\n\n.p-treetable-tbody > tr.p-treetable-row-selectedt > td {\n    border-bottom-color: ").concat(dt('treetable.body.cell.selected.border.color'), ";\n}\n\n.p-treetable-tbody > tr:focus-visible {\n    outline: 1px solid ").concat(dt('focus.ring.color'), ";\n    outline-offset: -1px;\n}\n\n.p-treetable-tbody > tr.p-treetable-contextmenu-row-selected {\n    outline: 1px solid ").concat(dt('focus.ring.color'), ";\n    outline-offset: -1px;\n}\n\n.p-treetable-tfoot > tr > td {\n    text-align: left;\n    padding: 0.75rem 1rem;\n    border: 1px solid ").concat(dt('treetable.footer.cell.border.color'), ";\n    border-width: 0 0 1px 0;\n    font-weight: 600;\n    color: ").concat(dt('treetable.footer.cell.color'), ";\n    background: ").concat(dt('treetable.footer.cell.background'), ";\n}\n\n.p-treetable-loading-icon {\n    font-size: 2rem;\n    width: 2rem;\n    height: 2rem;\n}\n\n.p-treetable-gridlines .p-treetable-header {\n    border-width: 1px;\n}\n\n.p-treetable-gridlines .p-treetable-footer {\n    border-width: 0 1px 1px 1px;\n}\n\n.p-treetable-gridlines .p-treetable-paginator-top {\n    border-width: 0 1px 0 1px;\n}\n\n.p-treetable-gridlines .p-treetable-paginator-bottom {\n    border-width: 0 1px 1px 1px;\n    border-style: solid;\n    border-color: ").concat(dt('treetable.footer.border.color'), ";\n}\n\n.p-treetable-gridlines .p-treetable-thead > tr > th {\n    border-width: 1px 0 1px 1px;\n}\n\n.p-treetable-gridlines .p-treetable-thead > tr > th:last-child {\n    border-width: 1px;\n}\n\n.p-treetable-gridlines .p-treetable-tbody > tr > td {\n    border-width: 1px 0 0 1px;\n}\n\n.p-treetable-gridlines .p-treetable-tbody > tr > td:last-child {\n    border-width: 1px 1px 0 1px;\n}\n\np-treetable-gridlines .p-treetable-tbody > tr:last-child>td {\n    border-width: 1px 0 1px 1px;\n}\n\n.p-treetable-gridlines .p-treetable-tbody > tr:last-child > td:last-child {\n    border-width: 1px;\n}\n\n.p-treetable-gridlines .p-treetable-tfoot>tr>td {\n    border-width: 1px 0 1px 1px;\n}\n\n.p-treetable-gridlines .p-treetable-tfoot > tr > td:last-child {\n    border-width: 1px 1px 1px 1px;\n}\n\n.p-treetable.p-treetable-gridlines .p-treetable-thead +.p-treetable-tfoot > tr > td {\n    border-width: 0 0 1px 1px;\n}\n\n.p-treetable.p-treetable-gridlines .p-treetable-thead + .p-treetable-tfoot > tr > td:last-child {\n    border-width: 0 1px 1px 1px;\n}\n\n.p-treetable.p-treetable-gridlines:has(.p-treetable-thead):has(.p-treetable-tbody) .p-treetable-tbody > tr > td {\n    border-width: 0 0 1px 1px;\n}\n\n.p-treetable.p-treetable-gridlines:has(.p-treetable-thead):has(.p-treetable-tbody) .p-treetable-tbody > tr > td:last-child {\n    border-width: 0 1px 1px 1px;\n}\n\n.p-treetable.p-treetable-gridlines:has(.p-treetable-tbody):has(.p-treetable-tfoot) .p-treetable-tbody > tr:last-child > td {\n    border-width: 0 0 0 1px;\n}\n\n.p-treetable.p-treetable-gridlines:has(.p-treetable-tbody):has(.p-treetable-tfoot) .p-treetable-tbody > tr:last-child > td:last-child {\n    border-width: 0 1px 0 1px;\n}\n\n.p-treetable.p-treetable-striped .p-treetable-tbody > tr.p-row-odd {\n    background: ").concat(dt('treetable.row.striped.background'), ");\n}\n\n.p-treetable.p-treetable-striped .p-treetable-tbody > tr.p-row-odd.p-highlight {\n    background: ").concat(dt('highlight.background'), ");\n    color: ").concat(dt('highlight.color'), ");\n}\n\n.p-treetable.p-treetable-sm .p-treetable-header {\n    padding: 0.375rem 0.5rem;\n}\n\n.p-treetable.p-treetable-sm .p-treetable-thead > tr > th {\n    padding: 0.375rem 0.5rem;\n}\n\n.p-treetable.p-treetable-sm .p-treetable-tbody > tr > td {\n    padding: 0.375rem 0.5rem;\n}\n\n.p-treetable.p-treetable-sm .p-treetable-tfoot > tr > td {\n    padding: 0.375rem 0.5rem;\n}\n\n.p-treetable.p-treetable-sm .p-treetable-footer {\n    padding: 0.375rem 0.5rem;\n}\n\n.p-treetable.p-treetable-lg .p-treetable-header {\n    padding: 0.9375rem 1.25rem;\n}\n\n.p-treetable.p-treetable-lg .p-treetable-thead > tr > th {\n    padding: 0.9375rem 1.25rem;\n}\n\n.p-treetable.p-treetable-lg .p-treetable-tbody>tr>td {\n    padding: 0.9375rem 1.25rem;\n}\n\n.p-treetable.p-treetable-lg .p-treetable-tfoot>tr>td {\n    padding: 0.9375rem 1.25rem;\n}\n\n.p-treetable.p-treetable-lg .p-treetable-footer {\n    padding: 0.9375rem 1.25rem;\n}\n\n.p-treetable-row-toggle-button {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    overflow: hidden;\n    position: relative;\n    width: 1.75rem;\n    height: 1.75rem;\n    color: ").concat(dt('treetable.row.action.color'), ";\n    border: 0 none;\n    background: transparent;\n    cursor: pointer;\n    border-radius: 50%;\n    transition: background-color ").concat(dt('transition.duration'), ", color ").concat(dt('transition.duration'), ", border-color ").concat(dt('transition.duration'), ", box-shadow ").concat(dt('transition.duration'), ", outline-color ").concat(dt('transition.duration'), ";\n    outline-color: transparent;\n    user-select: none;\n    margin-right: 0.5rem;\n}\n\n.p-treetable-row-toggle-button:enabled:hover {\n    color: ").concat(dt('treetable.row.action.hover.color'), ";\n    background: ").concat(dt('treetable.row.action.hover.background'), ";\n}\n\n.p-treetable-row-toggle-button:focus-visible {\n    outline: 1px solid ").concat(dt('focus.ring.color'), ";\n    outline-offset: 2px;\n}\n\n.p-treetable-tbody > tr.p-treetable-row-selected .p-treetable-row-toggle-button:hover{\n    background: ").concat(dt('treetable.row.action.highlight.hover.background'), ";\n    color: inherit;\n}\n\n.p-treetable .p-treetable-row-checkbox {\n    vertical-align: middle;\n    margin-right: 0.5rem;\n}\n");
    };
    var classes = {
      root: function root(_ref2) {
        var instance = _ref2.instance,
          props = _ref2.props;
        return ['p-treetable p-component', {
          'p-treetable-hoverable': props.rowHover || instance.rowSelectionMode,
          'p-treetable-resizable': props.resizableColumns,
          'p-treetable-resizable-fit': props.resizableColumns && props.columnResizeMode === 'fit',
          'p-treetable-scrollable': props.scrollable,
          'p-treetable-flex-scrollable': props.scrollable && props.scrollHeight === 'flex',
          'p-treetable-gridlines': props.showGridlines,
          'p-treetable-sm': props.size === 'small',
          'p-treetable-lg': props.size === 'large'
        }];
      },
      loading: 'p-treetable-loading',
      //TODO: required?
      mask: 'p-treetable-mask p-component-overlay',
      loadingIcon: 'p-treetable-loading-icon',
      header: 'p-treetable-header',
      paginator: function paginator(_ref3) {
        var position = _ref3.position;
        return 'p-treetable-paginator-' + position;
      },
      tableContainer: 'p-treetable-table-container',
      table: function table(_ref4) {
        var props = _ref4.props;
        return ['p-treetable-table', {
          'p-treetable-scrollable-table': props.scrollable,
          'p-treetable-resizable-table': props.resizableColumns,
          'p-treetable-resizable-table-fit': props.resizableColumns && props.columnResizeMode === 'fit'
        }];
      },
      thead: 'p-treetable-thead',
      headerCell: function headerCell(_ref5) {
        var instance = _ref5.instance,
          props = _ref5.props,
          context = _ref5.context;
        return [{
          'p-treetable-sortable-column': instance.columnProp('sortable'),
          'p-treetable-resizable-column': props.resizableColumns,
          'p-treetable-column-sorted': context === null || context === void 0 ? void 0 : context.sorted,
          'p-treetable-frozen-column': instance.columnProp('frozen')
        }];
      },
      columnResizer: 'p-treetable-column-resizer',
      columnTitle: 'p-treetable-column-title',
      sortIcon: 'p-treetable-sort-icon',
      sortBadge: 'p-treetable-sort-badge',
      tbody: 'p-treetable-tbody',
      row: function row(_ref6) {
        var instance = _ref6.instance;
        return [{
          'p-treetable-row-selected': instance.selected
        }];
      },
      bodyCell: function bodyCell(_ref7) {
        var instance = _ref7.instance;
        return [{
          'p-treetable-frozen-column': instance.columnProp('frozen')
        }];
      },
      rowToggleButton: 'p-treetable-row-toggle-button',
      rowToggleIcon: 'p-treetable-row-toggle-icon',
      rowCheckbox: 'p-treetable-row-checkbox',
      emptyMessage: 'p-treetable-empty-message',
      tfoot: 'p-treetable-tfoot',
      footerCell: function footerCell(_ref8) {
        var instance = _ref8.instance;
        return [{
          'p-treetable-frozen-column': instance.columnProp('frozen')
        }];
      },
      footer: 'p-treetable-footer',
      columnResizeHelper: 'p-treetable-column-resize-indicator'
    };
    var inlineStyles = {
      tableContainer: {
        overflow: 'auto'
      },
      thead: {
        position: 'sticky'
      },
      tfoot: {
        position: 'sticky'
      }
    };
    var TreeTableStyle = BaseStyle__default["default"].extend({
      name: 'treetable',
      theme: theme,
      classes: classes,
      inlineStyles: inlineStyles
    });

    return TreeTableStyle;

})(primevue.base.style);
