framework/extensions/subscriptions/js/dist/forum.js

2 lines
9.1 KiB
JavaScript
Raw Normal View History

module.exports=function(o){var t={};function n(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return o[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=o,n.c=t,n.d=function(o,t,r){n.o(o,t)||Object.defineProperty(o,t,{enumerable:!0,get:r})},n.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.t=function(o,t){if(1&t&&(o=n(o)),8&t)return o;if(4&t&&"object"==typeof o&&o&&o.__esModule)return o;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:o}),2&t&&"string"!=typeof o)for(var s in o)n.d(r,s,function(t){return o[t]}.bind(null,s));return r},n.n=function(o){var t=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(t,"a",t),t},n.o=function(o,t){return Object.prototype.hasOwnProperty.call(o,t)},n.p="",n(n.s=22)}([function(o,t){o.exports=flarum.core.compat["forum/app"]},function(o,t){o.exports=flarum.core.compat["common/extend"]},function(o,t){o.exports=flarum.core.compat["forum/components/IndexPage"]},function(o,t){o.exports=flarum.core.compat["common/helpers/icon"]},function(o,t){o.exports=flarum.core.compat["common/models/Discussion"]},function(o,t){o.exports=flarum.core.compat["common/components/Button"]},function(o,t){o.exports=flarum.core.compat["common/components/Badge"]},function(o,t){o.exports=flarum.core.compat["forum/components/DiscussionPage"]},function(o,t){o.exports=flarum.core.compat["common/utils/classList"]},function(o,t){o.exports=flarum.core.compat["common/Model"]},function(o,t){o.exports=flarum.core.compat["forum/components/NotificationGrid"]},function(o,t){o.exports=flarum.core.compat["forum/utils/DiscussionControls"]},function(o,t){o.exports=flarum.core.compat["common/components/Dropdown"]},function(o,t){o.exports=flarum.core.compat["common/components/Tooltip"]},function(o,t){o.exports=flarum.core.compat["common/utils/extractText"]},function(o,t){o.exports=flarum.core.compat["common/Component"]},function(o,t){o.exports=flarum.core.compat["common/components/LinkButton"]},function(o,t){o.exports=flarum.core.compat["forum/states/DiscussionListState"]},function(o,t){o.exports=flarum.core.compat["forum/states/GlobalSearchState"]},function(o,t){o.exports=flarum.core.compat["forum/components/SettingsPage"]},function(o,t){o.exports=flarum.core.compat["common/components/Switch"]},function(o,t){o.exports=flarum.core.compat["forum/components/Notification"]},function(o,t,n){"use strict";n.r(t);var r=n(1),s=n(0),e=n.n(s),a=n(9),i=n.n(a),c=n(4),u=n.n(c),l=n(2),f=n.n(l),p=n(10),b=n.n(p),d=n(6),g=n.n(d);var _=n(5),w=n.n(_),y=n(7),h=n.n(y),x=n(11),v=n.n(x);function O(){return(O=Object.assign||function(o){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])}return o}).apply(this,arguments)}function j(o,t){return(j=Object.setPrototypeOf||function(o,t){return o.__proto__=t,o})(o,t)}function S(o,t){o.prototype=Object.create(t.prototype),o.prototype.constructor=o,j(o,t)}var P=n(12),N=n.n(P),M=n(13),k=n.n(M),B=n(3),D=n.n(B),I=n(14),T=n.n(I),A=n(8),L=n.n(A),R=n(15),C=function(o){function t(){return o.apply(this,arguments)||this}return S(t,o),t.prototype.view=function(){return m("button",{className:"SubscriptionMenuItem hasIcon",onclick:this.attrs.onclick},this.attrs.active?D()("fas fa-check",{className:"Button-icon"}):"",m("span",{className:"SubscriptionMenuItem-label"},D()(this.attrs.icon,{className:"Button-icon"}),m("strong",null,this.attrs.label),m("span",{className:"SubscriptionMenuItem-description"},this.attrs.description)))},t}(n.n(R).a),G=function(o){function t(){return o.apply(this,arguments)||this}S(t,o);var n=t.prototype;return n.oninit=function(t){o.prototype.oninit.call(this,t),this.options=[{subscription:null,icon:"far fa-star",label:e.a.translator.trans("flarum-subscriptions.forum.sub_controls.not_following_button"),description:e.a.translator.trans("flarum-subscriptions.forum.sub_controls.not_following_text")},{subscription:"follow
//# sourceMappingURL=forum.js.map