{"version":3,"file":"favorite_positions-0d3c20f1.js","sources":["../../../app/javascript/javascripts/utils/favorite_positions.js"],"sourcesContent":["import $ from 'jquery';\nimport Cookies from 'js-cookie';\n\nexport function pharmacistFavoriteCount() {\n  let count = '0'\n  if(Cookies.get('_fp')){\n    count = Cookies.get('_fp').split(',').length.toString()\n  }\n  var targetJsFpCount = document.getElementsByClassName('js_header_favorite_count')\n  if(targetJsFpCount.length > 0){ $(targetJsFpCount).html(count) }\n}\n\nexport function touhanFavoriteCount() {\n  let count = '0'\n  if(Cookies.get('_touhan_fp_ids')){\n    count = Cookies.get('_touhan_fp_ids').split(',').length.toString()\n  }\n  var targetJsFpCount = document.getElementsByClassName('js-touhan-fp-count')\n  if(targetJsFpCount.length > 0){ $(targetJsFpCount).html(count) }\n}\n"],"names":["pharmacistFavoriteCount","count","Cookies","targetJsFpCount","$","touhanFavoriteCount"],"mappings":"4YAGO,SAASA,GAA0B,CACxC,IAAIC,EAAQ,IACTC,EAAQ,IAAI,KAAK,IAClBD,EAAQC,EAAQ,IAAI,KAAK,EAAE,MAAM,GAAG,EAAE,OAAO,SAAU,GAEzD,IAAIC,EAAkB,SAAS,uBAAuB,0BAA0B,EAC7EA,EAAgB,OAAS,GAAIC,EAAED,CAAe,EAAE,KAAKF,CAAK,CAC/D,CAEO,SAASI,GAAsB,CACpC,IAAIJ,EAAQ,IACTC,EAAQ,IAAI,gBAAgB,IAC7BD,EAAQC,EAAQ,IAAI,gBAAgB,EAAE,MAAM,GAAG,EAAE,OAAO,SAAU,GAEpE,IAAIC,EAAkB,SAAS,uBAAuB,oBAAoB,EACvEA,EAAgB,OAAS,GAAIC,EAAED,CAAe,EAAE,KAAKF,CAAK,CAC/D"}