Liferay.Loader.define("@liferay/search-experiences-web@3.0.7/sxp_blueprint_admin/js/edit_sxp_element/SidebarPanel",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/tooltip","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(a("@frontend-taglib-clay$clayui/button")),r=o(a("@frontend-taglib-clay$clayui/icon")),l=a("@frontend-taglib-clay$clayui/tooltip"),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=n?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(a,r,l):a[r]=e[r]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react"));function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function o(e){return e&&e.__esModule?e:{default:e}}const e=new RegExp("([\\w\\.]+\\.)(\\w+)(".concat("SXPParameter",")"));function u(t=""){return t.split(e)[2]}var d=function({categoryName:e,expand:t,onVariableClick:a,parameterDefinitions:c}){const[o,d]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{d(t)}),[t]),i.default.createElement("div",null,i.default.createElement(n.default,{className:"panel-header sidebar-dt",displayType:"unstyled",onClick:()=>d(!o)},i.default.createElement("span",null,e),i.default.createElement("span",{className:"sidebar-arrow"},i.default.createElement(r.default,{symbol:o?"angle-down":"angle-right"}))),o&&c.map((e=>i.default.createElement("dd",{className:"sidebar-dd",key:e.templateVariable},i.default.createElement(l.ClayTooltipProvider,null,i.default.createElement(n.default,{className:"nav-link",displayType:"unstyled",onClick:()=>a(e.templateVariable),title:"".concat(Liferay.Language.get("type"),": ").concat(u(e.className),"\n").concat(Liferay.Language.get("variable"),": ").concat(e.templateVariable)},e.description))))))};t.default=d}}));
//# sourceMappingURL=SidebarPanel.js.map