import{jsx as e,Fragment as t}from"react/jsx-runtime";import{Text as r}from"../Text/Text.js";import{TextMiddleTruncated as n}from"../TextMiddleTruncated/TextMiddleTruncated.js";import"../TextMiddleTruncated/TextMiddleTruncated.constants.js";import{Chip as l}from"../Chip/Chip.js";import i from"./Autocomplete.scss.js";var o=Symbol("all-option-mark"),a=Symbol("create-option-mark"),c=function(e){return!e[o]&&!e[a]},d=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],l=t[1].allOptions;if(n.length)return 1===n.length?n[0].option.title:n.length===l.length?"All":"".concat(n.length," Selected")},s=function(){var t=d.apply(void 0,arguments);return t?e(r,{size:16,color:"T1",className:i.selectedValue,children:e(n,{children:t},t)}):null},u=function(r){if(0!==r.length)return e(t,{children:r.map((function(t){var r=t.option,o=t.onDelete;return e(l,{className:i.selectedValueChip,onDelete:o,size:"small",shape:"square",children:e(n,{children:r.title})},r.id)}))})},m=function(t){return e(n,{children:t.title})};export{o as AllOptionMark,a as CreateOptionMark,c as isRealOption,m as renderOptionDefault,s as renderSelectedValue,u as renderSelectedValueChips};
//# sourceMappingURL=utils.js.map
