Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/plugins/browser/components/page-structure/components/item-configuration-panels/collection-general-panel/StyleDisplaySelector",["module","exports","require","@frontend-taglib-clay$clayui/form","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../../../../../app/config/constants/contentDisplayOptions","../../../../../../../app/services/InfoItemService","../../../../../../../core/hooks/useId"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.StyleDisplaySelector=function({collectionItemType:t,handleConfigurationChanged:a,listStyle:l}){const[c,u]=(0,n.useState)(e),f=(0,i.useId)();return(0,n.useEffect)((()=>{t&&o.default.getAvailableListRenderers({className:t}).then((t=>{u([...e,{label:Liferay.Language.get("templates"),options:t,type:"group"}])})).catch((()=>{u(e)}))}),[t]),n.default.createElement(r.default.Group,{small:!0},n.default.createElement("label",{htmlFor:f},Liferay.Language.get("style-display")),n.default.createElement(r.ClaySelectWithOption,{"aria-label":Liferay.Language.get("style-display"),id:f,onChange:e=>a({listStyle:e.target.value}),options:c,value:l}))};var r=f(a("@frontend-taglib-clay$clayui/form")),n=(c(a("liferay!frontend-js-react-web$prop-types")),f(a("liferay!frontend-js-react-web$react"))),l=a("../../../../../../../app/config/constants/contentDisplayOptions"),o=c(a("../../../../../../../app/services/InfoItemService")),i=a("../../../../../../../core/hooks/useId");function c(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(a,n,l):a[n]=e[n]}return a.default=e,t&&t.set(e,a),a}const e=[{label:Liferay.Language.get("grid"),value:""},{label:Liferay.Language.get("flex-row"),value:l.CONTENT_DISPLAY_OPTIONS.flexRow},{label:Liferay.Language.get("flex-column"),value:l.CONTENT_DISPLAY_OPTIONS.flexColumn}]}}));
//# sourceMappingURL=StyleDisplaySelector.js.map