Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.108/FieldBase/FieldBase.es",["module","exports","require","../components/Tooltip/Tooltip.es","frontend-taglib-clay$clay-icon","data-engine-js-components-web","frontend-js-metal-web$metal-component","frontend-js-metal-web$metal-soy","frontend-js-metal-web$metal-state","../util/withDispatch.es","./FieldBase.soy","./withLocale.es","./withRepetitionControls.es"],(function(e,t,o){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("../components/Tooltip/Tooltip.es"),o("frontend-taglib-clay$clay-icon");var n=o("data-engine-js-components-web"),r=p(o("frontend-js-metal-web$metal-component")),i=p(o("frontend-js-metal-web$metal-soy")),a=o("frontend-js-metal-web$metal-state"),l=p(o("../util/withDispatch.es")),s=p(o("./FieldBase.soy")),c=p(o("./withLocale.es")),f=p(o("./withRepetitionControls.es"));function p(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?d(Object(o),!0).forEach((function(t){b(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function b(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class e extends r.default{prepareStateForRender(e){const t=(0,n.getRepeatedIndex)(this.name);return u(u({},e),{},{showRepeatableAddButton:this.repeatable,showRepeatableRemoveButton:this.repeatable&&t>0})}}e.STATE={contentRenderer:a.Config.any(),displayErrors:a.Config.bool().value(!1),id:a.Config.string(),label:a.Config.string(),name:a.Config.string(),repeatable:a.Config.bool(),required:a.Config.bool(),showLabel:a.Config.bool().value(!0),spritemap:a.Config.string().required(),tip:a.Config.string(),tooltip:a.Config.string()};const m=(0,n.compose)(l.default,f.default,c.default)(e);i.default.register(m,s.default);var g=m;t.default=g}}));
//# sourceMappingURL=FieldBase.es.js.map