{"version":3,"sources":["webpack://@flarum/likes/webpack/bootstrap","webpack://@flarum/likes/external \"flarum.core.compat['app']\"","webpack://@flarum/likes/external \"flarum.core.compat['extend']\"","webpack://@flarum/likes/external \"flarum.core.compat['components/CommentPost']\"","webpack://@flarum/likes/external \"flarum.core.compat['helpers/username']\"","webpack://@flarum/likes/external \"flarum.core.compat['models/Post']\"","webpack://@flarum/likes/external \"flarum.core.compat['Model']\"","webpack://@flarum/likes/external \"flarum.core.compat['components/NotificationGrid']\"","webpack://@flarum/likes/external \"flarum.core.compat['components/Button']\"","webpack://@flarum/likes/external \"flarum.core.compat['helpers/punctuateSeries']\"","webpack://@flarum/likes/external \"flarum.core.compat['helpers/icon']\"","webpack://@flarum/likes/external \"flarum.core.compat['components/Modal']\"","webpack://@flarum/likes/external \"flarum.core.compat['helpers/avatar']\"","webpack://@flarum/likes/external \"flarum.core.compat['components/Notification']\"","webpack://@flarum/likes/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@flarum/likes/./src/forum/components/PostLikesModal.js","webpack://@flarum/likes/./src/forum/components/PostLikedNotification.js","webpack://@flarum/likes/./src/forum/index.js","webpack://@flarum/likes/./src/forum/addLikeAction.js","webpack://@flarum/likes/./src/forum/addLikesList.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","flarum","core","compat","_inheritsLoose","subClass","superClass","constructor","__proto__","PostLikesModal","className","title","app","translator","trans","content","this","props","post","likes","map","user","href","route","config","avatar","username","Modal","PostLikedNotification","icon","notification","subject","fromUser","transChoice","excerpt","contentPlain","Notification","initializers","add","notificationComponents","postLiked","Post","canLike","Model","attribute","hasMany","extend","CommentPost","items","isHidden","isLiked","session","some","Button","component","children","onclick","save","data","relationships","like","id","splice","unshift","type","length","overLimit","names","sort","a","slice","limit","count","push","e","preventDefault","mod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,EAAI,IACzDiD,MAAM,EAAGJ,EAAYK,EANV,GAOXnD,IAAI,SAAAC,GACH,OACEhD,EAAA,KAAGiD,KAAMV,IAAIW,MAAMF,KAAKA,GAAOG,OAAQnD,EAAEkD,OACtCF,IAAST,IAAIuC,QAAQ9B,KAAOT,IAAIC,WAAWC,MAAM,oCAAsCY,IAASL,MAQzG,GAAI6C,EAAW,CACb,IAAMM,EAAQrD,EAAM8C,OAASE,EAAMF,OAEnCE,EAAMM,KACJpG,EAAA,KAAGiD,KAAK,IAAIkC,QAAS,SAAAkB,GACnBA,EAAEC,iBACF/D,IAAIgE,MAAMC,KAAK,IAAIpE,GAAgBS,YAElCN,IAAIC,WAAWoB,YAAY,sCAAuCuC,GAAQA,YAKjFxB,EAAMV,IAAI,QACRjE,EAAA,OAAKqC,UAAU,gBACZmB,IAAK,oBACLjB,IAAIC,WAAWoB,YAAY,oCAAsCd,EAAM,KAAOP,IAAIuC,QAAQ9B,KAAO,QAAU,IAAM,QAAS8C,EAAMF,QAC/HO,MAAOL,EAAMF,OACba,MAAOC,IAAgBZ,UFhCjCrB,iBAAOkC,IAAiBnF,UAAW,oBAAqB,SAAUmD,GAChEA,EAAMV,IAAI,aACR9D,KAAM,YACNqD,KAAM,mBACNoD,MAAOrE,IAAIC,WAAWC,MAAM","file":"forum.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 14);\n","module.exports = flarum.core.compat['app'];","module.exports = flarum.core.compat['extend'];","module.exports = flarum.core.compat['components/CommentPost'];","module.exports = flarum.core.compat['helpers/username'];","module.exports = flarum.core.compat['models/Post'];","module.exports = flarum.core.compat['Model'];","module.exports = flarum.core.compat['components/NotificationGrid'];","module.exports = flarum.core.compat['components/Button'];","module.exports = flarum.core.compat['helpers/punctuateSeries'];","module.exports = flarum.core.compat['helpers/icon'];","module.exports = flarum.core.compat['components/Modal'];","module.exports = flarum.core.compat['helpers/avatar'];","module.exports = flarum.core.compat['components/Notification'];","export default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}","import Modal from 'flarum/components/Modal';\nimport avatar from 'flarum/helpers/avatar';\nimport username from 'flarum/helpers/username';\n\nexport default class PostLikesModal extends Modal {\n className() {\n return 'PostLikesModal Modal--small';\n }\n\n title() {\n return app.translator.trans('flarum-likes.forum.post_likes.title');\n }\n\n content() {\n return (\n