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