UNPKG

rizzo-next

Version:

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

1,463 lines (1,462 loc) 563 kB
{ "type": "Program", "start": 0, "end": 2790, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 125, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 39, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 39 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 13, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 13 } }, "local": { "type": "Identifier", "start": 7, "end": 13, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 13 } }, "name": "Arkham" } } ], "importKind": "value", "source": { "type": "Literal", "start": 19, "end": 38, "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 38 } }, "value": "../../core/arkham", "rawValue": "../../core/arkham", "raw": "\"../../core/arkham\"" } }, { "type": "ImportDeclaration", "start": 40, "end": 81, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 41 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 47, "end": 52, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 12 } }, "local": { "type": "Identifier", "start": 47, "end": 52, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 12 } }, "name": "times" } } ], "importKind": "value", "source": { "type": "Literal", "start": 58, "end": 80, "loc": { "start": { "line": 2, "column": 18 }, "end": { "line": 2, "column": 40 } }, "value": "lodash/utility/times", "rawValue": "lodash/utility/times", "raw": "\"lodash/utility/times\"" } }, { "type": "ImportDeclaration", "start": 82, "end": 124, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 42 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 89, "end": 95, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 } }, "local": { "type": "Identifier", "start": 89, "end": 95, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 } }, "name": "assign" } } ], "importKind": "value", "source": { "type": "Literal", "start": 101, "end": 123, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 3, "column": 41 } }, "value": "lodash/object/assign", "rawValue": "lodash/object/assign", "raw": "\"lodash/object/assign\"" } }, { "type": "ImportDeclaration", "start": 125, "end": 171, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 46 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 132, "end": 138, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 13 } }, "local": { "type": "Identifier", "start": 132, "end": 138, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 13 } }, "name": "filter" } } ], "importKind": "value", "source": { "type": "Literal", "start": 144, "end": 170, "loc": { "start": { "line": 4, "column": 19 }, "end": { "line": 4, "column": 45 } }, "value": "lodash/collection/filter", "rawValue": "lodash/collection/filter", "raw": "\"lodash/collection/filter\"" } }, { "type": "ImportDeclaration", "start": 172, "end": 214, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 42 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 179, "end": 183, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 11 } }, "local": { "type": "Identifier", "start": 179, "end": 183, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 11 } }, "name": "each" } } ], "importKind": "value", "source": { "type": "Literal", "start": 189, "end": 213, "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 41 } }, "value": "lodash/collection/each", "rawValue": "lodash/collection/each", "raw": "\"lodash/collection/each\"" } }, { "type": "ImportDeclaration", "start": 215, "end": 252, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 37 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 222, "end": 226, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 11 } }, "local": { "type": "Identifier", "start": 222, "end": 226, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 11 } }, "name": "uniq" } } ], "importKind": "value", "source": { "type": "Literal", "start": 232, "end": 251, "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 36 } }, "value": "lodash/array/uniq", "rawValue": "lodash/array/uniq", "raw": "\"lodash/array/uniq\"" } }, { "type": "ImportDeclaration", "start": 253, "end": 284, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 31 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 260, "end": 266, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 13 } }, "local": { "type": "Identifier", "start": 260, "end": 266, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 13 } }, "name": "MapApi" } } ], "importKind": "value", "source": { "type": "Literal", "start": 272, "end": 283, "loc": { "start": { "line": 7, "column": 19 }, "end": { "line": 7, "column": 30 } }, "value": "./map_api", "rawValue": "./map_api", "raw": "\"./map_api\"" } }, { "type": "VariableDeclaration", "start": 286, "end": 698, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 30, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 292, "end": 697, "loc": { "start": { "line": 9, "column": 6 }, "end": { "line": 30, "column": 1 } }, "id": { "type": "Identifier", "start": 292, "end": 310, "loc": { "start": { "line": 9, "column": 6 }, "end": { "line": 9, "column": 24 } }, "name": "generatePlacements" }, "init": { "type": "ArrowFunctionExpression", "start": 313, "end": 697, "loc": { "start": { "line": 9, "column": 27 }, "end": { "line": 30, "column": 1 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 319, "end": 697, "loc": { "start": { "line": 9, "column": 33 }, "end": { "line": 30, "column": 1 } }, "body": [ { "type": "VariableDeclaration", "start": 323, "end": 531, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 19, "column": 4 } }, "declarations": [ { "type": "VariableDeclarator", "start": 327, "end": 530, "loc": { "start": { "line": 10, "column": 6 }, "end": { "line": 19, "column": 3 } }, "id": { "type": "Identifier", "start": 327, "end": 336, "loc": { "start": { "line": 10, "column": 6 }, "end": { "line": 10, "column": 15 } }, "name": "placement" }, "init": { "type": "ObjectExpression", "start": 339, "end": 530, "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 19, "column": 3 } }, "properties": [ { "type": "Property", "start": 345, "end": 365, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 24 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 345, "end": 352, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 11 } }, "name": "divName" }, "value": { "type": "Literal", "start": 354, "end": 365, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 24 } }, "value": "sponsored", "rawValue": "sponsored", "raw": "\"sponsored\"" }, "kind": "init" }, { "type": "Property", "start": 371, "end": 386, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 19 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 371, "end": 380, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 13 } }, "name": "networkId" }, "value": { "type": "Literal", "start": 382, "end": 386, "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 19 } }, "value": 9807, "rawValue": 9807, "raw": "9807" }, "kind": "init" }, { "type": "Property", "start": 392, "end": 406, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 18 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 392, "end": 398, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 10 } }, "name": "siteId" }, "value": { "type": "Literal", "start": 400, "end": 406, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 18 } }, "value": 316543, "rawValue": 316543, "raw": "316543" }, "kind": "init" }, { "type": "Property", "start": 412, "end": 427, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 19 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 412, "end": 419, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 11 } }, "name": "adTypes" }, "value": { "type": "ArrayExpression", "start": 421, "end": 427, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 19 } }, "elements": [ { "type": "Literal", "start": 423, "end": 425, "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 17 } }, "value": 43, "rawValue": 43, "raw": "43" } ] }, "kind": "init" }, { "type": "Property", "start": 433, "end": 451, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 433, "end": 441, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 12 } }, "name": "eventIds" }, "value": { "type": "ArrayExpression", "start": 443, "end": 451, "loc": { "start": { "line": 15, "column": 14 }, "end": { "line": 15, "column": 22 } }, "elements": [ { "type": "Literal", "start": 444, "end": 446, "loc": { "start": { "line": 15, "column": 15 }, "end": { "line": 15, "column": 17 } }, "value": 31, "rawValue": 31, "raw": "31" }, { "type": "Literal", "start": 448, "end": 450, "loc": { "start": { "line": 15, "column": 19 }, "end": { "line": 15, "column": 21 } }, "value": 32, "rawValue": 32, "raw": "32" } ] }, "kind": "init" }, { "type": "Property", "start": 457, "end": 526, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 18, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 457, "end": 467, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 14 } }, "name": "properties" }, "value": { "type": "ObjectExpression", "start": 469, "end": 526, "loc": { "start": { "line": 16, "column": 16 }, "end": { "line": 18, "column": 5 } }, "properties": [ { "type": "Property", "start": 477, "end": 520, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 49 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Literal", "start": 477, "end": 484, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 13 } }, "value": "place", "rawValue": "place", "raw": "\"place\"" }, "value": { "type": "CallExpression", "start": 486, "end": 520, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 49 } }, "callee": { "type": "MemberExpression", "start": 486, "end": 518, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 47 } }, "object": { "type": "MemberExpression", "start": 486, "end": 506, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 35 } }, "object": { "type": "MemberExpression", "start": 486, "end": 501, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 30 } }, "object": { "type": "MemberExpression", "start": 486, "end": 495, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 24 } }, "object": { "type": "Identifier", "start": 486, "end": 492, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 21 } }, "name": "window" }, "property": { "type": "Identifier", "start": 493, "end": 495, "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 24 } }, "name": "lp" }, "computed": false }, "property": { "type": "Identifier", "start": 496, "end": 501, "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 30 } }, "name": "place" }, "computed": false }, "property": { "type": "Identifier", "start": 502, "end": 506, "loc": { "start": { "line": 17, "column": 31 }, "end": { "line": 17, "column": 35 } }, "name": "name" }, "computed": false }, "property": { "type": "Identifier", "start": 507, "end": 518, "loc": { "start": { "line": 17, "column": 36 }, "end": { "line": 17, "column": 47 } }, "name": "toLowerCase" }, "computed": false }, "arguments": [] }, "kind": "init" } ] }, "kind": "init" } ] } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 535, "end": 557, "loc": { "start": { "line": 21, "column": 2 }, "end": { "line": 21, "column": 24 } }, "declarations": [ { "type": "VariableDeclarator", "start": 541, "end": 556, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 23 } }, "id": { "type": "Identifier", "start": 541, "end": 551, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 18 } }, "name": "placements" }, "init": { "type": "ArrayExpression", "start": 554, "end": 556, "loc": { "start": { "line": 21, "column": 21 }, "end": { "line": 21, "column": 23 } }, "elements": [] } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 561, "end": 673, "loc": { "start": { "line": 23, "column": 2 }, "end": { "line": 27, "column": 5 } }, "expression": { "type": "CallExpression", "start": 561, "end": 672, "loc": { "start": { "line": 23, "column": 2 }, "end": { "line": 27, "column": 4 } }, "callee": { "type": "Identifier", "start": 561, "end": 566, "loc": { "start": { "line": 23, "column": 2 }, "end": { "line": 23, "column": 7 } }, "name": "times" }, "arguments": [ { "type": "Literal", "start": 567, "end": 569, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 10 } }, "value": 20, "rawValue": 20, "raw": "20" }, { "type": "ArrowFunctionExpression", "start": 571, "end": 671, "loc": { "start": { "line": 23, "column": 12 }, "end": { "line": 27, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 572, "end": 573, "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 14 } }, "name": "i" } ], "body": { "type": "BlockStatement", "start": 578, "end": 671, "loc": { "start": { "line": 23, "column": 19 }, "end": { "line": 27, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 584, "end": 667, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 26, "column": 8 } }, "expression": { "type": "CallExpression", "start": 584, "end": 666, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 26, "column": 7 } }, "callee": { "type": "MemberExpression", "start": 584, "end": 599, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 19 } }, "object": { "type": "Identifier", "start": 584, "end": 594, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 14 } }, "name": "placements" }, "property": { "type": "Identifier", "start": 595, "end": 599, "loc": { "start": { "line": 24, "column": 15 }, "end": { "line": 24, "column": 19 } }, "name": "push" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 600, "end": 665, "loc": { "start": { "line": 24, "column": 20 }, "end": {