"use strict";const i=require("./tslib.es6-C4EgNkz1.js"),e=require("react"),o=require("./random-id-DlJj_RWH.js");require("./array.polyfill.flat-5BAolFdk.js");const b=require("./icons/ebay-icon-close-12/index.js"),u=t=>{var{a11yDeleteButtonText:n,onDelete:s,disabled:c,children:r}=t,l=i.__rest(t,["a11yDeleteButtonText","onDelete","disabled","children"]);const a=o.useRandomId();return e.createElement("span",Object.assign({},l,{className:"chip"}),e.createElement("span",{id:a,className:"ebay-chip__text"},r),n?e.createElement("button",{type:"button",className:"chip__button","aria-label":n,"aria-describedby":a,disabled:c,onClick:s},e.createElement(b.EbayIconClose12,null)):null)};exports.EbayChip=u;
