Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/common/components/ImageSelectorDescription",["module","exports","require","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","frontend-js-components-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","./CurrentLanguageFlag","./PopoverTooltip"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.ImageSelectorDescription=function ImageSelectorDescription({imageDescription:e,onImageDescriptionChanged:t}){const[r,c]=(0,o.useState)(),f=(0,l.useId)(),d=(0,l.useId)();return(0,o.useEffect)((()=>{r&&(r.value=e)}),[e,r]),o.default.createElement(a.default.Group,null,o.default.createElement("label",{htmlFor:f},o.default.createElement("span",null,Liferay.Language.get("image-description")),o.default.createElement(u.PopoverTooltip,{content:Liferay.Language.get("this-value-is-used-for-alt-text"),header:Liferay.Language.get("image-description"),id:d,trigger:o.default.createElement(n.default,{"aria-label":Liferay.Language.get("show-more"),className:"ml-2",symbol:"question-circle-full"})})),o.default.createElement(a.ClayInput.Group,{small:!0},o.default.createElement(a.ClayInput.GroupItem,null,o.default.createElement(a.ClayInput,{id:f,onBlur:e=>{t(e.target.value)},ref:c,sizing:"sm",type:"text"})),o.default.createElement(a.ClayInput.GroupItem,{shrink:!0},o.default.createElement(i.default,null))))};var a=_interopRequireWildcard(r("@frontend-taglib-clay$clayui/form")),n=_interopRequireDefault(r("@frontend-taglib-clay$clayui/icon")),l=r("frontend-js-components-web"),o=(_interopRequireDefault(r("liferay!frontend-js-react-web$prop-types")),_interopRequireWildcard(r("liferay!frontend-js-react-web$react"))),i=_interopRequireDefault(r("./CurrentLanguageFlag")),u=r("./PopoverTooltip");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}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 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]}return r.default=e,t&&t.set(e,r),r}}}));
//# sourceMappingURL=ImageSelectorDescription.js.map