UNPKG

awv3

Version:
1,705 lines (1,704 loc) 716 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "v4", "range": [ 7, 9 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 9 } } }, "range": [ 7, 9 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 9 } } } ], "source": { "type": "Literal", "value": "uuid-v4", "raw": "'uuid-v4'", "range": [ 15, 24 ], "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 24 } } }, "range": [ 0, 25 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 25 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "actions", "range": [ 35, 42 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 16 } } }, "imported": { "type": "Identifier", "name": "actions", "range": [ 35, 42 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 16 } } }, "range": [ 35, 42 ], "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 16 } } } ], "source": { "type": "Literal", "value": "./store/plugins", "raw": "'./store/plugins'", "range": [ 50, 67 ], "loc": { "start": { "line": 2, "column": 24 }, "end": { "line": 2, "column": 41 } } }, "range": [ 26, 68 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 42 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "elementActions", "range": [ 89, 103 ], "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 34 } } }, "imported": { "type": "Identifier", "name": "actions", "range": [ 78, 85 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 16 } } }, "range": [ 78, 103 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 34 } } } ], "source": { "type": "Literal", "value": "./store/elements", "raw": "'./store/elements'", "range": [ 111, 129 ], "loc": { "start": { "line": 3, "column": 42 }, "end": { "line": 3, "column": 60 } } }, "range": [ 69, 130 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 61 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "resourceActions", "range": [ 151, 166 ], "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 35 } } }, "imported": { "type": "Identifier", "name": "actions", "range": [ 140, 147 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 16 } } }, "range": [ 140, 166 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 35 } } } ], "source": { "type": "Literal", "value": "./store/resources", "raw": "'./store/resources'", "range": [ 174, 193 ], "loc": { "start": { "line": 4, "column": 43 }, "end": { "line": 4, "column": 62 } } }, "range": [ 131, 194 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 63 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "createObserver", "range": [ 204, 218 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 } } }, "imported": { "type": "Identifier", "name": "createObserver", "range": [ 204, 218 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 } } }, "range": [ 204, 218 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 } } } ], "source": { "type": "Literal", "value": "./helpers", "raw": "'./helpers'", "range": [ 226, 237 ], "loc": { "start": { "line": 5, "column": 31 }, "end": { "line": 5, "column": 42 } } }, "range": [ 195, 238 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 43 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "Element", "range": [ 246, 253 ], "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 14 } } }, "range": [ 246, 253 ], "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 14 } } } ], "source": { "type": "Literal", "value": "./element", "raw": "'./element'", "range": [ 259, 270 ], "loc": { "start": { "line": 6, "column": 20 }, "end": { "line": 6, "column": 31 } } }, "range": [ 239, 271 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 32 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Group", "range": [ 281, 286 ], "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 14 } } }, "imported": { "type": "Identifier", "name": "Group", "range": [ 281, 286 ], "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 14 } } }, "range": [ 281, 286 ], "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 14 } } }, { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Button", "range": [ 288, 294 ], "loc": { "start": { "line": 7, "column": 16 }, "end": { "line": 7, "column": 22 } } }, "imported": { "type": "Identifier", "name": "Button", "range": [ 288, 294 ], "loc": { "start": { "line": 7, "column": 16 }, "end": { "line": 7, "column": 22 } } }, "range": [ 288, 294 ], "loc": { "start": { "line": 7, "column": 16 }, "end": { "line": 7, "column": 22 } } }, { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Spacer", "range": [ 296, 302 ], "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 30 } } }, "imported": { "type": "Identifier", "name": "Spacer", "range": [ 296, 302 ], "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 30 } } }, "range": [ 296, 302 ], "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 30 } } }, { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Divider", "range": [ 304, 311 ], "loc": { "start": { "line": 7, "column": 32 }, "end": { "line": 7, "column": 39 } } }, "imported": { "type": "Identifier", "name": "Divider", "range": [ 304, 311 ], "loc": { "start": { "line": 7, "column": 32 }, "end": { "line": 7, "column": 39 } } }, "range": [ 304, 311 ], "loc": { "start": { "line": 7, "column": 32 }, "end": { "line": 7, "column": 39 } } } ], "source": { "type": "Literal", "value": "./elements", "raw": "'./elements'", "range": [ 319, 331 ], "loc": { "start": { "line": 7, "column": 47 }, "end": { "line": 7, "column": 59 } } }, "range": [ 272, 332 ], "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 60 } } }, { "type": "ExportDefaultDeclaration", "declaration": { "type": "ClassDeclaration", "id": { "type": "Identifier", "name": "Plugin", "range": [ 355, 361 ], "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 27 } } }, "superClass": null, "body": { "type": "ClassBody", "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "range": [ 368, 379 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 15 } } }, "value": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "session", "range": [ 380, 387 ], "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 23 } } }, { "type": "AssignmentPattern", "left": { "type": "ObjectPattern", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "type", "range": [ 391, 395 ], "loc": { "start": { "line": 10, "column": 27 }, "end": { "line": 10, "column": 31 } } }, "value": { "type": "AssignmentPattern", "operator": "=", "left": { "type": "Identifier", "name": "type", "range": [ 391, 395 ], "loc": { "start": { "line": 10, "column": 27 }, "end": { "line": 10, "column": 31 } } }, "right": { "type": "Literal", "value": "unnamed", "raw": "\"unnamed\"", "range": [ 398, 407 ], "loc": { "start": { "line": 10, "column": 34 }, "end": { "line": 10, "column": 43 } } }, "range": [ 391, 407 ], "loc": { "start": { "line": 10, "column": 27 }, "end": { "line": 10, "column": 43 } } }, "kind": "init", "method": false, "shorthand": true, "computed": false, "range": [ 391, 407 ], "loc": { "start": { "line": 10, "column": 27 }, "end": { "line": 10, "column": 43 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "name", "range": [ 409, 413 ], "loc": { "start": { "line": 10, "column": 45 }, "end": { "line": 10, "column": 49 } } }, "value": { "type": "AssignmentPattern", "operator": "=", "left": { "type": "Identifier", "name": "name", "range": [ 409, 413 ], "loc": { "start": { "line": 10, "column": 45 }, "end": { "line": 10, "column": 49 } } }, "right": { "type": "Literal", "value": "", "raw": "\"\"", "range": [ 416, 418 ], "loc": { "start": { "line": 10, "column": 52 }, "end": { "line": 10, "column": 54 } } }, "range": [ 409, 418 ], "loc": { "start": { "line": 10, "column": 45 }, "end": { "line": 10, "column": 54 } } }, "kind": "init", "method": false, "shorthand": true, "computed": false, "range": [ 409, 418 ], "loc": { "start": { "line": 10, "column": 45 }, "end": { "line": 10, "column": 54 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "title", "range": [ 420, 425 ], "loc": { "start": { "line": 10, "column": 56 }, "end": { "line": 10, "column": 61 } } }, "value": { "type": "AssignmentPattern", "operator": "=", "left": { "type": "Identifier", "name": "title", "range": [ 420, 425 ], "loc": { "start": { "line": 10, "column": 56 }, "end": { "line": 10, "column": 61 } } }, "right": { "type": "Literal", "value": "", "raw": "\"\"", "range": [ 428, 430 ], "loc": { "start": { "line": 10, "column": 64 }, "end": { "line": 10, "column": 66 } } }, "range": [ 420, 430 ], "loc": { "start": { "line": 10, "column": 56 }, "end": { "line": 10, "column": 66 } } }, "kind": "init", "method": false, "shorthand": true, "computed": false, "range": [ 420, 430 ], "loc": { "start": { "line": 10, "column": 56 }, "end": { "line": 10, "column": 66 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "resources", "range": [ 432, 441 ], "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 10, "column": 77 } } }, "value": { "type": "AssignmentPattern", "operator": "=", "left": { "type": "Identifier", "name": "resources", "range": [ 432, 441 ], "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 10, "column": 77 } } }, "right": { "type": "ObjectExpression", "properties": [], "range": [ 444, 446 ], "loc": { "start": { "line": 10, "column": 80 }, "end": { "line": 10, "column": 82 } } }, "range": [ 432, 446 ], "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 10, "column": 82 } } }, "kind": "init", "method": false, "shorthand": true, "computed": false, "range": [ 432, 446 ], "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 10, "column": 82 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "icon", "range": [ 448, 452 ], "loc": { "start": { "line": 10, "column": 84 }, "end": { "line": 10, "column": 88 } } }, "value": { "type": "AssignmentPattern", "operator": "=", "left": { "type": "Identifier", "name": "icon", "range": [ 448, 452 ], "loc": { "start": { "line": 10, "column": 84 }, "end": { "line": 10, "column": 88 } } }, "right": { "type": "Identifier", "name": "undefined", "range": [ 455, 464 ], "loc": { "start": { "line": 10, "column": 91 }, "end": { "line": 10, "column": 100 } } }, "range": [ 448, 464 ], "loc": { "start": { "line": 10, "column": 84 }, "end": { "line": 10, "column": 100 } } }, "kind": "init", "method": false, "shorthand": true, "computed": false, "range": [ 448, 464 ], "loc": { "start": { "line": 10, "column": 84 }, "end": { "line": 10, "column": 100 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "feature", "range": [ 466, 473 ], "loc": { "start": { "line": 10, "column": 102 }, "end": { "line": 10, "column": 109 } } }, "value": { "type": "AssignmentPattern", "operator": "=", "left": { "type": "Identifier", "name": "feature", "range": [ 466, 473 ], "loc": { "start": { "line": 10, "column": 102 }, "end": { "line": 10, "column": 109 } } }, "right": { "type": "Identifier", "name": "undefined", "range": [ 476, 485 ], "loc": { "start": { "line": 10, "column": 112 }, "end": { "line": 10, "column": 121 } } }, "range": [ 466, 485 ], "loc": { "start": { "line": 10, "column": 102 }, "end": { "line": 10, "column": 121 } } }, "kind": "init", "method": false, "shorthand": true, "computed": false, "range": [ 466, 485 ], "loc": { "start": { "line": 10, "column": 102 }, "end": { "line": 10, "column": 121 } } } ], "range": [ 389, 487 ], "loc": { "start": { "line": 10, "column": 25 }, "end": { "line": 10, "column": 123 } } }, "right": { "type": "ObjectExpression", "properties": [], "range": [ 490, 492 ], "loc": { "start": { "line": 10, "column": 126 }, "end": { "line": 10, "column": 128 } } }, "range": [ 389, 492 ], "loc": { "start": { "line": 10, "column": 25 }, "end": { "line": 10, "column": 128 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 504, 508 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "name": "id", "range": [ 509, 511 ], "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 15 } } }, "range": [ 504, 511 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 15 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "v4", "range": [ 514, 516 ], "loc": { "start": { "line": 11, "column": 18 }, "end": { "line": 11, "column": 20 } } }, "arguments": [], "range": [ 514, 518 ], "loc": { "start": { "line": 11, "column": 18 }, "end": { "line": 11, "column": 22 } } }, "range": [ 504, 518 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 22 } } }, "range": [ 504, 519 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 23 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 528, 532 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "name": "session", "range": [ 533, 540 ], "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 20 } } }, "range": [ 528, 540 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 20 } } }, "right": { "type": "Identifier", "name": "session", "range": [ 543, 550 ], "loc": { "start": { "line": 12, "column": 23 }, "end": { "line": 12, "column": 30 } } }, "range": [ 528, 550 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 30 } } }, "range": [ 528, 551 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 31 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 560, 564 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } }