Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.141/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,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.StyleDisplaySelector=function StyleDisplaySelector({collectionItemType:t,handleConfigurationChanged:r,listStyle:l}){const[c,u]=(0,n.useState)(e),f=(0,o.useId)();return(0,n.useEffect)((()=>{t&&i.default.getAvailableListRenderers({className:t}).then((t=>{u([...e,{label:Liferay.Language.get("templates"),options:t,type:"group"}])})).catch((()=>{u(e)}))}),[t]),n.default.createElement(a.default.Group,{className:"mt-3",small:!0},n.default.createElement("label",{htmlFor:f},Liferay.Language.get("style-display")),n.default.createElement(a.ClaySelectWithOption,{"aria-label":Liferay.Language.get("style-display"),id:f,onChange:e=>r({listStyle:e.target.value}),options:c,value:l}))};var a=_interopRequireWildcard(r("@frontend-taglib-clay$clayui/form")),n=(_interopRequireDefault(r("liferay!frontend-js-react-web$prop-types")),_interopRequireWildcard(r("liferay!frontend-js-react-web$react"))),l=r("../../../../../../../app/config/constants/contentDisplayOptions"),i=_interopRequireDefault(r("../../../../../../../app/services/InfoItemService")),o=r("../../../../../../../core/hooks/useId");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=a?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(r,n,l):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}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