uhr/dist/lib/layout_en.js.map

1 line
9.6 KiB
Plaintext

{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/layout/layout-en.ts"],"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","__webpack_exports__","LayoutEn","to","4","past","5","five","3","ten","aQuarter","2","twenty","twentyfive","code","getHour","time","hour","getHours","getMinutes","hours","0,12","9","1,13","6","2,14","7","3,15","4,16","5,17","6,18","7,19","8,20","8","9,21","10,22","10","11,23","letters","minutes","0,1,2,3,4","5,6,7,8,9","10,11,12,13,14","15,16,17,18,19","20,21,22,23,24","25,26,27,28,29","30,31,32,33,34","35,36,37,38,39","40,41,42,43,44","45,46,47,48,49","50,51,52,53,54","55,56,57,58,59","permanent","1","prettyName","version","$","fritteli","uhr","register"],"mappings":"aACA,IAAAA,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,GAAA,CACAG,EAAAH,EACAI,GAAA,EACAH,QAAA,IAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,IAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,EAAA,CAA0CK,YAAA,EAAAC,IAAAL,KAK1CZ,EAAAkB,EAAA,SAAAhB,GACA,oBAAAiB,eAAAC,aACAN,OAAAC,eAAAb,EAAAiB,OAAAC,YAAA,CAAwDC,MAAA,WAExDP,OAAAC,eAAAb,EAAA,cAAiDmB,OAAA,KAQjDrB,EAAAsB,EAAA,SAAAD,EAAAE,GAEA,G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AACC,EAAG,CAAC,EAAG,EAAG,EAAG,IA8DvCC,WAAY,UACZC,QAAS,GAgBbC,EAAEC,SAASC,IAAIC,SAASzD","file":"lib/layout_en.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 = 6);\n","/*\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {Layout, WordDefinition} from '../domain/layout';\n\nconst itIs: WordDefinition = {1: [1, 2, 4, 5]};\nconst half: WordDefinition = {4: [1, 2, 3, 4]};\nconst to: WordDefinition = {4: [10, 11]};\nconst past: WordDefinition = {5: [1, 2, 3, 4]};\nconst oClock: WordDefinition = {10: [5, 6, 7, 8, 9, 10, 11]};\nconst five: WordDefinition = {3: [7, 8, 9, 10]};\nconst ten: WordDefinition = {4: [6, 7, 8]};\nconst aQuarter: WordDefinition = {2: [1, 3, 4, 5, 6, 7, 8, 9]};\nconst twenty: WordDefinition = {3: [1, 2, 3, 4, 5, 6]};\nconst twentyfive: WordDefinition = {3: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]};\n\nexport const LayoutEn: Layout = {\n code: 'en',\n getHour: (time: Date): number => {\n const hour = time.getHours();\n if (time.getMinutes() >= 35) {\n return (hour + 1) % 24;\n }\n return hour;\n },\n\n hours: {\n '0,12': {9: [6, 7, 8, 9, 10, 11]},\n '1,13': {6: [1, 2, 3]},\n '2,14': {7: [9, 10, 11]},\n '3,15': {6: [7, 8, 9, 10, 11]},\n '4,16': {7: [1, 2, 3, 4]},\n '5,17': {7: [5, 6, 7, 8]},\n '6,18': {6: [4, 5, 6]},\n '7,19': {9: [1, 2, 3, 4, 5]},\n '8,20': {8: [1, 2, 3, 4, 5]},\n '9,21': {5: [8, 9, 10, 11]},\n '10,22': {10: [1, 2, 3]},\n '11,23': {8: [6, 7, 8, 9, 10, 11]}\n },\n letters: [\n 'ITLISBFAMPM',\n 'ACQUARTERDC',\n 'TWENTYFIVEX',\n 'HALFBTENFTO',\n 'PASTERUNINE',\n 'ONESIXTHREE',\n 'FOURFIVETWO',\n 'EIGHTELEVEN',\n 'SEVENTWELVE',\n 'TENSO\\'CLOCK'\n ],\n minutes: {\n '0,1,2,3,4': oClock,\n '5,6,7,8,9': [five, past],\n '10,11,12,13,14': [ten, past],\n '15,16,17,18,19': [aQuarter, past],\n '20,21,22,23,24': [twenty, past],\n '25,26,27,28,29': [twentyfive, past],\n '30,31,32,33,34': [half, past],\n '35,36,37,38,39': [twentyfive, to],\n '40,41,42,43,44': [twenty, to],\n '45,46,47,48,49': [aQuarter, to],\n '50,51,52,53,54': [ten, to],\n '55,56,57,58,59': [five, to]\n },\n permanent: itIs,\n prettyName: 'English',\n version: 2\n};\n\ndeclare namespace Fritteli {\n interface Fritteli {\n uhr: Uhr;\n }\n\n interface Uhr {\n register: (layout: Layout) => void;\n }\n}\ndeclare namespace $ {\n const fritteli: Fritteli.Fritteli;\n}\n\n$.fritteli.uhr.register(LayoutEn);\n"],"sourceRoot":""}