Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/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({item:t}){const s=(0,l.useSelector)(i.default),d=(0,l.useSelector)((e=>e.languageId)),u=(0,l.useSelector)((e=>e.selectedViewportSize)),f=(0,l.useDispatch)(),g=(0,r.getResponsiveConfig)(t.config,u);return s?n.default.createElement("div",{className:(0,a.default)({"mt-3":u===o.VIEWPORT_SIZES.desktop})},n.default.createElement(p.FieldSet,{fields:e.fields,item:t,label:e.label,languageId:d,onValueSelect:(e,s)=>{let a={[e]:s};u!==o.VIEWPORT_SIZES.desktop&&"cssClasses"!==e&&(a={[u]:{[e]:s}}),f((0,c.default)({itemConfig:a,itemId:t.itemId}))},values:g})):null};var a=d(s("liferay!frontend-js-react-web$classnames")),n=d(s("liferay!frontend-js-react-web$react")),o=s("../../../../../../app/config/constants/viewportSizes"),l=s("../../../../../../app/contexts/StoreContext"),i=d(s("../../../../../../app/selectors/selectCanUpdateCSSAdvancedOptions")),c=d(s("../../../../../../app/thunks/updateItemConfig")),r=s("../../../../../../app/utils/getResponsiveConfig"),p=s("./FieldSet");function d(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