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