Liferay.Loader.define("@liferay/frontend-taglib@8.0.4/diff_version_comparator/components/Selector",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/drop-down","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({label:e,selectedVersion:t,uniqueVersionLabel:a,urlSelector:o,versions:f}){const[c,i]=(0,u.useState)(!1);return u.default.createElement(u.default.Fragment,null,f.length?u.default.createElement("div",null,u.default.createElement(r.default,{active:c,onActiveChange:e=>i(e),trigger:u.default.createElement(n.default,{displayType:"unstyled"},u.default.createElement("span",{className:"management-bar-item-title"},e),u.default.createElement(l.default,{symbol:"caret-double-l"}))},u.default.createElement(r.default.ItemList,null,f.map((e=>u.default.createElement(r.default.Item,{href:e[o],key:e.version},e.label)))))):e,"0.0"===t&&u.default.createElement("h6",{className:"text-default"},a))};var n=f(a("@frontend-taglib-clay$clayui/button")),r=f(a("@frontend-taglib-clay$clayui/drop-down")),l=f(a("@frontend-taglib-clay$clayui/icon")),u=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=n?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(a,r,l):a[r]=e[r]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=Selector.js.map