Liferay.Loader.define("@liferay/frontend-taglib@8.0.4/translation_manager/components/LocaleSelector",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/drop-down","liferay!frontend-js-react-web$react"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({locales:t,onItemClick:n}){return l.default.createElement(e,null,(({setActive:e})=>l.default.createElement(a.default.ItemList,null,t.map((t=>l.default.createElement(a.default.Item,{id:t.id,key:t.id,onClick:()=>{n(t),e(!1)},symbolRight:t.icon},t.label))))))};var r=n("@frontend-taglib-clay$clayui/button"),a=i(n("@frontend-taglib-clay$clayui/drop-down")),l=i(n("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 i(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 n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=r?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}const e=({children:e})=>{const[t,n]=(0,l.useState)(!1);return l.default.createElement(a.default,{active:t,alignmentPosition:a.Align.BottomCenter,onActiveChange:e=>n(e),trigger:l.default.createElement(r.ClayButtonWithIcon,{borderless:!0,displayType:"secondary",small:!0,symbol:"plus"})},e({setActive:n}))}}}));
//# sourceMappingURL=LocaleSelector.js.map