From a505910a1894bbf8ca982f12184ed03efbc5e2d3 Mon Sep 17 00:00:00 2001 From: Justoverclock Date: Wed, 21 Apr 2021 13:58:41 +0200 Subject: [PATCH] fixes minor fixes --- js/dist/admin.js | 2 +- js/dist/admin.js.map | 2 +- js/dist/forum.js | 4 ++-- js/dist/forum.js.map | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/dist/admin.js b/js/dist/admin.js index 1adeef9..1fcd610 100644 --- a/js/dist/admin.js +++ b/js/dist/admin.js @@ -119,7 +119,7 @@ __webpack_require__.r(__webpack_exports__); * Author: Marco Colia * Website: https://flarum.it * - * Special Thanks to Sasha Askvortsov + * Special Thanks to Askvortsov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/js/dist/admin.js.map b/js/dist/admin.js.map index 63821ba..bb910a6 100644 --- a/js/dist/admin.js.map +++ b/js/dist/admin.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://@justoverclock/flarum-ext-contactme/webpack/bootstrap","webpack://@justoverclock/flarum-ext-contactme/./admin.js","webpack://@justoverclock/flarum-ext-contactme/./src/admin/index.js","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['admin/components/ExtensionPage']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['app']\""],"names":["app","initializers","add","extensionData","registerSetting","setting","name","type","required","label","translator","trans"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA,wC;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEAA,iDAAG,CAACC,YAAJ,CAAiBC,GAAjB,CAAqB,yBAArB,EAAgD,YAAM;AACpDF,mDAAG,CAACG,aAAJ,QAAsB,yBAAtB,EAAiDC,eAAjD,CACE;AACEC,WAAO,EAAE,qCADX;AAEEC,QAAI,EAAE,eAFR;AAGEC,QAAI,EAAE,OAHR;AAIEC,YAAQ,EAAE,IAJZ;AAKEC,SAAK,EAAET,iDAAG,CAACU,UAAJ,CAAeC,KAAf,CACL,gDADK;AALT,GADF,EAUE,EAVF;AAYD,CAbD,E;;;;;;;;;;;AC7BA,sE;;;;;;;;;;;ACAA,2C","file":"admin.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./admin.js\");\n","export * from './src/admin';\r\n","/*\n * Contact Us Extension for Flarum\n * Author: Marco Colia\n * Website: https://flarum.it\n *\n * Special Thanks to Sasha Askvortsov\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport app from \"flarum/app\";\nimport ExtensionPage from \"flarum/admin/components/ExtensionPage\";\n\napp.initializers.add(\"justoverclock-contactme\", () => {\n app.extensionData.for(\"justoverclock-contactme\").registerSetting(\n {\n setting: \"justoverclock-contactme.coordinates\",\n name: \"emailSettings\",\n type: \"email\",\n required: true,\n label: app.translator.trans(\n \"flarum-ext-contactme.admin.settings.emaillabel\"\n ),\n },\n 15\n );\n});\n","module.exports = flarum.core.compat['admin/components/ExtensionPage'];","module.exports = flarum.core.compat['app'];"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://@justoverclock/flarum-ext-contactme/webpack/bootstrap","webpack://@justoverclock/flarum-ext-contactme/./admin.js","webpack://@justoverclock/flarum-ext-contactme/./src/admin/index.js","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['admin/components/ExtensionPage']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['app']\""],"names":["app","initializers","add","extensionData","registerSetting","setting","name","type","required","label","translator","trans"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA,wC;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEAA,iDAAG,CAACC,YAAJ,CAAiBC,GAAjB,CAAqB,yBAArB,EAAgD,YAAM;AACpDF,mDAAG,CAACG,aAAJ,QAAsB,yBAAtB,EAAiDC,eAAjD,CACE;AACEC,WAAO,EAAE,qCADX;AAEEC,QAAI,EAAE,eAFR;AAGEC,QAAI,EAAE,OAHR;AAIEC,YAAQ,EAAE,IAJZ;AAKEC,SAAK,EAAET,iDAAG,CAACU,UAAJ,CAAeC,KAAf,CACL,gDADK;AALT,GADF,EAUE,EAVF;AAYD,CAbD,E;;;;;;;;;;;AC7BA,sE;;;;;;;;;;;ACAA,2C","file":"admin.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./admin.js\");\n","export * from './src/admin';\r\n","/*\n * Contact Us Extension for Flarum\n * Author: Marco Colia\n * Website: https://flarum.it\n *\n * Special Thanks to Askvortsov\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport app from \"flarum/app\";\nimport ExtensionPage from \"flarum/admin/components/ExtensionPage\";\n\napp.initializers.add(\"justoverclock-contactme\", () => {\n app.extensionData.for(\"justoverclock-contactme\").registerSetting(\n {\n setting: \"justoverclock-contactme.coordinates\",\n name: \"emailSettings\",\n type: \"email\",\n required: true,\n label: app.translator.trans(\n \"flarum-ext-contactme.admin.settings.emaillabel\"\n ),\n },\n 15\n );\n});\n","module.exports = flarum.core.compat['admin/components/ExtensionPage'];","module.exports = flarum.core.compat['app'];"],"sourceRoot":""} \ No newline at end of file diff --git a/js/dist/forum.js b/js/dist/forum.js index 7954dc9..b78bef6 100644 --- a/js/dist/forum.js +++ b/js/dist/forum.js @@ -170,7 +170,7 @@ __webpack_require__.r(__webpack_exports__); * Author: Marco Colia * Website: https://flarum.it * - * Special Thanks to Sasha Askvortsov + * Special Thanks to Askvortsov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -298,7 +298,7 @@ __webpack_require__.r(__webpack_exports__); * Author: Marco Colia * Website: https://flarum.it * - * Special Thanks to Sasha Askvortsov + * Special Thanks to Askvortsov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/js/dist/forum.js.map b/js/dist/forum.js.map index 6165601..c8ff16f 100644 --- a/js/dist/forum.js.map +++ b/js/dist/forum.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://@justoverclock/flarum-ext-contactme/webpack/bootstrap","webpack://@justoverclock/flarum-ext-contactme/./forum.js","webpack://@justoverclock/flarum-ext-contactme/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@justoverclock/flarum-ext-contactme/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@justoverclock/flarum-ext-contactme/./src/forum/components/ContactPage.js","webpack://@justoverclock/flarum-ext-contactme/./src/forum/index.js","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['common/components/Button']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['common/utils/Stream']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['components/IndexPage']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['components/LinkButton']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['components/Page']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['extend']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['helpers/listItems']\""],"names":["ContactPage","oninit","vnode","loading","message","Stream","sent","form","app","session","user","m","translator","trans","onsubmit","submit","bind","required","bidi","placeholder","Button","type","className","view","IndexPage","prototype","hero","listItems","sidebarItems","toArray","e","preventDefault","redraw","request","method","url","forum","attribute","body","then","Page","initializers","add","routes","contactPage","path","component","extend","navItems","route"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA,wC;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAiD;AAClC;AACf;AACA;AACA,EAAE,kEAAc;AAChB,C;;;;;;;;;;;;ACLA;AAAA;AAAe;AACf;AACA;AACA;AACA;;AAEA;AACA,C;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;;IAEqBA,W;;;;;;;;;SACnBC,M,GAAA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A;AAEAhC,GAAG,CAACiC,YAAJ,CAAiBC,GAAjB,CAAqB,oCAArB,EAA2D,YAAM,CAAE,CAAnE;AAEAlC,GAAG,CAACmC,MAAJ,CAAWC,WAAX,GAAyB;AACvBC,MAAI,EAAE,aADiB;AAEvBC,WAAS,EAAE9C,+DAAWA;AAFC,CAAzB;AAIA+C,4DAAM,CAACvB,kEAAS,CAACC,SAAX,EAAsB,UAAtB,EAAkC,UAACuB,QAAD,EAAc;AACpDA,UAAQ,CAACN,GAAT,CACE,aADF,EAEE,EAAC,mEAAD;AAAY,QAAI,EAAElC,GAAG,CAACyC,KAAJ,CAAU,aAAV,CAAlB;AAA4C,QAAI,EAAC;AAAjD,KACGzC,GAAG,CAACI,UAAJ,CAAeC,KAAf,CAAqB,kCAArB,CADH,CAFF,EAKE,GALF;AAQA,SAAOmC,QAAP;AACD,CAVK,CAAN,C;;;;;;;;;;;ACtCA,gE;;;;;;;;;;;ACAA,2D;;;;;;;;;;;ACAA,4D;;;;;;;;;;;ACAA,6D;;;;;;;;;;;ACAA,uD;;;;;;;;;;;ACAA,8C;;;;;;;;;;;ACAA,yD","file":"forum.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./forum.js\");\n","export * from './src/forum';\r\n","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","/*\n * Contact Us Extension for Flarum\n * Author: Marco Colia\n * Website: https://flarum.it\n *\n * Special Thanks to Sasha Askvortsov\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport Page from \"flarum/components/Page\";\nimport IndexPage from \"flarum/components/IndexPage\";\nimport listItems from \"flarum/helpers/listItems\";\nimport Stream from \"flarum/common/utils/Stream\";\nimport Button from \"flarum/common/components/Button\";\n\nexport default class ContactPage extends Page {\n oninit(vnode) {\n super.oninit(vnode);\n this.loading = false;\n this.message = Stream(\"\");\n this.sent = false;\n }\n form() {\n if (!app.session.user) {\n return m(\n \"h1\",\n {\n class: \"notloggedin\",\n },\n app.translator.trans(\"flarum-ext-contactme.forum.notloggedin\")\n )\n }\n if (this.sent) {\n return m(\"div\", {\"class\":\"img-container\"},\n m(\"img\", {\"src\":\"https://i.ibb.co/G3w1J0x/sent-successfully-ok.png\"})\n );\n }\n return m(\"form.Form-group\", { onsubmit: this.submit.bind(this) }, [\n m(\"textarea.message1\", {\n required: true,\n bidi: this.message,\n placeholder: app.translator.trans(\n \"flarum-ext-contactme.forum.textAreaField\"\n ),\n }),\n m(\"div\", {\"class\":\"buttonHolder\"},\n m(\n Button,\n { type: \"submit\", loading: this.loading, className: \"Button\" },\n app.translator.trans(\"flarum-ext-contactme.forum.sendForm\")\n )),\n ]);\n }\n view() {\n return m(\".IndexPage\", [\n IndexPage.prototype.hero(),\n m(\n \".container\",\n m(\".sideNavContainer\", [\n m(\n \"nav.IndexPage-nav.sideNav\",\n m(\"ul\", listItems(IndexPage.prototype.sidebarItems().toArray()))\n ),\n m(\n \".IndexPage-results.sideNavOffset\",\n m(\n \"h1\",\n {\n class: \"titolo1\",\n },\n app.translator.trans(\"flarum-ext-contactme.forum.pageTitle\")\n ),\n m(\n \"p\",\n {\n class: \"banner-message\",\n },\n app.translator.trans(\"flarum-ext-contactme.forum.pText\")\n ),\n this.form()\n ),\n ])\n ),\n ]);\n }\n submit(e) {\n e.preventDefault();\n this.loading = true;\n m.redraw();\n app\n .request({\n method: \"POST\",\n url: app.forum.attribute(\"baseUrl\") + \"/sendmail\",\n body: { message: this.message() },\n })\n .then(() => {\n this.loading = false;\n this.sent = true;\n m.redraw();\n });\n }\n}\n","/*\n * Contact Us Extension for Flarum\n * Author: Marco Colia\n * Website: https://flarum.it\n *\n * Special Thanks to Sasha Askvortsov\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\n\nimport { extend } from \"flarum/extend\";\nimport IndexPage from \"flarum/components/IndexPage\";\nimport LinkButton from \"flarum/components/LinkButton\";\nimport ContactPage from \"./components/ContactPage\";\n\napp.initializers.add(\"justoverclock/flarum-ext-contactme\", () => {});\n\napp.routes.contactPage = {\n path: \"/contact-us\",\n component: ContactPage,\n};\nextend(IndexPage.prototype, \"navItems\", (navItems) => {\n navItems.add(\n \"contactPage\",\n \n {app.translator.trans(\"flarum-ext-contactme.forum.title\")}\n ,\n 100\n );\n\n return navItems;\n});\n","module.exports = flarum.core.compat['common/components/Button'];","module.exports = flarum.core.compat['common/utils/Stream'];","module.exports = flarum.core.compat['components/IndexPage'];","module.exports = flarum.core.compat['components/LinkButton'];","module.exports = flarum.core.compat['components/Page'];","module.exports = flarum.core.compat['extend'];","module.exports = flarum.core.compat['helpers/listItems'];"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://@justoverclock/flarum-ext-contactme/webpack/bootstrap","webpack://@justoverclock/flarum-ext-contactme/./forum.js","webpack://@justoverclock/flarum-ext-contactme/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@justoverclock/flarum-ext-contactme/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@justoverclock/flarum-ext-contactme/./src/forum/components/ContactPage.js","webpack://@justoverclock/flarum-ext-contactme/./src/forum/index.js","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['common/components/Button']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['common/utils/Stream']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['components/IndexPage']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['components/LinkButton']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['components/Page']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['extend']\"","webpack://@justoverclock/flarum-ext-contactme/external \"flarum.core.compat['helpers/listItems']\""],"names":["ContactPage","oninit","vnode","loading","message","Stream","sent","form","app","session","user","m","translator","trans","onsubmit","submit","bind","required","bidi","placeholder","Button","type","className","view","IndexPage","prototype","hero","listItems","sidebarItems","toArray","e","preventDefault","redraw","request","method","url","forum","attribute","body","then","Page","initializers","add","routes","contactPage","path","component","extend","navItems","route"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA,wC;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAiD;AAClC;AACf;AACA;AACA,EAAE,kEAAc;AAChB,C;;;;;;;;;;;;ACLA;AAAA;AAAe;AACf;AACA;AACA;AACA;;AAE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,G;;;EArFsCQ,6D;;;;;;;;;;;;;;AChCzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEAhC,GAAG,CAACiC,YAAJ,CAAiBC,GAAjB,CAAqB,oCAArB,EAA2D,YAAM,CAAE,CAAnE;AAEAlC,GAAG,CAACmC,MAAJ,CAAWC,WAAX,GAAyB;AACvBC,MAAI,EAAE,aADiB;AAEvBC,WAAS,EAAE9C,+DAAWA;AAFC,CAAzB;AAIA+C,4DAAM,CAACvB,kEAAS,CAACC,SAAX,EAAsB,UAAtB,EAAkC,UAACuB,QAAD,EAAc;AACpDA,UAAQ,CAACN,GAAT,CACE,aADF,EAEE,EAAC,mEAAD;AAAY,QAAI,EAAElC,GAAG,CAACyC,KAAJ,CAAU,aAAV,CAAlB;AAA4C,QAAI,EAAC;AAAjD,KACGzC,GAAG,CAACI,UAAJ,CAAeC,KAAf,CAAqB,kCAArB,CADH,CAFF,EAKE,GALF;AAQA,SAAOmC,QAAP;AACD,CAVK,CAAN,C;;;;;;;;;;;ACtCA,gE;;;;;;;;;;;ACAA,2D;;;;;;;;;;;ACAA,4D;;;;;;;;;;;ACAA,6D;;;;;;;;;;;ACAA,uD;;;;;;;;;;;ACAA,8C;;;;;;;;;;;ACAA,yD","file":"forum.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./forum.js\");\n","export * from './src/forum';\r\n","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","/*\n * Contact Us Extension for Flarum\n * Author: Marco Colia\n * Website: https://flarum.it\n *\n * Special Thanks to Askvortsov\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport Page from \"flarum/components/Page\";\nimport IndexPage from \"flarum/components/IndexPage\";\nimport listItems from \"flarum/helpers/listItems\";\nimport Stream from \"flarum/common/utils/Stream\";\nimport Button from \"flarum/common/components/Button\";\n\nexport default class ContactPage extends Page {\n oninit(vnode) {\n super.oninit(vnode);\n this.loading = false;\n this.message = Stream(\"\");\n this.sent = false;\n }\n form() {\n if (!app.session.user) {\n return m(\n \"h1\",\n {\n class: \"notloggedin\",\n },\n app.translator.trans(\"flarum-ext-contactme.forum.notloggedin\")\n )\n }\n if (this.sent) {\n return m(\"div\", {\"class\":\"img-container\"},\n m(\"img\", {\"src\":\"https://i.ibb.co/G3w1J0x/sent-successfully-ok.png\"})\n );\n }\n return m(\"form.Form-group\", { onsubmit: this.submit.bind(this) }, [\n m(\"textarea.message1\", {\n required: true,\n bidi: this.message,\n placeholder: app.translator.trans(\n \"flarum-ext-contactme.forum.textAreaField\"\n ),\n }),\n m(\"div\", {\"class\":\"buttonHolder\"},\n m(\n Button,\n { type: \"submit\", loading: this.loading, className: \"Button\" },\n app.translator.trans(\"flarum-ext-contactme.forum.sendForm\")\n )),\n ]);\n }\n view() {\n return m(\".IndexPage\", [\n IndexPage.prototype.hero(),\n m(\n \".container\",\n m(\".sideNavContainer\", [\n m(\n \"nav.IndexPage-nav.sideNav\",\n m(\"ul\", listItems(IndexPage.prototype.sidebarItems().toArray()))\n ),\n m(\n \".IndexPage-results.sideNavOffset\",\n m(\n \"h1\",\n {\n class: \"titolo1\",\n },\n app.translator.trans(\"flarum-ext-contactme.forum.pageTitle\")\n ),\n m(\n \"p\",\n {\n class: \"banner-message\",\n },\n app.translator.trans(\"flarum-ext-contactme.forum.pText\")\n ),\n this.form()\n ),\n ])\n ),\n ]);\n }\n submit(e) {\n e.preventDefault();\n this.loading = true;\n m.redraw();\n app\n .request({\n method: \"POST\",\n url: app.forum.attribute(\"baseUrl\") + \"/sendmail\",\n body: { message: this.message() },\n })\n .then(() => {\n this.loading = false;\n this.sent = true;\n m.redraw();\n });\n }\n}\n","/*\n * Contact Us Extension for Flarum\n * Author: Marco Colia\n * Website: https://flarum.it\n *\n * Special Thanks to Askvortsov\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\n\nimport { extend } from \"flarum/extend\";\nimport IndexPage from \"flarum/components/IndexPage\";\nimport LinkButton from \"flarum/components/LinkButton\";\nimport ContactPage from \"./components/ContactPage\";\n\napp.initializers.add(\"justoverclock/flarum-ext-contactme\", () => {});\n\napp.routes.contactPage = {\n path: \"/contact-us\",\n component: ContactPage,\n};\nextend(IndexPage.prototype, \"navItems\", (navItems) => {\n navItems.add(\n \"contactPage\",\n \n {app.translator.trans(\"flarum-ext-contactme.forum.title\")}\n ,\n 100\n );\n\n return navItems;\n});\n","module.exports = flarum.core.compat['common/components/Button'];","module.exports = flarum.core.compat['common/utils/Stream'];","module.exports = flarum.core.compat['components/IndexPage'];","module.exports = flarum.core.compat['components/LinkButton'];","module.exports = flarum.core.compat['components/Page'];","module.exports = flarum.core.compat['extend'];","module.exports = flarum.core.compat['helpers/listItems'];"],"sourceRoot":""} \ No newline at end of file