{"version":3,"sources":["webpack://@ubuntuhu/map/webpack/bootstrap","webpack://@ubuntuhu/map/external \"flarum.core.compat['forum/app']\"","webpack://@ubuntuhu/map/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@ubuntuhu/map/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@ubuntuhu/map/external \"flarum.core.compat['components/IndexPage']\"","webpack://@ubuntuhu/map/external \"flarum.core.compat['extend']\"","webpack://@ubuntuhu/map/external \"flarum.core.compat['components/LinkButton']\"","webpack://@ubuntuhu/map/external \"flarum.core.compat['components/Page']\"","webpack://@ubuntuhu/map/external \"flarum.core.compat['helpers/listItems']\"","webpack://@ubuntuhu/map/external \"flarum.core.compat['common/utils/Stream']\"","webpack://@ubuntuhu/map/external \"flarum.core.compat['common/components/Button']\"","webpack://@ubuntuhu/map/external \"flarum.core.compat['helpers/icon']\"","webpack://@ubuntuhu/map/external \"flarum.core.compat['common/components/LinkButton']\"","webpack://@ubuntuhu/map/./src/forum/components/ContactPage.js","webpack://@ubuntuhu/map/./src/forum/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","flarum","core","compat","_setPrototypeOf","setPrototypeOf","__proto__","_inheritsLoose","subClass","superClass","constructor","ContactPage","oninit","vnode","this","loading","message","Stream","sent","form","app","session","user","class","translator","trans","onsubmit","submit","href","forum","attribute","id","view","IndexPage","hero","listItems","sidebarItems","toArray","trust","src","width","height","style","e","preventDefault","redraw","request","method","url","body","then","Page","initializers","add","$","document","ready","routes","contactPage","path","component","extend","navItems","route","icon"],"mappings":"2BACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,E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C,MAAK,WACJ,EAAKnC,SAAU,EACf,EAAKG,MAAO,EACZ7C,EAAEwE,a,GA/H+BM,M,gBCFzC/B,IAAIgC,aAAaC,IAAI,gBAAgB,WACpCC,EAAEC,UAAUC,OAAM,WACSpC,IAAIS,MAAMC,UAAU,kCAKhDV,IAAIqC,OAAOC,YAAc,CACvBC,KAAM,OACNC,UAAWjD,GAEbkD,iBAAO5B,IAAUpC,UAAW,YAAY,SAACiE,GASvC,OARAA,EAAST,IACP,cACA,EAAC,IAAD,CAAYzB,KAAMR,IAAI2C,MAAM,eAAgBC,KAAM5C,IAAIS,MAAMC,UAAU,yBACrEV,IAAIS,MAAMC,UAAU,qBAErB,KAGKgC","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 = 13);\n","module.exports = flarum.core.compat['forum/app'];","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}","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}","module.exports = flarum.core.compat['components/IndexPage'];","module.exports = flarum.core.compat['extend'];","module.exports = flarum.core.compat['components/LinkButton'];","module.exports = flarum.core.compat['components/Page'];","module.exports = flarum.core.compat['helpers/listItems'];","module.exports = flarum.core.compat['common/utils/Stream'];","module.exports = flarum.core.compat['common/components/Button'];","module.exports = flarum.core.compat['helpers/icon'];","module.exports = flarum.core.compat['common/components/LinkButton'];","/*\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\";\nimport icon from \"flarum/helpers/icon\";\nimport LinkButton from 'flarum/common/components/LinkButton';\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(\"div\", { class: \"boxalignwarn\" }, [\n m(\n \"span\",\n { class: \"circlewarn\" },\n m(\"span\", m(\"i\", { class: \"fas fa-exclamation-triangle fa-2x\" }))\n ),\n m(\"div\", { class: \"chartwarn\" }, [\n m(\n \"b\",\n app.translator.trans(\"map.forum.plsregister\")\n ),\n m(\n \"div\",\n app.translator.trans(\"map.forum.tocontinue\")\n ),\n ]),\n ]);\n }\n if (this.sent) {\n return m(\"div\", { class: \"boxalign\" }, [\n m(\n \"span\",\n { class: \"circle\" },\n m(\"span\", m(\"i\", { class: \"fas fa-paper-plane fa-2x\" }))\n ),\n m(\"div\", { class: \"chart\" }, [\n m(\n \"b\",\n app.translator.trans(\"map.forum.messagesent\")\n ),\n m(\"div\", app.translator.trans(\"map.forum.backsoon\")),\n ]),\n ]);\n }\n return m(\"form.Form-group\", { onsubmit: this.submit.bind(this) }, [\n m(\n \"div\",\n { class: \"buttonHolder\" },\n /* m(\n Button,\n { type: \"submit\", loading: this.loading, className: \"Button\" },\n app.translator.trans(\"ubuntuhu.forum.sendForm\")\n ),*/\n\tm('a', {\n href: app.forum.attribute('url'),\n id: 'go-map-form',\n class: 'Button Button--primary',\n }, app.forum.attribute('formButtonTitle'))\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(\"div\", { class: \"iconcontainer\" }, [\n m(\n \"div\",\n { class: \"fontico\" },\n m(\"i\", { class: app.forum.attribute('contentTitleIcon') })\n ),\n m(\n \"div\",\n { class: \"icocont\" },\n m(\n \"div\",\n { class: \"titolo1\" },\n app.forum.attribute('contentTitle')\n )\n ),\n ]),\n m(\n \"div\",\n {\n class: \"banner-message\",\n },\n /*app.translator.trans(\"map.forum.pText\")*/\n /*app.forum.attribute('url')*/\n [\n m.trust(app.forum.attribute('consentText'))\n ]\n ),\n\t m(\n\t \"iframe\",\n\t {\n\t\tsrc:\"https://nostupidgifts.com/UbuntuMap/theMap.php\",\n\t\twidth:\"100%\",\n\t\theight:\"600px\",\n\t\tstyle:\"border:none;\",\n\t }\n\t ),\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\nimport { extend } from \"flarum/extend\";\nimport IndexPage from \"flarum/components/IndexPage\";\nimport LinkButton from \"flarum/components/LinkButton\";\nimport ContactPage from \"./components/ContactPage\";\nimport app from 'flarum/forum/app';\n\napp.initializers.add(\"ubuntuhu/map\", () => {\n\t$(document).ready(() => {\n const contentHTML = app.forum.attribute('ubuntuhu-map.consentText');\n\t});\n\n});\n\napp.routes.contactPage = {\n path: \"/map\",\n component: ContactPage,\n};\nextend(IndexPage.prototype, \"navItems\", (navItems) => {\n navItems.add(\n \"contactPage\",\n <LinkButton href={app.route(\"contactPage\")} icon={app.forum.attribute('contentMenuTitleIcon')}>\n {app.forum.attribute('contentMenuTitle')}\n </LinkButton>,\n 100\n );\n\n return navItems;\n});\n"],"sourceRoot":""}