1 line
245 KiB
Plaintext
1 line
245 KiB
Plaintext
|
{"version":3,"file":"page7-a02d5850.js","sources":["../../js/validation.js","../../node_modules/bootstrap/dist/js/bootstrap.esm.js","../../js/lines-ui.js","../../js/lines-modal.js","../../js/lines-rest-api.js","../../js/lines.js","../../Admin.html?html-proxy&index=1.js"],"sourcesContent":["// модуль используется для валидации форма на странице\n\nfunction validation() {\n // поиск всех форма с классом .needs-validation\n const forms = document.querySelectorAll(\"form.needs-validation\");\n\n for (let i = 0; i < forms.length; i += 1) {\n const form = forms[i];\n // для каждой формы добавляется обработчик события отправки\n form.addEventListener(\"submit\", (event) => {\n // если форма не прошла валидацию\n // то выключить стандартное действие\n if (!form.checkValidity()) {\n event.preventDefault();\n // предотвращает распространение preventDefault\n // на другие объекты\n event.stopPropagation();\n }\n // добавляет к форме класс was-validated\n form.classList.add(\"was-validated\");\n });\n }\n}\n\nexport default validation;\n","/*!\n * Bootstrap v5.3.2 (https://getbootstrap.com/)\n * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\nimport * as Popper from '@popperjs/core';\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * Constants\n */\n\nconst elementMap = new Map();\nconst Data = {\n set(element, key, instance) {\n if (!elementMap.has(element)) {\n elementMap.set(element, new Map());\n }\n const instanceMap = elementMap.get(element);\n\n // make it clear we only want one instance per element\n // can be removed later when multiple key/instances are fine to be used\n if (!instanceMap.has(key) && instanceMap.size !== 0) {\n // eslint-disable-next-line no-console\n console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);\n return;\n }\n instanceMap.set(key, instance);\n },\n get(element, key) {\n if (elementMap.has(element)) {\n return elementMap.get(element).get(key) || null;\n }\n return null;\n },\n remove(element, key) {\n if (!elementMap.has(element)) {\n return;\n }\n const instanceMap = elementMap.get(element);\n instanceMap.delete(key);\n\n // free up element references if there are no instances left for an element\n if (instanceMap.size === 0) {\n elementMap.delete(element);\n }\n }\n};\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/index.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst MAX_UID = 1000000;\nconst MILLISECONDS_MULTIPLIER = 1000;\nconst TRANSITION_END = 'transitionend';\n\n/**\n * Properly escape IDs selectors to handle weird IDs\n * @param {string} selector\n * @returns {string}\n */\nconst parseSelector = selector => {\n if (selector && window.CSS && window.CSS.escape) {\n // document.querySelector needs escaping to handle IDs (html5+) containing for instance /\n selector = selector.replace(/#([^\\s\"#']+)/g, (match, id) => `#${CSS.escape(id)}`);\n }\n return selector;\n};\n\n// Shout-out Angus Croll (https://goo.gl/pxwQGp)\nconst toType = object => {\n if (object === null || object
|