Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.108/util/withConfirmationField.es",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,r,t){var n;window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(r){return t=>{let{requireConfirmation:n}=t,c=function(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)t=l[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)t=l[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}(t,["requireConfirmation"]);if(!n)return a.default.createElement(r,c);const{confirmationErrorMessage:u,confirmationLabel:f,confirmationValue:d,direction:s,errorMessage:m,label:p,name:b,onChange:v,valid:y}=c,g=e(s),O=y||(null==m?void 0:m.length)>0;return a.default.createElement("div",{className:"row"},a.default.createElement("div",{className:g},a.default.createElement(r,l({},c,{label:i(f,p)}))),a.default.createElement("div",{className:g},a.default.createElement(r,l({},c,{errorMessage:u,id:"".concat(b,"confirmationField"),label:o(f,p),localizable:!1,localizedValue:{},name:"".concat(b,"confirmationField"),onBlur:()=>{},onChange:e=>{v(e,e.target.value,"confirmationValue")},onFocus:()=>{},placeholder:"",predefinedValue:"",repeatable:!1,tip:"",valid:O,value:d}))))}};var a=(n=t("liferay!frontend-js-react-web$react"))&&n.__esModule?n:{default:n};function l(){return(l=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}const e=e=>(null==e?void 0:e.includes("horizontal"))?"col-md-6":"col-md-12",o=(e,r)=>e&&r?[e,r].join(" "):e||r,i=(e,r)=>e&&!r?" ":r}}));
//# sourceMappingURL=withConfirmationField.es.js.map