Sorry. Doesn't work for me on three installations now!
Just tried it with an plain new Flarum installation, and i still get the error:
Uncaught TypeError: ({}) is not a function
<anonymous> https://flarum.dev.dvdnarr.com/assets/forum.js?v=511cd25d:495
forum.js:495:1
<anonym> https://flarum.dev.dvdnarr.com/assets/forum.js?v=511cd25d:495
(()=>{var t={n:a=>{var o=a&&a.__esModule?()=>a.default:()=>a;return t.d(o,{a:o}),o},d:(a,o)=>{for(var e in o)t.o(o,e)&&!t.o(a,e)&&Object.defineProperty(a,e,{enumerable:!0,get:o[e]})},o:(t,a)=>Object.prototype.hasOwnProperty.call(t,a),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},a={};(()=>{"use strict";t.r(a);const o=flarum.core.compat["forum/app"];var e=t.n(o);const r=flarum.core.compat["common/models/User"];var n=t.n(r);const s=flarum.core.compat["common/Model"];var i=t.n(s);const d=flarum.core.compat["common/extend"],c=flarum.core.compat["forum/components/UserCard"];var h=t.n(c);const l=flarum.core.compat["common/helpers/icon"];var u=t.n(l);const b=flarum.core.compat["common/components/SettingsPage"];var p=t.n(b);const y=flarum.core.compat["common/components/FieldSet"];var f=t.n(y);const g=flarum.core.compat["common/components/Switch"];var D=t.n(g);const w=flarum.core.compat["forum/components/SignUpModal"];var v=t.n(w);const _=flarum.core.compat["common/utils/Stream"];var x=t.n(_);const S=flarum.core.compat["common/components/EditUserModal"];var Y=t.n(S);flarum.core.compat["utils/extractText"],e().initializers.add("datlechin/flarum-birthdays",(function(){n().prototype.birthday=i().attribute("birthday"),n().prototype.showDobDate=i().attribute("showDobDate"),n().prototype.showDobYear=i().attribute("showDobYear"),(0,d.extend)(h().prototype,"infoItems",(function(t){var a,o,e=this.attrs.user,r=(null==(a=e.preferences())?void 0:a.locale)||app.translator.formatter.locale,n=e.birthday(),s=new Date(n),i={month:"long",day:"numeric",year:"numeric"};if("0000-00-00"!==n&&""!==n){if(e.showDobDate()&&e.showDobYear())o=(new Date).getFullYear()-new Date(n).getFullYear(),n=s.toLocaleDateString(r,i);else{if(!0!==e.showDobDate()||!1!==e.showDobYear())return;n=(n=s.toLocaleDateString(r,i)).split(",")[0]}t.add("birthday",m("[",null,u()("fas fa-birthday-cake"),m("span",{className:"birthday"},app.translator.trans("datlechin-birthdays.forum.user.birthday_text",{date:n})),e.showDobYear()?m("span",{className:"age"},"(",app.translator.trans("datlechin-birthdays.forum.user.age_text",{age:o}),")"):null))}})),(0,d.extend)(p().prototype,"settingsItems",(function(t){var a=this;t.add("birthday",m(f(),{className:"Settings-birthday",label:e().translator.trans("datlechin-birthdays.forum.settings.birthday_heading")},m(D(),{state:this.user.showDobDate(),onchange:function(t){a.showDobDateLoading=!0,a.user.save({showDobDate:t}).then((function(){a.showDobDateLoading=!1,m.redraw()}))},loading:this.showDobDateLoading},e().translator.trans("datlechin-birthdays.forum.settings.show_dob_date_label")),m(D(),{state:this.user.showDobDate()&&this.user.showDobYear(),onchange:function(t){a.showDobYearLoading=!0,a.user.save({showDobYear:t}).then((function(){a.showDobYearLoading=!1,m.redraw()}))},loading:this.showDobYearLoading},e().translator.trans("datlechin-birthdays.forum.settings.show_dob_year_label")),m("span",{className:"helpText"},e().translator.trans("datlechin-birthdays.forum.settings.show_dob_year_help"))))})),(0,d.extend)(v().prototype,"oninit",(function(){e().forum.attribute("setBirthdayOnRegistration")&&(this.birthday=x()(this.attrs.birthday||""))})),(0,d.extend)(v().prototype,"fields",(function(t){e().forum.attribute("setBirthdayOnRegistration")&&t.add("birthday",m("div",{className:"Form-group"},m("input",{className:"FormControl birthday",name:"birthday",type:"date",bidi:this.birthday,disabled:this.loading})),20)})),(0,d.extend)(v().prototype,"submitData",(function(t){e().forum.attribute("setBirthdayOnRegistration")&&(t.birthday=this.birthday())})),(0,d.extend)(Y().prototype,"oninit",(function(){this.birthday=x()(this.attrs.user.birthday())})),(0,d.extend)(Y().prototype,"fields",(function(t){t.add("birthday",m("div",{className:"Form-group"},m("label",null,e().translator.trans("datlechin-birthdays.forum.edit_user.birthdays_heading")),m("input",{className:"FormControl",type:"date",bidi:this.birthday})),30)})),(0,d.extend)(Y().prototype,"data",(function(t){this.birthday()!==this.attrs.user.birthday()&&(t.birthday=this.birthday())}))}))})(),module.exports=a})();
Flarum core 1.1.1
PHP version: 7.4.3
MySQL version: 8.0.27-0ubuntu0.20.04.1
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, imagick, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache
+----------------------+---------+--------+
| Flarum Extensions | | |
+----------------------+---------+--------+
| ID | Version | Commit |
+----------------------+---------+--------+
| flarum-flags | v1.1.0 | |
| flarum-tags | v1.1.0 | |
| flarum-suspend | v1.1.0 | |
| flarum-subscriptions | v1.1.0 | |
| flarum-sticky | v1.1.0 | |
| flarum-statistics | v1.1.0 | |
| flarum-mentions | v1.1.3 | |
| flarum-markdown | v1.1.1 | |
| flarum-lock | v1.1.0 | |
| flarum-likes | v1.1.0 | |
| flarum-lang-english | v1.1.0 | |
| flarum-bbcode | v1.1.0 | |
| flarum-approval | v1.1.0 | |
| datlechin-birthdays | v0.1.4 | |
+----------------------+---------+--------+
Base URL: https://flarum.dev.dvdnarr.com
Installation path: /var/www/dvdnarr.com/flarum
Queue driver: sync
Mail driver: mail
Debug mode: off