From 0604ce1068afc6cc6696ad395021849628afe1e3 Mon Sep 17 00:00:00 2001 From: flarum-bot Date: Tue, 12 Nov 2024 20:20:54 +0000 Subject: [PATCH] Bundled output for commit 15fec08bd4ee7e01c974b87d6e59297bf4eaa74a Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci] --- js/dist/forum.js.map | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/dist/forum.js.map b/js/dist/forum.js.map index 733c893..b0c43d8 100644 --- a/js/dist/forum.js.map +++ b/js/dist/forum.js.map @@ -1 +1 @@ -{"version":3,"file":"forum.js","mappings":";kCAAAA,EAAOC,QAAUC,OAAOC,WAAW,qCCAnC,IAAIC,EAAUC,EAAAA,KAAAA,QACd,SAASC,IACP,aACAN,EAAOC,QAAUK,EAAsB,WACrC,OAAOC,CACT,EAAGP,EAAOC,QAAQO,YAAa,EAAMR,EAAOC,QAAiB,QAAID,EAAOC,QACxE,IAAIQ,EACFF,EAAI,CAAC,EACLG,EAAIC,OAAOC,UACXC,EAAIH,EAAEI,eACNC,EAAIJ,OAAOK,gBAAkB,SAAUP,EAAGF,EAAGG,GAC3CD,EAAEF,GAAKG,EAAEO,KACX,EACAC,EAAI,mBAAqBC,OAASA,OAAS,CAAC,EAC5CC,EAAIF,EAAEG,UAAY,aAClBC,EAAIJ,EAAEK,eAAiB,kBACvBC,EAAIN,EAAEO,aAAe,gBACvB,SAASC,EAAOjB,EAAGF,EAAGG,GACpB,OAAOC,OAAOK,eAAeP,EAAGF,EAAG,CACjCU,MAAOP,EACPiB,YAAY,EACZC,cAAc,EACdC,UAAU,IACRpB,EAAEF,EACR,CACA,IACEmB,EAAO,CAAC,EAAG,GACb,CAAE,MAAOjB,GACPiB,EAAS,SAAgBjB,EAAGF,EAAGG,GAC7B,OAAOD,EAAEF,GAAKG,CAChB,CACF,CACA,SAASoB,EAAKrB,EAAGF,EAAGG,EAAGG,GACrB,IAAIK,EAAIX,GAAKA,EAAEK,qBAAqBmB,EAAYxB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B+K,WAEzB/K,IAAAA,YAAgBqL,SAClB,GAEFrL,IAAAA,WAAeE,MAAM,gCAAgCwD,EAAK,UAE9D,KAlCJ,MANM1D,IAAAA,YAAgB+K,oBACX/K,IAAAA,YAAgB+K,WACvB/K,IAAAA,YAAgBqL,UAPpB,CAgDF,KCpEArD,EAAAA,EAAAA,QAAOsD,KAAAA,UAA+B,iBAAiB,SAAU1F,GAC/D,GAAI5F,IAAAA,YAAgB+K,WAAY,CAC9B,IACMQ,EADwC,MAA/BvL,IAAAA,YAAgB+K,WACN,IAAM,GAE1BnF,EAAOI,SACVJ,EAAOI,OAAS,CAAC,GAGnBJ,EAAOI,OAAUuF,EAAO,sBAAwB,OAE5C3F,EAAOI,OAAOC,IAChBL,EAAOI,OAAOC,GAAK,IAAIsF,EAAO,YAElC,CACF,KCfAvD,EAAAA,EAAAA,QAAOwD,KAAAA,UAA8B,eAAe,SAAUrK,GAC5D,IAAMoD,EAAOtK,KAAKwR,SAASC,OAAOnH,UACrB/F,IAAT+F,GAEQA,EAAKoH,MAAK,SAAChU,GAAC,OAAKA,EAAE6S,OAAO,MAKtCvQ,KAAK4F,MAAM+L,iBAAmB5L,IAAAA,WAAeE,MAAM,mDAE/CiB,EAAM+G,IAAI,oBACZ/G,EAAMyJ,WACJ,kBACA3J,EAAA,UACEA,EAAA,SACEC,UAAU,cACV2K,KAAM5R,KAAK0K,MAEXmH,YAAa7R,KAAK4F,MAAM+L,iBAExBG,WAAY9R,KAAK4F,MAAMkM,SACvBC,UAAW/R,KAAK+R,UAAU7M,KAAKlF,UAKzC,GTIF","sources":["webpack://@fof/best-answer/external assign \"flarum.extensions['fof-user-directory']\"","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/helpers/regeneratorRuntime.js","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/helpers/typeof.js","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/regenerator/index.js","webpack://@fof/best-answer/webpack/bootstrap","webpack://@fof/best-answer/webpack/runtime/compat get default export","webpack://@fof/best-answer/webpack/runtime/define property getters","webpack://@fof/best-answer/webpack/runtime/hasOwnProperty shorthand","webpack://@fof/best-answer/webpack/runtime/make namespace object","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/app']\"","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/Notification']\"","webpack://@fof/best-answer/./src/forum/components/SelectBestAnswerNotification.ts","webpack://@fof/best-answer/external root \"flarum.core.compat['common/extend']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/components/Button']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/utils/PostControls']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/DiscussionPage']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/CommentPost']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/utils/extractText']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/Post']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/Component']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/helpers/icon']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/helpers/humanTime']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/components/Link']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/utils/ItemList']\"","webpack://@fof/best-answer/./src/forum/components/SelectBestAnswerItem.tsx","webpack://@fof/best-answer/external root \"flarum.core.compat['common/helpers/username']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/helpers/userOnline']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/utils/classList']\"","webpack://@fof/best-answer/./src/forum/components/BestAnswerFooterPreview.tsx","webpack://@fof/best-answer/./src/forum/addBestAnswerView.tsx","webpack://@fof/best-answer/external root \"flarum.core.compat['common/models/Discussion']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/components/Badge']\"","webpack://@fof/best-answer/./src/forum/components/BestAnswerBadge.tsx","webpack://@fof/best-answer/./src/forum/components/AwardedBestAnswerNotification.ts","webpack://@fof/best-answer/./src/forum/components/BestAnswerInDiscussionNotification.ts","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/NotificationGrid']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/UserCard']\"","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/helpers/esm/extends.js","webpack://@fof/best-answer/./src/common/addBestAnswerCountSort.ts","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/Search']\"","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack://@fof/best-answer/external root \"flarum.core.compat['common/components/LinkButton']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/helpers/highlight']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['tags/common/helpers/tagsLabel']\"","webpack://@fof/best-answer/./src/forum/components/SolutionSearchItem.tsx","webpack://@fof/best-answer/./src/forum/components/SolutionSearchSource.tsx","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/DiscussionsSearchSource']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/IndexPage']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/components/Dropdown']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/states/DiscussionListState']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/DiscussionComposer']\"","webpack://@fof/best-answer/./src/forum/components/index.ts","webpack://@fof/best-answer/external root \"flarum.core.compat['common/extenders']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['tags/common/models/Tag']\"","webpack://@fof/best-answer/./src/common/extend.ts","webpack://@fof/best-answer/external root \"flarum.core.compat['common/models/User']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/Model']\"","webpack://@fof/best-answer/./src/forum/extend.ts","webpack://@fof/best-answer/./src/forum/index.ts","webpack://@fof/best-answer/./src/forum/addBestAnswerAction.tsx","webpack://@fof/best-answer/./src/forum/addAnsweredBadge.tsx","webpack://@fof/best-answer/./src/forum/addBestAnswerCountToUsers.tsx","webpack://@fof/best-answer/./src/forum/extenders/extendNotifications.ts","webpack://@fof/best-answer/./src/forum/extenders/extendSearch.ts","webpack://@fof/best-answer/./src/forum/extenders/extendDiscussionSearchSource.tsx","webpack://@fof/best-answer/./src/forum/extenders/extendIndexPage.tsx","webpack://@fof/best-answer/./src/forum/extenders/extendDiscussionListState.tsx","webpack://@fof/best-answer/./src/forum/extenders/extendDiscussionComposer.tsx"],"sourcesContent":["module.exports = flarum.extensions['fof-user-directory'];","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _regeneratorRuntime() {\n \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n return e;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n var t,\n e = {},\n r = Object.prototype,\n n = r.hasOwnProperty,\n o = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n i = \"function\" == typeof Symbol ? Symbol : {},\n a = i.iterator || \"@@iterator\",\n c = i.asyncIterator || \"@@asyncIterator\",\n u = i.toStringTag || \"@@toStringTag\";\n function define(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n define({}, \"\");\n } catch (t) {\n define = function define(t, e, r) {\n return t[e] = r;\n };\n }\n function wrap(t, e, r, n) {\n var i = e && e.prototype instanceof Generator ? e : Generator,\n a = Object.create(i.prototype),\n c = new Context(n || []);\n return o(a, \"_invoke\", {\n value: makeInvokeMethod(t, r, c)\n }), a;\n }\n function tryCatch(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = wrap;\n var h = \"suspendedStart\",\n l = \"suspendedYield\",\n f = \"executing\",\n s = \"completed\",\n y = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var p = {};\n define(p, a, function () {\n return this;\n });\n var d = Object.getPrototypeOf,\n v = d && d(d(values([])));\n v && v !== r && n.call(v, a) && (p = v);\n var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);\n function defineIteratorMethods(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n define(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function AsyncIterator(t, e) {\n function invoke(r, o, i, a) {\n var c = tryCatch(t[r], t, o);\n if (\"throw\" !== c.type) {\n var u = c.arg,\n h = u.value;\n return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) {\n invoke(\"next\", t, i, a);\n }, function (t) {\n invoke(\"throw\", t, i, a);\n }) : e.resolve(h).then(function (t) {\n u.value = t, i(u);\n }, function (t) {\n return invoke(\"throw\", t, i, a);\n });\n }\n a(c.arg);\n }\n var r;\n o(this, \"_invoke\", {\n value: function value(t, n) {\n function callInvokeWithMethodAndArg() {\n return new e(function (e, r) {\n invoke(t, n, e, r);\n });\n }\n return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n });\n }\n function makeInvokeMethod(e, r, n) {\n var o = h;\n return function (i, a) {\n if (o === f) throw Error(\"Generator is already running\");\n if (o === s) {\n if (\"throw\" === i) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = i, n.arg = a;;) {\n var c = n.delegate;\n if (c) {\n var u = maybeInvokeDelegate(c, n);\n if (u) {\n if (u === y) continue;\n return u;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (o === h) throw o = s, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n o = f;\n var p = tryCatch(e, r, n);\n if (\"normal\" === p.type) {\n if (o = n.done ? s : l, p.arg === y) continue;\n return {\n value: p.arg,\n done: n.done\n };\n }\n \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg);\n }\n };\n }\n function maybeInvokeDelegate(e, r) {\n var n = r.method,\n o = e.iterator[n];\n if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y;\n var i = tryCatch(o, e.iterator, r.arg);\n if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y;\n var a = i.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y);\n }\n function pushTryEntry(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function resetTryEntry(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function Context(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(pushTryEntry, this), this.reset(!0);\n }\n function values(e) {\n if (e || \"\" === e) {\n var r = e[a];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var o = -1,\n i = function next() {\n for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;\n return next.value = t, next.done = !0, next;\n };\n return i.next = i;\n }\n }\n throw new TypeError(_typeof(e) + \" is not iterable\");\n }\n return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", {\n value: GeneratorFunctionPrototype,\n configurable: !0\n }), o(GeneratorFunctionPrototype, \"constructor\", {\n value: GeneratorFunction,\n configurable: !0\n }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {\n return this;\n }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {\n void 0 === i && (i = Promise);\n var a = new AsyncIterator(wrap(t, r, n, o), i);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () {\n return this;\n }), define(g, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function next() {\n for (; r.length;) {\n var t = r.pop();\n if (t in e) return next.value = t, next.done = !1, next;\n }\n return next.done = !0, next;\n };\n }, e.values = values, Context.prototype = {\n constructor: Context,\n reset: function reset(e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function stop() {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(e) {\n if (this.done) throw e;\n var r = this;\n function handle(n, o) {\n return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o;\n }\n for (var o = this.tryEntries.length - 1; o >= 0; --o) {\n var i = this.tryEntries[o],\n a = i.completion;\n if (\"root\" === i.tryLoc) return handle(\"end\");\n if (i.tryLoc <= this.prev) {\n var c = n.call(i, \"catchLoc\"),\n u = n.call(i, \"finallyLoc\");\n if (c && u) {\n if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n } else if (c) {\n if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n } else {\n if (!u) throw Error(\"try statement without catch or finally\");\n if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var o = this.tryEntries[r];\n if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) {\n var i = o;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a);\n },\n complete: function complete(t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y;\n },\n finish: function finish(t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;\n }\n },\n \"catch\": function _catch(t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var o = n.arg;\n resetTryEntry(r);\n }\n return o;\n }\n }\n throw Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(e, r, n) {\n return this.delegate = {\n iterator: values(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), y;\n }\n }, e;\n}\nmodule.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// TODO(Babel 8): Remove this file.\n\nvar runtime = require(\"../helpers/regeneratorRuntime\")();\nmodule.exports = runtime;\n\n// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/app'];","function _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nexport { _inheritsLoose as default };","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/Notification'];","import type Discussion from 'flarum/common/models/Discussion';\nimport app from 'flarum/forum/app';\nimport Notification from 'flarum/forum/components/Notification';\n\nexport default class SelectBestAnswerNotification extends Notification {\n icon() {\n return 'fas fa-comment-dots';\n }\n\n href() {\n const notification = this.attrs.notification;\n const discussion = notification.subject() as Discussion;\n\n return app.route.discussion(discussion);\n }\n\n content() {\n return app.translator.trans('fof-best-answer.forum.notification.content');\n }\n\n excerpt() {\n return null;\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Button'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/utils/PostControls'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/DiscussionPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/CommentPost'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/extractText'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/Post'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/Component'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/icon'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/humanTime'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Link'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/ItemList'];","import app from 'flarum/forum/app';\nimport Component, { ComponentAttrs } from 'flarum/common/Component';\nimport icon from 'flarum/common/helpers/icon';\nimport humanTime from 'flarum/common/helpers/humanTime';\nimport Link from 'flarum/common/components/Link';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport Discussion from 'flarum/common/models/Discussion';\nimport Mithril from 'mithril';\nimport Post from 'flarum/common/models/Post';\n\nexport interface ISelectBestAnswerItemAttrs extends ComponentAttrs {\n post: Post;\n discussion: Discussion;\n}\n\nexport default class SelectBestAnswerItem extends Component {\n post!: Post;\n discussion!: Discussion;\n\n oninit(vnode: Mithril.Vnode) {\n super.oninit(vnode);\n\n this.post = this.attrs.post;\n this.discussion = this.attrs.discussion;\n }\n\n view() {\n return
  • {this.items().toArray()}
  • ;\n }\n\n getSetTime(discussion: Discussion) {\n if (!discussion.bestAnswerSetAt?.()) {\n return;\n }\n const bestAnswerSetAt = discussion.bestAnswerSetAt?.();\n if (!bestAnswerSetAt) {\n return;\n }\n return humanTime(bestAnswerSetAt);\n }\n\n items(): ItemList {\n const items = new ItemList();\n\n items.add(\n 'post',\n this.post ? (\n \n {icon('fas fa-check')}\n {app.translator.trans('fof-best-answer.forum.best_answer_button')}\n \n ) : (\n \n {icon('fas fa-check')}\n {app.translator.trans('fof-best-answer.forum.best_answer_button')}\n \n )\n );\n\n const bestAnswerUser = this.discussion.bestAnswerUser?.();\n\n bestAnswerUser &&\n items.add(\n 'user',\n \n {app.translator.trans('fof-best-answer.forum.best_answer_label', {\n user: this.discussion.bestAnswerUser?.(),\n time_set: this.getSetTime(this.discussion),\n a: m.route.set(app.route.user(bestAnswerUser))} />,\n })}\n \n );\n\n return items;\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/username'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/userOnline'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/classList'];","import app from 'flarum/forum/app';\nimport Component, { ComponentAttrs } from 'flarum/common/Component';\nimport Mithril from 'mithril';\nimport username from 'flarum/common/helpers/username';\nimport userOnline from 'flarum/common/helpers/userOnline';\nimport Link from 'flarum/common/components/Link';\nimport classList from 'flarum/common/utils/classList';\nimport SelectBestAnswerItem from './SelectBestAnswerItem';\nimport Post from 'flarum/common/models/Post';\nimport User from 'flarum/common/models/User';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport Discussion from 'flarum/common/models/Discussion';\nimport humanTime from 'flarum/common/helpers/humanTime';\n\nexport interface BestAnswerFooterPreviewAttrs extends ComponentAttrs {\n post: Post;\n user: User;\n discussion: Discussion;\n}\n\nexport default class BestAnswerFooterPreview extends Component {\n user!: User;\n post!: Post;\n discussion!: Discussion;\n\n oninit(vnode: Mithril.Vnode) {\n super.oninit(vnode);\n\n this.user = this.attrs.user;\n this.post = this.attrs.post;\n this.discussion = this.attrs.discussion;\n }\n\n view() {\n const maxLines = app.forum.attribute('fof-best-answer.show_max_lines');\n\n return (\n
    app.current.get('stream').goToNumber(this.post.number())}>\n
    \n
      {this.headerItems().toArray()}
    \n
    \n
    0 && 'Post-body--truncate')} style={{ '--max-lines': maxLines }}>\n {m.trust(this.postContent())}\n
    \n
    \n );\n }\n\n postContent() {\n return this.post.contentHtml();\n }\n\n /**\n * To maintain compatibility with existing styling, custom themes, etc, each item here must be\n * wrapped in a
  • element.\n *\n * @todo: Remove this requirement for Flarum 2.0\n */\n headerItems(): ItemList {\n const items = new ItemList();\n\n items.add('user', this.userItem()), 100;\n items.add('meta', this.metaItem()), 90;\n items.add('bestAnswer', , -100);\n\n return items;\n }\n\n userItem(): Mithril.Children {\n return (\n
  • \n
    \n {this.user && userOnline(this.user)}\n

    {this.user ? {username(this.user)} : username(this.user)}

    \n
    \n
  • \n );\n }\n\n metaItem(): Mithril.Children {\n const post = this.post;\n return (\n
  • \n {humanTime(post.createdAt())}\n
  • \n );\n }\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport CommentPost from 'flarum/forum/components/CommentPost';\nimport PostComponent from 'flarum/forum/components/Post';\nimport SelectBestAnswerItem from './components/SelectBestAnswerItem';\nimport DiscussionPage from 'flarum/forum/components/DiscussionPage';\nimport Button from 'flarum/common/components/Button';\nimport BestAnswerFooterPreview from './components/BestAnswerFooterPreview';\n\nexport default () => {\n extend(CommentPost.prototype, 'headerItems', function (items) {\n const post = this.attrs.post;\n const discussion = post.discussion();\n\n if (discussion?.hasBestAnswer() && discussion.bestAnswerPost() && discussion.bestAnswerPost()?.id() === post.id() && !post.isHidden()) {\n items.add('isBestAnswer', , -100);\n }\n });\n\n extend(CommentPost.prototype, 'footerItems', function (items) {\n const thisPost = this.attrs.post;\n const discussion = thisPost.discussion();\n const post = discussion.hasBestAnswer() && discussion.bestAnswerPost();\n\n if (post && !post.isHidden() && thisPost.number() === 1 && !thisPost.isHidden()) {\n const user = post.user();\n\n items.add('bestAnswerPost', , -10);\n }\n });\n\n extend(PostComponent.prototype, 'elementAttrs', function (elementAttrs) {\n const post = this.attrs.post;\n const discussion = post.discussion();\n\n if (discussion?.hasBestAnswer() && discussion.bestAnswerPost() && discussion.bestAnswerPost().id() === post.id() && !post.isHidden()) {\n elementAttrs.className ? (elementAttrs.className += ' Post--bestAnswer') : (elementAttrs.className = 'Post--bestAnswer');\n }\n });\n\n extend(DiscussionPage.prototype, 'sidebarItems', function (items) {\n if (!app.forum.attribute('bestAnswerDiscussionSidebarJumpButton')) return;\n\n // @ts-ignore\n const discussion = this.discussion;\n\n if (discussion === null) return;\n\n const post = discussion.hasBestAnswer() && discussion.bestAnswerPost();\n\n if (post && !post.isHidden() && post.number() !== 1 && !discussion.bestAnswerPost()?.isHidden()) {\n items.add(\n 'jumpToBestAnswer',\n app.current.get('stream').goToNumber(post.number())}\n aria-label={app.translator.trans('fof-best-answer.forum.discussion.jump_to_best_answer_button')}\n >\n {app.translator.trans('fof-best-answer.forum.discussion.jump_to_best_answer_button')}\n ,\n 90\n );\n }\n });\n};\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/models/Discussion'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Badge'];","import Badge, { IBadgeAttrs } from 'flarum/common/components/Badge';\nimport app from 'flarum/forum/app';\nimport extractText from 'flarum/common/utils/extractText';\n\nexport default class BestAnswerBadge extends Badge {\n static initAttrs(attrs: IBadgeAttrs) {\n attrs.type = 'bestAnswer';\n attrs.icon = 'fas fa-check';\n attrs.label = extractText(app.translator.trans('fof-best-answer.forum.answered_badge'));\n }\n}\n","import type Discussion from 'flarum/common/models/Discussion';\nimport app from 'flarum/forum/app';\nimport Notification from 'flarum/forum/components/Notification';\n\nexport default class AwardedBestAnswerNotification extends Notification {\n icon() {\n return 'fas fa-check';\n }\n\n href() {\n const notification = this.attrs.notification;\n const discussion = notification.subject() as Discussion;\n\n return app.route.discussion(discussion);\n }\n\n content() {\n const user = this.attrs.notification.fromUser();\n return app.translator.trans('fof-best-answer.forum.notification.awarded', {\n user: user,\n });\n }\n\n excerpt() {\n return null;\n }\n}\n","import type Discussion from 'flarum/common/models/Discussion';\nimport app from 'flarum/forum/app';\nimport Notification from 'flarum/forum/components/Notification';\n\nexport default class BestAnswerInDiscussionNotification extends Notification {\n icon() {\n return 'fas fa-check';\n }\n\n href() {\n const notification = this.attrs.notification;\n const discussion = notification.subject() as Discussion;\n\n return app.route.discussion(discussion);\n }\n\n content() {\n const user = this.attrs.notification.fromUser();\n return app.translator.trans('fof-best-answer.forum.notification.best_answer_in_discussion', {\n user: user,\n });\n }\n\n excerpt() {\n return null;\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/NotificationGrid'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/UserCard'];","function _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nexport { _extends as default };","import { override } from 'flarum/common/extend';\n\nexport default () => {\n const FoFUserDirectory = require('@fof-user-directory');\n\n if (!FoFUserDirectory) return;\n\n override(FoFUserDirectory.SortMap.prototype, 'sortMap', (map) => ({\n ...map(),\n most_best_answers: '-bestAnswerCount',\n least_best_answers: 'bestAnswerCount',\n }));\n};\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/Search'];","function asyncGeneratorStep(n, t, e, r, o, a, c) {\n try {\n var i = n[a](c),\n u = i.value;\n } catch (n) {\n return void e(n);\n }\n i.done ? t(u) : Promise.resolve(u).then(r, o);\n}\nfunction _asyncToGenerator(n) {\n return function () {\n var t = this,\n e = arguments;\n return new Promise(function (r, o) {\n var a = n.apply(t, e);\n function _next(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n);\n }\n function _throw(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n);\n }\n _next(void 0);\n });\n };\n}\nexport { _asyncToGenerator as default };","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/LinkButton'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/highlight'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['tags/common/helpers/tagsLabel'];","import app from 'flarum/forum/app';\nimport Component, { ComponentAttrs } from 'flarum/common/Component';\nimport Link from 'flarum/common/components/Link';\nimport highlight from 'flarum/common/helpers/highlight';\nimport type Discussion from 'flarum/common/models/Discussion';\nimport type Post from 'flarum/common/models/Post';\nimport type Mithril from 'mithril';\nimport tagsLabel from 'flarum/tags/common/helpers/tagsLabel';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport type Tag from 'flarum/tags/common/models/Tag';\n\nexport interface SolutionSearchItemAttrs extends ComponentAttrs {\n query: string;\n discussion: Discussion;\n bestAnswerPost: Post;\n mostRelevantPost: Post;\n tags: false | (Tag | undefined)[];\n}\n\nexport default class SolutionSearchItem extends Component {\n query!: string;\n discussion!: Discussion;\n bestAnswerPost!: Post | null | undefined;\n mostRelevantPost!: Post | null | undefined;\n tags!: false | (Tag | undefined)[];\n\n oninit(vnode: Mithril.Vnode) {\n super.oninit(vnode);\n\n this.query = this.attrs.query;\n this.discussion = this.attrs.discussion;\n this.bestAnswerPost = this.attrs.bestAnswerPost;\n this.mostRelevantPost = this.attrs.mostRelevantPost;\n this.tags = this.attrs.tags;\n }\n\n view() {\n return (\n
  • \n \n {this.viewItems().toArray()}\n \n
  • \n );\n }\n\n discussionTitle() {\n return this.discussion.title();\n }\n\n bestAnswerContent() {\n return this.bestAnswerPost?.contentPlain();\n }\n\n mostRelevantContent() {\n return this.mostRelevantPost?.contentPlain();\n }\n\n viewItems(): ItemList {\n const items = new ItemList();\n\n app.forum.attribute('showTagsInSearchResults') &&\n items.add('tags',
    {tagsLabel(this.tags)}
    , 100);\n\n items.add('discussion-title',
    {highlight(this.discussionTitle(), this.query)}
    , 90);\n\n !!this.mostRelevantPost &&\n items.add(\n 'most-relevant',\n
    {highlight(this.mostRelevantContent() ?? '', this.query, 100)}
    ,\n 80\n );\n\n !!this.bestAnswerPost &&\n items.add(\n 'best-answer',\n
    \n {highlight(this.bestAnswerContent() ?? '', this.query, 100)}\n
    ,\n 70\n );\n\n return items;\n }\n}\n","import app from 'flarum/forum/app';\nimport Discussion from 'flarum/common/models/Discussion';\nimport LinkButton from 'flarum/common/components/LinkButton';\nimport { SearchSource } from 'flarum/forum/components/Search';\nimport type Mithril from 'mithril';\nimport BestAnswerBadge from './BestAnswerBadge';\nimport SolutionSearchItem from './SolutionSearchItem';\n\nexport default class SolutionSearchSource implements SearchSource {\n protected results = new Map();\n queryString: string | null = null;\n\n async search(query: string): Promise {\n query = query.toLowerCase();\n\n this.results.set(query, []);\n\n this.setQueryString(query);\n\n const params = {\n filter: { q: this.queryString || query },\n page: { limit: this.limit() },\n include: this.includes().join(','),\n };\n\n return app.store.find('discussions', params).then((results) => {\n this.results.set(query, results);\n m.redraw();\n });\n }\n\n view(query: string): Array {\n query = query.toLowerCase();\n\n this.setQueryString(query);\n\n const results = (this.results.get(query) || []).map((discussion) => {\n const bestAnswerPost = discussion.bestAnswerPost();\n const mostRelevantPost = discussion.mostRelevantPost();\n const tags = discussion.tags();\n\n return (\n \n );\n }) as Array;\n\n return [\n
  • \n {app.translator.trans('fof-best-answer.forum.search.discussions_solutions_heading')}\n
  • ,\n
  • \n \n {app.translator.trans('fof-best-answer.forum.search.all_discussions_solutions_button', { query })}\n \n
  • ,\n ...results,\n ];\n }\n\n includes(): string[] {\n return ['mostRelevantPost', 'bestAnswerPost', 'tags'];\n }\n\n limit(): number {\n return 3;\n }\n\n queryMutators(): string[] {\n return ['is:solved'];\n }\n\n setQueryString(query: string): void {\n this.queryString = query + ' ' + this.queryMutators().join(' ');\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/DiscussionsSearchSource'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/IndexPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Dropdown'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/states/DiscussionListState'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/DiscussionComposer'];","import AwardedBestAnswerNotification from './AwardedBestAnswerNotification';\nimport BestAnswerBadge from './BestAnswerBadge';\nimport BestAnswerFooterPreview from './BestAnswerFooterPreview';\nimport BestAnswerInDiscussionNotification from './BestAnswerInDiscussionNotification';\nimport SelectBestAnswerItem from './SelectBestAnswerItem';\nimport SelectBestAnswerNotification from './SelectBestAnswerNotification';\nimport SolutionSearchItem from './SolutionSearchItem';\nimport SolutionSearchSource from './SolutionSearchSource';\n\nexport const components = {\n SelectBestAnswerItem,\n SolutionSearchSource,\n BestAnswerFooterPreview,\n AwardedBestAnswerNotification,\n BestAnswerBadge,\n BestAnswerInDiscussionNotification,\n SelectBestAnswerNotification,\n SolutionSearchItem,\n};\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extenders'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['tags/common/models/Tag'];","import Extend from 'flarum/common/extenders';\nimport Tag from 'flarum/tags/common/models/Tag';\n\nexport default [\n new Extend.Model(Tag) //\n .attribute('isQnA')\n .attribute('reminders'),\n];\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/models/User'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/Model'];","import Discussion from 'flarum/common/models/Discussion';\nimport commonExtend from '../common/extend';\nimport Extend from 'flarum/common/extenders';\nimport type Post from 'flarum/common/models/Post';\nimport User from 'flarum/common/models/User';\nimport Model from 'flarum/common/Model';\n\nexport default [\n ...commonExtend,\n\n new Extend.Model(Discussion) //\n .hasOne('bestAnswerPost')\n .hasOne('bestAnswerUser')\n .attribute('hasBestAnswer')\n .attribute('canSelectBestAnswer')\n .attribute('bestAnswerSetAt', Model.transformDate),\n\n new Extend.Model(User) //\n .attribute('bestAnswerCount'),\n];\n","import app from 'flarum/forum/app';\nimport SelectBestAnswerNotification from './components/SelectBestAnswerNotification';\nimport addBestAnswerAction from './addBestAnswerAction';\nimport addBestAnswerView from './addBestAnswerView';\nimport addAnsweredBadge from './addAnsweredBadge';\nimport AwardedBestAnswerNotification from './components/AwardedBestAnswerNotification';\nimport BestAnswerInDiscussionNotification from './components/BestAnswerInDiscussionNotification';\nimport extendNotifications from './extenders/extendNotifications';\nimport addBestAnswerCountToUsers from './addBestAnswerCountToUsers';\nimport addBestAnswerCountSort from '../common/addBestAnswerCountSort';\nimport extendSearch from './extenders/extendSearch';\nimport extendDiscussionsSearchSource from './extenders/extendDiscussionSearchSource';\nimport extendIndexPage from './extenders/extendIndexPage';\nimport extendDiscussionListState from './extenders/extendDiscussionListState';\nimport extendDiscussionComposer from './extenders/extendDiscussionComposer';\n\nexport * from './components';\n\nexport { default as extend } from './extend';\n\napp.initializers.add('fof/best-answer', () => {\n app.notificationComponents.selectBestAnswer = SelectBestAnswerNotification;\n app.notificationComponents.awardedBestAnswer = AwardedBestAnswerNotification;\n app.notificationComponents.bestAnswerInDiscussion = BestAnswerInDiscussionNotification;\n\n addAnsweredBadge();\n addBestAnswerAction();\n addBestAnswerView();\n addBestAnswerCountToUsers();\n addBestAnswerCountSort();\n\n extendNotifications();\n extendSearch();\n extendDiscussionsSearchSource();\n extendIndexPage();\n extendDiscussionListState();\n extendDiscussionComposer();\n});\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport Button from 'flarum/common/components/Button';\nimport PostControls from 'flarum/forum/utils/PostControls';\nimport DiscussionPage from 'flarum/forum/components/DiscussionPage';\nimport CommentPost from 'flarum/forum/components/CommentPost';\nimport Discussion from 'flarum/common/models/Discussion';\nimport Post from 'flarum/common/models/Post';\nimport extractText from 'flarum/common/utils/extractText';\n\nexport default function addBestAnswerAction() {\n const ineligible = (discussion: Discussion, post: Post) => {\n return post.isHidden() || post.number() === 1 || !discussion.canSelectBestAnswer() || !app.session.user;\n };\n\n const blockSelectOwnPost = (post: Post): boolean => {\n const user = post.user();\n return !app.forum.attribute('canSelectBestAnswerOwnPost') && user !== false && user.id() === app.session.user?.id();\n };\n\n const isThisBestAnswer = (discussion: Discussion, post: Post): boolean => {\n const bestAnswerPost = discussion.bestAnswerPost();\n const hasBestAnswer = discussion.hasBestAnswer();\n return hasBestAnswer !== undefined && hasBestAnswer && bestAnswerPost !== null && bestAnswerPost.id() === post.id();\n };\n\n const actionLabel = (isBestAnswer: boolean): string => {\n return extractText(app.translator.trans(isBestAnswer ? 'fof-best-answer.forum.remove_best_answer' : 'fof-best-answer.forum.this_best_answer'));\n };\n\n const saveDiscussion = (discussion: Discussion, isBestAnswer: boolean, post: Post) =>\n discussion\n .save(\n {\n bestAnswerPostId: isBestAnswer ? post.id() : 0,\n bestAnswerUserId: app.session.user?.id(),\n relationships: isBestAnswer ? { bestAnswerPost: post, bestAnswerUser: app.session.user } : { bestAnswerPost: null },\n },\n {\n params: {\n include: 'tags',\n },\n }\n )\n .then(() => {\n if (!isBestAnswer) {\n if (discussion.data.relationships) {\n delete discussion.data.relationships.bestAnswerPost;\n delete discussion.data.relationships.bestAnswerUser;\n }\n }\n\n if (app.current.matches(DiscussionPage)) {\n app.current.get('stream').update();\n }\n\n m.redraw();\n\n if (isBestAnswer) {\n m.route.set(app.route.discussion(discussion));\n }\n });\n\n extend(PostControls, 'moderationControls', function (items, post) {\n if (app.forum.attribute('useAlternativeBestAnswerUi')) return;\n\n const discussion = post.discussion();\n let isBestAnswer = isThisBestAnswer(discussion, post);\n\n post.pushAttributes({ isBestAnswer });\n\n if (post.contentType() !== 'comment') return;\n\n if (ineligible(discussion, post) || blockSelectOwnPost(post) || !app.current.matches(DiscussionPage)) return;\n\n items.add(\n 'bestAnswer',\n {\n isBestAnswer = !isBestAnswer;\n\n saveDiscussion(discussion, isBestAnswer, post).finally(() => {\n isBestAnswer = isThisBestAnswer(discussion, post);\n });\n }}\n >\n {actionLabel(isBestAnswer)}\n \n );\n });\n\n extend(CommentPost.prototype, 'actionItems', function (items) {\n if (!app.forum.attribute('useAlternativeBestAnswerUi')) return;\n\n const post = this.attrs.post;\n const discussion = this.attrs.post.discussion();\n let isBestAnswer = isThisBestAnswer(discussion, post);\n let hasBestAnswer = discussion.bestAnswerPost() !== null;\n\n post.pushAttributes({ isBestAnswer });\n\n if (ineligible(discussion, post) || blockSelectOwnPost(post) || !app.current.matches(DiscussionPage)) return;\n\n items.add(\n 'bestAnswer',\n {\n hasBestAnswer = !hasBestAnswer;\n isBestAnswer = !isBestAnswer;\n\n saveDiscussion(discussion, isBestAnswer, post).finally(() => {\n hasBestAnswer = !!discussion.hasBestAnswer() && discussion.bestAnswerPost() !== null;\n isBestAnswer = isThisBestAnswer(discussion, post);\n });\n }}\n >\n {actionLabel(isBestAnswer)}\n \n );\n });\n}\n","import { extend } from 'flarum/common/extend';\nimport Discussion from 'flarum/common/models/Discussion';\nimport BestAnswerBadge from './components/BestAnswerBadge';\n\nexport default function () {\n extend(Discussion.prototype, 'badges', function (this: Discussion, items) {\n if (this.hasBestAnswer() && !items.has('hidden')) {\n items.add('bestAnswer', );\n }\n });\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport UserCard from 'flarum/forum/components/UserCard';\nimport icon from 'flarum/common/helpers/icon';\n\nimport type Mithril from 'mithril';\nimport type User from 'flarum/common/models/User';\n\nexport default function addBestAnswerCountToUsers() {\n extend(UserCard.prototype, 'infoItems', function (items: ItemList) {\n // @ts-expect-error\n const user = this.attrs.user as User;\n\n items.add(\n 'best-answer-count',\n \n {icon('fas fa-check')}\n {app.translator.trans('fof-best-answer.forum.user.best-answer-count', {\n count: user.bestAnswerCount(),\n })}\n ,\n 55\n );\n });\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport NotificationGrid from 'flarum/forum/components/NotificationGrid';\nimport type Mithril from 'mithril';\n\nexport default function () {\n extend(NotificationGrid.prototype, 'notificationTypes', function (items: ItemList<{ name: string; icon: string; label: Mithril.Children }>) {\n items.add('awardedBestAnswer', {\n name: 'awardedBestAnswer',\n icon: 'fas fa-check',\n label: app.translator.trans('fof-best-answer.forum.notification.preferences.awarded_best_answer'),\n });\n items.add('bestAnswerInDiscussion', {\n name: 'bestAnswerInDiscussion',\n icon: 'fas fa-check',\n label: app.translator.trans('fof-best-answer.forum.notification.preferences.best_answer_in_discussion'),\n });\n items.add('selectBestAnswer', {\n name: 'selectBestAnswer',\n icon: 'fas fa-stopwatch',\n label: app.translator.trans('fof-best-answer.forum.notification.preferences.select_best_answer'),\n });\n });\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport Search, { SearchSource } from 'flarum/forum/components/Search';\nimport SolutionSearchSource from '../components/SolutionSearchSource';\n\nexport default function extendSearch() {\n extend(Search.prototype, 'sourceItems', function (items: ItemList) {\n if (app.forum.attribute('solutionSearchEnabled')) {\n items.add('solution', new SolutionSearchSource(), 110);\n }\n });\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport DiscussionsSearchSource from 'flarum/forum/components/DiscussionsSearchSource';\n\nexport default function extendDiscussionsSearchSource() {\n extend(DiscussionsSearchSource.prototype, 'queryMutators', function (mutators: string[]) {\n // This will only apply when using flarum/core 1.8.6 or newer\n if (app.forum.attribute('removeSolutionResultsFromMainSearch')) {\n mutators.push('-is:solved');\n }\n });\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport IndexPage from 'flarum/forum/components/IndexPage';\nimport Dropdown from 'flarum/common/components/Dropdown';\nimport Button from 'flarum/common/components/Button';\n\nexport default function extendIndexPage() {\n extend(IndexPage.prototype, 'sidebarItems', function (items) {\n const tag = this.currentTag();\n\n if (!tag?.isQnA?.()) return;\n\n const canStartDiscussion = app.forum.attribute('canStartDiscussion') || !app.session.user;\n const cta = items.get('newDiscussion');\n cta.children = app.translator.trans(\n canStartDiscussion ? 'fof-best-answer.forum.index.ask_question' : 'fof-best-answer.forum.index.cannot_ask_question'\n );\n\n if (items.has('startDiscussion')) {\n items.setContent('startDiscussion', cta);\n }\n });\n\n extend(IndexPage.prototype, 'viewItems', function (items) {\n if (!app.forum.attribute('showBestAnswerFilterUi')) {\n return;\n }\n\n const tag = this.currentTag();\n\n if (!tag?.isQnA?.()) {\n if (app.discussions.bestAnswer) {\n delete app.discussions.bestAnswer;\n app.discussions.refresh();\n }\n\n return;\n }\n\n const options = ['all', 'solved', 'unsolved'];\n\n const selected = app.discussions.bestAnswer as unknown as number;\n\n items.add(\n 'solved-filter',\n Dropdown.component(\n {\n buttonClassName: 'Button',\n label: app.translator.trans(\n `fof-best-answer.forum.filter.${options[selected] || Object.keys(options).map((key) => options[Number(key)])[0]}_label`\n ),\n accessibleToggleLabel: app.translator.trans('fof-best-answer.forum.filter.accessible_label'),\n },\n Object.keys(options).map((value) => {\n const label = options[Number(value)];\n const active = (selected || Object.keys(options)[0]) === value;\n\n return Button.component(\n {\n icon: active ? 'fas fa-check' : true,\n active: active,\n onclick: () => {\n app.discussions.bestAnswer = value;\n if (value === '0') {\n delete app.discussions.bestAnswer;\n }\n app.discussions.refresh();\n },\n },\n app.translator.trans(`fof-best-answer.forum.filter.${label}_label`)\n );\n })\n )\n );\n });\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport DiscussionListState from 'flarum/forum/states/DiscussionListState';\nimport type { PaginatedListParams } from 'flarum/common/states/PaginatedListState';\n\nexport default function extendDiscussionListState() {\n extend(DiscussionListState.prototype, 'requestParams', function (params: PaginatedListParams) {\n if (app.discussions.bestAnswer) {\n const negate = app.discussions.bestAnswer === '2';\n const prepend = negate ? '-' : '';\n\n if (!params.filter) {\n params.filter = {};\n }\n\n params.filter[`${prepend}solved-discussions`] = 'true';\n\n if (params.filter.q) {\n params.filter.q += ` ${prepend}is:solved`;\n }\n }\n });\n}\n","import { extend } from 'flarum/common/extend';\nimport app from 'flarum/forum/app';\nimport DiscussionComposer from 'flarum/forum/components/DiscussionComposer';\nimport type Tag from 'flarum/tags/common/models/Tag';\n\nexport default function extendDiscussionComposer() {\n extend(DiscussionComposer.prototype, 'headerItems', function (items) {\n const tags = this.composer.fields.tags as Tag[];\n if (tags === undefined) return;\n\n const qna = tags.some((t) => t.isQnA());\n\n if (!qna) return;\n\n // @ts-expect-error\n this.attrs.titlePlaceholder = app.translator.trans('fof-best-answer.forum.composer.titlePlaceholder');\n\n if (items.has('discussionTitle')) {\n items.setContent(\n 'discussionTitle',\n

    \n \n

    \n );\n }\n });\n}\n"],"names":["module","exports","flarum","extensions","_typeof","require","_regeneratorRuntime","e","__esModule","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","this","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","delegateYield","runtime","regeneratorRuntime","accidentalStrictMode","globalThis","Function","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","getter","definition","key","get","obj","prop","core","compat","_setPrototypeOf","bind","_inheritsLoose","SelectBestAnswerNotification","_Notification","apply","arguments","_proto","icon","href","discussion","attrs","notification","subject","app","content","trans","excerpt","Notification","SelectBestAnswerItem","_Component","_this","_len","args","Array","_key","concat","post","oninit","vnode","view","m","className","items","toArray","getSetTime","bestAnswerSetAt","humanTime","_this$discussion$best","_this$discussion","_this$discussion$best2","_this$discussion2","ItemList","add","Link","number","bestAnswerUser","user","time_set","onclick","route","set","Component","BestAnswerFooterPreview","_this2","maxLines","attribute","goToNumber","headerItems","classList","style","trust","postContent","contentHtml","userItem","metaItem","userOnline","username","createdAt","BestAnswerBadge","_Badge","initAttrs","label","extractText","Badge","AwardedBestAnswerNotification","fromUser","BestAnswerInDiscussionNotification","_extends","assign","asyncGeneratorStep","SolutionSearchItem","query","bestAnswerPost","mostRelevantPost","tags","id","viewItems","discussionTitle","title","bestAnswerContent","_this$bestAnswerPost","contentPlain","mostRelevantContent","_this$mostRelevantPos","_this$mostRelevantCon","_this$bestAnswerConte","tagsLabel","highlight","SolutionSearchSource","results","Map","queryString","search","_search","_callee","params","_context","toLowerCase","setQueryString","filter","q","page","limit","include","includes","join","find","redraw","_next","_throw","_x","map","LinkButton","queryMutators","components","Extend","Tag","commonExtend","Discussion","hasOne","Model","User","ineligible","blockSelectOwnPost","isThisBestAnswer","actionLabel","saveDiscussion","FoFUserDirectory","selectBestAnswer","awardedBestAnswer","bestAnswerInDiscussion","extend","hasBestAnswer","has","isHidden","canSelectBestAnswer","_app$session$user","isBestAnswer","_app$session$user2","save","bestAnswerPostId","bestAnswerUserId","relationships","data","matches","DiscussionPage","update","PostControls","pushAttributes","contentType","Button","CommentPost","_discussion$bestAnswe","thisPost","PostComponent","elementAttrs","_discussion$bestAnswe2","UserCard","count","bestAnswerCount","override","SortMap","most_best_answers","least_best_answers","NotificationGrid","Search","DiscussionsSearchSource","mutators","IndexPage","tag","currentTag","isQnA","canStartDiscussion","cta","children","setContent","options","selected","bestAnswer","Dropdown","buttonClassName","Number","accessibleToggleLabel","active","refresh","DiscussionListState","prepend","DiscussionComposer","composer","fields","some","titlePlaceholder","bidi","placeholder","disabled","onkeydown"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"forum.js","mappings":";kCAAAA,EAAOC,QAAUC,OAAOC,WAAW,qCCAnC,IAAIC,EAAUC,EAAAA,KAAAA,QACd,SAASC,IACP,aACAN,EAAOC,QAAUK,EAAsB,WACrC,OAAOC,CACT,EAAGP,EAAOC,QAAQO,YAAa,EAAMR,EAAOC,QAAiB,QAAID,EAAOC,QACxE,IAAIQ,EACFF,EAAI,CAAC,EACLG,EAAIC,OAAOC,UACXC,EAAIH,EAAEI,eACNC,EAAIJ,OAAOK,gBAAkB,SAAUP,EAAGF,EAAGG,GAC3CD,EAAEF,GAAKG,EAAEO,KACX,EACAC,EAAI,mBAAqBC,OAASA,OAAS,CAAC,EAC5CC,EAAIF,EAAEG,UAAY,aAClBC,EAAIJ,EAAEK,eAAiB,kBACvBC,EAAIN,EAAEO,aAAe,gBACvB,SAASC,EAAOjB,EAAGF,EAAGG,GACpB,OAAOC,OAAOK,eAAeP,EAAGF,EAAG,CACjCU,MAAOP,EACPiB,YAAY,EACZC,cAAc,EACdC,UAAU,IACRpB,EAAEF,EACR,CACA,IACEmB,EAAO,CAAC,EAAG,GACb,CAAE,MAAOjB,GACPiB,EAAS,SAAgBjB,EAAGF,EAAGG,GAC7B,OAAOD,EAAEF,GAAKG,CAChB,CACF,CACA,SAASoB,EAAKrB,EAAGF,EAAGG,EAAGG,GACrB,IAAIK,EAAIX,GAAKA,EAAEK,qBAAqBmB,EAAYxB,EAAIwB,EAClDX,EAAIT,OAAOqB,OAAOd,EAAEN,WACpBU,EAAI,IAAIW,EAAQpB,GAAK,IACvB,OAAOE,EAAEK,EAAG,UAAW,CACrBH,MAAOiB,EAAiBzB,EAAGC,EAAGY,KAC5BF,CACN,CACA,SAASe,EAAS1B,EAAGF,EAAGG,GACtB,IACE,MAAO,CACL0B,KAAM,SACNC,IAAK5B,EAAE6B,KAAK/B,EAAGG,GAEnB,CAAE,MAAOD,GACP,MAAO,CACL2B,KAAM,QACN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L,IAAAA,YAAgB+K,WACN,IAAM,GAE1BnF,EAAOI,SACVJ,EAAOI,OAAS,CAAC,GAGnBJ,EAAOI,OAAUuF,EAAO,sBAAwB,OAE5C3F,EAAOI,OAAOC,IAChBL,EAAOI,OAAOC,GAAK,IAAIsF,EAAO,YAElC,CACF,KCfAvD,EAAAA,EAAAA,QAAOwD,KAAAA,UAA8B,eAAe,SAAUrK,GAC5D,IAAMoD,EAAOtK,KAAKwR,SAASC,OAAOnH,UACrB/F,IAAT+F,GAEQA,EAAKoH,MAAK,SAAChU,GAAC,OAAKA,EAAE6S,OAAO,MAKtCvQ,KAAK4F,MAAM+L,iBAAmB5L,IAAAA,WAAeE,MAAM,mDAE/CiB,EAAM+G,IAAI,oBACZ/G,EAAMyJ,WACJ,kBACA3J,EAAA,UACEA,EAAA,SACEC,UAAU,cACV2K,KAAM5R,KAAK0K,MAEXmH,YAAa7R,KAAK4F,MAAM+L,iBAExBG,WAAY9R,KAAK4F,MAAMkM,SACvBC,UAAW/R,KAAK+R,UAAU7M,KAAKlF,UAKzC,GTIF","sources":["webpack://@fof/best-answer/external assign \"flarum.extensions['fof-user-directory']\"","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/helpers/regeneratorRuntime.js","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/helpers/typeof.js","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/regenerator/index.js","webpack://@fof/best-answer/webpack/bootstrap","webpack://@fof/best-answer/webpack/runtime/compat get default export","webpack://@fof/best-answer/webpack/runtime/define property getters","webpack://@fof/best-answer/webpack/runtime/hasOwnProperty shorthand","webpack://@fof/best-answer/webpack/runtime/make namespace object","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/app']\"","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/Notification']\"","webpack://@fof/best-answer/./src/forum/components/SelectBestAnswerNotification.ts","webpack://@fof/best-answer/external root \"flarum.core.compat['common/extend']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/components/Button']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/utils/PostControls']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/DiscussionPage']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/CommentPost']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/utils/extractText']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/Post']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/Component']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/helpers/icon']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/helpers/humanTime']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/components/Link']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/utils/ItemList']\"","webpack://@fof/best-answer/./src/forum/components/SelectBestAnswerItem.tsx","webpack://@fof/best-answer/external root \"flarum.core.compat['common/helpers/username']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/helpers/userOnline']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/utils/classList']\"","webpack://@fof/best-answer/./src/forum/components/BestAnswerFooterPreview.tsx","webpack://@fof/best-answer/./src/forum/addBestAnswerView.tsx","webpack://@fof/best-answer/external root \"flarum.core.compat['common/models/Discussion']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/components/Badge']\"","webpack://@fof/best-answer/./src/forum/components/BestAnswerBadge.tsx","webpack://@fof/best-answer/./src/forum/components/AwardedBestAnswerNotification.ts","webpack://@fof/best-answer/./src/forum/components/BestAnswerInDiscussionNotification.ts","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/NotificationGrid']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/UserCard']\"","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/helpers/esm/extends.js","webpack://@fof/best-answer/./src/common/addBestAnswerCountSort.ts","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/Search']\"","webpack://@fof/best-answer/./node_modules/flarum-webpack-config/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack://@fof/best-answer/external root \"flarum.core.compat['common/components/LinkButton']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/helpers/highlight']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['tags/common/helpers/tagsLabel']\"","webpack://@fof/best-answer/./src/forum/components/SolutionSearchItem.tsx","webpack://@fof/best-answer/./src/forum/components/SolutionSearchSource.tsx","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/DiscussionsSearchSource']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/IndexPage']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/components/Dropdown']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/states/DiscussionListState']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['forum/components/DiscussionComposer']\"","webpack://@fof/best-answer/./src/forum/components/index.ts","webpack://@fof/best-answer/external root \"flarum.core.compat['common/extenders']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['tags/common/models/Tag']\"","webpack://@fof/best-answer/./src/common/extend.ts","webpack://@fof/best-answer/external root \"flarum.core.compat['common/models/User']\"","webpack://@fof/best-answer/external root \"flarum.core.compat['common/Model']\"","webpack://@fof/best-answer/./src/forum/extend.ts","webpack://@fof/best-answer/./src/forum/index.ts","webpack://@fof/best-answer/./src/forum/addBestAnswerAction.tsx","webpack://@fof/best-answer/./src/forum/addAnsweredBadge.tsx","webpack://@fof/best-answer/./src/forum/addBestAnswerCountToUsers.tsx","webpack://@fof/best-answer/./src/forum/extenders/extendNotifications.ts","webpack://@fof/best-answer/./src/forum/extenders/extendSearch.ts","webpack://@fof/best-answer/./src/forum/extenders/extendDiscussionSearchSource.tsx","webpack://@fof/best-answer/./src/forum/extenders/extendIndexPage.tsx","webpack://@fof/best-answer/./src/forum/extenders/extendDiscussionListState.tsx","webpack://@fof/best-answer/./src/forum/extenders/extendDiscussionComposer.tsx"],"sourcesContent":["module.exports = flarum.extensions['fof-user-directory'];","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _regeneratorRuntime() {\n \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n return e;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n var t,\n e = {},\n r = Object.prototype,\n n = r.hasOwnProperty,\n o = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n i = \"function\" == typeof Symbol ? Symbol : {},\n a = i.iterator || \"@@iterator\",\n c = i.asyncIterator || \"@@asyncIterator\",\n u = i.toStringTag || \"@@toStringTag\";\n function define(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n define({}, \"\");\n } catch (t) {\n define = function define(t, e, r) {\n return t[e] = r;\n };\n }\n function wrap(t, e, r, n) {\n var i = e && e.prototype instanceof Generator ? e : Generator,\n a = Object.create(i.prototype),\n c = new Context(n || []);\n return o(a, \"_invoke\", {\n value: makeInvokeMethod(t, r, c)\n }), a;\n }\n function tryCatch(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = wrap;\n var h = \"suspendedStart\",\n l = \"suspendedYield\",\n f = \"executing\",\n s = \"completed\",\n y = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var p = {};\n define(p, a, function () {\n return this;\n });\n var d = Object.getPrototypeOf,\n v = d && d(d(values([])));\n v && v !== r && n.call(v, a) && (p = v);\n var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);\n function defineIteratorMethods(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n define(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function AsyncIterator(t, e) {\n function invoke(r, o, i, a) {\n var c = tryCatch(t[r], t, o);\n if (\"throw\" !== c.type) {\n var u = c.arg,\n h = u.value;\n return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) {\n invoke(\"next\", t, i, a);\n }, function (t) {\n invoke(\"throw\", t, i, a);\n }) : e.resolve(h).then(function (t) {\n u.value = t, i(u);\n }, function (t) {\n return invoke(\"throw\", t, i, a);\n });\n }\n a(c.arg);\n }\n var r;\n o(this, \"_invoke\", {\n value: function value(t, n) {\n function callInvokeWithMethodAndArg() {\n return new e(function (e, r) {\n invoke(t, n, e, r);\n });\n }\n return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n });\n }\n function makeInvokeMethod(e, r, n) {\n var o = h;\n return function (i, a) {\n if (o === f) throw Error(\"Generator is already running\");\n if (o === s) {\n if (\"throw\" === i) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = i, n.arg = a;;) {\n var c = n.delegate;\n if (c) {\n var u = maybeInvokeDelegate(c, n);\n if (u) {\n if (u === y) continue;\n return u;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (o === h) throw o = s, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n o = f;\n var p = tryCatch(e, r, n);\n if (\"normal\" === p.type) {\n if (o = n.done ? s : l, p.arg === y) continue;\n return {\n value: p.arg,\n done: n.done\n };\n }\n \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg);\n }\n };\n }\n function maybeInvokeDelegate(e, r) {\n var n = r.method,\n o = e.iterator[n];\n if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y;\n var i = tryCatch(o, e.iterator, r.arg);\n if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y;\n var a = i.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y);\n }\n function pushTryEntry(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function resetTryEntry(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function Context(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(pushTryEntry, this), this.reset(!0);\n }\n function values(e) {\n if (e || \"\" === e) {\n var r = e[a];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var o = -1,\n i = function next() {\n for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;\n return next.value = t, next.done = !0, next;\n };\n return i.next = i;\n }\n }\n throw new TypeError(_typeof(e) + \" is not iterable\");\n }\n return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", {\n value: GeneratorFunctionPrototype,\n configurable: !0\n }), o(GeneratorFunctionPrototype, \"constructor\", {\n value: GeneratorFunction,\n configurable: !0\n }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {\n return this;\n }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {\n void 0 === i && (i = Promise);\n var a = new AsyncIterator(wrap(t, r, n, o), i);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () {\n return this;\n }), define(g, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function next() {\n for (; r.length;) {\n var t = r.pop();\n if (t in e) return next.value = t, next.done = !1, next;\n }\n return next.done = !0, next;\n };\n }, e.values = values, Context.prototype = {\n constructor: Context,\n reset: function reset(e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function stop() {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(e) {\n if (this.done) throw e;\n var r = this;\n function handle(n, o) {\n return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o;\n }\n for (var o = this.tryEntries.length - 1; o >= 0; --o) {\n var i = this.tryEntries[o],\n a = i.completion;\n if (\"root\" === i.tryLoc) return handle(\"end\");\n if (i.tryLoc <= this.prev) {\n var c = n.call(i, \"catchLoc\"),\n u = n.call(i, \"finallyLoc\");\n if (c && u) {\n if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n } else if (c) {\n if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n } else {\n if (!u) throw Error(\"try statement without catch or finally\");\n if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var o = this.tryEntries[r];\n if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) {\n var i = o;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a);\n },\n complete: function complete(t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y;\n },\n finish: function finish(t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;\n }\n },\n \"catch\": function _catch(t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var o = n.arg;\n resetTryEntry(r);\n }\n return o;\n }\n }\n throw Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(e, r, n) {\n return this.delegate = {\n iterator: values(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), y;\n }\n }, e;\n}\nmodule.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// TODO(Babel 8): Remove this file.\n\nvar runtime = require(\"../helpers/regeneratorRuntime\")();\nmodule.exports = runtime;\n\n// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/app'];","function _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nexport { _inheritsLoose as default };","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/Notification'];","import type Discussion from 'flarum/common/models/Discussion';\nimport app from 'flarum/forum/app';\nimport Notification from 'flarum/forum/components/Notification';\n\nexport default class SelectBestAnswerNotification extends Notification {\n icon() {\n return 'fas fa-comment-dots';\n }\n\n href() {\n const notification = this.attrs.notification;\n const discussion = notification.subject() as Discussion;\n\n return app.route.discussion(discussion);\n }\n\n content() {\n return app.translator.trans('fof-best-answer.forum.notification.content');\n }\n\n excerpt() {\n return null;\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Button'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/utils/PostControls'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/DiscussionPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/CommentPost'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/extractText'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/Post'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/Component'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/icon'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/humanTime'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Link'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/ItemList'];","import app from 'flarum/forum/app';\nimport Component, { ComponentAttrs } from 'flarum/common/Component';\nimport icon from 'flarum/common/helpers/icon';\nimport humanTime from 'flarum/common/helpers/humanTime';\nimport Link from 'flarum/common/components/Link';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport Discussion from 'flarum/common/models/Discussion';\nimport Mithril from 'mithril';\nimport Post from 'flarum/common/models/Post';\n\nexport interface ISelectBestAnswerItemAttrs extends ComponentAttrs {\n post: Post;\n discussion: Discussion;\n}\n\nexport default class SelectBestAnswerItem extends Component {\n post!: Post;\n discussion!: Discussion;\n\n oninit(vnode: Mithril.Vnode) {\n super.oninit(vnode);\n\n this.post = this.attrs.post;\n this.discussion = this.attrs.discussion;\n }\n\n view() {\n return
  • {this.items().toArray()}
  • ;\n }\n\n getSetTime(discussion: Discussion) {\n if (!discussion.bestAnswerSetAt?.()) {\n return;\n }\n const bestAnswerSetAt = discussion.bestAnswerSetAt?.();\n if (!bestAnswerSetAt) {\n return;\n }\n return humanTime(bestAnswerSetAt);\n }\n\n items(): ItemList {\n const items = new ItemList();\n\n items.add(\n 'post',\n this.post ? (\n \n {icon('fas fa-check')}\n {app.translator.trans('fof-best-answer.forum.best_answer_button')}\n \n ) : (\n \n {icon('fas fa-check')}\n {app.translator.trans('fof-best-answer.forum.best_answer_button')}\n \n )\n );\n\n const bestAnswerUser = this.discussion.bestAnswerUser?.();\n\n bestAnswerUser &&\n items.add(\n 'user',\n \n {app.translator.trans('fof-best-answer.forum.best_answer_label', {\n user: this.discussion.bestAnswerUser?.(),\n time_set: this.getSetTime(this.discussion),\n a:
    m.route.set(app.route.user(bestAnswerUser))} />,\n })}\n \n );\n\n return items;\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/username'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/userOnline'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/classList'];","import app from 'flarum/forum/app';\nimport Component, { ComponentAttrs } from 'flarum/common/Component';\nimport Mithril from 'mithril';\nimport username from 'flarum/common/helpers/username';\nimport userOnline from 'flarum/common/helpers/userOnline';\nimport Link from 'flarum/common/components/Link';\nimport classList from 'flarum/common/utils/classList';\nimport SelectBestAnswerItem from './SelectBestAnswerItem';\nimport Post from 'flarum/common/models/Post';\nimport User from 'flarum/common/models/User';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport Discussion from 'flarum/common/models/Discussion';\nimport humanTime from 'flarum/common/helpers/humanTime';\n\nexport interface BestAnswerFooterPreviewAttrs extends ComponentAttrs {\n post: Post;\n user: User;\n discussion: Discussion;\n}\n\nexport default class BestAnswerFooterPreview extends Component {\n user!: User;\n post!: Post;\n discussion!: Discussion;\n\n oninit(vnode: Mithril.Vnode) {\n super.oninit(vnode);\n\n this.user = this.attrs.user;\n this.post = this.attrs.post;\n this.discussion = this.attrs.discussion;\n }\n\n view() {\n const maxLines = app.forum.attribute('fof-best-answer.show_max_lines');\n\n return (\n
    app.current.get('stream').goToNumber(this.post.number())}>\n
    \n
      {this.headerItems().toArray()}
    \n
    \n
    0 && 'Post-body--truncate')} style={{ '--max-lines': maxLines }}>\n {m.trust(this.postContent())}\n
    \n
    \n );\n }\n\n postContent() {\n return this.post.contentHtml();\n }\n\n /**\n * To maintain compatibility with existing styling, custom themes, etc, each item here must be\n * wrapped in a
  • element.\n *\n * @todo: Remove this requirement for Flarum 2.0\n */\n headerItems(): ItemList {\n const items = new ItemList();\n\n items.add('user', this.userItem()), 100;\n items.add('meta', this.metaItem()), 90;\n items.add('bestAnswer', , -100);\n\n return items;\n }\n\n userItem(): Mithril.Children {\n return (\n
  • \n
    \n {this.user && userOnline(this.user)}\n

    {this.user ? {username(this.user)} : username(this.user)}

    \n
    \n
  • \n );\n }\n\n metaItem(): Mithril.Children {\n const post = this.post;\n return (\n
  • \n {humanTime(post.createdAt())}\n
  • \n );\n }\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport CommentPost from 'flarum/forum/components/CommentPost';\nimport PostComponent from 'flarum/forum/components/Post';\nimport SelectBestAnswerItem from './components/SelectBestAnswerItem';\nimport DiscussionPage from 'flarum/forum/components/DiscussionPage';\nimport Button from 'flarum/common/components/Button';\nimport BestAnswerFooterPreview from './components/BestAnswerFooterPreview';\n\nexport default () => {\n extend(CommentPost.prototype, 'headerItems', function (items) {\n const post = this.attrs.post;\n const discussion = post.discussion();\n\n if (discussion?.hasBestAnswer() && discussion.bestAnswerPost() && discussion.bestAnswerPost()?.id() === post.id() && !post.isHidden()) {\n items.add('isBestAnswer', , -100);\n }\n });\n\n extend(CommentPost.prototype, 'footerItems', function (items) {\n const thisPost = this.attrs.post;\n const discussion = thisPost.discussion();\n const post = discussion.hasBestAnswer() && discussion.bestAnswerPost();\n\n if (post && !post.isHidden() && thisPost.number() === 1 && !thisPost.isHidden()) {\n const user = post.user();\n\n items.add('bestAnswerPost', , -10);\n }\n });\n\n extend(PostComponent.prototype, 'elementAttrs', function (elementAttrs) {\n const post = this.attrs.post;\n const discussion = post.discussion();\n\n if (discussion?.hasBestAnswer() && discussion.bestAnswerPost() && discussion.bestAnswerPost().id() === post.id() && !post.isHidden()) {\n elementAttrs.className ? (elementAttrs.className += ' Post--bestAnswer') : (elementAttrs.className = 'Post--bestAnswer');\n }\n });\n\n extend(DiscussionPage.prototype, 'sidebarItems', function (items) {\n if (!app.forum.attribute('bestAnswerDiscussionSidebarJumpButton')) return;\n\n // @ts-ignore\n const discussion = this.discussion;\n\n if (discussion === null) return;\n\n const post = discussion.hasBestAnswer() && discussion.bestAnswerPost();\n\n if (post && !post.isHidden() && post.number() !== 1 && !discussion.bestAnswerPost()?.isHidden()) {\n items.add(\n 'jumpToBestAnswer',\n app.current.get('stream').goToNumber(post.number())}\n aria-label={app.translator.trans('fof-best-answer.forum.discussion.jump_to_best_answer_button')}\n >\n {app.translator.trans('fof-best-answer.forum.discussion.jump_to_best_answer_button')}\n ,\n 90\n );\n }\n });\n};\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/models/Discussion'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Badge'];","import Badge, { IBadgeAttrs } from 'flarum/common/components/Badge';\nimport app from 'flarum/forum/app';\nimport extractText from 'flarum/common/utils/extractText';\n\nexport default class BestAnswerBadge extends Badge {\n static initAttrs(attrs: IBadgeAttrs) {\n attrs.type = 'bestAnswer';\n attrs.icon = 'fas fa-check';\n attrs.label = extractText(app.translator.trans('fof-best-answer.forum.answered_badge'));\n }\n}\n","import type Discussion from 'flarum/common/models/Discussion';\nimport app from 'flarum/forum/app';\nimport Notification from 'flarum/forum/components/Notification';\n\nexport default class AwardedBestAnswerNotification extends Notification {\n icon() {\n return 'fas fa-check';\n }\n\n href() {\n const notification = this.attrs.notification;\n const discussion = notification.subject() as Discussion;\n\n return app.route.discussion(discussion);\n }\n\n content() {\n const user = this.attrs.notification.fromUser();\n return app.translator.trans('fof-best-answer.forum.notification.awarded', {\n user: user,\n });\n }\n\n excerpt() {\n return null;\n }\n}\n","import type Discussion from 'flarum/common/models/Discussion';\nimport app from 'flarum/forum/app';\nimport Notification from 'flarum/forum/components/Notification';\n\nexport default class BestAnswerInDiscussionNotification extends Notification {\n icon() {\n return 'fas fa-check';\n }\n\n href() {\n const notification = this.attrs.notification;\n const discussion = notification.subject() as Discussion;\n\n return app.route.discussion(discussion);\n }\n\n content() {\n const user = this.attrs.notification.fromUser();\n return app.translator.trans('fof-best-answer.forum.notification.best_answer_in_discussion', {\n user: user,\n });\n }\n\n excerpt() {\n return null;\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/NotificationGrid'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/UserCard'];","function _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nexport { _extends as default };","import { override } from 'flarum/common/extend';\n\nexport default () => {\n const FoFUserDirectory = require('@fof-user-directory');\n\n if (!FoFUserDirectory) return;\n\n override(FoFUserDirectory.SortMap.prototype, 'sortMap', (map) => ({\n ...map(),\n most_best_answers: '-bestAnswerCount',\n least_best_answers: 'bestAnswerCount',\n }));\n};\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/Search'];","function asyncGeneratorStep(n, t, e, r, o, a, c) {\n try {\n var i = n[a](c),\n u = i.value;\n } catch (n) {\n return void e(n);\n }\n i.done ? t(u) : Promise.resolve(u).then(r, o);\n}\nfunction _asyncToGenerator(n) {\n return function () {\n var t = this,\n e = arguments;\n return new Promise(function (r, o) {\n var a = n.apply(t, e);\n function _next(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n);\n }\n function _throw(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n);\n }\n _next(void 0);\n });\n };\n}\nexport { _asyncToGenerator as default };","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/LinkButton'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/highlight'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['tags/common/helpers/tagsLabel'];","import app from 'flarum/forum/app';\nimport Component, { ComponentAttrs } from 'flarum/common/Component';\nimport Link from 'flarum/common/components/Link';\nimport highlight from 'flarum/common/helpers/highlight';\nimport type Discussion from 'flarum/common/models/Discussion';\nimport type Post from 'flarum/common/models/Post';\nimport type Mithril from 'mithril';\nimport tagsLabel from 'flarum/tags/common/helpers/tagsLabel';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport type Tag from 'flarum/tags/common/models/Tag';\n\nexport interface SolutionSearchItemAttrs extends ComponentAttrs {\n query: string;\n discussion: Discussion;\n bestAnswerPost: Post;\n mostRelevantPost: Post;\n tags: false | (Tag | undefined)[];\n}\n\nexport default class SolutionSearchItem extends Component {\n query!: string;\n discussion!: Discussion;\n bestAnswerPost!: Post | null | undefined;\n mostRelevantPost!: Post | null | undefined;\n tags!: false | (Tag | undefined)[];\n\n oninit(vnode: Mithril.Vnode) {\n super.oninit(vnode);\n\n this.query = this.attrs.query;\n this.discussion = this.attrs.discussion;\n this.bestAnswerPost = this.attrs.bestAnswerPost;\n this.mostRelevantPost = this.attrs.mostRelevantPost;\n this.tags = this.attrs.tags;\n }\n\n view() {\n return (\n
  • \n \n {this.viewItems().toArray()}\n \n
  • \n );\n }\n\n discussionTitle() {\n return this.discussion.title();\n }\n\n bestAnswerContent() {\n return this.bestAnswerPost?.contentPlain();\n }\n\n mostRelevantContent() {\n return this.mostRelevantPost?.contentPlain();\n }\n\n viewItems(): ItemList {\n const items = new ItemList();\n\n app.forum.attribute('showTagsInSearchResults') &&\n items.add('tags',
    {tagsLabel(this.tags)}
    , 100);\n\n items.add('discussion-title',
    {highlight(this.discussionTitle(), this.query)}
    , 90);\n\n !!this.mostRelevantPost &&\n items.add(\n 'most-relevant',\n
    {highlight(this.mostRelevantContent() ?? '', this.query, 100)}
    ,\n 80\n );\n\n !!this.bestAnswerPost &&\n items.add(\n 'best-answer',\n
    \n {highlight(this.bestAnswerContent() ?? '', this.query, 100)}\n
    ,\n 70\n );\n\n return items;\n }\n}\n","import app from 'flarum/forum/app';\nimport Discussion from 'flarum/common/models/Discussion';\nimport LinkButton from 'flarum/common/components/LinkButton';\nimport { SearchSource } from 'flarum/forum/components/Search';\nimport type Mithril from 'mithril';\nimport BestAnswerBadge from './BestAnswerBadge';\nimport SolutionSearchItem from './SolutionSearchItem';\n\nexport default class SolutionSearchSource implements SearchSource {\n protected results = new Map();\n queryString: string | null = null;\n\n async search(query: string): Promise {\n query = query.toLowerCase();\n\n this.results.set(query, []);\n\n this.setQueryString(query);\n\n const params = {\n filter: { q: this.queryString || query },\n page: { limit: this.limit() },\n include: this.includes().join(','),\n };\n\n return app.store.find('discussions', params).then((results) => {\n this.results.set(query, results);\n m.redraw();\n });\n }\n\n view(query: string): Array {\n query = query.toLowerCase();\n\n this.setQueryString(query);\n\n const results = (this.results.get(query) || []).map((discussion) => {\n const bestAnswerPost = discussion.bestAnswerPost();\n const mostRelevantPost = discussion.mostRelevantPost();\n const tags = discussion.tags();\n\n return (\n \n );\n }) as Array;\n\n return [\n
  • \n {app.translator.trans('fof-best-answer.forum.search.discussions_solutions_heading')}\n
  • ,\n
  • \n \n {app.translator.trans('fof-best-answer.forum.search.all_discussions_solutions_button', { query })}\n \n
  • ,\n ...results,\n ];\n }\n\n includes(): string[] {\n return ['mostRelevantPost', 'bestAnswerPost', 'tags'];\n }\n\n limit(): number {\n return 3;\n }\n\n queryMutators(): string[] {\n return ['is:solved'];\n }\n\n setQueryString(query: string): void {\n this.queryString = query + ' ' + this.queryMutators().join(' ');\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/DiscussionsSearchSource'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/IndexPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Dropdown'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/states/DiscussionListState'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/DiscussionComposer'];","import AwardedBestAnswerNotification from './AwardedBestAnswerNotification';\nimport BestAnswerBadge from './BestAnswerBadge';\nimport BestAnswerFooterPreview from './BestAnswerFooterPreview';\nimport BestAnswerInDiscussionNotification from './BestAnswerInDiscussionNotification';\nimport SelectBestAnswerItem from './SelectBestAnswerItem';\nimport SelectBestAnswerNotification from './SelectBestAnswerNotification';\nimport SolutionSearchItem from './SolutionSearchItem';\nimport SolutionSearchSource from './SolutionSearchSource';\n\nexport const components = {\n SelectBestAnswerItem,\n SolutionSearchSource,\n BestAnswerFooterPreview,\n AwardedBestAnswerNotification,\n BestAnswerBadge,\n BestAnswerInDiscussionNotification,\n SelectBestAnswerNotification,\n SolutionSearchItem,\n};\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extenders'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['tags/common/models/Tag'];","import Extend from 'flarum/common/extenders';\nimport Tag from 'flarum/tags/common/models/Tag';\n\nexport default [\n new Extend.Model(Tag) //\n .attribute('isQnA')\n .attribute('reminders'),\n];\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/models/User'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/Model'];","import Discussion from 'flarum/common/models/Discussion';\nimport commonExtend from '../common/extend';\nimport Extend from 'flarum/common/extenders';\nimport type Post from 'flarum/common/models/Post';\nimport User from 'flarum/common/models/User';\nimport Model from 'flarum/common/Model';\n\nexport default [\n ...commonExtend,\n\n new Extend.Model(Discussion) //\n .hasOne('bestAnswerPost')\n .hasOne('bestAnswerUser')\n .attribute('hasBestAnswer')\n .attribute('canSelectBestAnswer')\n .attribute('bestAnswerSetAt', Model.transformDate),\n\n new Extend.Model(User) //\n .attribute('bestAnswerCount'),\n];\n","import app from 'flarum/forum/app';\nimport SelectBestAnswerNotification from './components/SelectBestAnswerNotification';\nimport addBestAnswerAction from './addBestAnswerAction';\nimport addBestAnswerView from './addBestAnswerView';\nimport addAnsweredBadge from './addAnsweredBadge';\nimport AwardedBestAnswerNotification from './components/AwardedBestAnswerNotification';\nimport BestAnswerInDiscussionNotification from './components/BestAnswerInDiscussionNotification';\nimport extendNotifications from './extenders/extendNotifications';\nimport addBestAnswerCountToUsers from './addBestAnswerCountToUsers';\nimport addBestAnswerCountSort from '../common/addBestAnswerCountSort';\nimport extendSearch from './extenders/extendSearch';\nimport extendDiscussionsSearchSource from './extenders/extendDiscussionSearchSource';\nimport extendIndexPage from './extenders/extendIndexPage';\nimport extendDiscussionListState from './extenders/extendDiscussionListState';\nimport extendDiscussionComposer from './extenders/extendDiscussionComposer';\n\nexport * from './components';\n\nexport { default as extend } from './extend';\n\napp.initializers.add('fof/best-answer', () => {\n app.notificationComponents.selectBestAnswer = SelectBestAnswerNotification;\n app.notificationComponents.awardedBestAnswer = AwardedBestAnswerNotification;\n app.notificationComponents.bestAnswerInDiscussion = BestAnswerInDiscussionNotification;\n\n addAnsweredBadge();\n addBestAnswerAction();\n addBestAnswerView();\n addBestAnswerCountToUsers();\n addBestAnswerCountSort();\n\n extendNotifications();\n extendSearch();\n extendDiscussionsSearchSource();\n extendIndexPage();\n extendDiscussionListState();\n extendDiscussionComposer();\n});\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport Button from 'flarum/common/components/Button';\nimport PostControls from 'flarum/forum/utils/PostControls';\nimport DiscussionPage from 'flarum/forum/components/DiscussionPage';\nimport CommentPost from 'flarum/forum/components/CommentPost';\nimport Discussion from 'flarum/common/models/Discussion';\nimport Post from 'flarum/common/models/Post';\nimport extractText from 'flarum/common/utils/extractText';\n\nexport default function addBestAnswerAction() {\n const ineligible = (discussion: Discussion, post: Post) => {\n return post.isHidden() || post.number() === 1 || !discussion.canSelectBestAnswer() || !app.session.user;\n };\n\n const blockSelectOwnPost = (post: Post): boolean => {\n const user = post.user();\n return !app.forum.attribute('canSelectBestAnswerOwnPost') && user !== false && user.id() === app.session.user?.id();\n };\n\n const isThisBestAnswer = (discussion: Discussion, post: Post): boolean => {\n const bestAnswerPost = discussion.bestAnswerPost();\n const hasBestAnswer = discussion.hasBestAnswer();\n return hasBestAnswer !== undefined && hasBestAnswer && bestAnswerPost !== null && bestAnswerPost.id() === post.id();\n };\n\n const actionLabel = (isBestAnswer: boolean): string => {\n return extractText(app.translator.trans(isBestAnswer ? 'fof-best-answer.forum.remove_best_answer' : 'fof-best-answer.forum.this_best_answer'));\n };\n\n const saveDiscussion = (discussion: Discussion, isBestAnswer: boolean, post: Post) =>\n discussion\n .save(\n {\n bestAnswerPostId: isBestAnswer ? post.id() : 0,\n bestAnswerUserId: app.session.user?.id(),\n relationships: isBestAnswer ? { bestAnswerPost: post, bestAnswerUser: app.session.user } : { bestAnswerPost: null },\n },\n {\n params: {\n include: 'tags',\n },\n }\n )\n .then(() => {\n if (!isBestAnswer) {\n if (discussion.data.relationships) {\n delete discussion.data.relationships.bestAnswerPost;\n delete discussion.data.relationships.bestAnswerUser;\n }\n }\n\n if (app.current.matches(DiscussionPage)) {\n app.current.get('stream').update();\n }\n\n m.redraw();\n\n if (isBestAnswer) {\n m.route.set(app.route.discussion(discussion));\n }\n });\n\n extend(PostControls, 'moderationControls', function (items, post) {\n if (app.forum.attribute('useAlternativeBestAnswerUi')) return;\n\n const discussion = post.discussion();\n let isBestAnswer = isThisBestAnswer(discussion, post);\n\n post.pushAttributes({ isBestAnswer });\n\n if (post.contentType() !== 'comment') return;\n\n if (ineligible(discussion, post) || blockSelectOwnPost(post) || !app.current.matches(DiscussionPage)) return;\n\n items.add(\n 'bestAnswer',\n {\n isBestAnswer = !isBestAnswer;\n\n saveDiscussion(discussion, isBestAnswer, post).finally(() => {\n isBestAnswer = isThisBestAnswer(discussion, post);\n });\n }}\n >\n {actionLabel(isBestAnswer)}\n \n );\n });\n\n extend(CommentPost.prototype, 'actionItems', function (items) {\n if (!app.forum.attribute('useAlternativeBestAnswerUi')) return;\n\n const post = this.attrs.post;\n const discussion = this.attrs.post.discussion();\n let isBestAnswer = isThisBestAnswer(discussion, post);\n let hasBestAnswer = discussion.bestAnswerPost() !== null;\n\n post.pushAttributes({ isBestAnswer });\n\n if (ineligible(discussion, post) || blockSelectOwnPost(post) || !app.current.matches(DiscussionPage)) return;\n\n items.add(\n 'bestAnswer',\n {\n hasBestAnswer = !hasBestAnswer;\n isBestAnswer = !isBestAnswer;\n\n saveDiscussion(discussion, isBestAnswer, post).finally(() => {\n hasBestAnswer = !!discussion.hasBestAnswer() && discussion.bestAnswerPost() !== null;\n isBestAnswer = isThisBestAnswer(discussion, post);\n });\n }}\n >\n {actionLabel(isBestAnswer)}\n \n );\n });\n}\n","import { extend } from 'flarum/common/extend';\nimport Discussion from 'flarum/common/models/Discussion';\nimport BestAnswerBadge from './components/BestAnswerBadge';\n\nexport default function () {\n extend(Discussion.prototype, 'badges', function (this: Discussion, items) {\n if (this.hasBestAnswer() && !items.has('hidden')) {\n items.add('bestAnswer', );\n }\n });\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport UserCard from 'flarum/forum/components/UserCard';\nimport icon from 'flarum/common/helpers/icon';\n\nimport type Mithril from 'mithril';\nimport type User from 'flarum/common/models/User';\n\nexport default function addBestAnswerCountToUsers() {\n extend(UserCard.prototype, 'infoItems', function (items: ItemList) {\n // @ts-expect-error\n const user = this.attrs.user as User;\n\n items.add(\n 'best-answer-count',\n \n {icon('fas fa-check')}\n {app.translator.trans('fof-best-answer.forum.user.best-answer-count', {\n count: user.bestAnswerCount(),\n })}\n ,\n 55\n );\n });\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport NotificationGrid from 'flarum/forum/components/NotificationGrid';\nimport type Mithril from 'mithril';\n\nexport default function () {\n extend(NotificationGrid.prototype, 'notificationTypes', function (items: ItemList<{ name: string; icon: string; label: Mithril.Children }>) {\n items.add('awardedBestAnswer', {\n name: 'awardedBestAnswer',\n icon: 'fas fa-check',\n label: app.translator.trans('fof-best-answer.forum.notification.preferences.awarded_best_answer'),\n });\n items.add('bestAnswerInDiscussion', {\n name: 'bestAnswerInDiscussion',\n icon: 'fas fa-check',\n label: app.translator.trans('fof-best-answer.forum.notification.preferences.best_answer_in_discussion'),\n });\n items.add('selectBestAnswer', {\n name: 'selectBestAnswer',\n icon: 'fas fa-stopwatch',\n label: app.translator.trans('fof-best-answer.forum.notification.preferences.select_best_answer'),\n });\n });\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport Search, { SearchSource } from 'flarum/forum/components/Search';\nimport SolutionSearchSource from '../components/SolutionSearchSource';\n\nexport default function extendSearch() {\n extend(Search.prototype, 'sourceItems', function (items: ItemList) {\n if (app.forum.attribute('solutionSearchEnabled')) {\n items.add('solution', new SolutionSearchSource(), 110);\n }\n });\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport DiscussionsSearchSource from 'flarum/forum/components/DiscussionsSearchSource';\n\nexport default function extendDiscussionsSearchSource() {\n extend(DiscussionsSearchSource.prototype, 'queryMutators', function (mutators: string[]) {\n // This will only apply when using flarum/core 1.8.6 or newer\n if (app.forum.attribute('removeSolutionResultsFromMainSearch')) {\n mutators.push('-is:solved');\n }\n });\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport IndexPage from 'flarum/forum/components/IndexPage';\nimport Dropdown from 'flarum/common/components/Dropdown';\nimport Button from 'flarum/common/components/Button';\n\nexport default function extendIndexPage() {\n extend(IndexPage.prototype, 'sidebarItems', function (items) {\n const tag = this.currentTag();\n\n if (!tag?.isQnA?.()) return;\n\n const canStartDiscussion = app.forum.attribute('canStartDiscussion') || !app.session.user;\n const cta = items.get('newDiscussion');\n cta.children = app.translator.trans(\n canStartDiscussion ? 'fof-best-answer.forum.index.ask_question' : 'fof-best-answer.forum.index.cannot_ask_question'\n );\n\n if (items.has('startDiscussion')) {\n items.setContent('startDiscussion', cta);\n }\n });\n\n extend(IndexPage.prototype, 'viewItems', function (items) {\n if (!app.forum.attribute('showBestAnswerFilterUi')) {\n return;\n }\n\n const tag = this.currentTag();\n\n if (!tag?.isQnA?.()) {\n if (app.discussions.bestAnswer) {\n delete app.discussions.bestAnswer;\n app.discussions.refresh();\n }\n\n return;\n }\n\n const options = ['all', 'solved', 'unsolved'];\n\n const selected = app.discussions.bestAnswer as unknown as number;\n\n items.add(\n 'solved-filter',\n Dropdown.component(\n {\n buttonClassName: 'Button',\n label: app.translator.trans(\n `fof-best-answer.forum.filter.${options[selected] || Object.keys(options).map((key) => options[Number(key)])[0]}_label`\n ),\n accessibleToggleLabel: app.translator.trans('fof-best-answer.forum.filter.accessible_label'),\n },\n Object.keys(options).map((value) => {\n const label = options[Number(value)];\n const active = (selected || Object.keys(options)[0]) === value;\n\n return Button.component(\n {\n icon: active ? 'fas fa-check' : true,\n active: active,\n onclick: () => {\n app.discussions.bestAnswer = value;\n if (value === '0') {\n delete app.discussions.bestAnswer;\n }\n app.discussions.refresh();\n },\n },\n app.translator.trans(`fof-best-answer.forum.filter.${label}_label`)\n );\n })\n )\n );\n });\n}\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport DiscussionListState from 'flarum/forum/states/DiscussionListState';\nimport type { PaginatedListParams } from 'flarum/common/states/PaginatedListState';\n\nexport default function extendDiscussionListState() {\n extend(DiscussionListState.prototype, 'requestParams', function (params: PaginatedListParams) {\n if (app.discussions.bestAnswer) {\n const negate = app.discussions.bestAnswer === '2';\n const prepend = negate ? '-' : '';\n\n if (!params.filter) {\n params.filter = {};\n }\n\n params.filter[`${prepend}solved-discussions`] = 'true';\n\n if (params.filter.q) {\n params.filter.q += ` ${prepend}is:solved`;\n }\n }\n });\n}\n","import { extend } from 'flarum/common/extend';\nimport app from 'flarum/forum/app';\nimport DiscussionComposer from 'flarum/forum/components/DiscussionComposer';\nimport type Tag from 'flarum/tags/common/models/Tag';\n\nexport default function extendDiscussionComposer() {\n extend(DiscussionComposer.prototype, 'headerItems', function (items) {\n const tags = this.composer.fields.tags as Tag[];\n if (tags === undefined) return;\n\n const qna = tags.some((t) => t.isQnA());\n\n if (!qna) return;\n\n // @ts-expect-error\n this.attrs.titlePlaceholder = app.translator.trans('fof-best-answer.forum.composer.titlePlaceholder');\n\n if (items.has('discussionTitle')) {\n items.setContent(\n 'discussionTitle',\n

    \n \n

    \n );\n }\n });\n}\n"],"names":["module","exports","flarum","extensions","_typeof","require","_regeneratorRuntime","e","__esModule","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","this","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","delegateYield","runtime","regeneratorRuntime","accidentalStrictMode","globalThis","Function","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","getter","definition","key","get","obj","prop","core","compat","_setPrototypeOf","bind","_inheritsLoose","SelectBestAnswerNotification","_Notification","apply","arguments","_proto","icon","href","discussion","attrs","notification","subject","app","content","trans","excerpt","Notification","SelectBestAnswerItem","_Component","_this","_len","args","Array","_key","concat","post","oninit","vnode","view","m","className","items","toArray","getSetTime","bestAnswerSetAt","humanTime","_this$discussion$best","_this$discussion","_this$discussion$best2","_this$discussion2","ItemList","add","Link","number","bestAnswerUser","user","time_set","onclick","route","set","Component","BestAnswerFooterPreview","_this2","maxLines","attribute","goToNumber","headerItems","classList","style","trust","postContent","contentHtml","userItem","metaItem","userOnline","username","createdAt","BestAnswerBadge","_Badge","initAttrs","label","extractText","Badge","AwardedBestAnswerNotification","fromUser","BestAnswerInDiscussionNotification","_extends","assign","asyncGeneratorStep","SolutionSearchItem","query","bestAnswerPost","mostRelevantPost","tags","id","viewItems","discussionTitle","title","bestAnswerContent","_this$bestAnswerPost","contentPlain","mostRelevantContent","_this$mostRelevantPos","_this$mostRelevantCon","_this$bestAnswerConte","tagsLabel","highlight","SolutionSearchSource","results","Map","queryString","search","_search","_callee","params","_context","toLowerCase","setQueryString","filter","q","page","limit","include","includes","join","find","redraw","_next","_throw","_x","map","LinkButton","queryMutators","components","Extend","Tag","commonExtend","Discussion","hasOne","Model","User","ineligible","blockSelectOwnPost","isThisBestAnswer","actionLabel","saveDiscussion","FoFUserDirectory","selectBestAnswer","awardedBestAnswer","bestAnswerInDiscussion","extend","hasBestAnswer","has","isHidden","canSelectBestAnswer","_app$session$user","isBestAnswer","_app$session$user2","save","bestAnswerPostId","bestAnswerUserId","relationships","data","matches","DiscussionPage","update","PostControls","pushAttributes","contentType","Button","CommentPost","_discussion$bestAnswe","thisPost","PostComponent","elementAttrs","_discussion$bestAnswe2","UserCard","count","bestAnswerCount","override","SortMap","most_best_answers","least_best_answers","NotificationGrid","Search","DiscussionsSearchSource","mutators","IndexPage","tag","currentTag","isQnA","canStartDiscussion","cta","children","setContent","options","selected","bestAnswer","Dropdown","buttonClassName","Number","accessibleToggleLabel","active","refresh","DiscussionListState","prepend","DiscussionComposer","composer","fields","some","titlePlaceholder","bidi","placeholder","disabled","onkeydown"],"sourceRoot":""} \ No newline at end of file