Liferay.Loader.define("data-engine-js-components-web@1.0.87/js/core/components/Field/MetalFieldAdapter.es",["module","exports","require","frontend-js-metal-web$metal-component","frontend-js-metal-web$metal-soy","frontend-js-metal-web$metal-state","./MetalFieldAdapter.soy"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=_interopRequireDefault(n("frontend-js-metal-web$metal-component")),i=_interopRequireDefault(n("frontend-js-metal-web$metal-soy")),d=n("frontend-js-metal-web$metal-state"),o=_interopRequireDefault(n("./MetalFieldAdapter.soy"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class MetalFieldAdapter extends a.default{getChildContext(){return{dispatch:this._handleDispatch.bind(this),store:{editingLanguageId:this.editingLanguageId}}}_handleDispatch(e,t){switch(e){case"fieldRemoved":this.onRemoved(e,t);break;case"fieldRepeated":this.onRepeated(e,t);break;default:new TypeError("".concat(e," event is not supported."))}}_handleFieldBlurred(e){this.onBlur(e,"")}_handleFieldEdited(e){const{originalEvent:t,value:n}=e;this.onChange(t,n)}_handleFieldFocused(e){this.onFocus(e,"")}}MetalFieldAdapter.STATE={activePage:d.Config.number(),editable:d.Config.bool(),editingLanguageId:d.Config.string(),field:d.Config.any(),onBlur:d.Config.any(),onChange:d.Config.any(),onFocus:d.Config.any(),onRemoved:d.Config.any(),onRepeated:d.Config.any(),pageIndex:d.Config.number(),spritemap:d.Config.string(),type:d.Config.string()},i.default.register(MetalFieldAdapter,o.default);var l=MetalFieldAdapter;t.default=l}}));
//# sourceMappingURL=MetalFieldAdapter.es.js.map