UNPKG

rizzo-next

Version:

The next generation of Lonely Planet's style guide and pattern library.

1,562 lines (1,561 loc) 313 kB
{ "type": "Program", "start": 0, "end": 1460, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 77, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 23, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 23 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 8, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 8 } }, "local": { "type": "Identifier", "start": 7, "end": 8, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 8 } }, "name": "$" } } ], "importKind": "value", "source": { "type": "Literal", "start": 14, "end": 22, "loc": { "start": { "line": 1, "column": 14 }, "end": { "line": 1, "column": 22 } }, "value": "jquery", "rawValue": "jquery", "raw": "\"jquery\"" } }, { "type": "ImportDeclaration", "start": 24, "end": 63, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 39 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 31, "end": 37, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } }, "local": { "type": "Identifier", "start": 31, "end": 37, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } }, "name": "Arkham" } } ], "importKind": "value", "source": { "type": "Literal", "start": 43, "end": 62, "loc": { "start": { "line": 2, "column": 19 }, "end": { "line": 2, "column": 38 } }, "value": "../../core/arkham", "rawValue": "../../core/arkham", "raw": "\"../../core/arkham\"" } }, { "type": "ImportDeclaration", "start": 64, "end": 108, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 44 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 73, "end": 82, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 18 } }, "imported": { "type": "Identifier", "start": 73, "end": 82, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 18 } }, "name": "Component" }, "local": { "type": "Identifier", "start": 73, "end": 82, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 18 } }, "name": "Component" } } ], "importKind": "value", "source": { "type": "Literal", "start": 90, "end": 107, "loc": { "start": { "line": 3, "column": 26 }, "end": { "line": 3, "column": 43 } }, "value": "../../core/bane", "rawValue": "../../core/bane", "raw": "\"../../core/bane\"" } }, { "type": "ImportDeclaration", "start": 109, "end": 144, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 35 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 116, "end": 126, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 17 } }, "local": { "type": "Identifier", "start": 116, "end": 126, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 17 } }, "name": "MapActions" } } ], "importKind": "value", "source": { "type": "Literal", "start": 132, "end": 143, "loc": { "start": { "line": 4, "column": 23 }, "end": { "line": 4, "column": 34 } }, "value": "./actions", "rawValue": "./actions", "raw": "\"./actions\"" } }, { "type": "ImportDeclaration", "start": 145, "end": 176, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 31 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 152, "end": 160, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 15 } }, "local": { "type": "Identifier", "start": 152, "end": 160, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 15 } }, "name": "MapState" } } ], "importKind": "value", "source": { "type": "Literal", "start": 166, "end": 175, "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 30 } }, "value": "./state", "rawValue": "./state", "raw": "\"./state\"" } }, { "type": "ImportDeclaration", "start": 177, "end": 204, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 27 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 184, "end": 190, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 13 } }, "local": { "type": "Identifier", "start": 184, "end": 190, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 13 } }, "name": "MapAPI" } } ], "importKind": "value", "source": { "type": "Literal", "start": 196, "end": 203, "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 26 } }, "value": "./api", "rawValue": "./api", "raw": "\"./api\"" }, "trailingComments": [ { "type": "Block", "value": "*\n * Wrapper around the map element\n ", "start": 206, "end": 247, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 10, "column": 3 } }, "range": [ 206, 247 ] } ] }, { "type": "Identifier", "start": 248, "end": 1427, "loc": { "start": { "line": 11, "column": 0 }, "end": { "line": 74, "column": 1 } }, "id": { "type": "Identifier", "start": 254, "end": 268, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 20 } }, "name": "InteractiveMap", "leadingComments": null }, "superClass": { "type": "Identifier", "start": 277, "end": 286, "loc": { "start": { "line": 11, "column": 29 }, "end": { "line": 11, "column": 38 } }, "name": "Component" }, "body": { "type": "ClassBody", "start": 287, "end": 1427, "loc": { "start": { "line": 11, "column": 39 }, "end": { "line": 74, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 292, "end": 543, "loc": { "start": { "line": 13, "column": 2 }, "end": { "line": 26, "column": 3 } }, "computed": false, "key": { "type": "Identifier", "start": 292, "end": 302, "loc": { "start": { "line": 13, "column": 2 }, "end": { "line": 13, "column": 12 } }, "name": "initialize" }, "static": false, "kind": "method", "value": { "type": "FunctionExpression", "start": 302, "end": 543, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 26, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 305, "end": 543, "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 26, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 311, "end": 394, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 17, "column": 7 } }, "expression": { "type": "CallExpression", "start": 311, "end": 393, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 17, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 311, "end": 320, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 13 } }, "object": { "type": "Identifier", "start": 311, "end": 317, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 10 } }, "name": "Arkham" }, "property": { "type": "Identifier", "start": 318, "end": 320, "loc": { "start": { "line": 14, "column": 11 }, "end": { "line": 14, "column": 13 } }, "name": "on" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 321, "end": 331, "loc": { "start": { "line": 14, "column": 14 }, "end": { "line": 14, "column": 24 } }, "value": "map.init", "rawValue": "map.init", "raw": "\"map.init\"" }, { "type": "ArrowFunctionExpression", "start": 333, "end": 392, "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 17, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 339, "end": 392, "loc": { "start": { "line": 14, "column": 32 }, "end": { "line": 17, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 347, "end": 361, "loc": { "start": { "line": 15, "column": 6 }, "end": { "line": 15, "column": 20 } }, "expression": { "type": "CallExpression", "start": 347, "end": 360, "loc": { "start": { "line": 15, "column": 6 }, "end": { "line": 15, "column": 19 } }, "callee": { "type": "MemberExpression", "start": 347, "end": 358, "loc": { "start": { "line": 15, "column": 6 }, "end": { "line": 15, "column": 17 } }, "object": { "type": "ThisExpression", "start": 347, "end": 351, "loc": { "start": { "line": 15, "column": 6 }, "end": { "line": 15, "column": 10 } } }, "property": { "type": "Identifier", "start": 352, "end": 358, "loc": { "start": { "line": 15, "column": 11 }, "end": { "line": 15, "column": 17 } }, "name": "launch" }, "computed": false }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 368, "end": 386, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 24 } }, "expression": { "type": "CallExpression", "start": 368, "end": 385, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 23 } }, "callee": { "type": "MemberExpression", "start": 368, "end": 383, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 21 } }, "object": { "type": "ThisExpression", "start": 368, "end": 372, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 10 } } }, "property": { "type": "Identifier", "start": 373, "end": 383, "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 16, "column": 21 } }, "name": "changeView" }, "computed": false }, "arguments": [] } } ] } } ] } }, { "type": "ExpressionStatement", "start": 400, "end": 466, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 21, "column": 7 } }, "expression": { "type": "CallExpression", "start": 400, "end": 465, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 21, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 400, "end": 409, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 13 } }, "object": { "type": "Identifier", "start": 400, "end": 406, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 10 } }, "name": "Arkham" }, "property": { "type": "Identifier", "start": 407, "end": 409, "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 13 } }, "name": "on" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 410, "end": 424, "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 19, "column": 28 } }, "value": "view.changed", "rawValue": "view.changed", "raw": "\"view.changed\"" }, { "type": "ArrowFunctionExpression", "start": 426, "end": 464, "loc": { "start": { "line": 19, "column": 30 }, "end": { "line": 21, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 432, "end": 464, "loc": { "start": { "line": 19, "column": 36 }, "end": { "line": 21, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 440, "end": 458, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 20, "column": 24 } }, "expression": { "type": "CallExpression", "start": 440, "end": 457, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 20, "column": 23 } }, "callee": { "type": "MemberExpression", "start": 440, "end": 455, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 20, "column": 21 } }, "object": { "type": "ThisExpression", "start": 440, "end": 444, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 20, "column": 10 } } }, "property": { "type": "Identifier", "start": 445, "end": 455, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 21 } }, "name": "changeView" }, "computed": false }, "arguments": [] } } ] } } ] } }, { "type": "ExpressionStatement", "start": 472, "end": 539, "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 25, "column": 7 } }, "expression": { "type": "CallExpression", "start": 472, "end": 538, "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 25, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 472, "end": 481, "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 23, "column": 13 } }, "object": { "type": "Identifier", "start": 472, "end": 478, "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 23, "column": 10 } }, "name": "Arkham" }, "property": { "type": "Identifier", "start": 479, "end": 481, "loc": { "start": { "line": 23, "column": 11 }, "end": { "line": 23, "column": 13 } }, "name": "on" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 482, "end": 497, "loc": { "start": { "line": 23, "column": 14 }, "end": { "line": 23, "column": 29 } }, "value": "place.fetched", "rawValue": "place.fetched", "raw": "\"place.fetched\"" }, { "type": "ArrowFunctionExpression", "start": 499, "end": 537, "loc": { "start": { "line": 23, "column": 31 }, "end": { "line": 25, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 505, "end": 537, "loc": { "start": { "line": 23, "column": 37 }, "end": { "line": 25, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 513, "end": 531, "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 24 } }, "expression": { "type": "CallExpression", "start": 513, "end": 530, "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 23 } }, "callee": { "type": "MemberExpression", "start": 513, "end": 528, "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 21 } }, "object": { "type": "ThisExpression", "start": 513, "end": 517, "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 10 } } }, "property": { "type": "Identifier", "start": 518, "end": 528, "loc": { "start": { "line": 24, "column": 11 }, "end": { "line": 24, "column": 21 } }, "name": "changeView" }, "computed": false }, "arguments": [] } } ] } } ] } } ] } } }, { "type": "MethodDefinition", "start": 547, "end": 590, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 30, "column": 3 } }, "computed": false, "key": { "type": "Identifier", "start": 547, "end": 553, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 28, "column": 8 } }, "name": "launch" }, "static": false, "kind": "method", "value": { "type": "FunctionExpression", "start": 553, "end": 590, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 30, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 556, "end": 590, "loc": { "start": { "line": 28, "column": 11 }, "end": { "line": 30, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 562, "end": 586, "loc": { "start": { "line": 29, "column": 4 }, "end": { "line": 29, "column": 28 } }, "expression": { "type": "CallExpression", "start": 562, "end": 585, "loc": { "start": { "line": 29, "column": 4 }, "end": { "line": 29, "column": 27 } }, "callee": { "type": "MemberExpression", "start": 562, "end": 575, "loc": { "start": { "line": 29, "column": 4 }, "end": { "line": 29, "column": 17 } }, "object": { "type": "Identifier", "start": 562, "end": 568, "loc": { "start": { "line": 29, "column": 4 }, "end": { "line": 29, "column": 10 } }, "name": "MapAPI" }, "property": { "type": "Identifier", "start": 569, "end": 575, "loc": { "start": { "line": 29, "column": 11 }, "end": { "line": 29, "column": 17 } }, "name": "launch" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 576, "end": 584, "loc": { "start": { "line": 29, "column": 18 }, "end": { "line": 29, "column": 26 } }, "object": { "type": "ThisExpression", "start": 576, "end": 580, "loc": { "start": { "line": 29, "column": 18 }, "end": { "line": 29, "column": 22 } } }, "property": { "type": "Identifier", "start": 581, "end": 584, "loc": { "start": { "line": 29, "column": 23 }, "end": { "line": 29, "column": 26 } }, "name": "$el" }, "computed": false } ] } } ] } } }, { "type": "MethodDefinition", "start": 594, "end": 625, "loc": { "start": { "line": 32, "column": 2 }, "end": { "line": 34, "column": 3 } }, "computed": false, "key": { "type": "Identifier", "start": 594, "end": 598, "loc": { "start": { "line": 32, "column": 2 }, "end": { "line": 32, "column": 6 } }, "name": "kill" }, "static": false, "kind": "method", "value": { "type": "FunctionExpression", "start": 598, "end": 625, "loc": { "start": { "line": 32, "column": 6 }, "end": { "line": 34, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 601, "end": 625, "loc": {