UNPKG

svelte-parse

Version:

An increidbly relaxed svelte-parser

1,978 lines (1,977 loc) 65.2 kB
{ "type": "root", "children": [ { "type": "svelteScript", "tagName": "script", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "\n\timport { createEventDispatcher } from 'svelte';\n\timport Icon from './Icon.svelte';\n\n\t/** Binding value\n\t * @svelte-prop {Any} [selected]\n\t * */\n\texport let selected = '';\n\n\t/** Type (color) of the select\n\t * @svelte-prop {String} [type]\n\t * @values <code>is-white</code>, <code>is-black</code>, <code>is-light</code>, <code>is-dark</code>, <code>is-primary</code>, <code>is-info</code>, <code>is-success</code>, <code>is-warning</code>, <code>is-danger</code>, and any other colors you've set in the <code>$colors</code> list on Sass\n\t * */\n\texport let type = '';\n\n\t/** Text when nothing is selected\n\t * @svelte-prop {String} [placeholder]\n\t * */\n\texport let placeholder = '';\n\n\t/** Multiple Select\n\t * @svelte-prop {String} [multiple=false]\n\t * */\n\texport let multiple = false;\n\n\t/** Size of the select\n\t * @svelte-prop {String} [size]\n\t * @values <code>is-small</code>, <code>is-medium</code>, <code>is-large</code>\n\t * */\n\n\texport let size = '';\n\n\t/** Same as native size\n\t * @svelte-prop {String} [nativeSize]\n\t * */\n\texport let nativeSize;\n\n\t/** Select will be expanded (full-width)\n\t * @svelte-prop {Boolean} [expanded=false]\n\t * */\n\texport let expanded = false;\n\n\t/** Select will be rounded\n\t * @svelte-prop {Boolean} [rounded=false]\n\t * */\n\texport let rounded = false;\n\n\t/** Select value is required\n\t * @svelte-prop {Boolean} [required=false]\n\t * */\n\texport let required = false;\n\n\t/** Add the loading state to the Select\n\t * @svelte-prop {Boolean} [loading=false]\n\t * */\n\texport let loading = false;\n\n\t/** Icon name to be added\n\t * @svelte-prop {String} [icon]\n\t * */\n\n\texport let icon = '';\n\n\t/** Icon pack to use\n\t * @svelte-prop {String} [iconPack=mdi]\n\t * @values <code>mdi</code>, <code>fa</code>, <code>fas</code>, <code>far</code>, <code>fad</code>, <code>fal</code>\n\t * */\n\texport let iconPack = 'mdi';\n\n\t/** Add the disabled state to the Select\n\t * @svelte-prop {String} [disabled = false]\n\t * */\n\n\texport let disabled = false;\n\n\tconst dispatch = createEventDispatcher();\n\n\tlet focused = false;\n\tlet hovered = false;\n\n\tfunction onChange() {\n\t\tdispatch('input', selected);\n\t}\n\n\tfunction onBlur() {\n\t\tfocused = false;\n\t\tdispatch('blur');\n\t}\n\n\tfunction onHover() {\n\t\thovered = true;\n\t\tdispatch('hover');\n\t}\n\n\tfunction onFocus() {\n\t\tfocused = true;\n\t\tdispatch('focus');\n\t}\n", "position": { "start": { "line": 1, "column": 9, "offset": 8 }, "end": { "line": 99, "column": 1, "offset": 2298 } } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 99, "column": 10, "offset": 2307 } } }, { "type": "text", "value": "\n\n", "position": { "start": { "line": 99, "column": 10, "offset": 2307 }, "end": { "line": 101, "column": 1, "offset": 2309 } } }, { "type": "svelteElement", "tagName": "div", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "control", "position": { "start": { "line": 101, "column": 13, "offset": 2321 }, "end": { "line": 101, "column": 21, "offset": 2329 } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 101, "column": 6, "offset": 2314 }, "end": { "line": 101, "column": 21, "offset": 2329 } } }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 101, "column": 40, "offset": 2348 }, "end": { "line": 101, "column": 50, "offset": 2358 } }, "expression": { "type": "svelteExpression", "value": "expanded", "position": { "start": { "line": 101, "column": 41, "offset": 2349 }, "end": { "line": 101, "column": 49, "offset": 2357 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 101, "column": 22, "offset": 2330 }, "end": { "line": 101, "column": 50, "offset": 2358 } }, "specifier": "is-expanded" }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 101, "column": 72, "offset": 2380 }, "end": { "line": 101, "column": 78, "offset": 2386 } }, "expression": { "type": "svelteExpression", "value": "icon", "position": { "start": { "line": 101, "column": 73, "offset": 2381 }, "end": { "line": 101, "column": 77, "offset": 2385 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 101, "column": 51, "offset": 2359 }, "end": { "line": 101, "column": 78, "offset": 2386 } }, "specifier": "has-icons-left" } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n\t", "position": { "start": { "line": 101, "column": 79, "offset": 2387 }, "end": { "line": 102, "column": 2, "offset": 2389 } } }, { "type": "svelteElement", "tagName": "span", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "select", "position": { "start": { "line": 103, "column": 10, "offset": 2404 }, "end": {} } }, { "type": "text", "value": " ", "position": { "start": { "line": 103, "column": 16, "offset": 2410 }, "end": { "line": 103, "column": 17, "offset": 2411 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 103, "column": 17, "offset": 2411 }, "end": { "line": 103, "column": 23, "offset": 2417 } }, "expression": { "type": "svelteExpression", "value": "size", "position": { "start": { "line": 103, "column": 18, "offset": 2412 }, "end": { "line": 103, "column": 22, "offset": 2416 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 103, "column": 23, "offset": 2417 }, "end": { "line": 103, "column": 24, "offset": 2418 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 103, "column": 24, "offset": 2418 }, "end": { "line": 103, "column": 30, "offset": 2424 } }, "expression": { "type": "svelteExpression", "value": "type", "position": { "start": { "line": 103, "column": 25, "offset": 2419 }, "end": { "line": 103, "column": 29, "offset": 2423 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 103, "column": 3, "offset": 2397 }, "end": { "line": 103, "column": 31, "offset": 2425 } } }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 104, "column": 22, "offset": 2447 }, "end": { "line": 104, "column": 32, "offset": 2457 } }, "expression": { "type": "svelteExpression", "value": "expanded", "position": { "start": { "line": 104, "column": 23, "offset": 2448 }, "end": { "line": 104, "column": 31, "offset": 2456 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 104, "column": 3, "offset": 2428 }, "end": { "line": 104, "column": 32, "offset": 2457 } }, "specifier": "is-fullwidth" }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 105, "column": 20, "offset": 2477 }, "end": { "line": 105, "column": 29, "offset": 2486 } }, "expression": { "type": "svelteExpression", "value": "loading", "position": { "start": { "line": 105, "column": 21, "offset": 2478 }, "end": { "line": 105, "column": 28, "offset": 2485 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 105, "column": 3, "offset": 2460 }, "end": { "line": 105, "column": 29, "offset": 2486 } }, "specifier": "is-loading" }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 106, "column": 21, "offset": 2507 }, "end": { "line": 106, "column": 31, "offset": 2517 } }, "expression": { "type": "svelteExpression", "value": "multiple", "position": { "start": { "line": 106, "column": 22, "offset": 2508 }, "end": { "line": 106, "column": 30, "offset": 2516 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 106, "column": 3, "offset": 2489 }, "end": { "line": 106, "column": 31, "offset": 2517 } }, "specifier": "is-multiple" }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 107, "column": 20, "offset": 2537 }, "end": { "line": 107, "column": 29, "offset": 2546 } }, "expression": { "type": "svelteExpression", "value": "rounded", "position": { "start": { "line": 107, "column": 21, "offset": 2538 }, "end": { "line": 107, "column": 28, "offset": 2545 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 107, "column": 3, "offset": 2520 }, "end": { "line": 107, "column": 29, "offset": 2546 } }, "specifier": "is-rounded" }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 108, "column": 18, "offset": 2564 }, "end": { "line": 108, "column": 35, "offset": 2581 } }, "expression": { "type": "svelteExpression", "value": "selected === ''", "position": { "start": { "line": 108, "column": 19, "offset": 2565 }, "end": { "line": 108, "column": 34, "offset": 2580 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 108, "column": 3, "offset": 2549 }, "end": { "line": 108, "column": 35, "offset": 2581 } }, "specifier": "is-empty" }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 109, "column": 20, "offset": 2601 }, "end": { "line": 109, "column": 29, "offset": 2610 } }, "expression": { "type": "svelteExpression", "value": "focused", "position": { "start": { "line": 109, "column": 21, "offset": 2602 }, "end": { "line": 109, "column": 28, "offset": 2609 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 109, "column": 3, "offset": 2584 }, "end": { "line": 109, "column": 29, "offset": 2610 } }, "specifier": "is-focused" }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 110, "column": 20, "offset": 2630 }, "end": { "line": 110, "column": 29, "offset": 2639 } }, "expression": { "type": "svelteExpression", "value": "hovered", "position": { "start": { "line": 110, "column": 21, "offset": 2631 }, "end": { "line": 110, "column": 28, "offset": 2638 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 110, "column": 3, "offset": 2613 }, "end": { "line": 110, "column": 29, "offset": 2639 } }, "specifier": "is-hovered" }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 111, "column": 21, "offset": 2660 }, "end": { "line": 111, "column": 31, "offset": 2670 } }, "expression": { "type": "svelteExpression", "value": "required", "position": { "start": { "line": 111, "column": 22, "offset": 2661 }, "end": { "line": 111, "column": 30, "offset": 2669 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 111, "column": 3, "offset": 2642 }, "end": { "line": 111, "column": 31, "offset": 2670 } }, "specifier": "is-required" } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n\t\t", "position": { "start": { "line": 111, "column": 32, "offset": 2671 }, "end": { "line": 112, "column": 3, "offset": 2674 } } }, { "type": "svelteBranchingBlock", "name": "if", "branches": [ { "type": "svelteBranch", "name": "if", "expression": { "type": "svelteExpression", "value": "!multiple", "position": { "start": { "line": 112, "column": 8, "offset": 2679 }, "end": { "line": 112, "column": 17, "offset": 2688 } } }, "children": [ { "type": "text", "value": "\n\t\t\t", "position": { "start": { "line": 112, "column": 18, "offset": 2689 }, "end": { "line": 113, "column": 4, "offset": 2693 } } }, { "type": "svelteElement", "tagName": "select", "properties": [ { "type": "svelteDirective", "name": "bind", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 114, "column": 16, "offset": 2716 }, "end": { "line": 114, "column": 26, "offset": 2726 } }, "expression": { "type": "svelteExpression", "value": "selected", "position": { "start": { "line": 114, "column": 17, "offset": 2717 }, "end": { "line": 114, "column": 25, "offset": 2725 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 114, "column": 5, "offset": 2705 }, "end": { "line": 114, "column": 26, "offset": 2726 } }, "specifier": "value" }, { "type": "svelteProperty", "name": "size", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 115, "column": 10, "offset": 2736 }, "end": { "line": 115, "column": 22, "offset": 2748 } }, "expression": { "type": "svelteExpression", "value": "nativeSize", "position": { "start": { "line": 115, "column": 11, "offset": 2737 }, "end": { "line": 115, "column": 21, "offset": 2747 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 115, "column": 5, "offset": 2731 }, "end": { "line": 115, "column": 22, "offset": 2748 } } }, { "type": "svelteProperty", "name": "disabled", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 116, "column": 14, "offset": 2762 }, "end": { "line": 116, "column": 42, "offset": 2790 } }, "expression": { "type": "svelteExpression", "value": "disabled ? 'disabled' : ''", "position": { "start": { "line": 116, "column": 15, "offset": 2763 }, "end": { "line": 116, "column": 41, "offset": 2789 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 116, "column": 5, "offset": 2753 }, "end": { "line": 116, "column": 42, "offset": 2790 } } }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 117, "column": 15, "offset": 2805 }, "end": { "line": 117, "column": 25, "offset": 2815 } }, "expression": { "type": "svelteExpression", "value": "onChange", "position": { "start": { "line": 117, "column": 16, "offset": 2806 }, "end": { "line": 117, "column": 24, "offset": 2814 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 117, "column": 5, "offset": 2795 }, "end": { "line": 117, "column": 25, "offset": 2815 } }, "specifier": "change" }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 118, "column": 13, "offset": 2828 }, "end": { "line": 118, "column": 21, "offset": 2836 } }, "expression": { "type": "svelteExpression", "value": "onBlur", "position": { "start": { "line": 118, "column": 14, "offset": 2829 }, "end": { "line": 118, "column": 20, "offset": 2835 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 118, "column": 5, "offset": 2820 }, "end": { "line": 118, "column": 21, "offset": 2836 } }, "specifier": "blur" }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 119, "column": 14, "offset": 2850 }, "end": { "line": 119, "column": 23, "offset": 2859 } }, "expression": { "type": "svelteExpression", "value": "onHover", "position": { "start": { "line": 119, "column": 15, "offset": 2851 }, "end": { "line": 119, "column": 22, "offset": 2858 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 119, "column": 5, "offset": 2841 }, "end": { "line": 119, "column": 23, "offset": 2859 } }, "specifier": "hover" }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 120, "column": 14, "offset": 2873 }, "end": { "line": 120, "column": 23, "offset": 2882 } }, "expression": { "type": "svelteExpression", "value": "onFocus", "position": { "start": { "line": 120, "column": 15, "offset": 2874 }, "end": { "line": 120, "column": 22, "offset": 2881 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 120, "column": 5, "offset": 2864 }, "end": { "line": 120, "column": 23, "offset": 2882 } }, "specifier": "focus" } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n\t\t\t\t", "position": { "start": { "line": 120, "column": 24, "offset": 2883 }, "end": { "line": 121, "column": 5, "offset": 2888 } } }, { "type": "svelteBranchingBlock", "name": "if", "branches": [ { "type": "svelteBranch", "name": "if", "expression": { "type": "svelteExpression", "value": "placeholder && selected === ''", "position": { "start": { "line": 121, "column": 10, "offset": 2893 }, "end": { "line": 121, "column": 40, "offset": 2923 } } }, "children": [ { "type": "text", "value": "\n\t\t\t\t\t", "position": { "start": { "line": 121, "column": 41, "offset": 2924 }, "end": { "line": 122, "column": 6, "offset": 2930 } } }, { "type": "svelteElement", "tagName": "option", "properties": [ { "type": "svelteProperty", "name": "value", "value": [ { "type": "text", "value": "x", "position": { "start": { "line": 122, "column": 21, "offset": 2945 }, "end": { "line": 122, "column": 23, "offset": 2947 } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 122, "column": 14, "offset": 2938 }, "end": { "line": 122, "column": 23, "offset": 2947 } } }, { "type": "svelteProperty", "name": "disabled", "value": [], "modifiers": [], "shorthand": "boolean", "position": { "start": { "line": 122, "column": 24, "offset": 2948 }, "end": { "line": 122, "column": 32, "offset": 2956 } } }, { "type": "svelteProperty", "name": "hidden", "value": [], "modifiers": [], "shorthand": "boolean", "position": { "start": { "line": 122, "column": 33, "offset": 2957 }, "end": { "line": 122, "column": 39, "offset": 2963 } } } ], "selfClosing": false, "children": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 122, "column": 40, "offset": 2964 }, "end": { "line": 122, "column": 53, "offset": 2977 } }, "expression": { "type": "svelteExpression", "value": "placeholder", "position": { "start": { "line": 122, "column": 41, "offset": 2965 }, "end": { "line": 122, "column": 52, "offset": 2976 } } } } ], "position": { "start": { "line": 122, "column": 6, "offset": 2930 }, "end": { "line": 122, "column": 62, "offset": 2986 } } }, { "type": "text", "value": "\n\t\t\t\t", "position": { "start": { "line": 122, "column": 62, "offset": 2986 }, "end": { "line": 123, "column": 5, "offset": 2991 } } } ], "position": { "start": { "line": 121, "column": 5, "offset": 2888 }, "end": { "line": 123, "column": 5, "offset": 2991 } } } ], "position": { "start": { "line": 121, "column": 5, "offset": 2888 }, "end": { "line": 123, "column": 10, "offset": 2996 } } }, { "type": "text", "value": "\n\t\t\t\t", "position": { "start": { "line": 123, "column": 10, "offset": 2996 }, "end": { "line": 124, "column": 5, "offset": 3001 } } }, { "type": "svelteElement", "tagName": "slot", "properties": [], "selfClosing": true, "children": [], "position": { "start": { "line": 124, "column": 5, "offset": 3001 }, "end": { "line": 124, "column": 13, "offset": 3009 } } }, { "type": "text", "value": "\n\t\t\t", "position": { "start": { "line": 124, "column": 13, "offset": 3009 }, "end": { "line": 125, "column": 4, "offset": 3013 } } } ], "position": { "start": { "line": 113, "column": 4, "offset": 2693 }, "end": { "line": 125, "column": 13, "offset": 3022 } } }, { "type": "text", "value": "\n\t\t", "position": { "start": { "line": 125, "column": 13, "offset": 3022 }, "end": { "line": 126, "column": 3, "offset": 3025 } } } ], "position": { "start": { "line": 112, "column": 3, "offset": 2674 }, "end": { "line": 126, "column": 3, "offset": 3025 } } }, { "type": "svelteBranch", "name": "else", "expression": { "type": "svelteExpression", "value": "" }, "children": [ { "type": "text", "value": "\n\t\t\t", "position": { "start": { "line": 126, "column": 10, "offset": 3032 }, "end": { "line": 127, "column": 4, "offset": 3036 } } }, { "type": "svelteElement", "tagName": "select", "properties": [ { "type": "svelteDirective", "name": "bind", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 128, "column": 16, "offset": 3059 }, "end": { "line": 128, "column": 26, "offset": 3069 } }, "expression": { "type": "svelteExpression", "value": "selected", "position": { "start": { "line": 128, "column": 17, "offset": 3060 }, "end": { "line": 128, "column": 25, "offset": 3068 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 128, "column": 5, "offset": 3048 }, "end": { "line": 128, "column": 26, "offset": 3069 } }, "specifier": "value" }, { "type": "svelteProperty", "name": "multiple", "value": [], "modifiers": [], "shorthand": "boolean", "position": { "start": { "line": 129, "column": 5, "offset": 3074 }, "end": { "line": 129, "column": 13, "offset": 3082 } } }, { "type": "svelteProperty", "name": "size", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 130, "column": 10, "offset": 3092 }, "end": { "line": 130, "column": 22, "offset": 3104 } }, "expression": { "type": "svelteExpression", "value": "nativeSize", "position": { "start": { "line": 130, "column": 11, "offset": 3093 }, "end": { "line": 130, "column": 21, "offset": 3103 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 130, "column": 5, "offset": 3087 }, "end": { "line": 130, "column": 22, "offset": 3104 } } }, { "type": "svelteProperty", "name": "disabled", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 131, "column": 14, "offset": 3118 }, "end": { "line": 131, "column": 42, "offset": 3146 } }, "expression": { "type": "svelteExpression", "value": "disabled ? 'disabled' : ''", "position": { "start": { "line": 131, "column": 15, "offset": 3119 }, "end": { "line": 131, "column": 41, "offset": 3145 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 131, "column": 5, "offset": 3109 }, "end": { "line": 131, "column": 42, "offset": 3146 } } }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 132, "column": 15, "offset": 3161 }, "end": { "line": 132, "column": 25, "offset": 3171 } }, "expression": { "type": "svelteExpression", "value": "onChange", "position": { "start": { "line": 132, "column": 16, "offset": 3162 }, "end": { "line": 132, "column": 24, "offset": 3170 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 132, "column": 5, "offset": 3151 }, "end": { "line": 132, "column": 25, "offset": 3171 } }, "specifier": "change" }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 133, "column": 13, "offset": 3184 }, "end": { "line": 133, "column": 21, "offset": 3192 } }, "expression": { "type": "svelteExpression", "value": "onBlur", "position": { "start": { "line": 133, "column": 14, "offset": 3185 }, "end": { "line": 133, "column": 20, "offset": 3191 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 133, "column": 5, "offset": 3176 }, "end": { "line": 133, "column": 21, "offset": 3192 } }, "specifier": "blur" }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 134, "column": 14, "offset": 3206 }, "end": { "line": 134, "column": 23, "offset": 3215 } }, "expression": { "type": "svelteExpression", "value": "onHover", "position": { "start": { "line": 134, "column": 15, "offset": 3207 }, "end": { "line": 134, "column": 22, "offset": 3214 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 134, "column": 5, "offset": 3197 }, "end": { "line": 134, "column": 23, "offset": 3215 } }, "specifier": "hover" }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 135, "column": 14, "offset": 3229 }, "end": { "line": 135, "column": 23, "offset": 3238 } }, "expression": { "type": "svelteExpression", "value": "onFocus", "position": { "start": { "line": 135, "column": 15, "offset": 3230 }, "end": { "line": 135, "column": 22, "offset": 3237 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 135, "column": 5, "offset": 3220 }, "end": { "line": 135, "column": 23, "offset": 3238 } }, "specifier": "focus" } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n\t\t\t\t", "position": { "start": { "line": 135, "column": 24, "offset": 3239 }, "end": { "line": 136, "column": 5, "offset": 3244 } } }, { "type": "svelteBranchingBlock", "name": "if", "branches": [ { "type": "svelteBranch", "name": "if", "expression": { "type": "svelteExpression", "value": "placeholder && selected === ''", "position": { "start": { "line": 136, "column": 10, "offset": 3249 }, "end": { "line": 136, "column": 40, "offset": 3279 } } }, "children": [ { "type": "text", "value": "\n\t\t\t\t\t", "position": { "start": { "line": 136, "column": 41, "offset": 3280 }, "end": { "line": 137, "column": 6,