Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.152/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 _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache();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 o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(t,a,o):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 _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _extends(){return(_extends=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 _objectWithoutProperties(e,r){if(null==e)return{};var t,n,a=function _objectWithoutPropertiesLoose(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 _default=e=>{let{name:r,onBlur:t,onChange:o,onFocus:l,placeholder:i,predefinedValue:u,readOnly:d,value:c}=e,f=_objectWithoutProperties(e,["name","onBlur","onChange","onFocus","placeholder","predefinedValue","readOnly","value"]);const[s,p]=(0,n.useState)(c||u);return n.default.createElement(a.FieldBase,_extends({},f,{name:r,readOnly:d}),n.default.createElement("input",{className:"ddm-field-text form-control",disabled:d,id:r,name:r,onBlur:t,onFocus:l,onInput:e=>{o(e),p(e.target.value)},placeholder:i,type:"password",value:s}))};r.default=_default}}));
//# sourceMappingURL=Password.es.js.map