Liferay.Loader.define("data-engine-js-components-web@1.0.89/js/custom/form-report/components/card-menu/CardMenu",["module","exports","require","@frontend-taglib-clay$clayui/nav","liferay!frontend-js-react-web$react","../sidebar/SidebarContext"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function CardMenu({fields:t}){const[r,c]=(0,a.useState)(),{portletNamespace:i}=(0,a.useContext)(o.SidebarContext),l=[];t.forEach(((t,r)=>{let n=t.label;n.length>e&&(n=n.substr(0,e)+"..."),l.push({label:n,onClick:()=>{c(n),((e,t)=>{const r=document.getElementById("".concat(e,"card_").concat(t));null!==r&&r.scrollIntoView({behavior:"smooth"})})(i,r)}})}));return a.default.createElement(n.ClayVerticalNav,{items:l,large:!0,triggerLabel:null!=r?r:l[0].label})};var n=r("@frontend-taglib-clay$clayui/nav"),a=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={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),o=r("../sidebar/SidebarContext");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}const e=91}}));
//# sourceMappingURL=CardMenu.js.map