Liferay.Loader.define("data-engine-js-components-web@1.0.87/js/custom/form-report/components/card-shortcut/CardShortcut",["module","exports","require","liferay!frontend-js-react-web$react","../../utils/fieldTypes","../sidebar/SidebarContext"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function CardShortcut({fields:t}){const[r,o]=(0,a.useState)(),{portletNamespace:l}=(0,a.useContext)(c.SidebarContext),i=t.map(((t,c)=>{if(Object.keys(n.default).includes(t.type))return a.default.createElement("li",{key:"card-item-".concat(c)},a.default.createElement("a",{className:"".concat(r===c?"selected":""),"data-senna-off":!0,onClick:()=>{o(c),((e,t)=>{const r=document.getElementById("".concat(e,"card_").concat(t));null!==r&&r.scrollIntoView({behavior:"smooth"})})(l,c)}},a.default.createElement("div",{className:"field-label"},(i=t.label).length>e?i.substr(0,e)+"...":i)));var i}));return a.default.createElement("ul",null,i)};var 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={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var c=a?Object.getOwnPropertyDescriptor(e,n):null;c&&(c.get||c.set)?Object.defineProperty(r,n,c):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),n=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("../../utils/fieldTypes")),c=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=CardShortcut.js.map