Liferay.Loader.define("layout-seo-web@2.0.66/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,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n("liferay!frontend-js-react-web$prop-types");var r=_interopRequireDefault(n("liferay!frontend-js-react-web$react")),a=n("../constants"),i=_interopRequireDefault(n("./MappingInput")),l=_interopRequireDefault(n("./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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=function MappingFields({fields:e,inputs:t,selectedSource:n}){return t.map((t=>{const s=e.filter((({type:e})=>t.fieldTypes.includes(e)));return t.fieldTypes.includes(a.FIELD_TYPES.TEXT)?r.default.createElement(i.default,_extends({fieldTypes:t.fieldTypes,fields:s,key:t.name,selectedSource:n},t)):r.default.createElement(l.default,_extends({fieldTypes:t.fieldTypes,fields:s,key:t.name,selectedSource:n},t))}))};t.default=s}}));
//# sourceMappingURL=MappingFields.js.map