Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/plugins/browser/components/page_structure/components/item_configuration_panels/collection_general_panel/StyleDisplaySelector",["module","exports","require","@frontend-taglib-clay$clayui/form","frontend-js-components-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../../../../../app/config/constants/contentDisplayOptions","../../../../../../../app/services/InfoItemService"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.StyleDisplaySelector=function StyleDisplaySelector({collectionItemType:t,handleConfigurationChanged:r,listStyle:i}){const[c,u]=(0,l.useState)(e),f=(0,n.useId)();return(0,l.useEffect)((()=>{t&&o.default.getAvailableListRenderers({className:t}).then((t=>{u([...e,{label:Liferay.Language.get("templates"),options:t,type:"group"}])})).catch((()=>{u(e)}))}),[t]),l.default.createElement(a.default.Group,{className:"mt-3",small:!0},l.default.createElement("label",{htmlFor:f},Liferay.Language.get("style-display")),l.default.createElement(a.ClaySelectWithOption,{"aria-label":Liferay.Language.get("style-display"),id:f,onChange:e=>r({listStyle:e.target.value}),options:c,value:i}))};var a=_interopRequireWildcard(r("@frontend-taglib-clay$clayui/form")),n=r("frontend-js-components-web"),l=(_interopRequireDefault(r("liferay!frontend-js-react-web$prop-types")),_interopRequireWildcard(r("liferay!frontend-js-react-web$react"))),i=r("../../../../../../../app/config/constants/contentDisplayOptions"),o=_interopRequireDefault(r("../../../../../../../app/services/InfoItemService"));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:i.CONTENT_DISPLAY_OPTIONS.flexRow},{label:Liferay.Language.get("flex-column"),value:i.CONTENT_DISPLAY_OPTIONS.flexColumn}]}}));
//# sourceMappingURL=StyleDisplaySelector.js.map