{"version":3,"sources":["common/js/components/mentionsComponent.js"],"names":["$","noColumns","noRows","hideButtonIfAllItemsAreVisible","length","hide","breakpoint","value","slice","show","on"],"mappings":"AAAAA,EAAE,WACA,IAAIC,UAAY,EACZC,OAAS,EAeb,SAASC,iCAC4C,IAA/CH,EAAE,kCAAkCI,QACtCJ,EAAE,kCAAkCK,OAhBf,OAArBC,WAAWC,OACbN,UAAY,EACZC,OAAS,GACqB,OAArBI,WAAWC,QACpBN,UAAY,EACZC,OAAS,GAEXF,EAAE,2BAA2BK,OAC7BL,EAAE,kCAAkCQ,MAAM,EAAGP,UAAYC,QAAQO,OACjEN,iCACAH,EAAE,kCAAkCU,GAAG,QAAS,WAC9CV,EAAE,kCAAkCQ,MAAM,EAAGP,UAAYC,QAAQO,OACjEN","file":"../../../../common/js/components/mentionsComponent-f831a40d5e.js","sourcesContent":["$(function () {\n var noColumns = 3;\n var noRows = 1;\n if (breakpoint.value === 'xs') {\n noColumns = 1;\n noRows = 3;\n } else if (breakpoint.value === 'sm') {\n noColumns = 2;\n noRows = 2;\n }\n $(\".mentionsComponent-item\").hide();\n $(\".mentionsComponent-item:hidden\").slice(0, noColumns * noRows).show();\n hideButtonIfAllItemsAreVisible();\n $('.mentionsComponent-btnLoadMore').on('click', function () {\n $(\".mentionsComponent-item:hidden\").slice(0, noColumns * noRows).show();\n hideButtonIfAllItemsAreVisible();\n });\n function hideButtonIfAllItemsAreVisible() {\n if ($(\".mentionsComponent-item:hidden\").length === 0) {\n $('.mentionsComponent-btnLoadMore').hide();\n }\n }\n});"]}