Newer
Older
alert / js / dist / admin.js
@Réz István Réz István on 19 Nov 2021 2 KB rc2
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(t,e){t.exports=flarum.core.compat["forum/app"]},function(t,e){t.exports=flarum.core.compat["admin/app"]},function(t,e){t.exports=flarum.core.compat["extensions/afrux-forum-widgets-core/common/extend/Widgets"]},function(t,e){t.exports=flarum.core.compat["extensions/afrux-forum-widgets-core/common/components/Widget"]},function(t,e,n){"use strict";var r=n(2),o=n.n(r);function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(0),i=n.n(a),c=n(3),l=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,u(e,n);var o=r.prototype;return o.oncreate=function(t){document.getElementById("wghtml1").innerHTML='<div class="ubuntuhu-alertWidget-icon"><i aria-hidden="true" class="icon fas fa-bullhorn "></i></div>'+i.a.forum.attribute("ubuntuhu-alert.customCode")},o.className=function(){return"custom-html-alert-widget"},o.icon=function(){return"far fa-file-code"},o.content=function(){return m("div",{class:"htmlwidget",id:"wghtml1"})},r}(n.n(c).a);e.a=function(t){(new o.a).add({key:"Alert",component:l,isDisabled:!1,isUnique:!0,placement:"end",position:1}).extend(t,"ubuntuhu-alert")}},,function(t,e,n){"use strict";n.r(e);var r=n(4),o=n(1),u=n.n(o);u.a.initializers.add("ubuntuhu/alert",(function(){Object(r.a)(u.a),u.a.extensionData.for("ubuntuhu-alert").registerSetting((function(){var t=u.a.translator.trans("ubuntuhu-alert.admin.warningmessage"),e=u.a.translator.trans("ubuntuhu-alert.admin.warningtext");return m("div",{className:"Form-group settingscustomhtmlalert"},m("label",null,e),m("aside",{class:"customhtmlwarningalert"},t),m("div",{class:"textandprwalert"},m("textarea",{id:"htmltext1",className:"FormControl customhtmlboxalert",bidi:this.setting("ubuntuhu-alert.customCode")})))}))}))}]);
//# sourceMappingURL=admin.js.map