define("metaserver/static/js/prod_assets_web_modules/dig-components/chips",["exports","../classnames","react","./buttons","focus-visible","./icons","./icons/src","./progress_indicators","../react-transition-group/CSSTransition","../common/extends","../common/Transition","react-dom"],(function(e,i,t,s,n,a,c,r,l,o,p,d){"use strict";var h=t.forwardRef(({children:e,className:n,size:a="standard",withIconLeft:c,isSelected:r=!1,isAlert:l=!1,isSuccess:o=!1,isWarning:p=!1,...d},h)=>{const C=i("dig-ChoiceChip",`dig-ChoiceChip--${a}`,{"dig-ChoiceChip--isSelected":r,"dig-ChoiceChip--isWarning":p,"dig-ChoiceChip--isAlert":l,"dig-ChoiceChip--isSuccess":o,"dig-ChoiceChip--withIconLeft":c,"dig-ChoiceChip--hasStatus":p||l||o},n);return t.createElement(s.StylelessButton,{className:C,ref:h,...d},c&&t.createElement("span",{className:"dig-ChoiceChip-icon-left-wrapper"},c),e)}),C=t.forwardRef(({children:e,className:n,isSelected:r=!1,size:l="standard",withDropdownIcon:o=!1,withIconLeft:p,...d},h)=>{const C=i("dig-FilterChip",`dig-FilterChip--${l}`,{"dig-FilterChip--isSelected":r,"dig-FilterChip--withDropdownIcon":o,"dig-FilterChip--withIconLeft":p},n);return t.createElement(s.StylelessButton,{className:C,ref:h,...d},p&&t.createElement("span",{className:"dig-FilterChip-icon-left-wrapper"},p),e,o&&"xsmall"!==l&&t.createElement(a.UIIcon,{className:"dig-FilterChip-icon",src:c.ChevronDownLine,size:"small"}))}),g=t.forwardRef(({children:e,className:n,onDelete:r,isWarning:l=!1,isAlert:o=!1,isSelected:p=!1,size:d="standard",withAvatarLeft:h,withIconLeft:C,...g},m)=>{const u=i("dig-InputChip",{"dig-InputChip--small":"small"===d,"dig-InputChip--standard":"standard"===d,"dig-InputChip--isWarning":l,"dig-InputChip--isAlert":o,"dig-InputChip--isSelected":p,"dig-InputChip--withAvatarLeft":h,"dig-InputChip--withIconLeft":C},n),f=h?t.createElement("span",{className:"dig-InputChip-avatar-left-wrapper"},h):C?t.createElement("span",{className:"dig-InputChip-icon-left-wrapper"},C):null;return t.createElement(s.StylelessButton,{className:u,onKeyUp:e=>{r&&("Delete"!==e.key&&"Backspace"!==e.key||r())},ref:m,...g},f,e,t.createElement(a.UIIcon,{className:"dig-InputChip-close-icon",focusable:"false",onClick:e=>{e.stopPropagation(),r&&r()},src:c.CloseLine,size:"small","data-testid":"digInputChipCloseIcon"}))});e.ChoiceChip=h,e.FilterChip=C,e.InputChip=g,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=pkg-dig-chips.min.js-vflrq89Ki.map