import{typeof as e}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as t}from"../../../_virtual/_tslib.js";import i from"react";import{Icon as r}from"@vibe/icon/mockedClassNames";import{useSliderInfix as n,useSliderSelection as o}from"./SliderContext.js";import c from"./SelectionIndicator.js";var l={clickable:!1,iconSize:18,ignoreFocusStyle:!0};function a(a){var s="postfix"===a,m=n(),f=m.prefix,p=m.postfix,u=m.indicateSelection,d=m.selectionIndicatorWidth,g=o(),v=g.value,b=g.valueText,j=s?p:f;if(u&&(s||g.ranged))return[!0,[],i.createElement(c,{key:a,kind:a}),{width:d}];if("object"===e(j)&&j.icon){var x=j.icon,y=t(j,["icon"]),k=Object.assign(Object.assign({},l),y);return[!0,[],i.createElement(r,Object.assign({key:"infix-icon",icon:x},k)),{}]}return"function"==typeof j?[!0,[],j(v,b),{}]:"string"==typeof j?[!0,["txt"],i.createElement(i.Fragment,null,j),{}]:void 0===j?[!1,[],null,{}]:[!0,[],i.createElement(i.Fragment,null,j),{}]}export{a as useSliderInfixComponent};
//# sourceMappingURL=SliderInfixHooks.js.map
