import BaseStyle from 'primevue/base/style';

var theme = function theme(_ref) {
  var dt = _ref.dt;
  return "\n.p-treeselect {\n    display: inline-flex;\n    cursor: pointer;\n    position: relative;\n    user-select: none;\n    background: ".concat(dt('treeselect.background'), ";\n    border: 1px solid ").concat(dt('treeselect.border.color'), ";\n    transition: background-color ").concat(dt('transition.duration'), ", color ").concat(dt('transition.duration'), ", border-color ").concat(dt('transition.duration'), ", outline-color ").concat(dt('transition.duration'), ";\n    border-radius: ").concat(dt('rounded.base'), ";\n    outline-color: transparent;\n    box-shadow: ").concat(dt('treeselect.box.shadow'), ";\n}\n\n.p-treeselect:not(.p-disabled):hover {\n    border-color: ").concat(dt('treeselect.hover.border.color'), ";\n}\n\n.p-treeselect:not(.p-disabled).p-focus {\n    border-color: ").concat(dt('treeselect.focus.border.color'), ";\n    outline: 0 none;\n}\n\n.p-treeselect.p-variant-filled {\n    background: ").concat(dt('treeselect.filled.background'), ";\n}\n\n.p-treeselect.p-variant-filled.p-focus {\n    background: ").concat(dt('treeselect.filled.focus.background'), ";\n}\n\n.p-treeselect.p-invalid {\n    border-color: ").concat(dt('treeselect.invalid.border.color'), ";\n}\n\n.p-treeselect.p-disabled {\n    opacity: 1;\n    background: ").concat(dt('treeselect.disabled.background'), ";\n}\n\n.p-treeselect-dropdown {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-shrink: 0;\n    background: transparent;\n    color: ").concat(dt('treeselect.toggle.color'), ";\n    width: 2.5rem;\n    border-top-right-radius: ").concat(dt('rounded.base'), ";\n    border-bottom-right-radius: ").concat(dt('rounded.base'), ";\n}\n\n.p-treeselect-label-container {\n    overflow: hidden;\n    flex: 1 1 auto;\n    cursor: pointer;\n}\n\n.p-treeselect-label {\n    display: block;\n    white-space: nowrap;\n    cursor: pointer;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    padding: 0.5rem 0.75rem;\n    color: ").concat(dt('treeselect.color'), ";\n}\n\n.p-treeselect-label.p-placeholder {\n    color: ").concat(dt('treeselect.placeholder.color'), ";\n}\n\n.p-treeselect.p-disabled .p-treeselect-label {\n    color: ").concat(dt('treeselect.disabled.color'), ";\n}\n\n.p-inputwrapper-filled.p-treeselect.p-treeselect-display-chip .p-treeselect-label {\n    padding: 0.25rem 0.25rem;\n}\n\n.p-treeselect-label-empty {\n    overflow: hidden;\n    visibility: hidden;\n}\n\n.p-treeselect .p-treeselect-overlay {\n    min-width: 100%;\n}\n\n.p-treeselect-overlay {\n    position: absolute;\n    top: 0;\n    left: 0;\n    background: ").concat(dt('treeselect.overlay.background'), ";\n    color: ").concat(dt('treeselect.overlay.color'), ";\n    border: 1px solid ").concat(dt('treeselect.overlay.border.color'), ";\n    border-radius: ").concat(dt('rounded.base'), ";\n    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n}\n\n.p-treeselect-empty-message {\n    padding: 0.5rem 0.75rem;\n    background: transparent;\n}\n\n.p-fluid .p-treeselect {\n    display: flex;\n}\n\n.p-treeselect-overlay .p-tree {\n    padding: 0.25rem 0.25rem;\n}\n");
};
var inlineStyles = {
  root: function root(_ref2) {
    var props = _ref2.props;
    return {
      position: props.appendTo === 'self' ? 'relative' : undefined
    };
  }
};
var classes = {
  root: function root(_ref3) {
    var instance = _ref3.instance,
      props = _ref3.props;
    return ['p-treeselect p-component p-inputwrapper', {
      'p-treeselect-display-chip': props.display === 'chip',
      'p-disabled': props.disabled,
      'p-invalid': props.invalid,
      'p-focus': instance.focused,
      'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled',
      'p-inputwrapper-filled': !instance.emptyValue,
      'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
      'p-treeselect-open': instance.overlayVisible
    }];
  },
  labelContainer: 'p-treeselect-label-container',
  label: function label(_ref4) {
    var instance = _ref4.instance,
      props = _ref4.props;
    return ['p-treeselect-label', {
      'p-placeholder': instance.label === props.placeholder,
      'p-treeselect-label-empty': !props.placeholder && instance.emptyValue
    }];
  },
  token: 'p-treeselect-chip',
  tokenLabel: 'p-treeselect-chip-label',
  trigger: 'p-treeselect-dropdown',
  triggerIcon: 'p-treeselect-dropdown-icon',
  panel: function panel(_ref5) {
    var instance = _ref5.instance;
    return ['p-treeselect-overlay p-component', {
      'p-ripple-disabled': instance.$primevue.config.ripple === false
    }];
  },
  wrapper: 'p-treeselect-tree-container',
  emptyMessage: 'p-treeselect-empty-message'
};
var TreeSelectStyle = BaseStyle.extend({
  name: 'treeselect',
  theme: theme,
  classes: classes,
  inlineStyles: inlineStyles
});

export { TreeSelectStyle as default };
