{"version":3,"file":"form-helper-DWLFLO6I.js","sources":["../src/webcomponents/back-button.js","../src/webcomponents/form-helper.js"],"sourcesContent":["import BootstrapModal from \"bootstrap/js/dist/modal\";\r\n\r\nimport { UnshadowedElement, html, render } from \"../lib/unshadowed.js\";\r\n\r\n/** Back button, with prevention modal if form is dirty */\r\nexport class BackButton extends UnshadowedElement {\r\n static elementName() { return \"back-button\" }\r\n\r\n static properties = {\r\n href: { type: String },\r\n text: { type: String },\r\n /** Don't prompt the user if the form is dirty */\r\n preventDirtyWatch: { type: Boolean },\r\n /** Form id to watch for changes */\r\n dirtyWatch: { type: String },\r\n buttonClass: { type: String },\r\n\r\n dirty: { state: true, type: Boolean },\r\n }\r\n\r\n connectedCallback() {\r\n super.connectedCallback();\r\n // If there's not already a confirm modal available in the document, add one\r\n if (!this.preventDirtyWatch && !document.getElementById(\"modalBackConfirm\")) {\r\n const modal = html`\r\n