Liferay.Loader.define("data-engine-taglib@3.3.50/data_layout_builder/js/plugins/fields-sidebar/components/SidebarFieldSettings",["module","exports","require","@frontend-taglib-clay$clayui/button","data-engine-js-components-web","liferay!frontend-js-react-web$react","../../../components/sidebar/Sidebar.es","../../../eventTypes","./FieldsSidebarSettingsBody","./SidebarFieldSettings.scss"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a("@frontend-taglib-clay$clayui/button"),i=a("data-engine-js-components-web"),n=_interopRequireDefault(a("liferay!frontend-js-react-web$react")),d=_interopRequireDefault(a("../../../components/sidebar/Sidebar.es")),r=a("../../../eventTypes"),s=_interopRequireDefault(a("./FieldsSidebarSettingsBody"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}a("./SidebarFieldSettings.scss");const FieldsSidebarSettingsHeader=({field:e})=>{const t=(0,i.useForm)(),{fieldTypes:a}=(0,i.useConfig)(),{label:s}=a.find((({name:t})=>t===e.type));return n.default.createElement("div",{className:"de__sidebar-field-settings-title"},n.default.createElement(l.ClayButtonWithIcon,{"aria-label":Liferay.Language.get("back"),className:"mr-3",displayType:"secondary",monospaced:!1,onClick:()=>t({type:r.EVENT_TYPES.SIDEBAR.FIELD.BLUR}),symbol:"angle-left",title:Liferay.Language.get("back")}),n.default.createElement(d.default.Title,{title:s}))};var _default=({field:e})=>n.default.createElement(d.default,{className:"display-settings"},n.default.createElement(d.default.Header,null,n.default.createElement(FieldsSidebarSettingsHeader,{field:e})),n.default.createElement(d.default.Body,null,n.default.createElement(s.default,{field:e})));t.default=_default}}));
//# sourceMappingURL=SidebarFieldSettings.js.map