Liferay.Loader.define("data-engine-js-components-web@1.0.79/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,n,t){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=l(t("frontend-js-metal-web$metal-component")),o=l(t("frontend-js-metal-web$metal-soy")),d=t("frontend-js-metal-web$metal-state"),i=l(t("./MetalFieldAdapter.soy"));function l(e){return e&&e.__esModule?e:{default:e}}class e extends a.default{getChildContext(){return{dispatch:this._handleDispatch.bind(this),store:{editingLanguageId:this.editingLanguageId}}}_handleDispatch(e,n){switch(e){case"fieldRemoved":this.onRemoved(e,n);break;case"fieldRepeated":this.onRepeated(e,n);break;default:new TypeError("".concat(e," event is not supported."))}}_handleFieldBlurred(e){this.onBlur(e,"")}_handleFieldEdited(e){const{originalEvent:n,value:t}=e;this.onChange(n,t)}_handleFieldFocused(e){this.onFocus(e,"")}}e.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()},o.default.register(e,i.default);var s=e;n.default=s}}));
//# sourceMappingURL=MetalFieldAdapter.es.js.map