'use strict';

var BaseStyle = require('primevue/base/style');

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-inputchips {\n    display: inline-flex;\n}\n\n.p-inputchips-input {\n    margin: 0;\n    padding: 0;\n    list-style-type: none;\n    cursor: text;\n    overflow: hidden;\n    display: flex;\n    align-items: center;\n    flex-wrap: wrap;\n    padding: 0.25rem 0.25rem;\n    gap: 0.25rem;\n    color: ".concat(dt('inputchips.color'), ";\n    background: ").concat(dt('inputchips.background'), ";\n    border: 1px solid ").concat(dt('inputchips.border.color'), ";\n    border-radius: ").concat(dt('rounded.base'), ";\n    width: 100%;\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    outline-color: transparent;\n    box-shadow: ").concat(dt('inputchips.box.shadow'), ";\n}\n\n.p-inputchips:not(.p-disabled):hover .p-inputchips-input {\n    border-color: ").concat(dt('inputchips.hover.border.color'), ";\n}\n\n.p-inputchips:not(.p-disabled).p-focus .p-inputchips-input {\n    border-color: ").concat(dt('inputchips.focus.border.color'), ";\n    outline: 0 none;\n}\n\n.p-inputinputchips.p-invalid .p-inputchips-input {\n    border-color: ").concat(dt('inputchips.invalid.border.color'), ";\n}\n\n.p-variant-filled.p-inputchips-input {\n    background: ").concat(dt('inputchips.filled.background'), ";\n}\n\n.p-inputchips:not(.p-disabled).p-focus .p-variant-filled.p-inputchips-input  {\n    background: ").concat(dt('inputchips.filled.focus.background'), ";\n}\n\n.p-inputinputchips.p-disabled .p-inputchips-input {\n    opacity: 1;\n    background: ").concat(dt('inputchips.disabled.background'), ";\n    color: ").concat(dt('inputchips.disabled.color'), ";\n}\n\n.p-inputchips-input-item {\n    padding: 0.25rem 0;\n    margin-left: 0.5rem;\n    flex: 1 1 auto;\n    display: inline-flex;\n}\n\n.p-inputchips-input-item input {\n    border: 0 none;\n    outline: 0 none;\n    background: transparent;\n    margin: 0;\n    padding: 0;\n    box-shadow: none;\n    border-radius: 0;\n    width: 100%;\n    font-family: inherit;\n    font-feature-settings: inherit;\n    font-size: 1rem;\n    color: inherit;\n}\n\n.p-inputchips-input-item input::placeholder {\n    color: ").concat(dt('inputchips.placeholder.color'), ";\n}\n\n.p-fluid .p-inputchips {\n    display: flex;\n}\n");
};
var classes = {
  root: function root(_ref2) {
    var instance = _ref2.instance,
      props = _ref2.props;
    return ['p-inputchips p-component p-inputwrapper', {
      'p-disabled': props.disabled,
      'p-invalid': props.invalid,
      'p-focus': instance.focused,
      'p-inputwrapper-filled': props.modelValue && props.modelValue.length || instance.inputValue && instance.inputValue.length,
      'p-inputwrapper-focus': instance.focused
    }];
  },
  container: function container(_ref3) {
    var props = _ref3.props,
      instance = _ref3.instance;
    return ['p-inputchips-input', {
      'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled'
    }];
  },
  token: function token(_ref4) {
    var state = _ref4.state,
      index = _ref4.index;
    return ['p-inputchips-chip', {
      'p-focus': state.focusedIndex === index
    }];
  },
  label: 'p-inputchips-chip-label',
  removeTokenIcon: 'p-inputchips-chip-icon',
  inputToken: 'p-inputchips-input-item'
};
var InputChipsStyle = BaseStyle__default["default"].extend({
  name: 'inputchips',
  theme: theme,
  classes: classes
});

module.exports = InputChipsStyle;
