Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.145/HelpText/HelpText.es",["module","exports","require","@frontend-taglib-clay$clayui/button","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_interopRequireDefault(a("@frontend-taglib-clay$clayui/button")),n=_interopRequireDefault(a("liferay!frontend-js-react-web$classnames")),l=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(a,n,l):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const CharacterRow=({characters:e,description:t})=>l.default.createElement("div",{className:"mb-2"},e.map(((e,t)=>l.default.createElement("div",{className:"c-kbd c-kbd-light mr-1",key:t},e))),l.default.createElement("span",{className:"ddm-field-text-small ml-1"},t)),HelpTextContent=()=>l.default.createElement(l.default.Fragment,null,l.default.createElement(CharacterRow,{characters:["9"],description:Liferay.Language.get("user-must-enter-a-numeric-digit")}),l.default.createElement(CharacterRow,{characters:["0"],description:Liferay.Language.get("user-may-enter-a-numeric-digit")}),l.default.createElement(CharacterRow,{characters:["ABC"],description:Liferay.Language.get("any-input-mask-character")}),l.default.createElement(CharacterRow,{characters:["Space","-","/",":",",","."],description:Liferay.Language.get("separators")}),l.default.createElement(CharacterRow,{characters:["(",")","[","]","{","}"],description:Liferay.Language.get("group-separators")}),l.default.createElement(CharacterRow,{characters:["#","$","%","+"],description:Liferay.Language.get("prefix-and-suffix-symbols")}));var _default=({label:e,visible:t})=>{const[a,i]=(0,l.useState)(!1);return l.default.createElement("div",{className:(0,n.default)("form-group",{hide:!t})},l.default.createElement("div",{className:"align-items-center d-flex justify-content-between mb-2"},l.default.createElement("label",null,e),l.default.createElement(r.default,{borderless:!0,displayType:"secondary",onClick:()=>i(!a),small:!0},a?Liferay.Language.get("show-less"):Liferay.Language.get("show-more"))),a&&l.default.createElement(HelpTextContent,null))};t.default=_default}}));
//# sourceMappingURL=HelpText.es.js.map