framework/extensions/subscriptions/js/dist/admin.js
flarum-bot f784f48906 Bundled output for commit 3a34136e36
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2024-01-09 21:54:15 +00:00

2 lines
1.2 KiB
JavaScript
Generated

(()=>{var e={n:r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return e.d(t,{a:t}),t},d:(r,t)=>{for(var o in t)e.o(t,o)&&!e.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:t[o]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};(()=>{"use strict";e.r(r),e.d(r,{extend:()=>u});const t=flarum.reg.get("core","common/extenders");var o=e.n(t);const s=flarum.reg.get("core","common/app");var n=e.n(s);const i=flarum.reg.get("core","common/query/IGambit");class a extends i.BooleanGambit{key(){return[n().translator.trans("flarum-subscriptions.lib.gambits.discussions.subscription.following_key",{},!0),n().translator.trans("flarum-subscriptions.lib.gambits.discussions.subscription.ignoring_key",{},!0)]}toFilter(e,r){return{[(r?"-":"")+this.filterKey()]:e[1]}}filterKey(){return"subscription"}fromFilter(e,r){return"".concat(r?"-":"","is:").concat(e)}enabled(){return!!n().session.user}}flarum.reg.add("flarum-subscriptions","common/query/discussions/SubscriptionGambit",a);const u=[(new(o().Search)).gambit("discussions",a)]})(),module.exports=r})();
//# sourceMappingURL=admin.js.map