Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/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({imageDescription:e,onImageDescriptionChanged:t}){const[r,c]=(0,l.useState)(),f=(0,o.useId)(),d=(0,o.useId)(),s=(0,o.useId)();return(0,l.useEffect)((()=>{r&&(r.value=e)}),[e,r]),l.default.createElement(a.default.Group,null,l.default.createElement("label",{"aria-describedby":s,htmlFor:d},l.default.createElement("span",null,Liferay.Language.get("image-description")),l.default.createElement(i.PopoverTooltip,{content:Liferay.Language.get("this-value-is-used-for-alt-text"),header:Liferay.Language.get("image-description"),id:s,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,{"aria-describedby":f,id:d,onBlur:e=>{t(e.target.value)},ref:c,sizing:"sm",type:"text"})),l.default.createElement(a.ClayInput.GroupItem,{shrink:!0},l.default.createElement(u.default,null))))};var a=d(r("@frontend-taglib-clay$clayui/form")),n=c(r("@frontend-taglib-clay$clayui/icon")),l=(c(r("liferay!frontend-js-react-web$prop-types")),d(r("liferay!frontend-js-react-web$react"))),o=r("../../core/hooks/useId"),u=c(r("./CurrentLanguageFlag")),i=r("./PopoverTooltip");function c(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();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