Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/plugins/browser/components/page_structure/components/item_configuration_panels/ContainerDisplayOptions",["module","exports","require","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../../../../app/components/fragment_configuration_fields/SelectField","../../../../../../app/config/constants/containerWidthTypes","../../../../../../app/config/constants/contentDisplayOptions","../../../../../../app/contexts/StoreContext","../../../../../../app/thunks/updateItemConfig","../../../../../../prop_types/index","./FlexOptions"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function ContainerDisplayOptions({item:t}){const n=(0,p.useDispatch)(),o=t.config.contentDisplay===l.CONTENT_DISPLAY_OPTIONS.flexColumn||t.config.contentDisplay===l.CONTENT_DISPLAY_OPTIONS.flexRow;return a.default.createElement(a.default.Fragment,null,a.default.createElement(i.SelectField,{field:{label:Liferay.Language.get("content-display"),name:"contentDisplay",typeOptions:{validValues:e}},onValueSelect:(e,a)=>{const i=a===l.CONTENT_DISPLAY_OPTIONS.block?{align:"",flexWrap:"",justify:"",[e]:""}:{[e]:a};n((0,f.default)({itemConfig:i,itemId:t.itemId,overridePreviousConfig:!0}))},value:t.config.contentDisplay}),o&&a.default.createElement(r.FlexOptions,{itemConfig:t.config,onConfigChange:(e,a)=>{n((0,f.default)({itemConfig:{[e]:a},itemId:t.itemId}))}}),a.default.createElement(i.SelectField,{field:{label:Liferay.Language.get("container-width"),name:"widthType",typeOptions:{validValues:u}},onValueSelect:(e,a)=>{n((0,f.default)({itemConfig:{[e]:a},itemId:t.itemId}))},value:t.config.widthType}))};_interopRequireDefault(n("liferay!frontend-js-react-web$prop-types"));var a=_interopRequireDefault(n("liferay!frontend-js-react-web$react")),i=n("../../../../../../app/components/fragment_configuration_fields/SelectField"),o=n("../../../../../../app/config/constants/containerWidthTypes"),l=n("../../../../../../app/config/constants/contentDisplayOptions"),p=n("../../../../../../app/contexts/StoreContext"),f=_interopRequireDefault(n("../../../../../../app/thunks/updateItemConfig")),r=(n("../../../../../../prop_types/index"),n("./FlexOptions"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const e=[{label:Liferay.Language.get("block"),value:l.CONTENT_DISPLAY_OPTIONS.block},{label:Liferay.Language.get("flex-row"),value:l.CONTENT_DISPLAY_OPTIONS.flexRow},{label:Liferay.Language.get("flex-column"),value:l.CONTENT_DISPLAY_OPTIONS.flexColumn}],u=[{label:Liferay.Language.get("fluid"),value:o.CONTAINER_WIDTH_TYPES.fluid},{label:Liferay.Language.get("fixed-width"),value:o.CONTAINER_WIDTH_TYPES.fixed}]}}));
//# sourceMappingURL=ContainerDisplayOptions.js.map