Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/plugins/browser/components/page_structure/components/item_configuration_panels/CSSFieldSet",["module","exports","require","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","../../../../../../app/config/constants/viewportSizes","../../../../../../app/contexts/StoreContext","../../../../../../app/selectors/selectCanUpdateCSSAdvancedOptions","../../../../../../app/thunks/updateItemConfig","../../../../../../app/utils/getResponsiveConfig","./FieldSet"],(function(e,t,s){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function CSSFieldSet({item:t}){const s=(0,l.useSelector)(o.default),p=(0,l.useSelector)((e=>e.languageId)),d=(0,l.useSelector)((e=>e.selectedViewportSize)),f=(0,l.useDispatch)(),S=(0,u.getResponsiveConfig)(t.config,d);return s?n.default.createElement("div",{className:(0,a.default)({"mt-3":d===i.VIEWPORT_SIZES.desktop})},n.default.createElement(c.FieldSet,{fields:e.fields,item:t,label:e.label,languageId:p,onValueSelect:(e,s)=>{let a={[e]:s};d!==i.VIEWPORT_SIZES.desktop&&"cssClasses"!==e&&(a={[d]:{[e]:s}}),f((0,r.default)({itemConfig:a,itemId:t.itemId}))},values:S})):null};var a=_interopRequireDefault(s("liferay!frontend-js-react-web$classnames")),n=_interopRequireDefault(s("liferay!frontend-js-react-web$react")),i=s("../../../../../../app/config/constants/viewportSizes"),l=s("../../../../../../app/contexts/StoreContext"),o=_interopRequireDefault(s("../../../../../../app/selectors/selectCanUpdateCSSAdvancedOptions")),r=_interopRequireDefault(s("../../../../../../app/thunks/updateItemConfig")),u=s("../../../../../../app/utils/getResponsiveConfig"),c=s("./FieldSet");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const e={fields:[{label:Liferay.Language.get("css-classes"),name:"cssClasses",type:"cssClassSelector"},{label:Liferay.Language.get("custom-css"),name:"customCSS",responsive:!0,type:"customCSS"}],label:Liferay.Language.get("css")}}}));
//# sourceMappingURL=CSSFieldSet.js.map