UNPKG

skypager-project

Version:
1,812 lines (1,790 loc) 204 kB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // identity function for calling harmory imports with the correct context /******/ __webpack_require__.i = function(value) { return value; }; /******/ // define getter function for harmory exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ }; /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 118); /******/ }) /************************************************************************/ /******/ ({ /***/ 118: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(27); /***/ }, /***/ 27: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/config/reducers/collection.js", "ast": { "type": "File", "start": 0, "end": 853, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 40, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 853, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 40, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "Object" }, "property": { "type": "Identifier", "name": "defineProperty" }, "computed": false }, "arguments": [ { "type": "Identifier", "name": "exports" }, { "type": "StringLiteral", "extra": { "rawValue": "__esModule", "raw": "\"__esModule\"" }, "value": "__esModule" }, { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "value" }, "value": { "type": "BooleanLiteral", "value": true } } ] } ] } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/extends", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_extends2" } ] } } ] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "name": "default", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "start": 127, "end": 137, "loc": { "start": { "line": 4, "column": 24 }, "end": { "line": 4, "column": 34 }, "identifierName": "collection" }, "name": "collection", "trailingComments": [], "leadingComments": [], "innerComments": [] } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_path" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "path", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 40 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_lang" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "lodash/lang", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 60 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "_interopRequireDefault" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "name": "obj" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "ConditionalExpression", "test": { "type": "LogicalExpression", "left": { "type": "Identifier", "name": "obj" }, "operator": "&&", "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "obj" }, "property": { "type": "Identifier", "name": "__esModule" }, "computed": false } }, "consequent": { "type": "Identifier", "name": "obj" }, "alternate": { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "default" }, "value": { "type": "Identifier", "name": "obj" } } ] } } } ], "directives": [] }, "extra": { "parenthesized": true, "parenStart": 3 } }, { "type": "FunctionDeclaration", "start": 118, "end": 852, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 39, "column": 1 } }, "id": { "type": "Identifier", "start": 127, "end": 137, "loc": { "start": { "line": 4, "column": 24 }, "end": { "line": 4, "column": 34 }, "identifierName": "collection" }, "name": "collection", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 138, "end": 143, "loc": { "start": { "line": 4, "column": 35 }, "end": { "line": 4, "column": 40 }, "identifierName": "state" }, "name": "state" } ], "body": { "type": "BlockStatement", "start": 145, "end": 852, "loc": { "start": { "line": 4, "column": 42 }, "end": { "line": 39, "column": 1 } }, "body": [ { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 157, "end": 167, "loc": { "start": { "line": 5, "column": 10 }, "end": { "line": 5, "column": 20 }, "identifierName": "collection" }, "name": "collection" }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "start": 172, "end": 177, "loc": { "start": { "line": 5, "column": 25 }, "end": { "line": 5, "column": 30 }, "identifierName": "state" }, "name": "state" }, "property": { "type": "Identifier", "start": 157, "end": 167, "loc": { "start": { "line": 5, "column": 10 }, "end": { "line": 5, "column": 20 }, "identifierName": "collection" }, "name": "collection" }, "computed": false } } ], "leadingComments": [], "trailingComments": [] }, { "type": "IfStatement", "start": 181, "end": 218, "loc": { "start": { "line": 7, "column": 2 }, "end": { "line": 7, "column": 39 } }, "test": { "type": "UnaryExpression", "start": 185, "end": 196, "loc": { "start": { "line": 7, "column": 6 }, "end": { "line": 7, "column": 17 } }, "operator": "!", "prefix": true, "argument": { "type": "Identifier", "start": 186, "end": 196, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 17 }, "identifierName": "collection" }, "name": "collection" }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 198, "end": 218, "loc": { "start": { "line": 7, "column": 19 }, "end": { "line": 7, "column": 39 } }, "body": [ { "type": "ReturnStatement", "start": 200, "end": 216, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 37 } }, "argument": { "type": "Identifier", "start": 207, "end": 216, "loc": { "start": { "line": 7, "column": 28 }, "end": { "line": 7, "column": 37 }, "identifierName": "undefined" }, "name": "undefined" } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 224, "end": 809, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 36, "column": 4 } }, "declarations": [ { "type": "VariableDeclarator", "start": 230, "end": 809, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 36, "column": 4 } }, "id": { "type": "Identifier", "start": 230, "end": 234, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 }, "identifierName": "args" }, "name": "args" }, "init": { "type": "CallExpression", "start": 237, "end": 809, "loc": { "start": { "line": 9, "column": 15 }, "end": { "line": 36, "column": 4 } }, "callee": { "type": "MemberExpression", "start": 237, "end": 251, "loc": { "start": { "line": 9, "column": 15 }, "end": { "line": 9, "column": 29 } }, "object": { "type": "Identifier", "start": 237, "end": 247, "loc": { "start": { "line": 9, "column": 15 }, "end": { "line": 9, "column": 25 }, "identifierName": "collection" }, "name": "collection" }, "property": { "type": "Identifier", "start": 248, "end": 251, "loc": { "start": { "line": 9, "column": 26 }, "end": { "line": 9, "column": 29 }, "identifierName": "map" }, "name": "map" }, "computed": false }, "arguments": [ { "type": "FunctionExpression", "start": 252, "end": 808, "loc": { "start": { "line": 9, "column": 30 }, "end": { "line": 36, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 252, "end": 255, "loc": { "start": { "line": 9, "column": 30 }, "end": { "line": 9, "column": 33 }, "identifierName": "val" }, "name": "val" } ], "body": { "type": "BlockStatement", "start": 259, "end": 808, "loc": { "start": { "line": 9, "column": 37 }, "end": { "line": 36, "column": 3 } }, "body": [ { "type": "IfStatement", "start": 265, "end": 390, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 15, "column": 5 } }, "test": { "type": "LogicalExpression", "start": 269, "end": 305, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 44 } }, "left": { "type": "BinaryExpression", "start": 269, "end": 285, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 24 } }, "left": { "type": "MemberExpression", "start": 269, "end": 279, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 18 } }, "object": { "type": "Identifier", "start": 269, "end": 272, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 11 }, "identifierName": "val" }, "name": "val" }, "property": { "type": "Identifier", "start": 273, "end": 279, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 18 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": "===", "right": { "type": "NumericLiteral", "start": 284, "end": 285, "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 24 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } }, "operator": "&&", "right": { "type": "CallExpression", "start": 289, "end": 305, "loc": { "start": { "line": 10, "column": 28 }, "end": { "line": 10, "column": 44 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_lang" }, "property": { "type": "Identifier", "start": 62, "end": 70, "name": "isString" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "MemberExpression", "start": 298, "end": 304, "loc": { "start": { "line": 10, "column": 37 }, "end": { "line": 10, "column": 43 } }, "object": { "type": "Identifier", "start": 298, "end": 301, "loc": { "start": { "line": 10, "column": 37 }, "end": { "line": 10, "column": 40 }, "identifierName": "val" }, "name": "val" }, "property": { "type": "NumericLiteral", "start": 302, "end": 303, "loc": { "start": { "line": 10, "column": 41 }, "end": { "line": 10, "column": 42 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "computed": true } ] } }, "consequent": { "type": "BlockStatement", "start": 307, "end": 390, "loc": { "start": { "line": 10, "column": 46 }, "end": { "line": 15, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 315, "end": 384, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 14, "column": 7 } }, "argument": { "type": "ObjectExpression", "start": 322, "end": 384, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 14, "column": 7 } }, "properties": [ { "type": "ObjectProperty", "start": 332, "end": 354, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 30 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 332, "end": 336, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 }, "identifierName": "name" }, "name": "name" }, "value": { "type": "CallExpression", "start": 338, "end": 354, "loc": { "start": { "line": 12, "column": 14 }, "end": { "line": 12, "column": 30 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_path" }, "property": { "type": "Identifier", "start": 9, "end": 17, "name": "basename" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "MemberExpression", "start": 347, "end": 353, "loc": { "start": { "line": 12, "column": 23 }, "end": { "line": 12, "column": 29 } }, "object": { "type": "Identifier", "start": 347, "end": 350, "loc": { "start": { "line": 12, "column": 23 }, "end": { "line": 12, "column": 26 }, "identifierName": "val" }, "name": "val" }, "property": { "type": "NumericLiteral", "start": 351, "end": 352, "loc": { "start": { "line": 12, "column": 27 }, "end": { "line": 12, "column": 28 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "computed": true } ] } }, { "type": "ObjectProperty", "start": 364, "end": 375, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 19 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 364, "end": 367, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 11 }, "identifierName": "cwd" }, "name": "cwd" }, "value": { "type": "MemberExpression", "start": 369, "end": 375, "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 19 } }, "object": { "type": "Identifier", "start": 369, "end": 372, "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 16 }, "identifierName": "val" }, "name": "val" }, "property": { "type": "NumericLiteral", "start": 373, "end": 374, "loc": { "start": { "line": 13, "column": 17 }, "end": { "line": 13, "column": 18 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "computed": true } } ] } } ], "directives": [] }, "alternate": null }, { "type": "IfStatement", "start": 396, "end": 465, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 19, "column": 5 } }, "test": { "type": "LogicalExpression", "start": 400, "end": 436, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 44 } }, "left": { "type": "BinaryExpression", "start": 400, "end": 416, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 24 } }, "left": { "type": "MemberExpression", "start": 400, "end": 410, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 18 } }, "object": { "type": "Identifier", "start": 400, "end": 403, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 11 }, "identifierName": "val" }, "name": "val" }, "property": { "type": "Identifier", "start": 404, "end": 410, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 18 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": "===", "right": { "type": "NumericLiteral", "start": 415, "end": 416, "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 24 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } }, "operator": "&&", "right": { "type": "CallExpression", "start": 420, "end": 436, "loc": { "start": { "line": 17, "column": 28 }, "end": { "line": 17, "column": 44 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_lang" }, "property": { "type": "Identifier", "start": 72, "end": 80, "name": "isObject" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "MemberExpression", "start": 429, "end": 435, "loc": { "start": { "line": 17, "column": 37 }, "end": { "line": 17, "column": 43 } }, "object": { "type": "Identifier", "start": 429, "end": 432, "loc": { "start": { "line": 17, "column": 37 }, "end": { "line": 17, "column": 40 }, "identifierName": "val" }, "name": "val" }, "property": { "type": "NumericLiteral", "start": 433, "end": 434, "loc": { "start": { "line": 17, "column": 41 }, "end": { "line": 17, "column": 42 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "computed": true } ] } }, "consequent": { "type": "BlockStatement", "start": 438, "end": 465, "loc": { "start": { "line": 17, "column": 46 }, "end": { "line": 19, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 446, "end": 459, "loc": { "start": { "line": 18, "column": 6 }, "end": { "line": 18, "column": 19 } }, "argument": { "type": "MemberExpression", "start": 453, "end": 459, "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 19 } }, "object": { "type": "Identifier", "start": 453, "end": 456, "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 16 }, "identifierName": "val" }, "name": "val" }, "property": { "type": "NumericLiteral", "start": 457, "end": 458, "loc": { "start": { "line": 18, "column": 17 }, "end": { "line": 18, "column": 18 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "computed": true } } ], "directives": [] }, "alternate": null }, { "type": "IfStatement", "start": 471, "end": 648, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 26, "column": 5 } }, "test": { "type": "LogicalExpression", "start": 475, "end": 531, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 64 } }, "left": { "type": "LogicalExpression", "start": 475, "end": 511, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 44 } }, "left": { "type": "BinaryExpression", "start": 475, "end": 491, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 24 } }, "left": { "type": "MemberExpression", "start": 475, "end": 485, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 18 } }, "object": { "type": "Identifier", "start": 475, "end": 478, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 11 }, "identifierName": "val" }, "name": "val" }, "property": { "type": "Identifier", "start": 479, "end": 485, "loc": { "start": { "line": 21, "column": 12 }, "end": { "line": 21, "column": 18 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": "===", "right": { "type": "NumericLiteral", "start": 490, "end": 491, "loc": { "start": { "line": 21, "column": 23 }, "end": { "line": 21, "column": 24 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } }, "operator": "&&", "right": { "type": "CallExpression", "start": 495, "end": 511, "loc": { "start": { "line": 21, "column": 28 }, "end": { "line": 21, "column": 44 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_lang" }, "property": { "type": "Identifier", "start": 62, "end": 70, "name": "isString" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "MemberExpression", "start": 504, "end": 510, "loc": { "start": { "line": 21, "column": 37 }, "end": { "line": 21, "column": 43 } }, "object": { "type": "Identifier", "start": 504, "end": 507, "loc": { "start": { "line": 21, "column": 37 }, "end": { "line": 21, "column": 40 }, "identifierName": "val" }, "name": "val" }, "property": { "type": "NumericLiteral", "start": 508, "end": 509, "loc": { "start": { "line": 21, "column": 41 }, "end": { "line": 21,