Liferay.Loader.define("@liferay/search-experiences-web@3.0.30/sxp_blueprint_admin/js/utils/sxp_element/get_sxp_element_title_and_description",["module","exports","require","../functions/is_empty","../language/format_locale_with_dashes","../language/rename_keys","../language/transform_locale"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function getSXPElementTitleAndDescription(e,t){const{description:a="",description_i18n:r={},title:f="",title_i18n:s={}}=e;if((0,i.default)(s))return[f,a];const o=(0,l.default)(r,u.default),_=(0,l.default)(s,u.default);let d="";_[t]?d=t:_[(0,n.default)(t)]?d=(0,n.default)(t):_[Liferay.ThemeDisplay.getDefaultLanguageId()]?d=Liferay.ThemeDisplay.getDefaultLanguageId():_[(0,n.default)(Liferay.ThemeDisplay.getDefaultLanguageId())]&&(d=(0,n.default)(Liferay.ThemeDisplay.getDefaultLanguageId()));if(d)return[_[d],o[d]||""];if(f)return[f,a];if(Object.keys(_).length)return d=Object.keys(_)[0],[_[d],o[d]||""];return["",""]};var i=_interopRequireDefault(a("../functions/is_empty")),n=_interopRequireDefault(a("../language/format_locale_with_dashes")),l=_interopRequireDefault(a("../language/rename_keys")),u=_interopRequireDefault(a("../language/transform_locale"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=get_sxp_element_title_and_description.js.map