!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={8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},6689:e=>{e.exports=require("react")}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](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 n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{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 n={};return(()=>{o.r(n),o.d(n,{default:()=>p});var e=o(8213),t=o.n(e),r=o(3838),a=o.n(r),l=o(6689),s=o.n(l);const u="tDZTa8dy9OMVyGAtxNOS",i="VoBl8JcsRZelj8EKGKtC",c=["value","options","onChange"],p=e=>{let{value:o,options:n,onChange:r}=e,l=a()(e,c);const p=e=>{const t=n.findIndex((e=>e.value===o));t>=0&&(e?t<n.length-1&&r(n[t+1].value):t>0&&r(n[t-1].value))},d=n.find((e=>e.value===o)).label;return s().createElement("div",t()({className:u},l),s().createElement("button",{className:"btn btn-default",onClick:()=>p(!1)},s().createElement("i",{className:"fa fa-minus"})),s().createElement("span",{className:i},d),s().createElement("button",{className:"btn btn-default",onClick:()=>p(!0)},s().createElement("i",{className:"fa fa-plus"})))}})(),n})()));
//# sourceMappingURL=stepped-select.js.map