rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,343 lines • 55.2 kB
JSON
{
"type": "Program",
"start": 0,
"end": 501,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 24,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 40
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 10,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 10
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 10,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 10
}
},
"name": "map"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 16,
"end": 39,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 39
}
},
"value": "lodash/collection/map",
"rawValue": "lodash/collection/map",
"raw": "\"lodash/collection/map\""
}
},
{
"type": "VariableDeclaration",
"start": 42,
"end": 58,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 16
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 46,
"end": 57,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 15
}
},
"id": {
"type": "Identifier",
"start": 46,
"end": 47,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 5
}
},
"name": "_"
},
"init": {
"type": "ObjectExpression",
"start": 50,
"end": 57,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 15
}
},
"properties": [
{
"type": "Property",
"start": 52,
"end": 55,
"loc": {
"start": {
"line": 3,
"column": 10
},
"end": {
"line": 3,
"column": 13
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 52,
"end": 55,
"loc": {
"start": {
"line": 3,
"column": 10
},
"end": {
"line": 3,
"column": 13
}
},
"name": "map"
},
"kind": "init",
"value": {
"type": "Identifier",
"start": 52,
"end": 55,
"loc": {
"start": {
"line": 3,
"column": 10
},
"end": {
"line": 3,
"column": 13
}
},
"name": "map"
}
}
]
}
}
],
"kind": "let",
"trailingComments": [
{
"type": "Block",
"value": "*\n * Must return an object w/ name and date, and optional trackers []\n ",
"start": 60,
"end": 135,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
},
"range": [
60,
135
]
}
]
},
{
"type": "ExportDefaultDeclaration",
"start": 136,
"end": 500,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 23,
"column": 1
}
},
"declaration": {
"type": "ObjectExpression",
"start": 151,
"end": 500,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 23,
"column": 1
}
},
"properties": [
{
"type": "Property",
"start": 155,
"end": 498,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 22,
"column": 3
}
},
"method": true,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 155,
"end": 161,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 9,
"column": 8
}
},
"name": "search",
"leadingComments": null
},
"kind": "init",
"value": {
"type": "FunctionExpression",
"start": 161,
"end": 498,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 22,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 162,
"end": 166,
"loc": {
"start": {
"line": 9,
"column": 9
},
"end": {
"line": 9,
"column": 13
}
},
"name": "data"
}
],
"body": {
"type": "BlockStatement",
"start": 168,
"end": 498,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 22,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 174,
"end": 202,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 32
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 178,
"end": 201,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 31
}
},
"id": {
"type": "Identifier",
"start": 178,
"end": 183,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 13
}
},
"name": "place"
},
"init": {
"type": "MemberExpression",
"start": 186,
"end": 201,
"loc": {
"start": {
"line": 10,
"column": 16
},
"end": {
"line": 10,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 186,
"end": 195,
"loc": {
"start": {
"line": 10,
"column": 16
},
"end": {
"line": 10,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 186,
"end": 192,
"loc": {
"start": {
"line": 10,
"column": 16
},
"end": {
"line": 10,
"column": 22
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 193,
"end": 195,
"loc": {
"start": {
"line": 10,
"column": 23
},
"end": {
"line": 10,
"column": 25
}
},
"name": "lp"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 196,
"end": 201,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 10,
"column": 31
}
},
"name": "place"
},
"computed": false
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 208,
"end": 292,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 88
}
},
"expression": {
"type": "AssignmentExpression",
"start": 208,
"end": 291,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 87
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 208,
"end": 225,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 21
}
},
"object": {
"type": "MemberExpression",
"start": 208,
"end": 220,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 208,
"end": 212,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 8
}
},
"name": "data"
},
"property": {
"type": "Identifier",
"start": 213,
"end": 220,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 12,
"column": 16
}
},
"name": "booking"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 221,
"end": 225,
"loc": {
"start": {
"line": 12,
"column": 17
},
"end": {
"line": 12,
"column": 21
}
},
"name": "city"
},
"computed": false
},
"right": {
"type": "TemplateLiteral",
"start": 228,
"end": 291,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 87
}
},
"expressions": [
{
"type": "MemberExpression",
"start": 231,
"end": 250,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 46
}
},
"object": {
"type": "Identifier",
"start": 231,
"end": 236,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 32
}
},
"name": "place"
},
"property": {
"type": "Identifier",
"start": 237,
"end": 250,
"loc": {
"start": {
"line": 12,
"column": 33
},
"end": {
"line": 12,
"column": 46
}
},
"name": "continentName"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 254,
"end": 271,
"loc": {
"start": {
"line": 12,
"column": 50
},
"end": {
"line": 12,
"column": 67
}
},
"object": {
"type": "Identifier",
"start": 254,
"end": 259,
"loc": {
"start": {
"line": 12,
"column": 50
},
"end": {
"line": 12,
"column": 55
}
},
"name": "place"
},
"property": {
"type": "Identifier",
"start": 260,
"end": 271,
"loc": {
"start": {
"line": 12,
"column": 56
},
"end": {
"line": 12,
"column": 67
}
},
"name": "countryName"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 275,
"end": 289,
"loc": {
"start": {
"line": 12,
"column": 71
},
"end": {
"line": 12,
"column": 85
}
},
"object": {
"type": "Identifier",
"start": 275,
"end": 280,
"loc": {
"start": {
"line": 12,
"column": 71
},
"end": {
"line": 12,
"column": 76
}
},
"name": "place"
},
"property": {
"type": "Identifier",
"start": 281,
"end": 289,
"loc": {
"start": {
"line": 12,
"column": 77
},
"end": {
"line": 12,
"column": 85
}
},
"name": "cityName"
},
"computed": false
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 229,
"end": 229,
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 25
}
},
"value": {
"raw": "",
"cooked": ""
},
"tail": false
},
{
"type": "TemplateElement",
"start": 251,
"end": 252,
"loc": {
"start": {
"line": 12,
"column": 47
},
"end": {
"line": 12,
"column": 48
}
},
"value": {
"raw": ":",
"cooked": ":"
},
"tail": false
},
{
"type": "TemplateElement",
"start": 272,
"end": 273,
"loc": {
"start": {
"line": 12,
"column": 68
},
"end": {
"line": 12,
"column": 69
}
},
"value": {
"raw": ":",
"cooked": ":"
},
"tail": false
},
{
"type": "TemplateElement",
"start": 290,
"end": 290,
"loc": {
"start": {
"line": 12,
"column": 86
},
"end": {
"line": 12,
"column": 86
}
},
"value": {
"raw": "",
"cooked": ""
},
"tail": true
}
]
}
}
},
{
"type": "VariableDeclaration",
"start": 298,
"end": 398,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 16,
"column": 17
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 302,
"end": 397,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 16,
"column": 16
}
},
"id": {
"type": "Identifier",
"start": 302,
"end": 312,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 18
}
},
"name": "serialized"
},
"init": {
"type": "CallExpression",
"start": 315,
"end": 397,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 16,
"column": 16
}
},
"callee": {
"type": "MemberExpression",
"start": 315,
"end": 392,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 16,
"column": 11
}
},
"object": {
"type": "CallExpression",
"start": 315,
"end": 387,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 16,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 315,
"end": 320,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 315,
"end": 316,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 22
}
},
"name": "_"
},
"property": {
"type": "Identifier",
"start": 317,
"end": 320,
"loc": {
"start": {
"line": 14,
"column": 23
},
"end": {
"line": 14,
"column": 26
}
},
"name": "map"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 321,
"end": 333,
"loc": {
"start": {
"line": 14,
"column": 27
},
"end": {
"line": 14,
"column": 39
}
},
"object": {
"type": "Identifier",
"start": 321,
"end": 325,
"loc": {
"start": {
"line": 14,
"column": 27
},
"end": {
"line": 14,
"column": 31
}
},
"name": "data"
},
"property": {
"type": "Identifier",
"start": 326,
"end": 333,
"loc": {
"start": {
"line": 14,
"column": 32
},
"end": {
"line": 14,
"column": 39
}
},
"name": "booking"
},
"computed": false
},
{
"type": "ArrowFunctionExpression",
"start": 335,
"end": 386,
"loc": {
"start": {
"line": 14,
"column": 41
},
"end": {
"line": 16,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 336,
"end": 339,
"loc": {
"start": {
"line": 14,
"column": 42
},
"end": {
"line": 14,
"column": 45
}
},
"name": "val"
},
{
"type": "Identifier",
"start": 341,
"end": 344,
"loc": {
"start": {
"line": 14,
"column": 47
},
"end": {
"line": 14,
"column": 50
}
},
"name": "key"
}
],
"body": {
"type": "BlockStatement",
"start": 349,
"end": 386,
"loc": {
"start": {
"line": 14,
"column": 55
},
"end": {
"line": 16,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 357,
"end": 380,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 29
}
},
"argument": {
"type": "TemplateLiteral",
"start": 364,
"end": 379,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 28
}
},
"expressions": [
{
"type": "Identifier",
"start": 367,
"end": 370,
"loc": {
"start": {
"line": 15,
"column": 16
},
"end": {
"line": 15,
"column": 19
}
},
"name": "key"
},
{
"type": "Identifier",
"start": 374,
"end": 377,
"loc": {
"start": {
"line": 15,
"column": 23
},
"end": {
"line": 15,
"column": 26
}
},
"name": "val"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 365,
"end": 365,
"loc": {
"start": {
"line": 15,
"column": 14
},
"end": {
"line": 15,
"column": 14
}
},
"value": {
"raw": "",
"cooked": ""
},
"tail": false
},
{
"type": "TemplateElement",
"start": 371,
"end": 372,
"loc": {
"start": {
"line": 15,
"column": 20
},
"end": {
"line": 15,
"column": 21
}
},
"value": {
"raw": "=",
"cooked": "="
},
"tail": false
},
{
"type": "TemplateElement",
"start": 378,
"end": 378,
"loc": {
"start": {
"line": 15,
"column": 27
},
"end": {
"line": 15,
"column": 27
}
},
"value": {
"raw": "",
"cooked": ""
},
"tail": true
}
]
}
}
]
}
}
]
},
"property": {
"type": "Identifier",
"start": 388,
"end": 392,
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 16,
"column": 11
}
},
"name": "join"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 393,
"end": 396,
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 15
}
},
"value": "&",
"rawValue": "&",
"raw": "\"&\""
}
]
}
}
],
"kind": "let"
},
{
"type": "ReturnStatement",
"start": 404,
"end": 494,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 21,
"column": 6
}
},
"argument": {
"type": "ObjectExpression",
"start": 411,
"end": 493,
"loc": {
"start": {
"line": 18,
"column": 11
},
"end": {
"line": 21,
"column": 5
}
},
"properties": [
{
"type": "Property",
"start": 419,
"end": 441,
"loc": {
"start": {
"line": 19,
"column": 6
},
"end": {
"line": 19,
"column": 28
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 419,
"end": 423,
"loc": {
"start": {
"line": 19,
"column": 6
},
"end": {
"line": 19,
"column": 10
}
},
"name": "name"
},
"value": {
"type": "Literal",
"start": 425,
"end": 441,
"loc": {
"start": {
"line": 19,
"column": 12
},
"end": {
"line": 19,
"column": 28
}
},
"value": "Partner Search",
"rawValue": "Partner Search",
"raw": "\"Partner Search\""
},
"kind": "init"
},
{
"type": "Property",
"start": 450,
"end": 487,
"loc": {
"start": {
"line": 20,
"column": 6
},
"end": {
"line": 20,
"column": 43
}
},
"method": false,
"shorthand": fa