UNPKG

svelte-parse

Version:

An increidbly relaxed svelte-parser

2,069 lines 65.8 kB
{ "type": "root", "children": [ { "type": "svelteScript", "tagName": "script", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "\n import { createEventDispatcher, onMount, getContext, tick } from 'svelte'\n import { omit, getEventsAction } from '../utils'\n import { current_component } from 'svelte/internal'\n\t\n import Icon from './Icon.svelte'\n\n /** Binding value\n * @svelte-prop {String|Number} [value]\n * */\n export let value = ''\n\n /** Input type, or <code>textarea</code>\n * @svelte-prop {String} [type=text]\n * @values Any native type, <code>textarea</code>\n * */\n export let type = 'text'\n\n /** Size of input\n * @svelte-prop {String} [size]\n * @values $$sizes$$\n * */\n export let size = ''\n\n /** Makes input full-width when inside a grouped or addon field\n * @svelte-prop {boolean} expanded=false\n * */\n export let expanded = false\n\n /** Show the password reveal toggle button\n * @svelte-prop {boolean} passwordReveal=false\n * */\n export let passwordReveal = false\n\n /** Set input maxlength and show a counter\n * @svelte-prop {Number} [maxlength]\n * */\n export let maxlength = null\n\n /** Show the character counter when <code>maxlength<code> is set\n * @svelte-prop {boolean} [hasCounter=true]\n * */\n export let hasCounter = true\n\n /** Show loading indicator\n * @svelte-prop {boolean} [loading=false]\n * */\n export let loading = false\n\n /** Show this icon on left side of input\n * @svelte-prop {String} [icon]\n * */\n export let icon = ''\n\n /** Fontawesome icon pack to use. By default the <code>Icon</code> component uses <code>fas</code>\n * @svelte-prop {String} [iconPack]\n * @values <code>fas</code>, <code>fab</code>, etc...\n * */\n export let iconPack = ''\n\n /** Input is disabled\n * @svelte-prop {boolean} [disabled=false]\n * */\n export let disabled = false\n\n let input\n let isFocused\n let isPasswordVisible = false\n let newType = 'text'\n let statusType = ''\n let statusTypeIcon = ''\n let valueLength = null\n\n const dispatch = createEventDispatcher();\n\n const getType = getContext('type')\n if (getType) statusType = getType() || ''\n\n $: props = {\n ...omit($$props, 'class', 'value', 'type', 'size', 'passwordReveal', 'hasCounter', 'loading', 'disabled'),\n }\n $: hasIconLeft = !!icon\n $: hasIconRight = passwordReveal || loading || statusType\n $: passwordVisibleIcon = isPasswordVisible ? 'eye-slash' : 'eye'\n $: {\n switch (statusType) {\n case 'is-success':\n statusTypeIcon = 'check'\n break\n case 'is-danger':\n statusTypeIcon = 'exclamation-circle'\n break\n case 'is-info':\n statusTypeIcon = 'info-circle'\n break\n case 'is-warning':\n statusTypeIcon = 'exclamation-triangle'\n break\n }\n }\n $: {\n if (typeof value === 'string') {\n valueLength = value.length\n } else if (typeof value === 'number') {\n valueLength = value.toString().length\n } else {\n valueLength = 0\n }\n }\n\n onMount(() => {\n newType = type\n })\n\n async function togglePasswordVisibility() {\n isPasswordVisible = !isPasswordVisible\n newType = isPasswordVisible ? 'text' : 'password'\n await tick()\n input.focus()\n }\n\n const onInput = e => {\n value = e.target.value\n $$props.value = value\n\n dispatch('input', e)\n }\n const onFocus = () => (isFocused = true)\n const onBlur = () => (isFocused = false)\n\n const events = getEventsAction(current_component);\n", "position": { "start": { "line": 1, "column": 9, "offset": 8 }, "end": { "line": 132, "column": 1, "offset": 3337 } } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 132, "column": 10, "offset": 3346 } } }, { "type": "text", "value": "\n\n", "position": { "start": { "line": 132, "column": 10, "offset": 3346 }, "end": { "line": 134, "column": 1, "offset": 3348 } } }, { "type": "svelteStyle", "tagName": "style", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "\n .control .help.counter {\n float: right;\n margin-left: 0.5em;\n }\n", "position": { "start": { "line": 134, "column": 8, "offset": 3355 }, "end": { "line": 139, "column": 1, "offset": 3429 } } } ], "position": { "start": { "line": 134, "column": 1, "offset": 3348 }, "end": { "line": 139, "column": 9, "offset": 3437 } } }, { "type": "text", "value": "\n\n", "position": { "start": { "line": 139, "column": 9, "offset": 3437 }, "end": { "line": 141, "column": 1, "offset": 3439 } } }, { "type": "svelteElement", "tagName": "div", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "control", "position": { "start": { "line": 141, "column": 13, "offset": 3451 }, "end": { "line": 141, "column": 21, "offset": 3459 } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 141, "column": 6, "offset": 3444 }, "end": { "line": 141, "column": 21, "offset": 3459 } } }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 141, "column": 43, "offset": 3481 }, "end": { "line": 141, "column": 56, "offset": 3494 } }, "expression": { "type": "svelteExpression", "value": "hasIconLeft", "position": { "start": { "line": 141, "column": 44, "offset": 3482 }, "end": { "line": 141, "column": 55, "offset": 3493 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 141, "column": 22, "offset": 3460 }, "end": { "line": 141, "column": 56, "offset": 3494 } }, "specifier": "has-icons-left" }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 141, "column": 79, "offset": 3517 }, "end": { "line": 141, "column": 93, "offset": 3531 } }, "expression": { "type": "svelteExpression", "value": "hasIconRight", "position": { "start": { "line": 141, "column": 80, "offset": 3518 }, "end": { "line": 141, "column": 92, "offset": 3530 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 141, "column": 57, "offset": 3495 }, "end": { "line": 141, "column": 93, "offset": 3531 } }, "specifier": "has-icons-right" }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 141, "column": 111, "offset": 3549 }, "end": { "line": 141, "column": 120, "offset": 3558 } }, "expression": { "type": "svelteExpression", "value": "loading", "position": { "start": { "line": 141, "column": 112, "offset": 3550 }, "end": { "line": 141, "column": 119, "offset": 3557 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 141, "column": 94, "offset": 3532 }, "end": { "line": 141, "column": 120, "offset": 3558 } }, "specifier": "is-loading" }, { "type": "svelteDirective", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 141, "column": 139, "offset": 3577 }, "end": { "line": 141, "column": 149, "offset": 3587 } }, "expression": { "type": "svelteExpression", "value": "expanded", "position": { "start": { "line": 141, "column": 140, "offset": 3578 }, "end": { "line": 141, "column": 148, "offset": 3586 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 141, "column": 121, "offset": 3559 }, "end": { "line": 141, "column": 149, "offset": 3587 } }, "specifier": "is-expanded" } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n\n ", "position": { "start": { "line": 141, "column": 150, "offset": 3588 }, "end": { "line": 143, "column": 3, "offset": 3592 } } }, { "type": "svelteBranchingBlock", "name": "if", "branches": [ { "type": "svelteBranch", "name": "if", "expression": { "type": "svelteExpression", "value": "type !== 'textarea'", "position": { "start": { "line": 143, "column": 8, "offset": 3597 }, "end": { "line": 143, "column": 27, "offset": 3616 } } }, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 143, "column": 28, "offset": 3617 }, "end": { "line": 144, "column": 5, "offset": 3622 } } }, { "type": "svelteElement", "tagName": "input", "properties": [ { "type": "svelteDirective", "name": "use", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 145, "column": 7, "offset": 3635 }, "end": { "line": 145, "column": 17, "offset": 3645 } }, "specifier": "events" }, { "type": "svelteProperty", "name": "...props", "value": [ { "type": "svelteDynamicContent", "expression": { "type": "svelteExpression", "value": "...props", "position": { "start": { "line": 146, "column": 8, "offset": 3653 }, "end": { "line": 146, "column": 16, "offset": 3661 } } }, "position": { "start": { "line": 146, "column": 7, "offset": 3652 }, "end": { "line": 146, "column": 16, "offset": 3661 } } } ], "modifiers": [], "shorthand": "expression", "position": { "start": { "line": 146, "column": 7, "offset": 3652 }, "end": { "line": 146, "column": 16, "offset": 3661 } } }, { "type": "svelteProperty", "name": "type", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 147, "column": 12, "offset": 3674 }, "end": { "line": 147, "column": 21, "offset": 3683 } }, "expression": { "type": "svelteExpression", "value": "newType", "position": { "start": { "line": 147, "column": 13, "offset": 3675 }, "end": { "line": 147, "column": 20, "offset": 3682 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 147, "column": 7, "offset": 3669 }, "end": { "line": 147, "column": 21, "offset": 3683 } } }, { "type": "svelteProperty", "name": "value", "value": [ { "type": "svelteDynamicContent", "expression": { "type": "svelteExpression", "value": "value", "position": { "start": { "line": 148, "column": 8, "offset": 3691 }, "end": { "line": 148, "column": 13, "offset": 3696 } } }, "position": { "start": { "line": 148, "column": 7, "offset": 3690 }, "end": { "line": 148, "column": 13, "offset": 3696 } } } ], "modifiers": [], "shorthand": "expression", "position": { "start": { "line": 148, "column": 7, "offset": 3690 }, "end": { "line": 148, "column": 13, "offset": 3696 } } }, { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "input", "position": { "start": { "line": 149, "column": 14, "offset": 3711 }, "end": {} } }, { "type": "text", "value": " ", "position": { "start": { "line": 149, "column": 19, "offset": 3716 }, "end": { "line": 149, "column": 20, "offset": 3717 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 149, "column": 20, "offset": 3717 }, "end": { "line": 149, "column": 32, "offset": 3729 } }, "expression": { "type": "svelteExpression", "value": "statusType", "position": { "start": { "line": 149, "column": 21, "offset": 3718 }, "end": { "line": 149, "column": 31, "offset": 3728 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 149, "column": 32, "offset": 3729 }, "end": { "line": 149, "column": 33, "offset": 3730 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 149, "column": 33, "offset": 3730 }, "end": { "line": 149, "column": 39, "offset": 3736 } }, "expression": { "type": "svelteExpression", "value": "size", "position": { "start": { "line": 149, "column": 34, "offset": 3731 }, "end": { "line": 149, "column": 38, "offset": 3735 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 149, "column": 39, "offset": 3736 }, "end": { "line": 149, "column": 40, "offset": 3737 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 149, "column": 40, "offset": 3737 }, "end": { "line": 149, "column": 61, "offset": 3758 } }, "expression": { "type": "svelteExpression", "value": "$$props.class || ''", "position": { "start": { "line": 149, "column": 41, "offset": 3738 }, "end": { "line": 149, "column": 60, "offset": 3757 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 149, "column": 7, "offset": 3704 }, "end": { "line": 149, "column": 62, "offset": 3759 } } }, { "type": "svelteDirective", "name": "bind", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 150, "column": 17, "offset": 3776 }, "end": { "line": 150, "column": 24, "offset": 3783 } }, "expression": { "type": "svelteExpression", "value": "input", "position": { "start": { "line": 150, "column": 18, "offset": 3777 }, "end": { "line": 150, "column": 23, "offset": 3782 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 150, "column": 7, "offset": 3766 }, "end": { "line": 150, "column": 24, "offset": 3783 } }, "specifier": "this" }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 151, "column": 16, "offset": 3799 }, "end": { "line": 151, "column": 25, "offset": 3808 } }, "expression": { "type": "svelteExpression", "value": "onInput", "position": { "start": { "line": 151, "column": 17, "offset": 3800 }, "end": { "line": 151, "column": 24, "offset": 3807 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 151, "column": 7, "offset": 3790 }, "end": { "line": 151, "column": 25, "offset": 3808 } }, "specifier": "input" }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 152, "column": 16, "offset": 3824 }, "end": { "line": 152, "column": 25, "offset": 3833 } }, "expression": { "type": "svelteExpression", "value": "onFocus", "position": { "start": { "line": 152, "column": 17, "offset": 3825 }, "end": { "line": 152, "column": 24, "offset": 3832 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 152, "column": 7, "offset": 3815 }, "end": { "line": 152, "column": 25, "offset": 3833 } }, "specifier": "focus" }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 153, "column": 15, "offset": 3848 }, "end": { "line": 153, "column": 23, "offset": 3856 } }, "expression": { "type": "svelteExpression", "value": "onBlur", "position": { "start": { "line": 153, "column": 16, "offset": 3849 }, "end": { "line": 153, "column": 22, "offset": 3855 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 153, "column": 7, "offset": 3840 }, "end": { "line": 153, "column": 23, "offset": 3856 } }, "specifier": "blur" }, { "type": "svelteDirective", "name": "on", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 154, "column": 7, "offset": 3863 }, "end": { "line": 154, "column": 16, "offset": 3872 } }, "specifier": "change" }, { "type": "svelteProperty", "name": "disabled", "value": [ { "type": "svelteDynamicContent", "expression": { "type": "svelteExpression", "value": "disabled", "position": { "start": { "line": 155, "column": 8, "offset": 3880 }, "end": { "line": 155, "column": 16, "offset": 3888 } } }, "position": { "start": { "line": 155, "column": 7, "offset": 3879 }, "end": { "line": 155, "column": 16, "offset": 3888 } } } ], "modifiers": [], "shorthand": "expression", "position": { "start": { "line": 155, "column": 7, "offset": 3879 }, "end": { "line": 155, "column": 16, "offset": 3888 } } } ], "selfClosing": true, "children": [], "position": { "start": { "line": 144, "column": 5, "offset": 3622 }, "end": { "line": 155, "column": 20, "offset": 3892 } } }, { "type": "text", "value": "\n ", "position": { "start": { "line": 155, "column": 20, "offset": 3892 }, "end": { "line": 156, "column": 3, "offset": 3895 } } } ], "position": { "start": { "line": 143, "column": 3, "offset": 3592 }, "end": { "line": 156, "column": 3, "offset": 3895 } } }, { "type": "svelteBranch", "name": "else", "expression": { "type": "svelteExpression", "value": "" }, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 156, "column": 10, "offset": 3902 }, "end": { "line": 157, "column": 5, "offset": 3907 } } }, { "type": "svelteElement", "tagName": "textarea", "properties": [ { "type": "svelteDirective", "name": "use", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 158, "column": 7, "offset": 3923 }, "end": { "line": 158, "column": 17, "offset": 3933 } }, "specifier": "events" }, { "type": "svelteProperty", "name": "...props", "value": [ { "type": "svelteDynamicContent", "expression": { "type": "svelteExpression", "value": "...props", "position": { "start": { "line": 159, "column": 8, "offset": 3941 }, "end": { "line": 159, "column": 16, "offset": 3949 } } }, "position": { "start": { "line": 159, "column": 7, "offset": 3940 }, "end": { "line": 159, "column": 16, "offset": 3949 } } } ], "modifiers": [], "shorthand": "expression", "position": { "start": { "line": 159, "column": 7, "offset": 3940 }, "end": { "line": 159, "column": 16, "offset": 3949 } } }, { "type": "svelteProperty", "name": "value", "value": [ { "type": "svelteDynamicContent", "expression": { "type": "svelteExpression", "value": "value", "position": { "start": { "line": 160, "column": 8, "offset": 3958 }, "end": { "line": 160, "column": 13, "offset": 3963 } } }, "position": { "start": { "line": 160, "column": 7, "offset": 3957 }, "end": { "line": 160, "column": 13, "offset": 3963 } } } ], "modifiers": [], "shorthand": "expression", "position": { "start": { "line": 160, "column": 7, "offset": 3957 }, "end": { "line": 160, "column": 13, "offset": 3963 } } }, { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "textarea", "position": { "start": { "line": 161, "column": 14, "offset": 3978 }, "end": {} } }, { "type": "text", "value": " ", "position": { "start": { "line": 161, "column": 22, "offset": 3986 }, "end": { "line": 161, "column": 23, "offset": 3987 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 161, "column": 23, "offset": 3987 }, "end": { "line": 161, "column": 35, "offset": 3999 } }, "expression": { "type": "svelteExpression", "value": "statusType", "position": { "start": { "line": 161, "column": 24, "offset": 3988 }, "end": { "line": 161, "column": 34, "offset": 3998 } } } }, { "type": "text", "value": "\n ", "position": { "start": { "line": 161, "column": 35, "offset": 3999 }, "end": { "line": 162, "column": 7, "offset": 4006 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 162, "column": 7, "offset": 4006 }, "end": { "line": 162, "column": 13, "offset": 4012 } }, "expression": { "type": "svelteExpression", "value": "size", "position": { "start": { "line": 162, "column": 8, "offset": 4007 }, "end": { "line": 162, "column": 12, "offset": 4011 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 161, "column": 7, "offset": 3971 }, "end": { "line": 162, "column": 14, "offset": 4013 } } }, { "type": "svelteDirective", "name": "bind", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 163, "column": 17, "offset": 4030 }, "end": { "line": 163, "column": 24, "offset": 4037 } }, "expression": { "type": "svelteExpression", "value": "input", "position": { "start": { "line": 163, "column": 18, "offset": 4031 }, "end": { "line": 163, "column": 23, "offset": 4036 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 163, "column": 7, "offset": 4020 }, "end": { "line": 163, "column": 24, "offset": 4037 } }, "specifier": "this" }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 164, "column": 16, "offset": 4053 }, "end": { "line": 164, "column": 25, "offset": 4062 } }, "expression": { "type": "svelteExpression", "value": "onInput", "position": { "start": { "line": 164, "column": 17, "offset": 4054 }, "end": { "line": 164, "column": 24, "offset": 4061 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 164, "column": 7, "offset": 4044 }, "end": { "line": 164, "column": 25, "offset": 4062 } }, "specifier": "input" }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 165, "column": 16, "offset": 4078 }, "end": { "line": 165, "column": 25, "offset": 4087 } }, "expression": { "type": "svelteExpression", "value": "onFocus", "position": { "start": { "line": 165, "column": 17, "offset": 4079 }, "end": { "line": 165, "column": 24, "offset": 4086 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 165, "column": 7, "offset": 4069 }, "end": { "line": 165, "column": 25, "offset": 4087 } }, "specifier": "focus" }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 166, "column": 15, "offset": 4102 }, "end": { "line": 166, "column": 23, "offset": 4110 } }, "expression": { "type": "svelteExpression", "value": "onBlur", "position": { "start": { "line": 166, "column": 16, "offset": 4103 }, "end": { "line": 166, "column": 22, "offset": 4109 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 166, "column": 7, "offset": 4094 }, "end": { "line": 166, "column": 23, "offset": 4110 } }, "specifier": "blur" }, { "type": "svelteDirective", "name": "on", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 167, "column": 7, "offset": 4117 }, "end": { "line": 167, "column": 16, "offset": 4126 } }, "specifier": "change" }, { "type": "svelteProperty", "name": "disabled", "value": [ { "type": "svelteDynamicContent", "expression": { "type": "svelteExpression", "value": "disabled", "position": { "start": { "line": 168, "column": 8, "offset": 4134 }, "end": { "line": 168, "column": 16, "offset": 4142 } } }, "position": { "start": { "line": 168, "column": 7, "offset": 4133 }, "end": { "line": 168, "column": 16, "offset": 4142 } } } ], "modifiers": [], "shorthand": "expression", "position": { "start": { "line": 168, "column": 7, "offset": 4133 }, "end": { "line": 168, "column": 16, "offset": 4142 } } } ], "selfClosing": true, "children": [], "position": { "start": { "line": 157, "column": 5, "offset": 3907 }, "end": { "line": 168, "column": 20, "offset": 4146 } } }, { "type": "text", "value": "\n ", "position": { "start": { "line": 168, "column": 20, "offset": 4146 }, "end": { "line": 169, "column": 3, "offset": 4149 } } } ], "position": { "start": { "line": 156, "column": 3, "offset": 3895 }, "end": { "line": 169, "column": 3, "offset": 4149 } } } ], "position": { "start": { "line": 143, "column": 3, "offset": 3592 }, "end": { "line": 169, "column": 8, "offset": 4154 } } }, { "type": "text", "value": "\n\n ", "position": { "start": { "line": 169, "column": 8, "offset": 4154 }, "end": { "line": 171, "column": 3, "offset": 4158 } } }, { "type": "svelteBranchingBlock", "name": "if", "branches": [ { "type": "svelteBranch", "name": "if", "expression": { "type": "svelteExpression", "value": "icon", "position": { "start": { "line": 171, "column": 8, "offset": 4163 }, "end": { "line": 171, "column": 12, "offset": 4167 } } }, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 171, "column": 13, "offset": 4168 }, "end": { "line": 172, "column": 5, "offset": 4173 } } }, { "type": "svelteComponent", "tagName": "Icon", "properties": [ { "type": "svelteProperty", "name": "pack", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 173, "column": 12, "offset": 4190 }, "end": { "line": 173, "column": 22, "offset": 4200 } }, "expression": { "type": "svelteExpression", "value": "iconPack", "position": { "start": { "line": 173, "column": 13, "offset": 4191 }, "end": { "line": 173, "column": 21, "offset": 4199 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 173, "column": 7, "offset": 4185 }, "end": { "line": 173, "column": 22, "offset": 4200 } } }, { "type": "svelteProperty", "name": "isLeft", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 174, "column": 14, "offset": 4214 }, "end": { "line": 174, "column": 20, "offset": 4220 } }, "expression": { "type": "svelteExpression", "value": "true", "position": { "start": { "line": 174, "column": 15, "offset": 4215 }, "end": { "line": 174, "column": 19, "offset": 4219 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 174, "column": 7, "offset": 4207 }, "end": { "line": 174, "column": 20, "offset": 4220 } } }, { "type": "svelteProperty", "name": "icon", "value": [ { "type": "svelteDynamicContent", "expression": { "type": "svelteExpression", "value": "icon", "position": { "start": { "line": 175, "column": 8, "offset": 4228 }, "end": { "line": 175, "column": 12, "offset": 4232 } } }, "position": { "start": { "line": 175, "column": 7, "offset": 4227 }, "end": { "line": 175, "column": 12, "offset": 4232 } } } ], "modifiers": [], "shorthand": "expression", "position": { "start": { "line": 175, "column": 7, "offset": 4227 }, "end": { "line": 175, "column": 12, "offset": 4232 } } } ], "selfClosing": true, "children": [], "position": { "start": { "line": 172, "column": 5, "offset": 4173 }, "end": { "line": 175, "column": 16, "offset": 4236 } } }, { "type": "text", "value": "\n ", "position": { "start": { "line": 175, "column": 16, "offset": 4236 }, "end": { "line": 176, "column": 3, "offset": 4239 } } } ], "position": { "start": { "line": 171, "column": 3, "offset": 4158 }, "end": { "line": 176, "column": 3, "offset": 4239 } } } ], "position": { "start": { "line": 171, "column": 3, "offset": 4158 }, "end": { "line": 176, "column": 8, "offset": 4244 } } }, { "type": "text", "value": "\n\n ", "position": { "start": { "line": 176, "column": 8, "offset": 4244 }, "end": { "line": 178, "column": 3, "offset": 4248 } } }, { "type": "svelteBranchingBlock", "name": "if", "branches": [ { "type": "svelteBranch", "name": "if", "expression": { "type": "svelteExpression", "value": "!loading && (passwordReveal || statusType)", "position": { "start": { "line": 178, "column": 8, "offset": 4253 }, "end": { "line": 178, "column": 50, "offset": 4295 } } }, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 178, "column": 51, "offset": 4296 }, "end": { "line": 179, "column": 5, "offset": 4301 } } }, { "type": "comment", "value": " pack={iconPack}\n size={iconSize} ", "position": { "start": { "line": 179, "column": 5, "offset": 4301 }, "end": { "line": 180, "column": 24, "offset": 4345 } } }, { "type": "text", "value": "\n ", "position": { "start": { "line": 180, "column": 24, "offset": 4345 }, "end": { "line": 181, "column": 5, "offset": 4350 } } }, { "type": "svelteComponent", "tagName": "Icon", "pro