Liferay.Loader.define("layout-seo-web@2.0.43/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=p(r("liferay!frontend-js-react-web$react")),a=r("../constants"),o=p(r("./MappingInput")),l=p(r("./MappingSelector"));function p(e){return e&&e.__esModule?e:{default:e}}function i(){return(i=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 s=function({fields:e,inputs:t,selectedSource:r}){return t.map((t=>{const p=e.filter((({type:e})=>e===t.fieldType));return t.fieldType===a.FIELD_TYPES.TEXT?n.default.createElement(o.default,i({fields:p,key:t.name,selectedSource:r},t)):n.default.createElement(l.default,i({fields:p,key:t.name,selectedSource:r},t))}))};t.default=s}}));
//# sourceMappingURL=MappingFields.js.map