UNPKG

rizzo-next

Version:

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

1,357 lines (1,356 loc) 334 kB
{ "type": "Program", "start": 0, "end": 1351, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 49, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 44, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 44 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 9, "end": 18, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } }, "imported": { "type": "Identifier", "start": 9, "end": 18, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } }, "name": "Component" }, "local": { "type": "Identifier", "start": 9, "end": 18, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } }, "name": "Component" } } ], "importKind": "value", "source": { "type": "Literal", "start": 26, "end": 43, "loc": { "start": { "line": 1, "column": 26 }, "end": { "line": 1, "column": 43 } }, "value": "../../core/bane", "rawValue": "../../core/bane", "raw": "\"../../core/bane\"" } }, { "type": "ImportDeclaration", "start": 45, "end": 84, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 39 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 52, "end": 58, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } }, "local": { "type": "Identifier", "start": 52, "end": 58, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } }, "name": "$clamp" } } ], "importKind": "value", "source": { "type": "Literal", "start": 64, "end": 83, "loc": { "start": { "line": 2, "column": 19 }, "end": { "line": 2, "column": 38 } }, "value": "clamp-js/clamp.js", "rawValue": "clamp-js/clamp.js", "raw": "\"clamp-js/clamp.js\"" } }, { "type": "ExpressionStatement", "start": 86, "end": 111, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 25 } }, "expression": { "type": "CallExpression", "start": 86, "end": 110, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 24 } }, "callee": { "type": "Identifier", "start": 86, "end": 93, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 7 } }, "name": "require" }, "arguments": [ { "type": "Literal", "start": 94, "end": 109, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 23 } }, "value": "./_tours.scss", "rawValue": "./_tours.scss", "raw": "\"./_tours.scss\"" } ] } }, { "type": "Identifier", "start": 113, "end": 1318, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 46, "column": 1 } }, "id": { "type": "Identifier", "start": 119, "end": 133, "loc": { "start": { "line": 6, "column": 6 }, "end": { "line": 6, "column": 20 } }, "name": "ToursComponent" }, "superClass": { "type": "Identifier", "start": 142, "end": 151, "loc": { "start": { "line": 6, "column": 29 }, "end": { "line": 6, "column": 38 } }, "name": "Component" }, "body": { "type": "ClassBody", "start": 152, "end": 1318, "loc": { "start": { "line": 6, "column": 39 }, "end": { "line": 46, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 156, "end": 696, "loc": { "start": { "line": 7, "column": 2 }, "end": { "line": 23, "column": 3 } }, "computed": false, "key": { "type": "Identifier", "start": 156, "end": 166, "loc": { "start": { "line": 7, "column": 2 }, "end": { "line": 7, "column": 12 } }, "name": "initialize" }, "static": false, "kind": "method", "value": { "type": "FunctionExpression", "start": 166, "end": 696, "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 23, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 167, "end": 174, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 20 } }, "name": "options" } ], "body": { "type": "BlockStatement", "start": 176, "end": 696, "loc": { "start": { "line": 7, "column": 22 }, "end": { "line": 23, "column": 3 } }, "body": [ { "type": "IfStatement", "start": 182, "end": 692, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 22, "column": 5 } }, "test": { "type": "MemberExpression", "start": 186, "end": 197, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 19 } }, "object": { "type": "MemberExpression", "start": 186, "end": 194, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 16 } }, "object": { "type": "ThisExpression", "start": 186, "end": 190, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 191, "end": 194, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 16 } }, "name": "$el" }, "computed": false }, "property": { "type": "Literal", "start": 195, "end": 196, "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 18 } }, "value": 0, "rawValue": 0, "raw": "0" }, "computed": true }, "consequent": { "type": "BlockStatement", "start": 199, "end": 692, "loc": { "start": { "line": 8, "column": 21 }, "end": { "line": 22, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 207, "end": 243, "loc": { "start": { "line": 9, "column": 6 }, "end": { "line": 9, "column": 42 } }, "expression": { "type": "AssignmentExpression", "start": 207, "end": 242, "loc": { "start": { "line": 9, "column": 6 }, "end": { "line": 9, "column": 41 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 207, "end": 219, "loc": { "start": { "line": 9, "column": 6 }, "end": { "line": 9, "column": 18 } }, "object": { "type": "ThisExpression", "start": 207, "end": 211, "loc": { "start": { "line": 9, "column": 6 }, "end": { "line": 9, "column": 10 } } }, "property": { "type": "Identifier", "start": 212, "end": 219, "loc": { "start": { "line": 9, "column": 11 }, "end": { "line": 9, "column": 18 } }, "name": "clampAt" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 222, "end": 242, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 41 } }, "left": { "type": "MemberExpression", "start": 222, "end": 237, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 36 } }, "object": { "type": "Identifier", "start": 222, "end": 229, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 28 } }, "name": "options" }, "property": { "type": "Identifier", "start": 230, "end": 237, "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 36 } }, "name": "clampAt" }, "computed": false }, "operator": "||", "right": { "type": "Literal", "start": 241, "end": 242, "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 41 } }, "value": 3, "rawValue": 3, "raw": "3" } } } }, { "type": "ExpressionStatement", "start": 250, "end": 307, "loc": { "start": { "line": 10, "column": 6 }, "end": { "line": 10, "column": 63 } }, "expression": { "type": "AssignmentExpression", "start": 250, "end": 306, "loc": { "start": { "line": 10, "column": 6 }, "end": { "line": 10, "column": 62 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 250, "end": 261, "loc": { "start": { "line": 10, "column": 6 }, "end": { "line": 10, "column": 17 } }, "object": { "type": "ThisExpression", "start": 250, "end": 254, "loc": { "start": { "line": 10, "column": 6 }, "end": { "line": 10, "column": 10 } } }, "property": { "type": "Identifier", "start": 255, "end": 261, "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 10, "column": 17 } }, "name": "blurbs" }, "computed": false }, "right": { "type": "CallExpression", "start": 264, "end": 306, "loc": { "start": { "line": 10, "column": 20 }, "end": { "line": 10, "column": 62 } }, "callee": { "type": "MemberExpression", "start": 264, "end": 277, "loc": { "start": { "line": 10, "column": 20 }, "end": { "line": 10, "column": 33 } }, "object": { "type": "MemberExpression", "start": 264, "end": 272, "loc": { "start": { "line": 10, "column": 20 }, "end": { "line": 10, "column": 28 } }, "object": { "type": "ThisExpression", "start": 264, "end": 268, "loc": { "start": { "line": 10, "column": 20 }, "end": { "line": 10, "column": 24 } } }, "property": { "type": "Identifier", "start": 269, "end": 272, "loc": { "start": { "line": 10, "column": 25 }, "end": { "line": 10, "column": 28 } }, "name": "$el" }, "computed": false }, "property": { "type": "Identifier", "start": 273, "end": 277, "loc": { "start": { "line": 10, "column": 29 }, "end": { "line": 10, "column": 33 } }, "name": "find" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 278, "end": 305, "loc": { "start": { "line": 10, "column": 34 }, "end": { "line": 10, "column": 61 } }, "value": ".tour__description__blurb", "rawValue": ".tour__description__blurb", "raw": "\".tour__description__blurb\"" } ] } } }, { "type": "ExpressionStatement", "start": 314, "end": 360, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 52 } }, "expression": { "type": "AssignmentExpression", "start": 314, "end": 359, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 51 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 314, "end": 330, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 22 } }, "object": { "type": "ThisExpression", "start": 314, "end": 318, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 10 } } }, "property": { "type": "Identifier", "start": 319, "end": 330, "loc": { "start": { "line": 11, "column": 11 }, "end": { "line": 11, "column": 22 } }, "name": "mobileBreak" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 333, "end": 359, "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 51 } }, "left": { "type": "MemberExpression", "start": 333, "end": 352, "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 44 } }, "object": { "type": "Identifier", "start": 333, "end": 340, "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 32 } }, "name": "options" }, "property": { "type": "Identifier", "start": 341, "end": 352, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 44 } }, "name": "mobileBreak" }, "computed": false }, "operator": "||", "right": { "type": "Literal", "start": 356, "end": 359, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 51 } }, "value": 518, "rawValue": 518, "raw": "518" } } } }, { "type": "ExpressionStatement", "start": 367, "end": 416, "loc": { "start": { "line": 12, "column": 6 }, "end": { "line": 12, "column": 55 } }, "expression": { "type": "AssignmentExpression", "start": 367, "end": 415, "loc": { "start": { "line": 12, "column": 6 }, "end": { "line": 12, "column": 54 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 367, "end": 385, "loc": { "start": { "line": 12, "column": 6 }, "end": { "line": 12, "column": 24 } }, "object": { "type": "ThisExpression", "start": 367, "end": 371, "loc": { "start": { "line": 12, "column": 6 }, "end": { "line": 12, "column": 10 } } }, "property": { "type": "Identifier", "start": 372, "end": 385, "loc": { "start": { "line": 12, "column": 11 }, "end": { "line": 12, "column": 24 } }, "name": "headingHeight" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 388, "end": 415, "loc": { "start": { "line": 12, "column": 27 }, "end": { "line": 12, "column": 54 } }, "left": { "type": "MemberExpression", "start": 388, "end": 409, "loc": { "start": { "line": 12, "column": 27 }, "end": { "line": 12, "column": 48 } }, "object": { "type": "Identifier", "start": 388, "end": 395, "loc": { "start": { "line": 12, "column": 27 }, "end": { "line": 12, "column": 34 } }, "name": "options" }, "property": { "type": "Identifier", "start": 396, "end": 409, "loc": { "start": { "line": 12, "column": 35 }, "end": { "line": 12, "column": 48 } }, "name": "headingHeight" }, "computed": false }, "operator": "||", "right": { "type": "Literal", "start": 413, "end": 415, "loc": { "start": { "line": 12, "column": 52 }, "end": { "line": 12, "column": 54 } }, "value": 18, "rawValue": 18, "raw": "18" } } }, "trailingComments": [ { "type": "CommentLine", "value": " lovely magic numbers o_O", "start": 417, "end": 444, "loc": { "start": { "line": 12, "column": 56 }, "end": { "line": 12, "column": 83 } }, "range": [ 417, 444 ] } ] }, { "type": "ExpressionStatement", "start": 451, "end": 529, "loc": { "start": { "line": 13, "column": 6 }, "end": { "line": 13, "column": 84 } }, "expression": { "type": "AssignmentExpression", "start": 451, "end": 528, "loc": { "start": { "line": 13, "column": 6 }, "end": { "line": 13, "column": 83 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 451, "end": 469, "loc": { "start": { "line": 13, "column": 6 }, "end": { "line": 13, "column": 24 } }, "object": { "type": "ThisExpression", "start": 451, "end": 455, "loc": { "start": { "line": 13, "column": 6 }, "end": { "line": 13, "column": 10 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 456, "end": 469, "loc": { "start": { "line": 13, "column": 11 }, "end": { "line": 13, "column": 24 } }, "name": "nativeSupport" }, "computed": false, "leadingComments": null }, "right": { "type": "BinaryExpression", "start": 472, "end": 528, "loc": { "start": { "line": 13, "column": 27 }, "end": { "line": 13, "column": 83 } }, "left": { "type": "UnaryExpression", "start": 472, "end": 512, "loc": { "start": { "line": 13, "column": 27 }, "end": { "line": 13, "column": 67 } }, "operator": "typeof", "prefix": true, "argument": { "type": "MemberExpression", "start": 479, "end": 512, "loc": { "start": { "line": 13, "column": 34 }, "end": { "line": 13, "column": 67 } }, "object": { "type": "MemberExpression", "start": 479, "end": 496, "loc": { "start": { "line": 13, "column": 34 }, "end": { "line": 13, "column": 51 } }, "object": { "type": "MemberExpression", "start": 479, "end": 490, "loc": { "start": { "line": 13, "column": 34 }, "end": { "line": 13, "column": 45 } }, "object": { "type": "MemberExpression", "start": 479, "end": 487, "loc": { "start": { "line": 13, "column": 34 }, "end": { "line": 13, "column": 42 } }, "object": { "type": "ThisExpression", "start": 479, "end": 483, "loc": { "start": { "line": 13, "column": 34 }, "end": { "line": 13,