!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={8619:e=>{e.exports=require("@mui/material")},2015:e=>{e.exports=require("react")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,o),a.exports}(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};o.r(r),o.d(r,{default:()=>l});var n=o(2015),a=o.n(n),i=o(8619);const l=({chips:e,maxLength:t})=>{const o=e.slice(0,t),r=e.slice(t);return a().createElement(i.Box,null,o.map((e=>a().createElement(i.Chip,{key:`chip-${e}`,label:e,size:"small",sx:{mr:1}}))),r.length>0&&a().createElement(i.Tooltip,{title:r.map((e=>a().createElement(i.Typography,{key:`cl-tt-${e}`,variant:"body1",component:"div"},e))),arrow:!0},a().createElement(i.Chip,{label:"...",size:"small",sx:{cursor:"pointer"}})))};return r})()));
//# sourceMappingURL=chip-list.js.map