Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/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","../../../../../../../common/hooks/useId"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.StyleDisplaySelector=function StyleDisplaySelector({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,{className:"mt-3",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=_interopRequireWildcard(a("@frontend-taglib-clay$clayui/form")),n=(_interopRequireDefault(a("liferay!frontend-js-react-web$prop-types")),_interopRequireWildcard(a("liferay!frontend-js-react-web$react"))),l=a("../../../../../../../app/config/constants/contentDisplayOptions"),o=_interopRequireDefault(a("../../../../../../../app/services/InfoItemService")),i=a("../../../../../../../common/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 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