Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.108/Password/Password.es",["module","exports","require","liferay!frontend-js-react-web$react","../FieldBase/ReactFieldBase.es"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o();if(r&&r.has(e))return r.get(e);var t={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=n?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(t,a,l):t[a]=e[a]}t.default=e,r&&r.set(e,t);return t}(t("liferay!frontend-js-react-web$react")),a=t("../FieldBase/ReactFieldBase.es");function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}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)}function u(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=e=>{let{name:r,onBlur:t,onChange:o,onFocus:i,placeholder:f,predefinedValue:d,readOnly:c,value:s}=e,p=u(e,["name","onBlur","onChange","onFocus","placeholder","predefinedValue","readOnly","value"]);const[y,O]=(0,n.useState)(s||d);return n.default.createElement(a.FieldBase,l({},p,{name:r,readOnly:c}),n.default.createElement("input",{className:"ddm-field-text form-control",disabled:c,id:r,name:r,onBlur:t,onFocus:i,onInput:e=>{o(e),O(e.target.value)},placeholder:f,type:"password",value:y}))};r.default=i}}));
//# sourceMappingURL=Password.es.js.map