Liferay.Loader.define("layout-seo-web@2.0.49/js/seo/display_page_templates/components/MappingFields",["module","exports","require","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../constants","./MappingInput","./MappingSelector"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;r("liferay!frontend-js-react-web$prop-types");var n=_interopRequireDefault(r("liferay!frontend-js-react-web$react")),a=r("../constants"),i=_interopRequireDefault(r("./MappingInput")),l=_interopRequireDefault(r("./MappingSelector"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var o=function MappingFields({fields:e,inputs:t,selectedSource:r}){return t.map((t=>{const o=e.filter((({type:e})=>e===t.fieldType));return t.fieldType===a.FIELD_TYPES.TEXT?n.default.createElement(i.default,_extends({fields:o,key:t.name,selectedSource:r},t)):n.default.createElement(l.default,_extends({fields:o,key:t.name,selectedSource:r},t))}))};t.default=o}}));
//# sourceMappingURL=MappingFields.js.map