Liferay.Loader.define("adaptive-media-web@5.0.41/adaptive_media/js/form/Components",["module","exports","require","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredMark=t.HelpMessage=t.Input=t.ErrorFeedback=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=a?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(r,n,l):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("@frontend-taglib-clay$clayui/form")),n=o(r("@frontend-taglib-clay$clayui/icon")),l=(o(r("liferay!frontend-js-react-web$prop-types")),o(r("liferay!frontend-js-react-web$react")));function o(e){return e&&e.__esModule?e:{default:e}}function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},l=Object.keys(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const e=({error:e})=>l.default.createElement(a.default.FeedbackGroup,null,l.default.createElement(a.default.FeedbackItem,null,l.default.createElement("span",null,e)));t.ErrorFeedback=e;const f=({message:e})=>l.default.createElement("span",{className:"inline-item-after lfr-portal-tooltip tooltip-icon",title:e},l.default.createElement(n.default,{symbol:"question-circle-full"}));t.HelpMessage=f;const d=t=>{let{disabled:r,error:n,id:o,label:i,name:f,required:d,type:p="text"}=t,m=c(t,["disabled","error","id","label","name","required","type"]);const y=o||f;return l.default.createElement(a.default.Group,{className:n?"has-error":""},l.default.createElement("label",{className:r?"disabled":"",htmlFor:y},i,d&&l.default.createElement(s,null)),l.default.createElement(a.ClayInput,u({},m,{className:"form-control",component:"textarea"===p?"textarea":"input",disabled:r,id:y,name:f,type:p})),"string"==typeof n&&l.default.createElement(e,{error:n}))};t.Input=d;const s=()=>l.default.createElement(l.default.Fragment,null,l.default.createElement("span",{className:"inline-item-after reference-mark text-warning"},l.default.createElement(n.default,{symbol:"asterisk"})),l.default.createElement("span",{className:"hide-accessible sr-only"},Liferay.Language.get("required")));t.RequiredMark=s}}));
//# sourceMappingURL=Components.js.map