!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],o):"object"==typeof exports?exports["openstack-uicore-foundation"]=o():e["openstack-uicore-foundation"]=o()}(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")},1929:e=>{e.exports=require("react-select")}},o={};function t(n){var r=o[n];if(void 0!==r)return r.exports;var a=o[n]={exports:{}};return e[n](a,a.exports,t),a.exports}(()=>{t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o}})(),(()=>{t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})}})(),(()=>{t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o)})(),(()=>{t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var n={};return(()=>{t.r(n),t.d(n,{default:()=>p});var e=t(8213),o=t.n(e),r=t(3838),a=t.n(r),u=t(6689),l=t.n(u),i=t(1929),s=t.n(i);const c=["venues","currentValue","placeholder","onVenueChanged"],p=e=>{let{venues:t,currentValue:n,placeholder:r,onVenueChanged:u}=e,i=a()(e,c);const p=t.find((e=>e.value.id===(null==n?void 0:n.id)))||null;return l().createElement(s(),o()({placeholder:r,className:"venues-selector",name:"form-field-name",value:p,onChange:e=>{u((null==e?void 0:e.value)||null)},options:t,optionRenderer:e=>{let o=e.value;return"SummitVenue"===o.class_name?l().createElement("span",{className:"location-option-venue"},o.name):l().createElement("span",{className:"location-option-room"},"- ",o.name)}},i))}})(),n})()));
//# sourceMappingURL=summit-venues-select.js.map