UNPKG

svelte-parse

Version:

An increidbly relaxed svelte-parser

1,857 lines 62.2 kB
{ "type": "root", "children": [ { "type": "svelteScript", "tagName": "script", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "\n import { createEventDispatcher } from 'svelte';\n import { classnames } from '../../helpers/classnames';\n import inlinestyles from '../../helpers/inlineStyles';\n\n import Button from '../Button/Button.svelte';\n import buttonOptions from '../Button/options';\n import CloseIcon from '../Icons/Close.svelte';\n\n\n const dispatch = createEventDispatcher();\n\n let modalContainer = undefined;\n \n export let isWaiting = false;\n export let hasOverlay = true;\n export let hasCustomTemplate = false;\n export let width = '630px';\n export let isClosable = true;\n export let title = '';\n export let hasFooter = true;\n export let okType = 'default';\n export let isOkDisabled = false;\n export let okText = 'OK';\n export let hasCancelButton = true;\n export let cancelText = 'Cancel';\n export let isKeyboardClosable = true;\n export let isOverlayClosable = true;\n export let target = undefined;\n export let targetElem = undefined;\n export let height = undefined;\n export let maxWidth = undefined;\n \n export let cancel = () => {};\n export let complete = () => {};\n\n\n export let ClassNames;\n $: {\n ClassNames = classnames(\n {\n isWaiting\n }\n );\n }\n\n export let OverlayClassNames;\n $: {\n OverlayClassNames = classnames(\n {\n hasOverlay\n }\n );\n }\n\n export let CustomContentClass;\n $: {\n CustomContentClass = classnames(\n {\n hasCustomTemplate\n }\n )\n }\n\n export let ModalStyles;\n $: {\n ModalStyles = inlinestyles(\n {\n width,\n height,\n 'max-width': maxWidth || width\n }\n );\n }\n\n\n function onOverlayClick(event) {\n if (modalContainer.contains(event.target)) return;\n if (isOverlayClosable) {\n onCancelClick();\n }\n }\n\n function onCancelClick() {\n if (cancel) {\n cancel();\n }\n\n dispatch('cancel');\n }\n\n function onOkClick() {\n if (complete) {\n complete();\n }\n\n dispatch('ok');\n }\n\n function onKeydown(event) {\n if (event.keyCode === 27 && isKeyboardClosable) {\n onCancelClick();\n }\n }\n", "position": { "start": { "line": 1, "column": 9, "offset": 8 }, "end": { "line": 105, "column": 1, "offset": 2070 } } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 105, "column": 10, "offset": 2079 } } }, { "type": "text", "value": "\n\n\n", "position": { "start": { "line": 105, "column": 10, "offset": 2079 }, "end": { "line": 108, "column": 1, "offset": 2082 } } }, { "type": "svelteStyle", "tagName": "style", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "\n .modalOverlay {\n display: flex;\n align-items: center;\n flex-direction: column;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 999999;\n -webkit-overflow-scrolling: touch;\n transform: translate3d(0, 0, 0);\n animation: overlayEnter 0.2s ease-out;\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .hasOverlay {\n background-color: rgba(44, 62, 80, 0.6);\n }\n\n .modal {\n border-radius: 4px;\n background-color: var(--white);\n box-shadow: 0 0 0 1px rgba(9, 30, 66, 0.08);\n margin: auto 0;\n position: relative;\n width: 100%;\n backface-visibility: hidden;\n animation: modalEnter 0.15s ease-out both;\n animation-delay: 0.1s;\n filter: none;\n transform: translate(0, 0);\n flex-shrink: 0;\n }\n\n .closer {\n position: absolute;\n top: 10px;\n right: 10px;\n\n --Button-font-size: 20px;\n --Button-padding: 2px;\n }\n\n .content {\n color: #3f4f5f;\n font-size: 14px;\n letter-spacing: -0.15px;\n padding: 32px 39px;\n }\n\n .content.hasCustomTemplate {\n padding: 0;\n }\n\n .title {\n color: #2c3e50;\n font-size: 21px;\n font-weight: 700;\n letter-spacing: 0.33px;\n margin: 0 0 16px 0;\n }\n\n .footer {\n display: flex;\n justify-content: flex-end;\n margin-top: 60px;\n }\n\n .footerAction {\n margin-left: 10px;\n }\n\n @keyframes overlayEnter {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n @keyframes modalEnter {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n", "position": { "start": { "line": 108, "column": 8, "offset": 2089 }, "end": { "line": 202, "column": 1, "offset": 3637 } } } ], "position": { "start": { "line": 108, "column": 1, "offset": 2082 }, "end": { "line": 202, "column": 9, "offset": 3645 } } }, { "type": "text", "value": "\n\n", "position": { "start": { "line": 202, "column": 9, "offset": 3645 }, "end": { "line": 204, "column": 1, "offset": 3647 } } }, { "type": "svelteMeta", "tagName": "window", "properties": [ { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 204, "column": 28, "offset": 3674 }, "end": { "line": 204, "column": 39, "offset": 3685 } }, "expression": { "type": "svelteExpression", "value": "onKeydown", "position": { "start": { "line": 204, "column": 29, "offset": 3675 }, "end": { "line": 204, "column": 38, "offset": 3684 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 204, "column": 16, "offset": 3662 }, "end": { "line": 204, "column": 40, "offset": 3686 } }, "specifier": "keydown" } ], "selfClosing": true, "children": [], "position": { "start": { "line": 204, "column": 1, "offset": 3647 }, "end": { "line": 204, "column": 43, "offset": 3689 } } }, { "type": "text", "value": "\n\n", "position": { "start": { "line": 204, "column": 43, "offset": 3689 }, "end": { "line": 206, "column": 1, "offset": 3691 } } }, { "type": "svelteElement", "tagName": "div", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "modalOverlay", "position": { "start": { "line": 206, "column": 13, "offset": 3703 }, "end": {} } }, { "type": "text", "value": " ", "position": { "start": { "line": 206, "column": 25, "offset": 3715 }, "end": { "line": 206, "column": 26, "offset": 3716 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 206, "column": 26, "offset": 3716 }, "end": { "line": 206, "column": 47, "offset": 3737 } }, "expression": { "type": "svelteExpression", "value": " OverlayClassNames ", "position": { "start": { "line": 206, "column": 27, "offset": 3717 }, "end": { "line": 206, "column": 46, "offset": 3736 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 206, "column": 6, "offset": 3696 }, "end": { "line": 206, "column": 48, "offset": 3738 } } }, { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 206, "column": 59, "offset": 3749 }, "end": { "line": 206, "column": 75, "offset": 3765 } }, "expression": { "type": "svelteExpression", "value": "onOverlayClick", "position": { "start": { "line": 206, "column": 60, "offset": 3750 }, "end": { "line": 206, "column": 74, "offset": 3764 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 206, "column": 49, "offset": 3739 }, "end": { "line": 206, "column": 76, "offset": 3766 } }, "specifier": "click" } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 206, "column": 77, "offset": 3767 }, "end": { "line": 207, "column": 3, "offset": 3770 } } }, { "type": "svelteElement", "tagName": "div", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "modal", "position": { "start": { "line": 207, "column": 15, "offset": 3782 }, "end": {} } }, { "type": "text", "value": " ", "position": { "start": { "line": 207, "column": 20, "offset": 3787 }, "end": { "line": 207, "column": 21, "offset": 3788 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 207, "column": 21, "offset": 3788 }, "end": { "line": 207, "column": 35, "offset": 3802 } }, "expression": { "type": "svelteExpression", "value": " ClassNames ", "position": { "start": { "line": 207, "column": 22, "offset": 3789 }, "end": { "line": 207, "column": 34, "offset": 3801 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 207, "column": 8, "offset": 3775 }, "end": { "line": 207, "column": 36, "offset": 3803 } } }, { "type": "svelteProperty", "name": "style", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 207, "column": 44, "offset": 3811 }, "end": { "line": 207, "column": 59, "offset": 3826 } }, "expression": { "type": "svelteExpression", "value": " ModalStyles ", "position": { "start": { "line": 207, "column": 45, "offset": 3812 }, "end": { "line": 207, "column": 58, "offset": 3825 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 207, "column": 37, "offset": 3804 }, "end": { "line": 207, "column": 60, "offset": 3827 } } }, { "type": "svelteDirective", "name": "bind", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 207, "column": 71, "offset": 3838 }, "end": { "line": 207, "column": 87, "offset": 3854 } }, "expression": { "type": "svelteExpression", "value": "modalContainer", "position": { "start": { "line": 207, "column": 72, "offset": 3839 }, "end": { "line": 207, "column": 86, "offset": 3853 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 207, "column": 61, "offset": 3828 }, "end": { "line": 207, "column": 87, "offset": 3854 } }, "specifier": "this" } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 207, "column": 88, "offset": 3855 }, "end": { "line": 208, "column": 5, "offset": 3860 } } }, { "type": "svelteElement", "tagName": "div", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 208, "column": 17, "offset": 3872 }, "end": { "line": 208, "column": 39, "offset": 3894 } }, "expression": { "type": "svelteExpression", "value": " CustomContentClass ", "position": { "start": { "line": 208, "column": 18, "offset": 3873 }, "end": { "line": 208, "column": 38, "offset": 3893 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 208, "column": 39, "offset": 3894 }, "end": {} } }, { "type": "text", "value": "content", "position": { "start": { "line": 208, "column": 40, "offset": 3895 }, "end": { "line": 208, "column": 48, "offset": 3903 } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 208, "column": 10, "offset": 3865 }, "end": { "line": 208, "column": 48, "offset": 3903 } } } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 208, "column": 49, "offset": 3904 }, "end": { "line": 209, "column": 7, "offset": 3911 } } }, { "type": "svelteBranchingBlock", "name": "if", "branches": [ { "type": "svelteBranch", "name": "if", "expression": { "type": "svelteExpression", "value": "isClosable", "position": { "start": { "line": 209, "column": 12, "offset": 3916 }, "end": { "line": 209, "column": 22, "offset": 3926 } } }, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 209, "column": 23, "offset": 3927 }, "end": { "line": 210, "column": 7, "offset": 3934 } } }, { "type": "svelteElement", "tagName": "div", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "closer", "position": { "start": { "line": 210, "column": 19, "offset": 3946 }, "end": { "line": 210, "column": 26, "offset": 3953 } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 210, "column": 12, "offset": 3939 }, "end": { "line": 210, "column": 26, "offset": 3953 } } } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 210, "column": 27, "offset": 3954 }, "end": { "line": 211, "column": 9, "offset": 3963 } } }, { "type": "svelteComponent", "tagName": "Button", "properties": [ { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 212, "column": 21, "offset": 3991 }, "end": { "line": 212, "column": 36, "offset": 4006 } }, "expression": { "type": "svelteExpression", "value": "onCancelClick", "position": { "start": { "line": 212, "column": 22, "offset": 3992 }, "end": { "line": 212, "column": 35, "offset": 4005 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 212, "column": 11, "offset": 3981 }, "end": { "line": 212, "column": 37, "offset": 4007 } }, "specifier": "click" }, { "type": "svelteProperty", "name": "Icon", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 213, "column": 17, "offset": 4024 }, "end": { "line": 213, "column": 28, "offset": 4035 } }, "expression": { "type": "svelteExpression", "value": "CloseIcon", "position": { "start": { "line": 213, "column": 18, "offset": 4025 }, "end": { "line": 213, "column": 27, "offset": 4034 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 213, "column": 11, "offset": 4018 }, "end": { "line": 213, "column": 29, "offset": 4036 } } }, { "type": "svelteProperty", "name": "isDisabled", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 214, "column": 23, "offset": 4059 }, "end": { "line": 214, "column": 34, "offset": 4070 } }, "expression": { "type": "svelteExpression", "value": "isWaiting", "position": { "start": { "line": 214, "column": 24, "offset": 4060 }, "end": { "line": 214, "column": 33, "offset": 4069 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 214, "column": 11, "offset": 4047 }, "end": { "line": 214, "column": 35, "offset": 4071 } } } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 214, "column": 36, "offset": 4072 }, "end": { "line": 215, "column": 9, "offset": 4081 } } } ], "position": { "start": { "line": 211, "column": 9, "offset": 3963 }, "end": { "line": 215, "column": 18, "offset": 4090 } } }, { "type": "text", "value": "\n ", "position": { "start": { "line": 215, "column": 18, "offset": 4090 }, "end": { "line": 216, "column": 7, "offset": 4097 } } } ], "position": { "start": { "line": 210, "column": 7, "offset": 3934 }, "end": { "line": 216, "column": 13, "offset": 4103 } } }, { "type": "text", "value": "\n ", "position": { "start": { "line": 216, "column": 13, "offset": 4103 }, "end": { "line": 217, "column": 7, "offset": 4110 } } } ], "position": { "start": { "line": 209, "column": 7, "offset": 3911 }, "end": { "line": 217, "column": 7, "offset": 4110 } } } ], "position": { "start": { "line": 209, "column": 7, "offset": 3911 }, "end": { "line": 217, "column": 12, "offset": 4115 } } }, { "type": "text", "value": "\n\n ", "position": { "start": { "line": 217, "column": 12, "offset": 4115 }, "end": { "line": 219, "column": 7, "offset": 4123 } } }, { "type": "svelteBranchingBlock", "name": "if", "branches": [ { "type": "svelteBranch", "name": "if", "expression": { "type": "svelteExpression", "value": "title", "position": { "start": { "line": 219, "column": 12, "offset": 4128 }, "end": { "line": 219, "column": 17, "offset": 4133 } } }, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 219, "column": 18, "offset": 4134 }, "end": { "line": 220, "column": 7, "offset": 4141 } } }, { "type": "svelteElement", "tagName": "h1", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "title", "position": { "start": { "line": 220, "column": 18, "offset": 4152 }, "end": { "line": 220, "column": 24, "offset": 4158 } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 220, "column": 11, "offset": 4145 }, "end": { "line": 220, "column": 24, "offset": 4158 } } } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 220, "column": 25, "offset": 4159 }, "end": { "line": 221, "column": 9, "offset": 4168 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 221, "column": 9, "offset": 4168 }, "end": { "line": 221, "column": 18, "offset": 4177 } }, "expression": { "type": "svelteExpression", "value": "title ", "position": { "start": { "line": 221, "column": 11, "offset": 4170 }, "end": { "line": 221, "column": 17, "offset": 4176 } } } }, { "type": "text", "value": "\n ", "position": { "start": { "line": 221, "column": 18, "offset": 4177 }, "end": { "line": 222, "column": 7, "offset": 4184 } } } ], "position": { "start": { "line": 220, "column": 7, "offset": 4141 }, "end": { "line": 222, "column": 12, "offset": 4189 } } }, { "type": "text", "value": "\n ", "position": { "start": { "line": 222, "column": 12, "offset": 4189 }, "end": { "line": 223, "column": 7, "offset": 4196 } } } ], "position": { "start": { "line": 219, "column": 7, "offset": 4123 }, "end": { "line": 223, "column": 7, "offset": 4196 } } } ], "position": { "start": { "line": 219, "column": 7, "offset": 4123 }, "end": { "line": 223, "column": 12, "offset": 4201 } } }, { "type": "text", "value": "\n\n ", "position": { "start": { "line": 223, "column": 12, "offset": 4201 }, "end": { "line": 225, "column": 7, "offset": 4209 } } }, { "type": "svelteElement", "tagName": "slot", "properties": [], "selfClosing": false, "children": [], "position": { "start": { "line": 225, "column": 7, "offset": 4209 }, "end": { "line": 225, "column": 20, "offset": 4222 } } }, { "type": "text", "value": "\n\n ", "position": { "start": { "line": 225, "column": 20, "offset": 4222 }, "end": { "line": 227, "column": 7, "offset": 4230 } } }, { "type": "svelteBranchingBlock", "name": "if", "branches": [ { "type": "svelteBranch", "name": "if", "expression": { "type": "svelteExpression", "value": "hasFooter", "position": { "start": { "line": 227, "column": 12, "offset": 4235 }, "end": { "line": 227, "column": 21, "offset": 4244 } } }, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 227, "column": 22, "offset": 4245 }, "end": { "line": 228, "column": 7, "offset": 4252 } } }, { "type": "svelteElement", "tagName": "div", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "footer", "position": { "start": { "line": 228, "column": 19, "offset": 4264 }, "end": { "line": 228, "column": 26, "offset": 4271 } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 228, "column": 12, "offset": 4257 }, "end": { "line": 228, "column": 26, "offset": 4271 } } } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 228, "column": 27, "offset": 4272 }, "end": { "line": 229, "column": 9, "offset": 4281 } } }, { "type": "svelteElement", "tagName": "div", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "footerAction", "position": { "start": { "line": 229, "column": 21, "offset": 4293 }, "end": { "line": 229, "column": 34, "offset": 4306 } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 229, "column": 14, "offset": 4286 }, "end": { "line": 229, "column": 34, "offset": 4306 } } } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 229, "column": 35, "offset": 4307 }, "end": { "line": 230, "column": 11, "offset": 4318 } } }, { "type": "svelteComponent", "tagName": "Button", "properties": [ { "type": "svelteDirective", "name": "on", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 230, "column": 29, "offset": 4336 }, "end": { "line": 230, "column": 40, "offset": 4347 } }, "expression": { "type": "svelteExpression", "value": "onOkClick", "position": { "start": { "line": 230, "column": 30, "offset": 4337 }, "end": { "line": 230, "column": 39, "offset": 4346 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 230, "column": 19, "offset": 4326 }, "end": { "line": 230, "column": 41, "offset": 4348 } }, "specifier": "click" }, { "type": "svelteProperty", "name": "isWaiting", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 230, "column": 53, "offset": 4360 }, "end": { "line": 230, "column": 64, "offset": 4371 } }, "expression": { "type": "svelteExpression", "value": "isWaiting", "position": { "start": { "line": 230, "column": 54, "offset": 4361 }, "end": { "line": 230, "column": 63, "offset": 4370 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 230, "column": 42, "offset": 4349 }, "end": { "line": 230, "column": 65, "offset": 4372 } } }, { "type": "svelteProperty", "name": "type", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 230, "column": 72, "offset": 4379 }, "end": { "line": 230, "column": 80, "offset": 4387 } }, "expression": { "type": "svelteExpression", "value": "okType", "position": { "start": { "line": 230, "column": 73, "offset": 4380 }, "end": { "line": 230, "column": 79, "offset": 4386 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 230, "column": 66, "offset": 4373 }, "end": { "line": 230, "column": 81, "offset": 4388 } } }, { "type": "svelteProperty", "name": "isDisabled", "value": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 230, "column": 94, "offset": 4401 }, "end": { "line": 230, "column": 108, "offset": 4415 } }, "expression": { "type": "svelteExpression", "value": "isOkDisabled", "position": { "start": { "line": 230, "column": 95, "offset": 4402 }, "end": { "line": 230, "column": 107, "offset": 4414 } } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 230, "column": 82, "offset": 4389 }, "end": { "line": 230, "column": 109, "offset": 4416 } } } ], "selfClosing": false, "children": [ { "type": "svelteDynamicContent", "position": { "start": { "line": 230, "column": 110, "offset": 4417 }, "end": { "line": 230, "column": 118, "offset": 4425 } }, "expression": { "type": "svelteExpression", "value": "okText", "position": { "start": { "line": 230, "column": 111, "offset": 4418 }, "end": { "line": 230, "column": 117, "offset": 4424 } } } } ], "position": { "start": { "line": 230, "column": 11, "offset": 4318 }, "end": { "line": 230, "column": 127, "offset": 4434 } } }, { "type": "text", "value": "\n ", "position": { "start": { "line": 230, "column": 127, "offset": 4434 }, "end": { "line": 231, "column": 9, "offset": 4443 } } } ], "position": { "start": { "line": 229, "column": 9, "offset": 4281 }, "end": { "line": 231, "column": 15, "offset": 4449 } } }, { "type": "text", "value": "\n\n ", "position": { "start": { "line": 231, "column": 15, "offset": 4449 }, "end": { "line": 233, "column": 9, "offset": 4459 } } }, { "type": "svelteBranchingBlock", "name": "if", "branches": [ { "type": "svelteBranch", "name": "if", "expression": { "type": "svelteExpression", "value": "hasCancelButton", "position": { "start": { "line": 233, "column": 14, "offset": 4464 }, "end": { "line": 233, "column": 29, "offset": 4479 } } }, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 233, "column": 30, "offset": 4480 }, "end": { "line": 234, "column": 9, "offset": 4489 } } }, { "type": "svelteElement", "tagName": "div", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "footerAction", "position": { "start": { "line": 234, "column": 21, "offset": 4501 }, "end": { "line": 234, "column": 34, "offset": 4514 } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 234, "column": 14, "offset": 4494 }, "end": { "line": 234, "column": 34, "offset": 4514 } } } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 234, "column": 35, "offset": 4515 }, "end": { "line": 235, "column": 11, "offset": 4526 } } }, { "type": "svelteComponent", "tagName": "Button", "properties": [ { "type":