@topvisor/ui 1.5.8-3 → 1.5.8-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.chunks/api-BlIxMRlW.amd.js +2 -0
- package/.chunks/api-BlIxMRlW.amd.js.map +1 -0
- package/.chunks/{api-Dy2x6A8L.esm.js → api-BlIxMRlW.esm.js} +4 -4
- package/.chunks/api-BlIxMRlW.esm.js.map +1 -0
- package/.chunks/app-CyODeY0D.amd.js.map +1 -1
- package/.chunks/app-CyODeY0D.esm.js.map +1 -1
- package/.chunks/dialog-C8fss11q.amd.js.map +1 -1
- package/.chunks/dialog-C8fss11q.esm.js.map +1 -1
- package/.chunks/forms-LywqKN9I.amd.js.map +1 -1
- package/.chunks/forms-LywqKN9I.esm.js.map +1 -1
- package/.chunks/{formsExt-C98f2ZvT.amd.js → formsExt-Iw04hpHr.amd.js} +2 -2
- package/.chunks/{formsExt-C98f2ZvT.amd.js.map → formsExt-Iw04hpHr.amd.js.map} +1 -1
- package/.chunks/{formsExt-C98f2ZvT.esm.js → formsExt-Iw04hpHr.esm.js} +3 -3
- package/.chunks/{formsExt-C98f2ZvT.esm.js.map → formsExt-Iw04hpHr.esm.js.map} +1 -1
- package/.chunks/notice-Dw5ZUJxW.amd.js.map +1 -1
- package/.chunks/notice-Dw5ZUJxW.esm.js.map +1 -1
- package/.chunks/popup-ClpsGU2P.amd.js +2 -0
- package/.chunks/popup-ClpsGU2P.amd.js.map +1 -0
- package/.chunks/{popup-BWD4eASc.esm.js → popup-ClpsGU2P.esm.js} +3 -3
- package/.chunks/popup-ClpsGU2P.esm.js.map +1 -0
- package/.chunks/store-DjQAOnrn.amd.js.map +1 -1
- package/.chunks/store-DjQAOnrn.esm.js.map +1 -1
- package/.chunks/utils-CZnFOkS6.amd.js.map +1 -1
- package/.chunks/utils-CZnFOkS6.esm.js.map +1 -1
- package/.chunks/utils-ZgQqVN0T.amd.js.map +1 -1
- package/.chunks/utils-ZgQqVN0T.esm.js.map +1 -1
- package/api/index.amd.js +1 -1
- package/api/index.amd.js.map +1 -1
- package/api/index.js +1 -1
- package/assets/core.css +1 -1
- package/assets/schedule.css +1 -1
- package/autoload-css-manifest.amd.json +2 -2
- package/autoload-css-manifest.json +2 -2
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +1 -1
- package/icomoon/demo-files/demo.amd.js +1 -1
- package/icomoon/demo-files/demo.amd.js.map +1 -1
- package/icomoon/demo-files/demo.js +2 -2
- package/icomoon/demo.amd.js +1 -1
- package/icomoon/demo.amd.js.map +1 -1
- package/icomoon/demo.js +2 -2
- package/package.json +1 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +3 -3
- package/project/project.js.map +1 -1
- package/schedule/schedule.amd.js +1 -1
- package/schedule/schedule.amd.js.map +1 -1
- package/schedule/schedule.js +89 -81
- package/schedule/schedule.js.map +1 -1
- package/src/api/api/types/client/client.d.ts +1 -2
- package/src/api/api/types/client/request.d.ts +1 -1
- package/src/api/api/types/schema.d.ts +1 -1
- package/src/api/api/types/utils.d.ts +1 -1
- package/src/api/api/utils/common.d.ts +1 -1
- package/src/components/core/notice/types.d.ts +3 -1
- package/src/components/core/notice/utils.d.ts +2 -2
- package/src/components/dialog/dialog/composables/dialogHandle.d.ts +2 -2
- package/src/components/dialog/dialog/page/types.d.ts +4 -4
- package/src/components/dialog/dialog/types.d.ts +1 -1
- package/src/components/dialog/lib/utils.d.ts +1 -1
- package/src/components/dialog/lib/worker.d.ts +1 -1
- package/src/components/forms/button/types.d.ts +3 -4
- package/src/components/forms/caption/types.d.ts +2 -2
- package/src/components/forms/input/types.d.ts +2 -2
- package/src/components/forms/inputRange/types.d.ts +1 -0
- package/src/components/forms/select/types.d.ts +1 -1
- package/src/components/formsExt/editArea/types.d.ts +1 -1
- package/src/components/formsExt/info/types.d.ts +2 -2
- package/src/components/layout/islandRows/islandRowsRow/types.d.ts +1 -0
- package/src/components/layout/islandRows/types.d.ts +2 -2
- package/src/components/project/groupSelector/groups/utils.d.ts +14 -2
- package/src/components/project/projectSelector/utils.d.ts +2 -2
- package/src/components/project/regionSelector/utils/utils.d.ts +1 -1
- package/src/components/schedule/schedule/compoents/calendar/types.d.ts +8 -0
- package/src/components/schedule/schedule/types.d.ts +2 -2
- package/src/components/tabsView/tabsView/types.d.ts +1 -2
- package/src/components/tabsView/tabsView/utils.d.ts +1 -1
- package/src/core/plugins/core.d.ts +1 -1
- package/src/core/utils/route.d.ts +1 -1
- package/src/core/utils/store/store.d.ts +1 -1
- package/src/core/utils/system.d.ts +2 -2
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +2 -2
- package/tabsView/tabsView.js.map +1 -1
- package/utils/route.amd.js +1 -1
- package/utils/route.amd.js.map +1 -1
- package/utils/route.js +2 -2
- package/utils/route.js.map +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.amd.js.map +1 -1
- package/utils/searchers.js +0 -1
- package/utils/searchers.js.map +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.js.map +1 -1
- package/utils/system.amd.js.map +1 -1
- package/utils/system.js.map +1 -1
- package/.chunks/api-Dy2x6A8L.amd.js +0 -2
- package/.chunks/api-Dy2x6A8L.amd.js.map +0 -1
- package/.chunks/api-Dy2x6A8L.esm.js.map +0 -1
- package/.chunks/popup-BWD4eASc.amd.js +0 -2
- package/.chunks/popup-BWD4eASc.amd.js.map +0 -1
- package/.chunks/popup-BWD4eASc.esm.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-ZgQqVN0T.esm.js","names":[],"sources":["../../src/storybook/jquery.ts","../../src/components/dialog/lib/utils.globalEvents.ts","../../src/components/dialog/dialog/style/dialog.css?inline","../../src/components/dialog/dialog/style/dialog.m.css?inline","../../src/components/dialog/dialog/style/dialog.pc.css?inline","../../src/components/dialog/dialog/style/modern/dialog.css?inline","../../src/components/dialog/dialog/style/modern/dialog.pc.css?inline","../../src/components/dialog/lib/utils.ts"],"sourcesContent":["/**\n * см. /.storybook/preview-head.html\n */\nexport default $;\n","import { TopDialogUtils } from './utils';\nimport { TopDialogWorker } from './worker';\nimport { isVisible, querySelectorAllArray, querySelectorVisible } from '@/core/utils/dom';\nimport { historySetState } from '@/core/utils/route';\nimport type { ElTopDialog, ElTopDialogWrapper } from '@/components/dialog/lib/types';\n\nlet inited = false;\n\n/**\n * Инициализация глобальных событий для диалоговых окон\n *\n * Производится один раз при подключении диалогового окна\n *\n * События не размонтируются\n */\nexport const initDialogGlobalEvents = () => {\n\tif (inited) return;\n\tinited = true;\n\n\t/**\n\t * Закрытие диалога по Esc\n\t */\n\tdocument.addEventListener('keydown', (e) => {\n\t\tif (e.key !== 'Escape') return;\n\t\tif (!e.target || !(e.target instanceof HTMLElement)) return;\n\n\t\tconst el = e.target;\n\n\t\t// событие произошло вне диалогового окна\n\t\tif (!el.closest('.ui-dialog')) return;\n\n\t\tif (el.contentEditable === 'true' || el.contentEditable === 'plaintext-only') return;\n\n\t\t// не закрывать окно при открытом TopPopup\n\t\tif (querySelectorVisible(document.documentElement, '.top-popup-wrapper')) return;\n\n\t\t// не закрывать окно при работе с jquery autocomplete\n\t\tif (el.classList.contains('autocomplete')) return;\n\n\t\t// не закрывать окно при открытом fancybox\n\t\tif (querySelectorVisible(document.documentElement, '.fancybox-container')) return;\n\n\t\tconst elDialogs = querySelectorAllArray<ElTopDialog>(document, '.ui-dialog-content').filter((elDialog) => {\n\t\t\treturn isVisible(elDialog);\n\t\t});\n\n\t\t$(elDialogs[elDialogs.length - 1]).dialog('close');\n\t});\n\n\t/**\n\t * Закрытие диалога по кнопке закрыть\n\t */\n\tdocument.addEventListener('click', (e) => {\n\t\t// // навигация без истории\n\t\t// var $dialog = $(this).closest('.ui-dialog-content');\n\t\t// var viewName = $dialog.attr('id');\n\t\t// var pageName = getHash('view-' + viewName);\n\t\t// if (!pageName) {\n\t\t// \ttoPrevPage($dialog);\n\t\t//\n\t\t// \treturn;\n\t\t// }\n\t\t//\n\t\t// // навигация по истории\n\t\t// if (Core.state.isMobile && history.length > 1 && $(this).closest('.modal-layer').length) {\n\t\t// \tvar href = location.href;\n\t\t//\n\t\t// \thistory.go(-1);\n\t\t//\n\t\t// \tsetTimeout(() => {\n\t\t// \t\t// это первая страница в истории вкладки браузера\n\t\t// \t\tif (href === location.href) $(e.target).closest('.ui-dialog-content').dialog('close');\n\t\t// \t});\n\t\t// } else {\n\t\t// \t$(this).closest('.ui-dialog-content').dialog('close');\n\t\t// }\n\n\t\tif (!(e.target instanceof HTMLElement)) return;\n\n\t\tconst el = e.target.closest('[data-action=\"top-dialog-close\"]') as HTMLElement | null;\n\t\tif (!el) return;\n\n\t\te.preventDefault();\n\n\t\tconst elDialog = el.closest<ElTopDialog>('.ui-dialog-content');\n\t\tif (!elDialog) return;\n\n\t\t// если к кнопке привязана ссылка, диалоговое окно не нужно закрывать\n\t\tconst toView = el.dataset.toView;\n\n\t\tif (toView == 'toPrevPage()') {\n\t\t\tTopDialogUtils.toPrevPage(elDialog);\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (toView) {\n\t\t\tconst viewNameAndPageLink = toView.split('-');\n\t\t\tconst viewName = viewNameAndPageLink.shift();\n\t\t\tconst pageLink = viewNameAndPageLink.join('-');\n\n\t\t\tif (!viewName) return;\n\n\t\t\tconst elDialog = TopDialogUtils.getElDialogById(viewName);\n\t\t\tif (!elDialog) return;\n\n\t\t\tconst elToPages = querySelectorAllArray(elDialog, `[data-view-page=\"${pageLink}\"]`);\n\t\t\tif (!elToPages) return;\n\n\t\t\tif (!isVisible(elToPages[0])) {\n\t\t\t\tconst hash = TopDialogWorker.genViewPageHash(toView, 'prev');\n\n\t\t\t\t// // не убирает кнопку \"Вперед\" в браузере\n\t\t\t\t// history.replaceState(null, '', hash);\n\t\t\t\t// toViewDirty(toView, 'prev');\n\n\t\t\t\t// // добавляет текущую страницу в историю браузера\n\t\t\t\thistorySetState(false, hash);\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tconst $dialog = $(elDialog);\n\n\t\t$dialog.dialog('close');\n\t});\n\n\t/**\n\t * Все submit должны обрабатываться через js\n\t */\n\tdocument.addEventListener('submit', (e) => {\n\t\tconst elForm = e.target as HTMLElement;\n\n\t\tif (elForm.matches('.modal-body > form') || elForm.matches('.modal-layer-body > form')) {\n\t\t\te.preventDefault();\n\t\t}\n\t});\n\n\t/**\n\t * Выполнение действия по нажатию Enter\n\t *\n\t * @todo Убрать `.searcher`\n\t */\n\tdocument.addEventListener('keypress', (e) => {\n\t\tif (!(e.target instanceof HTMLElement)) return;\n\n\t\tconst eventTarget = e.target;\n\n\t\tconst elModalBody = eventTarget.closest('.ui-dialog .modal-body');\n\t\tif (!elModalBody) return;\n\n\t\tconst isInput =\n\t\t\teventTarget.matches('input:not(.searcher), textarea:not(.searcher), select:not(.searcher), button:not(.searcher)')\n\t\t\t|| eventTarget.hasAttribute('contenteditable');\n\t\tif (!isInput) return;\n\n\t\t// if (e.keyCode !== 10 && e.key !== 'ENTER') return;\n\t\tif (e.key !== 'Enter') return;\n\n\t\t// не выполнять submit действий при работе с jquery autocomplete\n\t\tif (eventTarget.classList.contains('autocomplete')) {\n\t\t\te.preventDefault();\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (eventTarget.tagName === 'TEXTAREA') {\n\t\t\tif (!e.ctrlKey && !e.metaKey) return;\n\n\t\t\tconst elForm = eventTarget.closest('form');\n\n\t\t\tif (elForm) {\n\t\t\t\t// Find visible submit buttons\n\t\t\t\tconst elSubmitButton = querySelectorAllArray(elForm, 'button[type=\"submit\"]')\n\t\t\t\t\t.concat(querySelectorAllArray(elForm, 'input[type=\"submit\"]'))\n\t\t\t\t\t.find((elSubmitButton) => {\n\t\t\t\t\t\treturn isVisible(elSubmitButton);\n\t\t\t\t\t});\n\n\t\t\t\telSubmitButton?.click();\n\t\t\t}\n\t\t}\n\t});\n\n\t/**\n\t * Закрытие диалога по клику вне окна\n\t */\n\tdocument.addEventListener('click', function (event) {\n\t\tif (!(event.target instanceof HTMLElement)) return;\n\n\t\tconst eventTarget = event.target;\n\n\t\tif (!eventTarget.classList.contains('ui-widget-overlay')) return;\n\n\t\tlet elDialogWrapperWithTopZIndex: ElTopDialogWrapper | undefined;\n\t\tlet topZIndex = 0;\n\n\t\tconst elDialogWrapperVisibles = querySelectorAllArray<ElTopDialogWrapper>(document, '.ui-dialog').filter((elDialogWrapper) => {\n\t\t\treturn isVisible(elDialogWrapper);\n\t\t});\n\n\t\telDialogWrapperVisibles.forEach((elDialogWrapper) => {\n\t\t\tconst zIndex = Number(window.getComputedStyle(elDialogWrapper).zIndex);\n\t\t\tif (zIndex < topZIndex) return;\n\n\t\t\telDialogWrapperWithTopZIndex = elDialogWrapper;\n\t\t\ttopZIndex = zIndex;\n\t\t});\n\n\t\tif (elDialogWrapperWithTopZIndex) {\n\t\t\tconst elDialog = elDialogWrapperWithTopZIndex.querySelector('.ui-dialog-content');\n\n\t\t\t$(elDialog).dialog('close');\n\t\t}\n\t});\n\n\twindow.addEventListener('resize', TopDialogUtils.recalcPositions);\n\tTopDialogUtils.recalcPositions();\n};\n",":root {\n\t--dialog-border-color: var(--color-line-1);\n\t--dialog-loading-duration: 10s;\n\n\t--top-dialog-footer-height: var(--top-forms-base-height_s);\n}\n\nhtml.with_dialog { overflow: hidden !important; }\n\na[data-to-view] { cursor: pointer; }\n\n/* common */\n.ui-widget-overlay { background: #040404; opacity: 0.50; filter: Alpha(Opacity=50); }\n.ui-dialog { border-radius: 8px; border: none; padding: 0; }\n.ui-dialog.ui-widget { border: none; }\n.ui-dialog-titlebar { display: none; }\n.ui-dialog .ui-dialog-content { padding: 0; overflow: visible; }\n.ui-dialog .project_name { word-break: break-all; }\n\n.ui-dialog-content {\n\t--dialog-header-height: 50px;\n\t--dialog-layer-pageSelector: 0px;\n}\n.ui-dialog-content-withPageSelector {\n\t--dialog-layer-pageSelector: 42px;\n}\n\n.modal-header,\n.modal-body,\n.modal-footer { font-size: 14px; position: relative; }\n.modal-body { padding: var(--padding-default); }\n.modal-body:has(> .topTable:first-child) {\n\tpadding-top: calc(var(--padding-default) / 4);\n}\n\n/* modal-header */\n.modal-header {\n\tborder-bottom: 1px solid var(--dialog-border-color); height: var(--dialog-header-height); padding: 0 var(--padding-default);\n\tdisplay: flex; justify-content: space-between; align-items: center; gap: var(--top-padding-2);\n}\n.modal-header > * { padding: 10px 0; font-size: 16px; }\n.modal-header > .top-title {\n\tmargin: 0;\n\tfont-weight: normal;\n\toverflow: hidden; text-overflow: ellipsis; white-space: nowrap;\n\tflex-grow: 1; order: 50; display: flex; align-items: center;\n}\n.modal-header > .top-title > div[class*=icon] { display: none; }\n.modal-header > div:not(.top-title) { order: 60; }\n.modal-header > div.close {\n\t--top-icon-color: var(--color-text-2);\n\n\tcursor: pointer;\n\tbackground: var(--color-layout-front-1); font-size: 16px;\n\torder: 100;\n\tanimation-name: none !important;\n}\n.modal-header > div.close:hover {\n\t--top-icon-color: var(--color-text-1);\n}\n\n.modal-header .links_icons { position: absolute; right: 50px; }\n.modal-header .links_icons [class*=\"icon-\"] { width: auto; height: auto; padding: 0 5px; color: #D6DEE0; }\n.modal-header .links_icons [class*=\"icon-\"].active { color: var(--color-bg-warning-1); }\n\n.modal-layer-pageSelector { padding: 0 10px !important; }\n\n/* modal-body */\n.modal-body {\n\tmax-height: calc(var(--100vh) - var(--dialog-header-height) - 1px - var(--dialog-layer-pageSelector) - var(--top-dialog-footer-height) - 1px);\n\toverflow-y: auto; overflow-x: hidden; box-sizing: border-box; flex-grow: 1;\n}\n.modal-body hr { margin: 16px -15px; }\n.modal-body h4 { padding: 0; margin: 0 0 10px 0; line-height: normal; }\n.modal-body .inner { padding: var(--padding-default); margin: 0 calc(0px - var(--padding-default)); position: relative; }\n.modal-body .inner .bt { border-top: 1px dashed var(--color-layout-front-primary-3); position: absolute; top: 0; right: 0; left: 0; }\n.modal-body .inner .bb { border-bottom: 1px dashed var(--color-layout-front-primary-3); position: absolute; right: 0; bottom: 0; left: 0; }\n.modal-body .inner.color-1 { background: var(--color-layout-front-primary-3); color: var(--color-text-1); }\n.modal-body .inner strong { color: var(--color-text-1); }\n.modal-body .comment { line-height: 18px; }\n\n/* modal-footer */\n.modal-footer {\n\tmin-height: var(--top-dialog-footer-height);\n\tpadding: var(--top-gap-2);\n\tdisplay: flex;\n\tflex-shrink: 0;\n\talign-items: center;\n\tjustify-content: flex-end;\n\tgap: var(--top-gap-2);\n}\n\n.modal-footer .modal-footer-btn-left { margin-right: auto; }\n\n.modal-footer > .btn.full_width,\n.modal-footer > .top-button.full_width { flex-grow: 1; align-self: flex-end; }\n\n.modal-footer-fullWith {\n\tflex-wrap: wrap;\n}\n.modal-footer-fullWith > * {\n\tflex-grow: 1;\n}\n.modal-footer-fullWith > .top-info {\n\tflex-grow: 5;\n}\n.modal-footer-fullWith > *:empty {\n\tflex-grow: 0;\n}\n\n/* modal form */\n.ui-dialog-content > .modal-layer > [data-view-page] > input[type=\"submit\"] { position: absolute; visibility: hidden; }\n\n/* modal help_popup */\n.help_popup .modal-header { display: none; }\n.help_popup .modal-header a { top: 2px; z-index: 10; }\n.help_popup .modal-header .top-title { display: none; }\n\n/* view */\n.modal-layer { overflow: hidden; }\n.modal-layer a[data-top-icon]:empty { color: var(--color-text-4); text-decoration: none; }\n\n.modal-layer > [data-view-page] > div > div.buttons { display: flex; white-space: nowrap; gap: var(--top-padding-1); }\n.modal-layer > [data-view-page] > div > div.buttons:empty { display: none; }\n.modal-layer > [data-view-page] > div > div.buttons > div,\n.modal-layer > [data-view-page] > div > div.buttons > a {\n\tcursor: pointer;\n\twidth: auto; height: auto; min-width: auto; min-height: auto; padding: 10px 9px;\n\tcolor: var(--color-text-4);\n}\n.modal-layer > [data-view-page] > div > div.buttons > div:hover { color: var(--color-text-2); }\n.modal-layer > [data-view-page] > div > div.buttons > div.hidden { display: none !important; }\n\n.ui-dialog-content[data-view-page-active] { display: flex !important; flex-direction: column; justify-items: stretch; }\n.ui-dialog-content > .modal-layer { display: flex !important; align-items: stretch; position: relative; }\n.ui-dialog-content.i-change-page > .modal-layer { overflow: hidden; }\n.ui-dialog-content > .modal-layer > [data-view-page] {\n\twidth: 100%;\n\tposition: relative; display: none;\n\tflex-direction: column; justify-content: space-between;\n\tanimation: 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;\n}\n.ui-dialog-content > .modal-layer > [data-view-page].active { display: flex; }\n.ui-dialog-content > .modal-layer > [data-view-page].reverse { animation-direction: reverse; }\n.ui-dialog-content > .modal-layer > [data-view-page].center-to-left,\n.ui-dialog-content > .modal-layer > [data-view-page].right-to-center { display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }\n.ui-dialog-content > .modal-layer > [data-view-page].center-to-left > div,\n.ui-dialog-content > .modal-layer > [data-view-page].right-to-center > div { overflow: hidden; }\n\n.ui-dialog-content > .modal-layer-header { border-bottom: 1px solid var(--dialog-border-color); min-height: var(--dialog-header-height); }\n.ui-dialog-content > .modal-layer-header > [data-view-page] > .modal-header { border: none; background: none; }\n.ui-dialog-content > .modal-layer-header > [data-view-page] > .modal-header > * { animation: 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].reverse > .modal-header > * { animation-direction: reverse; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].center-to-left > .modal-header > .top-title { animation-name: dialog-center-to-left-header-title; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].right-to-center > .modal-header > .top-title { animation-name: dialog-right-to-center-header-title; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].center-to-left > .modal-header > [class*=\"widget-\"] { animation-name: dialog-center-to-left-header-title; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].right-to-center > .modal-header > [class*=\"widget-\"] { animation-name: dialog-right-to-center-header-title; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].center-to-left > .modal-header > div { animation-name: dialog-center-to-left-header-icons; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].right-to-center > .modal-header > div { animation-name: dialog-right-to-center-header-icons; }\n\n.ui-dialog-content > .modal-layer-body { border-radius: 0 0 8px 8px; max-height: calc(var(--100vh) - var(--dialog-header-height) - var(--dialog-layer-pageSelector) - var(--toolbar-height)); flex-grow: 2; }\n.ui-dialog-content.i-change-page > .modal-layer-body > [data-view-page] { background: var(--color-layout-front-1); }\n.ui-dialog-content > .modal-layer-body > [data-view-page].center-to-left { animation-name: dialog-center-to-left; }\n.ui-dialog-content > .modal-layer-body > [data-view-page].right-to-center { animation-name: dialog-right-to-center; }\n\n.ui-dialog-content .modal-footer .second_level {\n\tbox-sizing: border-box;\n\tbackground: var(--color-layout-front-1); width: 100%; min-height: 25px;\n\tdisplay: flex; align-items: center; justify-content: center;\n}\n.ui-dialog-content .modal-footer .second_level input {\n\tborder-radius: 8px;\n\twidth: 100%; height: var(--top-forms-base-height);\n\tpadding: var(--top-padding-1) var(--top-padding-3);\n\tbox-sizing: border-box;\n}\n\n.ui-dialog-content > .modal-layer-body > [data-view-page].i-load-data {\n\tpointer-events: none;\n}\n.ui-dialog-content > .modal-layer-body > [data-view-page].i-load-data:before {\n\tcontent: \" \";\n\tbackground: #378DC6; width: 0; height: 4px;\n\tposition: absolute; top: 0; left: 0; z-index: 100;\n\tanimation: top-loadbar var(--dialog-loading-duration) forwards;\n}\n\n.ui-dialog-content.modal-expanded { width: 100vw !important; height: calc(var(--100vh) + 10px) !important; }\n\n/* widgets */\n.modal-header > [data-widget] {\n\tpadding: 0 8px;\n\tposition: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; overflow: hidden;\n\talign-items: center;\n\tvisibility: hidden;\n\ttransition: opacity 0.3s; z-index: 1;\n}\n\n.modal-header > [data-widget=\"search\"] div.cancel {\n\topacity: 0;\n\ttransform: translateX(100%);\n\ttransition: transform, opacity; transition-duration: 0.3s;\n}\n\n[data-view-page].i-show-search { }\n[data-view-page].i-show-search .modal-header > :not([data-widget=\"search\"]) { visibility: hidden; }\n[data-view-page].i-show-search [data-widget=\"search\"] { visibility: visible; opacity: 1; }\n[data-view-page].i-show-search [data-widget=\"search\"] .cancel { transform: translateX(0); opacity: 1; }\n\n[data-view-page] > .modal-header > * { transition: opacity 0.3s; }\n[data-view-page].i-show-search > .modal-header > div.buttons { opacity: 0; }\n\n/* top-popup */\n.modal-layer .top-popup-wrapper { height: 100% !important; }\n\n/* animation */\n@keyframes dialog-center-to-left-header-title {\n\tfrom { transform: translateX(0); opacity: 1; }\n\t75% { opacity: 0; }\n\tto { transform: translateX(-30%); opacity: 0; }\n}\n\n@keyframes dialog-right-to-center-header-title {\n\tfrom { transform: translateX(100%); opacity: 0; }\n\t25% { opacity: 0; }\n\tto { transform: translateX(0); opacity: 1; }\n}\n\n@keyframes dialog-center-to-left-header-icons {\n\tfrom { transform: translateX(0); opacity: 1; }\n\t35% { transform: translateX(-20%); opacity: 0; }\n\tto { transform: translateX(-20%); opacity: 0; }\n}\n\n@keyframes dialog-right-to-center-header-icons {\n\tfrom { transform: translateX(20%); opacity: 0; }\n\t65% { transform: translateX(20%); opacity: 0; }\n\tto { transform: translateX(0); opacity: 1; }\n}\n\n@keyframes dialog-center-to-left {\n\tfrom { transform: translateX(0); filter: brightness(1); }\n\tto { transform: translateX(-30%); filter: brightness(0.9); }\n}\n\n@keyframes dialog-right-to-center {\n\tfrom { transform: translateX(100%); box-shadow: rgba(0, 0, 0, 0.1) 0 0 10px; }\n\tto { transform: translateX(0); box-shadow: rgba(0, 0, 0, 0.2) 0 0 10px; }\n}\n\n/* вид с дополнительной секцией TopPopup сбоку от окна */\n@media only screen and (max-width: 1480px) {\n\t.win_side_panel_opener { display: none; }\n}\n\n@media only screen and (min-width: 1480px) {\n\t.ui-dialog-content.with_side_panel { box-shadow: rgb(0 0 0 / 20%) 0 0 6px; }\n\n\t.ui-dialog-content.with_side_panel .modal-layer-body { background: var(--color-layout-front-1); }\n\n\t[data-widget=\"side_panel\"] {\n\t\t--side_panel_width: calc((100vw - 900px) / 2 - 28px);\n\n\t\tbox-sizing: border-box;\n\t\tbackground: var(--color-layout-front-1); max-width: var(--side_panel_width); padding: 18px;\n\t\tposition: absolute; top: calc(var(--dialog-header-height) + 1px + var(--dialog-layer-pageSelector)); bottom: calc(var(--top-dialog-footer-height) + 1px);\n\t\tz-index: -1; display: block;\n\t\ttransition: 0.2s;\n\t}\n\n\t.win_side_panel_left { border-radius: 8px 0 0 8px; right: 100%; }\n\n\t.win_side_panel_right { border-radius: 0 8px 8px 0; left: 100%; }\n\n\t.win_side_panel_closed.win_side_panel_left { right: calc(100% - var(--side_panel_width)); }\n\n\t.win_side_panel_closed.win_side_panel_right { left: calc(100% - var(--side_panel_width)); }\n\n\t[data-widget=\"side_panel\"] .template { display: block; }\n\n\t[data-widget=\"side_panel\"] .template > .header,\n\t[data-widget=\"side_panel\"] .template > .footer { display: flex; }\n\n\t.win_side_panel_opener { cursor: pointer; background: var(--color-cyan); color: #FFF; padding: 4px; position: absolute; top: 20px; }\n\n\t.win_side_panel_closed .win_side_panel_opener:not(:hover) { opacity: 0.3; }\n\n\t.win_side_panel_left .win_side_panel_opener { border-radius: 4px 0 0 4px; right: 100%; }\n\n\t.win_side_panel_right .win_side_panel_opener { border-radius: 0 6px 6px 0; left: 100%; }\n}\n\n@media only screen and (max-height: 900px) {\n\thtml.with_dialog { background: #F1F1F1; overflow: hidden; }\n\n\t.ui-widget-overlay { }\n\n\t.ui-dialog.me-tightly {\n\t\tborder-radius: 0;\n\t\theight: auto !important;\n\t\tposition: fixed; top: 0 !important; bottom: 0 !important;\n\t}\n\n\t.ui-dialog.me-tightly .ui-dialog-content { min-height: 100% !important; }\n\n\t/* для не view */\n\t.ui-dialog.me-tightly > div > .modal-body { position: absolute; top: var(--dialog-header-height); right: 0; left: 0; bottom: var(--dialog-header-height); }\n\n\t.ui-dialog.me-tightly > div > .modal-body:last-child { bottom: 0; }\n\n\t.ui-dialog.me-tightly > div > .modal-footer { position: absolute; right: 0; bottom: 0; left: 0; }\n\n\t/* view */\n\t.modal-layer { }\n\n\t.ui-dialog.me-tightly .modal-layer-body { border-radius: 0; min-height: 0 !important; }\n\n\t.ui-dialog.me-tightly .modal-layer-body .modal-footer { min-height: unset; }\n}\n","html.with_dialog body { height: var(--100vh); overflow: hidden; }\n\n.ui-widget-overlay { height: calc(100% - var(--toolbar-height)); }\n\n.ui-dialog {\n\tborder-radius: 0;\n\twidth: auto !important; height: auto !important;\n\tposition: fixed; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;\n}\n\n.ui-dialog-content {\n\twidth: 100% !important;\n\theight: 100% !important;\n\tmin-width: 0 !important;\n\tmax-width: 100% !important;\n}\n\n/* modal-header */\n.modal-header > .top-title { text-align: center; font-size: 14px; }\n.modal-header > div.close { font-size: 14px; order: 1; }\n.modal-header > div.close:before { content: \"\"; }\n\n/* modal-body */\n.modal-body { }\n.modal-body:last-child { bottom: 0; }\n.modal-footer { bottom: 0; }\n\n/* modal-footer */\n.modal-footer .second_level { padding: 10px 8px; }\n\n/* view */\n.modal-layer-body { min-height: 0 !important; }\n.ui-dialog-content > .modal-layer-body { border-radius: 0; }\n/*.ui-dialog-content > .modal-layer-body > [data-view-page] .modal-body{ margin: auto 0; }*/\n\n.modal-body,\n.modal-footer { padding-right: 12px; padding-left: 12px; }\n.modal-footer .btn:last-child { margin-right: 12px; }\n\n.modal-body .inner { padding: 12px; margin: 0 -12px; position: relative; }\n","/* menu */\n.modal-menu-opener { order: 1 !important; }\n.modal-menu-opener:before {\n\t--top-icon-size: 20px;\n\t--top-icon-color: #FFF;\n\t--top-icon-width: var(--top-icon-size);\n\n\tborder-radius: 50%; background: var(--color-bg-primary-1); padding: 3px;\n\ttransition: transform 0.1s;\n}\n.modal-menu-opener:hover:before { background: var(--color-bg-primary-2); }\n.modal-menu-opener.top-active:before { background: var(--color-bg-primary-2); transform: scale(0.8); }\n\n/* top-popup */\n.modal-layer .top-popup-wrapper {\n\tbackground: transparent;\n\twidth: auto !important; padding: 0 !important; margin: 0 !important;\n\ttop: 0 !important; right: 0 !important; left: 0 !important;\n\ttransition: background 0.3s;\n}\n\n.modal-layer .top-popup-wrapper > .top-popup[class],\n.modal-layer .top-popup-wrapper.with_notch > .top-popup[class] {\n\tborder-radius: 8px; border: none; margin: 12px !important; max-width: 100%; max-height: calc(100% - 24px);\n\ttop: 0 !important; right: 0 !important; bottom: auto !important; left: 0 !important; overflow: auto; display: flex; flex-direction: column;\n\topacity: 1;\n\ttransform: translateY(calc(-100% - 24px));\n\ttransition: transform 0.3s;\n}\n\n.modal-layer .top-popup > .top-popup_header { background: var(--color-theme-50); }\n\n.modal-layer .top-theme-lite .top-popup > .top-popup_header .select { border: none; }\n.modal-layer .top-theme-lite .top-popup > .top-popup_header .select .text { color: #FFF; }\n.modal-layer .top-theme-lite .top-popup > .top-popup_header .select .arrow { background: none; }\n\n.modal-layer .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) {\n\tpointer-events: auto;\n\tbackground: rgba(52, 73, 94, 0.25);\n}\n\n@media only screen and (min-width: 1480px) {\n\t.ui-dialog-content.with_side_panel { box-shadow: rgb(0 0 0 / 20%) 0 0 6px; }\n\n\t.ui-dialog-content.with_side_panel .modal-layer-body { background: var(--color-layout-front-1); }\n\n\t[data-widget=\"side_panel\"] {\n\t\t--side_panel_width: calc((100vw - 900px) / 2 - 28px);\n\n\t\tbox-sizing: border-box;\n\t\tbackground: var(--color-layout-front-1); max-width: var(--side_panel_width); padding: 18px;\n\t\tdisplay: block; position: absolute; top: 51px; bottom: 51px; z-index: -1;\n\t\ttransition: 0.2s;\n\t}\n\n\t.win_side_panel_left { border-radius: 8px 0 0 8px; right: 100%; }\n\n\t.win_side_panel_right { border-radius: 0 8px 8px 0; left: 100%; }\n\n\t.win_side_panel_closed.win_side_panel_left { right: calc(100% - var(--side_panel_width)); }\n\n\t.win_side_panel_closed.win_side_panel_right { left: calc(100% - var(--side_panel_width)); }\n\n\t[data-widget=\"side_panel\"] .template { display: block; }\n\n\t[data-widget=\"side_panel\"] .template > .header,\n\t[data-widget=\"side_panel\"] .template > .footer { display: flex; }\n\n\t.win_side_panel_opener { cursor: pointer; background: var(--color-cyan); color: #FFF; padding: 4px; position: absolute; top: 20px; }\n\n\t.win_side_panel_closed .win_side_panel_opener:not(:hover) { opacity: 0.3; }\n\n\t.win_side_panel_left .win_side_panel_opener { border-radius: 4px 0 0 4px; right: 100%; }\n\n\t.win_side_panel_right .win_side_panel_opener { border-radius: 0 6px 6px 0; left: 100%; }\n}\n","html {\n\t--top-dialog-width: auto;\n\t--top-dialog-height: auto;\n}\n\n.top-dialog {\n\tmax-width: 100vw;\n}\n\n.top-dialog .modal-layer-body {\n\theight: var(--top-dialog-height);\n}\n",".top-dialog {\n\twidth: var(--top-dialog-width) !important;\n}","import 'jquery';\nimport { nextTick } from 'vue';\n\nimport Core from '@/core/core/core';\nimport { TopPopupWorker } from '@/components/popup/worker';\nimport { sleep, waitWhile } from '@/core/utils/system';\nimport { setHashs } from '@/core/utils/route';\nimport { connectScrollShadow } from '@/core/utils/scroll';\n\nimport type { ElTopDialog, ElTopDialogBody, ElTopDialogModalLayer, ElTopDialogPage, ElTopDialogWrapper, MoveDirection } from './types';\nimport { TopDialogWorker } from './worker';\nimport { initDialogGlobalEvents } from './utils.globalEvents';\nimport { getDialogWorker } from '../dialog/dialogs/dialogs.vue';\n\nimport css from '../dialog/style/dialog.css?inline';\nimport cssM from '../dialog/style/dialog.m.css?inline';\nimport cssPC from '../dialog/style/dialog.pc.css?inline';\nimport cssModern from '../dialog/style/modern/dialog.css?inline';\nimport cssModernPC from '../dialog/style/modern/dialog.pc.css?inline';\nimport { isVisible, querySelectorAllArray } from '@/core/utils/dom';\n\nCore.insertStyleToPage(css);\nCore.insertStyleToPage(cssM, 'm');\nCore.insertStyleToPage(cssPC, 'pc');\nCore.insertStyleToPage(cssModern);\nCore.insertStyleToPage(cssModernPC, 'pc');\n\nlet timerClearAnimation: NodeJS.Timeout;\nlet isInited = false;\n\n/**\n * Является ли элемент JQuery<HTMLElement>\n */\nconst isElJQuery = (el: JQuery<HTMLElement> | HTMLElement | HTMLElement[]) => {\n\treturn !!el && typeof el === 'object' && 'jquery' in el;\n};\n\nconst init = () => {\n\t$.extend($.ui.dialog.prototype.options, {\n\t\tfocus: (e: any) => {\n\t\t\te.target.focus();\n\n\t\t\t$('[autofocus]', e.target)[0]?.focus();\n\n\t\t\t// setTimeout(function () {\n\t\t\t// \tif ($('[autofocus]', e.target).length) return;\n\t\t\t// \t$('.modal-footer button:first, .modal-body :input:first', e.target).eq(0).focus();\n\t\t\t//\n\t\t\t// \t// fix пропадающего autocomplete при нажатии на scroll в autocomplete\n\t\t\t// \t$(e.target).add($(e.target).closest('.ui-dialog')).removeAttr('tabindex');\n\t\t\t// });\n\t\t},\n\t\tcreate: (e: any) => onCreate(e.target),\n\t\topen: (e: any) => onOpen(e.target),\n\t\tclose: (e: any) => onClose(e.target),\n\t\tmodal: true,\n\t\tresizable: false,\n\t\tcloseOnEscape: false,\n\t\twidth: 'auto',\n\t\tminHeight: 0,\n\t});\n\n\t$.ui.dialog.prototype._focusTabbable = $.noop;\n\n\t$.ui.dialog.prototype._moveToTopOriginal = $.ui.dialog.prototype._moveToTop;\n\t$.ui.dialog.prototype._moveToTop = function () {\n\t\tthis._moveToTopOriginal();\n\n\t\tconst $dialog = $(this.element);\n\t\t$dialog.trigger('dialogsMoveToTop', [$dialog]);\n\t};\n\n\tinitDialogGlobalEvents();\n\n\tisInited = true;\n};\n\n/**\n * Получить настройки диалогового окна из Vue компонента\n */\nconst genVueOptions = (elDialog: ElTopDialog) => {\n\tconst options: {\n\t\tmodal?: boolean,\n\t\tposition?: any,\n\t} = {};\n\n\tif (elDialog.dataset?.modal === 'false') options.modal = false;\n\tif (elDialog.dataset?.position) options.position = JSON.parse(elDialog.dataset.position);\n\n\treturn options;\n};\n\nconst getElDialogById = (id: string) => {\n\treturn <ElTopDialog | null>document.getElementById(id);\n};\n\n/**\n * Сменить состояние диалогового окна Vue\n */\nconst updatePageVue = async (dialogId: string, pageName?: string, pageNameNext?: string) => {\n\tif (!dialogId.startsWith('dialog_')) return;\n\n\tconst dialog = getDialogWorker(dialogId);\n\tif (!dialog) return;\n\n\tdialog.isOpened.value = true;\n\tif (pageName !== undefined) dialog.pageActive.value = pageName;\n\tif (pageNameNext !== undefined) dialog.pageActiveNext.value = pageNameNext;\n\n\tawait nextTick();\n\n\tif (pageNameNext) {\n\t\tconst elDialog = getElDialogById(dialogId);\n\t\tif (!elDialog) return;\n\n\t\tconst elNextpages = elDialog.querySelectorAll(`[data-view-page=\"${pageNameNext}\"]`);\n\n\t\tif (!elNextpages.length) {\n\t\t\tawait waitWhile(() => !elDialog.querySelectorAll(`[data-view-page=\"${pageNameNext}\"]`).length);\n\t\t}\n\t}\n};\n\n/**\n * Callback for jQuery dialog onCreate\n */\nconst onCreate = (elDialog: ElTopDialog) => {\n\tconst elDialogBody = elDialog.querySelector<ElTopDialogBody>('.modal-body');\n\tif (!elDialogBody) return;\n\n\tconnectScrollShadow(elDialogBody);\n\n\tTopDialogWorker.state.decoratorOnCreate?.(elDialog);\n\n\tinitPopup(elDialog);\n};\n\n/**\n * Инициирование событий TopPopup в диалоговом окне\n */\nconst initPopup = (elDialog: HTMLElement) => {\n\t$(elDialog).on('aftershow.top-menu-popup', '[data-top-popup]', (_e, $popup) => {\n\t\t// перенести popup в корневой элемент страницы диалогового окна\n\t\tconst elPopup = $popup[0];\n\n\t\t// перенести popup в корневой элемент страницы диалогового окна\n\t\tconst elPageContents = TopDialogWorker.getPairPage(elPopup);\n\t\telPageContents?.[1]?.prepend(elPopup);\n\t});\n};\n\n/**\n * Callback for jQuery dialog onOpen\n */\nconst onOpen = async (elDialog: ElTopDialog) => {\n\tconst pageName = elDialog.dataset.viewPageActive;\n\tconst args = elDialog.dataset.args ? elDialog.dataset.args?.split(':') : [];\n\n\tconst w1 = window.innerWidth;\n\n\tCore.state.documentClassModificators.set('top-dialog', 'with_dialog');\n\n\tconst w2 = window.innerWidth;\n\n\tconst scrollBarWidth = w2 - w1;\n\tif (document.documentElement.scrollHeight > window.innerHeight) document.querySelector('html')!.style.marginRight = scrollBarWidth + 'px';\n\n\trecalcPositions();\n\n\tconst dialog = getDialogWorker(elDialog.getAttribute('id')!);\n\tdialog?.emit?.('open', pageName, args);\n};\n\n/**\n * Callback for jQuery dialog onClose\n */\nconst onClose = async (elDialog: ElTopDialog) => {\n\tconst viewName = elDialog.getAttribute('id');\n\tconst pageName = elDialog.dataset.viewPageActive;\n\n\tif (pageName) {\n\t\tconst hashData = {\n\t\t\tvpn: TopDialogWorker.state.viewPageN as number | null,\n\t\t\t['view-' + viewName]: null,\n\t\t};\n\t\thashData['view-' + viewName] = null;\n\n\t\tif (TopDialogWorker.state.viewPageN === 0 || TopDialogWorker.state.viewPageN === 1) {\n\t\t\thashData.vpn = null;\n\t\t}\n\n\t\tsetHashs(hashData, false);\n\t}\n\n\tconst elUiWidgetOverlayVisibles = querySelectorAllArray(document, '.ui-widget-overlay').filter((el) => {\n\t\treturn isVisible(el);\n\t});\n\n\tif (!elUiWidgetOverlayVisibles.length) {\n\t\tCore.state.documentClassModificators.delete('top-dialog');\n\n\t\tdocument.querySelector('html')!.style.marginRight = '';\n\t}\n\n\t$(elDialog).trigger('viewAfterClose', [$(elDialog)]);\n\n\tconst dialog = getDialogWorker(viewName);\n\n\tif (dialog) {\n\t\tdialog.isOpened.value = false;\n\t\tdialog.emit?.('close', pageName);\n\n\t\tif (dialog.onCloseOnce) {\n\t\t\tdialog.onCloseOnce(dialog.props, pageName);\n\t\t\tdialog.onCloseOnce = undefined;\n\t\t}\n\t}\n\n\t// после закрытия диалога может потребоваться пересчет позиций элементов\n\twindow.dispatchEvent(new Event('resize'));\n};\n\n/**\n * Пересчитать положения и размеры открытых диалоговых окон\n */\nconst recalcPositions = () => {\n\tconst elDialogVisibilityes = querySelectorAllArray(document, '.ui-dialog').filter((el) => {\n\t\treturn isVisible(el) && el.querySelector<ElTopDialog>(':scope > .ui-dialog-content');\n\t}).map((el) => {\n\t\treturn el.querySelector<ElTopDialog>(':scope > .ui-dialog-content')!;\n\t});\n\n\telDialogVisibilityes.forEach((elDialog) => {\n\t\tconst elDialogBody = elDialog.querySelector<ElTopDialogBody>('.modal-body');\n\t\tif (!elDialogBody) return;\n\n\t\tconst elDialogWrapper = elDialog.closest('.ui-dialog');\n\n\t\tconst options = genVueOptions(elDialog);\n\n\t\toptions.position ??= { of: window };\n\n\t\tconst $dialog = $(elDialog);\n\t\t$dialog.dialog('option', options);\n\n\t\telDialogWrapper.classList.remove('me-tightly');\n\t\tif ((elDialogWrapper.clientHeight ?? 0) > window.innerHeight) elDialogWrapper.classList.add('me-tightly');\n\t});\n};\n\n/**\n * Переход к view page по неразобранной ссылке в формате: {viewName}-{pageName}[:args]\n */\nconst toViewDirty = async (toViewPageName: string, moveDirection?: MoveDirection) => {\n\tconst regexp = /(\\w+)[=-]([\\w-]+)(?::([\\w.:-]+))?/g;\n\tconst toViewParts = regexp.exec(toViewPageName);\n\tif (toViewParts) {\n\t\tconst viewName = toViewParts[1];\n\t\tconst pageName = toViewParts[2];\n\t\tconst argsString = toViewParts[3];\n\n\t\tlet args: string[] = [];\n\t\tif (argsString) args = argsString.split(':');\n\n\t\tawait toView(viewName, pageName, args, moveDirection);\n\t}\n};\n\n/**\n * Открыть диалоговое окно, возможно указать нужную страницу\n * @param viewNameOrElDialog - id страницы окна или элемент окна\n * @param pageName - имя страницы\n * @param args - аргументы, набор проивзольных параметров, которые могут обрабатываться каждым окном по своему\n * @param moveDirection\n * @param callback - функция, которая будет запущена после октытия страницы\n */\nconst toView = async (\n\tviewNameOrElDialog: ElTopDialog | JQuery<ElTopDialog> | string,\n\tpageName?: string,\n\targs?: string[],\n\tmoveDirection?: MoveDirection,\n\tcallback?: Function,\n) => {\n\tif (!isInited) {\n\t\tawait new Promise<void>((resolve, _reject) => {\n\t\t\tconst timer = setInterval(() => {\n\t\t\t\tif (!isInited) return;\n\n\t\t\t\tclearInterval(timer);\n\n\t\t\t\tresolve();\n\t\t\t}, 10);\n\t\t});\n\t}\n\n\tawait nextTick();\n\n\tlet elDialog: ElTopDialog | null;\n\tif (typeof (viewNameOrElDialog) === 'object') {\n\t\tif (isElJQuery(viewNameOrElDialog)) viewNameOrElDialog = viewNameOrElDialog?.[0]; // todo: убрать после переписки jquery на сайте\n\n\t\telDialog = viewNameOrElDialog;\n\t} else {\n\t\telDialog = getElDialogById(viewNameOrElDialog);\n\t}\n\n\t// Диалоговое окно еще не загружено\n\tif (!elDialog && typeof viewNameOrElDialog === 'string' && TopDialogWorker.state.load) {\n\t\tawait TopDialogWorker.state.load(viewNameOrElDialog);\n\n\t\telDialog = getElDialogById(viewNameOrElDialog);\n\t\tif (!elDialog) {\n\t\t\tthrow new Error('Dialog no exists: ' + viewNameOrElDialog);\n\t\t}\n\t}\n\n\tif (!elDialog) return;\n\n\tawait toViewPage(elDialog, pageName, args, moveDirection);\n\n\tconst $dialog = $(elDialog);\n\n\tif (elDialog?.classList.contains('ui-dialog-content')) {\n\t\t// var zIndexMax = 0;\n\t\t// $.map($('.ui-dialog'), function (el) {\n\t\t// \tvar zIndex = $(el).css('z-index') * 1;\n\t\t// \tif (zIndex > zIndexMax) zIndexMax = zIndex;\n\t\t// });\n\t\t//\n\t\t// if ($dialog.is(':hidden')) $dialog.dialog('open');\n\t\t//\n\t\t// var $dialogWrapper = $dialog.parent();\n\t\t// var $dialogOverlay = $dialogWrapper.next();\n\t\t//\n\t\t// if ($dialogWrapper.css('z-index') * 1 < zIndexMax) {\n\t\t// \t$dialogWrapper.css('z-index', zIndexMax + 2);\n\t\t// \t$dialogOverlay.css('z-index', zIndexMax + 1);\n\t\t// }\n\n\t\t$dialog.dialog('open');\n\t} else {\n\t\tconst options = genVueOptions(elDialog);\n\n\t\t$dialog.dialog(options);\n\t}\n\n\tif (callback) callback($dialog);\n};\n\nconst toViewPage = async (elDialog: ElTopDialog | JQuery<ElTopDialog>, pageName?: string, args?: string[], moveDirection?: MoveDirection) => {\n\t// todo: убрать после переписки jquery на сайте\n\tif (isElJQuery(elDialog)) elDialog = elDialog?.[0];\n\n\tif (pageName === undefined) pageName = elDialog.dataset.viewPageActive;\n\tif (args === undefined) args = elDialog.dataset.args?.split(':') ?? [];\n\n\tif (pageName !== elDialog.dataset.viewPageActive) {\n\t\tconst stopped = stopAnimations(elDialog);\n\t\tif (stopped) await sleep(100);\n\t}\n\n\tawait updatePageVue(elDialog.getAttribute('id') as string, undefined, pageName);\n\n\tconst elModalLayers = querySelectorAllArray<ElTopDialogModalLayer>(elDialog, '.modal-layer');\n\tconst elCurrentPages = elModalLayers.reduce<ElTopDialogPage[]>((acc, elModalLayer) => {\n\t\tconst elCurrentPage = elModalLayer.querySelector<ElTopDialogPage>(':scope > .active');\n\t\tif (elCurrentPage) {\n\t\t\tacc.push(elCurrentPage);\n\t\t}\n\n\t\treturn acc;\n\t}, []);\n\n\tconst elNextPages = elModalLayers.reduce<ElTopDialogPage[]>((acc, elModalLayer) => {\n\t\tconst elNextPage = elModalLayer.querySelector<ElTopDialogPage>(`:scope > [data-view-page=\"${pageName}\"]`);\n\t\tif (elNextPage) {\n\t\t\tacc.push(elNextPage);\n\t\t}\n\n\t\treturn acc;\n\t}, []);\n\n\tconst argsString = args.join(':');\n\n\tif (moveDirection === undefined) {\n\t\tmoveDirection = 'next';\n\t\tif ((elNextPages[0]?.dataset.order ?? 0) < (elCurrentPages[0]?.dataset.order ?? 0)) moveDirection = 'prev';\n\t}\n\n\tif (!elNextPages.length) return;\n\n\telDialog.dataset.viewPageActive = pageName;\n\telDialog.dataset.args = args?.join(':') ?? '';\n\n\t// запрашиваемая страница уже открыта\n\tif (elNextPages[0].classList.contains('active')) {\n\t\tif (elNextPages[0].dataset.viewPageArgs !== argsString) {\n\t\t\telNextPages.forEach((elNextPage) => {\n\t\t\t\telNextPage.dataset.viewPageArgs = argsString;\n\t\t\t});\n\n\t\t\t// dialogs.beforeOpenViewPage($dialog, $nextPage, pageName, args);\n\t\t\t// dialogs.afterOpenViewPage($dialog, $nextPage, pageName, args);\n\t\t}\n\n\t\tbeforeOpenViewPage(elDialog, elNextPages, pageName, args);\n\t\tafterOpenViewPage(elDialog, elNextPages, pageName, args);\n\n\t\treturn;\n\t}\n\n\telNextPages.forEach((elNextPage) => {\n\t\telNextPage.dataset.viewPageArgs = argsString;\n\t});\n\n\telCurrentPages.forEach((elCurrentPage) => {\n\t\tif (elCurrentPage.querySelector('.top-popup-wrapper')) {\n\t\t\tTopPopupWorker.close(elCurrentPage.querySelector('.top-popup-wrapper')!);\n\t\t}\n\t});\n\n\tconst elDialogWrapper = elNextPages[0].closest<ElTopDialogWrapper>('.ui-dialog');\n\n\tif (elDialogWrapper && !isVisible(elDialogWrapper)) moveDirection = 'none';\n\tif (!elCurrentPages.length) moveDirection = 'none';\n\tif (isVisible(elNextPages[0])) moveDirection = 'none';\n\n\tswitch (moveDirection) {\n\t\tcase 'prev': {\n\t\t\telNextPages.forEach((elNextPage) => {\n\t\t\t\tconst elActive = elNextPage.parentNode?.querySelector(':scope > .active');\n\t\t\t\tif (elActive) elNextPage.parentNode?.insertBefore(elNextPage, elActive);\n\t\t\t});\n\n\t\t\telCurrentPages.forEach((elCurrentPage) => {\n\t\t\t\telCurrentPage.classList.add('right-to-center', 'reverse');\n\t\t\t});\n\n\t\t\telNextPages.forEach((elNextPage) => {\n\t\t\t\telNextPage.classList.add('center-to-left', 'reverse');\n\t\t\t});\n\n\t\t\tbreak;\n\t\t}\n\t\tcase 'next': {\n\t\t\telNextPages.forEach((elNextPage) => {\n\t\t\t\tconst elActive = elNextPage.parentNode?.querySelector(':scope > .active');\n\t\t\t\tif (elActive) elNextPage.parentNode?.insertBefore(elNextPage, elActive.nextSibling);\n\t\t\t});\n\n\t\t\telCurrentPages.forEach((elCurrentPage) => {\n\t\t\t\telCurrentPage?.classList.add('center-to-left');\n\t\t\t});\n\n\t\t\telNextPages.forEach((elNextPage) => {\n\t\t\t\telNextPage.classList.add('right-to-center');\n\t\t\t});\n\n\t\t\tbreak;\n\t\t}\n\t}\n\n\telDialog.setAttribute('view-page-active', pageName);\n\n\telCurrentPages.forEach((elCurrentPage) => {\n\t\telCurrentPage.classList.remove('active');\n\t});\n\n\telNextPages.forEach((elNextPage) => {\n\t\telNextPage.classList.add('active');\n\t});\n\n\tbeforeOpenViewPage(elDialog, elNextPages, pageName, args);\n\n\tif (moveDirection) {\n\t\telDialog.classList.add('i-change-page');\n\n\t\tconst delay = Number(window.getComputedStyle(elNextPages[0]).animationDuration.replace('s', '')) * 1000;\n\n\t\ttimerClearAnimation = setTimeout(function () {\n\t\t\tupdatePageVue(elDialog.getAttribute('id'), pageName, '');\n\t\t\tstopAnimations(elDialog);\n\t\t\tafterOpenViewPage(elDialog, elNextPages, pageName, args);\n\t\t}, delay);\n\t} else {\n\t\tawait updatePageVue(elDialog.getAttribute('id'), pageName, '');\n\t\tafterOpenViewPage(elDialog, elNextPages, pageName, args);\n\t}\n};\n\n/**\n * К предыдущему представлению\n */\nconst toPrevPage = (elDialog: ElTopDialog) => {\n\tconst elModalLayers = querySelectorAllArray<ElTopDialogModalLayer>(elDialog, '.modal-layer');\n\tconst elCurrentPages = elModalLayers.reduce<ElTopDialogPage[]>((acc, elModalLayer) => {\n\t\tconst elCurrentPage = elModalLayer.querySelector<ElTopDialogPage>(':scope > .active');\n\n\t\tif (elCurrentPage) {\n\t\t\tacc.push(elCurrentPage);\n\t\t}\n\n\t\treturn acc;\n\t}, []);\n\n\tconst elPrevPages = elCurrentPages.reduce<ElTopDialogPage[]>((acc, elCurrentPage) => {\n\t\tlet elPrevPage = elCurrentPage.previousElementSibling as ElTopDialogPage | null;\n\t\twhile (elPrevPage && !elPrevPage.hasAttribute('data-view-page')) {\n\t\t\telPrevPage = elPrevPage.previousElementSibling as ElTopDialogPage | null;\n\t\t}\n\n\t\tif (elPrevPage) acc.push(elPrevPage);\n\n\t\treturn acc;\n\t}, []);\n\n\tconst prevPageName = (elPrevPages[0])?.dataset.viewPage;\n\n\tif (prevPageName) {\n\t\tvoid toViewPage(elDialog, prevPageName, undefined, 'prev');\n\t} else {\n\t\tconst $dialog = $(elDialog);\n\t\t$dialog.dialog('close');\n\t}\n};\n\n/**\n * Для обработки событий вне vue\n */\nconst beforeOpenViewPageTimers = new Set();\nconst beforeOpenViewPage = (elDialog: ElTopDialog, elPages: ElTopDialogPage[], pageName: string, args: string[]) => {\n\t// группировка цепочки событий\n\t// запрос на открытие страницы может выполняться несколько раз, чаще такое может быть при открытии, загрузке и переходе сразу к нужной странице\n\tconst eventKey = elDialog.getAttribute('id') + elPages[0].dataset.viewPage + pageName + args.join();\n\n\tif (beforeOpenViewPageTimers.has(eventKey)) return;\n\tbeforeOpenViewPageTimers.add(eventKey);\n\n\tsetTimeout(function () {\n\t\tbeforeOpenViewPageTimers.delete(eventKey);\n\n\t\t$(elDialog).trigger('viewBeforeOpen', [$(elDialog), $(elPages), pageName, args]);\n\t});\n};\n\n/**\n * Для обработки событий вне vue\n */\nconst afterOpenViewPage = (elDialog: ElTopDialog, elPages: ElTopDialogPage[], pageName: string, args: string[]) => {\n\tsetTimeout(function () {\n\t\t$(elDialog).trigger('viewAfterOpen', [$(elDialog), $(elPages), pageName, args]);\n\t});\n};\n\n/**\n * Получить состояние: Диалоговое окно находится в состоянии смены страницы\n */\nconst inAnimation = (elDialog: ElTopDialog | JQuery<ElTopDialog>) => {\n\tif (isElJQuery(elDialog)) elDialog = elDialog?.[0]; // todo: убрать после переписки jquery на сайте\n\n\treturn elDialog.classList.contains('i-change-page');\n};\n\n/**\n * Остановить анимацию смены страницы\n *\n * @returns Вернет true, если анимация производилась и была остановлена\n */\nconst stopAnimations = (elDialog: ElTopDialog) => {\n\tif (!inAnimation(elDialog)) return false;\n\n\tclearTimeout(timerClearAnimation);\n\n\tconst elModalLayers = querySelectorAllArray(elDialog, '.modal-layer');\n\n\tconst pageName = elDialog.dataset.viewPageActive;\n\telDialog.classList.remove('i-change-page');\n\n\telModalLayers.forEach((elModalLayer) => {\n\t\telModalLayer.querySelectorAll(':scope > [data-view-page]').forEach((el) => {\n\t\t\tel.classList.remove('center-to-left', 'right-to-center', 'reverse', 'active');\n\t\t});\n\t});\n\n\telModalLayers.forEach((elModalLayer) => {\n\t\telModalLayer.querySelector(`:scope > [data-view-page=\"${pageName}\"]`)?.classList.add('active');\n\t});\n\n\treturn true;\n};\n\n/**\n * Закрыть диалоговое окно\n */\nconst close = function (dialogId: string) {\n\tconst elDialog = getElDialogById(dialogId);\n\tif (!elDialog) return;\n\n\tconst $dialog = $(elDialog);\n\n\tif (!$dialog.dialog('instance')) return;\n\n\t$dialog.dialog('close');\n};\n\n/**\n * Управление props.isLoading\n */\nconst setLoading = (elPages: ElTopDialogPage[] | JQuery<ElTopDialogPage>, isLoading: boolean, duration?: number) => {\n\tif (isElJQuery(elPages)) elPages = elPages.toArray(); // todo: убрать после переписки jquery на сайте\n\n\tconst elPagesVisibleds = elPages.reduce<ElTopDialogPage[]>((acc, elPage) => {\n\t\tif (elPage.hasAttribute('data-view-page') && isVisible(elPage)) acc.push(elPage);\n\n\t\treturn acc;\n\t}, []);\n\n\tif (isLoading) {\n\t\tif (duration !== undefined) {\n\t\t\telPagesVisibleds.forEach((elPagesVisibled) => {\n\t\t\t\telPagesVisibled.style.setProperty('--dialog-loading-duration', duration + 's');\n\t\t\t});\n\t\t}\n\n\t\telPagesVisibleds.forEach((elPagesVisibled) => {\n\t\t\telPagesVisibled.classList.add('i-load-data');\n\t\t});\n\t} else {\n\t\telPagesVisibleds.forEach((elPagesVisibled) => {\n\t\t\telPagesVisibled.classList.remove('i-load-data');\n\t\t});\n\n\t\telPagesVisibleds.forEach((elPagesVisibled) => {\n\t\t\telPagesVisibled.style.setProperty('--dialog-loading-duration', '10s');\n\t\t});\n\t}\n};\n\nconst isLoading = (elPage: ElTopDialogPage | JQuery<ElTopDialogPage>) => {\n\tif (isElJQuery(elPage)) elPage = elPage?.[0]; // todo: убрать после переписки jquery на сайте\n\n\treturn elPage.classList.contains('i-load-data');\n};\n\nexport const TopDialogUtils = {\n\tgetElDialogById,\n\tupdatePageVue,\n\trecalcPositions,\n\ttoViewDirty,\n\ttoView,\n\ttoViewPage,\n\ttoPrevPage,\n\tsetLoading,\n\tisLoading,\n\tinAnimation,\n\tclose,\n};\n\ninit();\n"],"mappings":";;;;;;;;;AAGe;;;ACGf,IAAI,IAAS,IASA,UAA+B;CACvC,MACJ,IAAS,IAKT,SAAS,iBAAiB,YAAY,MAAM;EAE3C,IADI,EAAE,QAAQ,YACV,CAAC,EAAE,UAAU,EAAE,EAAE,kBAAkB,cAAc;EAErD,IAAM,IAAK,EAAE;EAcb,IAXI,CAAC,EAAG,QAAQ,YAAY,KAExB,EAAG,oBAAoB,UAAU,EAAG,oBAAoB,oBAGxD,EAAqB,SAAS,iBAAiB,oBAAoB,KAGnE,EAAG,UAAU,SAAS,cAAc,KAGpC,EAAqB,SAAS,iBAAiB,qBAAqB,GAAG;EAE3E,IAAM,IAAY,EAAmC,UAAU,oBAAoB,CAAC,CAAC,QAAQ,MACrF,EAAU,CAAQ,CACzB;EAED,EAAE,EAAU,EAAU,SAAS,EAAE,CAAC,CAAC,OAAO,OAAO;CAClD,CAAC,GAKD,SAAS,iBAAiB,UAAU,MAAM;EAyBzC,IAAI,EAAE,EAAE,kBAAkB,cAAc;EAExC,IAAM,IAAK,EAAE,OAAO,QAAQ,oCAAkC;EAC9D,IAAI,CAAC,GAAI;EAET,EAAE,eAAe;EAEjB,IAAM,IAAW,EAAG,QAAqB,oBAAoB;EAC7D,IAAI,CAAC,GAAU;EAGf,IAAM,IAAS,EAAG,QAAQ;EAE1B,IAAI,KAAU,gBAAgB;GAC7B,EAAe,WAAW,CAAQ;GAElC;EACD;EAEA,IAAI,GAAQ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a,KAAA,KAChB,EAAiB,SAAS,MAAoB;GAC7C,EAAgB,MAAM,YAAY,6BAA6B,IAAW,GAAG;EAC9E,CAAC,GAGF,EAAiB,SAAS,MAAoB;GAC7C,EAAgB,UAAU,IAAI,aAAa;EAC5C,CAAC,MAED,EAAiB,SAAS,MAAoB;GAC7C,EAAgB,UAAU,OAAO,aAAa;EAC/C,CAAC,GAED,EAAiB,SAAS,MAAoB;GAC7C,EAAgB,MAAM,YAAY,6BAA6B,KAAK;EACrE,CAAC;CAEH;CAiBC,YAfkB,OACd,EAAW,CAAM,MAAG,IAAS,IAAS,KAEnC,EAAO,UAAU,SAAS,aAAa;CAa9C;CACA,gBA7DuB,GAAkB;EACzC,IAAM,IAAW,EAAgB,CAAQ;EACzC,IAAI,CAAC,GAAU;EAEf,IAAM,IAAU,EAAE,CAAQ;EAErB,EAAQ,OAAO,UAAU,KAE9B,EAAQ,OAAO,OAAO;CACvB;AAqDA;AAEA,EAAK"}
|
|
1
|
+
{"version":3,"file":"utils-ZgQqVN0T.esm.js","names":[],"sources":["../../src/storybook/jquery.ts","../../src/components/dialog/lib/utils.globalEvents.ts","../../src/components/dialog/dialog/style/dialog.css?inline","../../src/components/dialog/dialog/style/dialog.m.css?inline","../../src/components/dialog/dialog/style/dialog.pc.css?inline","../../src/components/dialog/dialog/style/modern/dialog.css?inline","../../src/components/dialog/dialog/style/modern/dialog.pc.css?inline","../../src/components/dialog/lib/utils.ts"],"sourcesContent":["/**\n * см. /.storybook/preview-head.html\n */\nexport default $;\n","import { TopDialogUtils } from './utils';\nimport { TopDialogWorker } from './worker';\nimport { isVisible, querySelectorAllArray, querySelectorVisible } from '@/core/utils/dom';\nimport { historySetState } from '@/core/utils/route';\nimport type { ElTopDialog, ElTopDialogWrapper } from '@/components/dialog/lib/types';\n\nlet inited = false;\n\n/**\n * Инициализация глобальных событий для диалоговых окон\n *\n * Производится один раз при подключении диалогового окна\n *\n * События не размонтируются\n */\nexport const initDialogGlobalEvents = () => {\n\tif (inited) return;\n\tinited = true;\n\n\t/**\n\t * Закрытие диалога по Esc\n\t */\n\tdocument.addEventListener('keydown', (e) => {\n\t\tif (e.key !== 'Escape') return;\n\t\tif (!e.target || !(e.target instanceof HTMLElement)) return;\n\n\t\tconst el = e.target;\n\n\t\t// событие произошло вне диалогового окна\n\t\tif (!el.closest('.ui-dialog')) return;\n\n\t\tif (el.contentEditable === 'true' || el.contentEditable === 'plaintext-only') return;\n\n\t\t// не закрывать окно при открытом TopPopup\n\t\tif (querySelectorVisible(document.documentElement, '.top-popup-wrapper')) return;\n\n\t\t// не закрывать окно при работе с jquery autocomplete\n\t\tif (el.classList.contains('autocomplete')) return;\n\n\t\t// не закрывать окно при открытом fancybox\n\t\tif (querySelectorVisible(document.documentElement, '.fancybox-container')) return;\n\n\t\tconst elDialogs = querySelectorAllArray<ElTopDialog>(document, '.ui-dialog-content').filter((elDialog) => {\n\t\t\treturn isVisible(elDialog);\n\t\t});\n\n\t\t$(elDialogs[elDialogs.length - 1]).dialog('close');\n\t});\n\n\t/**\n\t * Закрытие диалога по кнопке закрыть\n\t */\n\tdocument.addEventListener('click', (e) => {\n\t\t// // навигация без истории\n\t\t// var $dialog = $(this).closest('.ui-dialog-content');\n\t\t// var viewName = $dialog.attr('id');\n\t\t// var pageName = getHash('view-' + viewName);\n\t\t// if (!pageName) {\n\t\t// \ttoPrevPage($dialog);\n\t\t//\n\t\t// \treturn;\n\t\t// }\n\t\t//\n\t\t// // навигация по истории\n\t\t// if (Core.state.isMobile && history.length > 1 && $(this).closest('.modal-layer').length) {\n\t\t// \tvar href = location.href;\n\t\t//\n\t\t// \thistory.go(-1);\n\t\t//\n\t\t// \tsetTimeout(() => {\n\t\t// \t\t// это первая страница в истории вкладки браузера\n\t\t// \t\tif (href === location.href) $(e.target).closest('.ui-dialog-content').dialog('close');\n\t\t// \t});\n\t\t// } else {\n\t\t// \t$(this).closest('.ui-dialog-content').dialog('close');\n\t\t// }\n\n\t\tif (!(e.target instanceof HTMLElement)) return;\n\n\t\tconst el = e.target.closest('[data-action=\"top-dialog-close\"]') as HTMLElement | null;\n\t\tif (!el) return;\n\n\t\te.preventDefault();\n\n\t\tconst elDialog = el.closest<ElTopDialog>('.ui-dialog-content');\n\t\tif (!elDialog) return;\n\n\t\t// если к кнопке привязана ссылка, диалоговое окно не нужно закрывать\n\t\tconst toView = el.dataset.toView;\n\n\t\tif (toView == 'toPrevPage()') {\n\t\t\tTopDialogUtils.toPrevPage(elDialog);\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (toView) {\n\t\t\tconst viewNameAndPageLink = toView.split('-');\n\t\t\tconst viewName = viewNameAndPageLink.shift();\n\t\t\tconst pageLink = viewNameAndPageLink.join('-');\n\n\t\t\tif (!viewName) return;\n\n\t\t\tconst elDialog = TopDialogUtils.getElDialogById(viewName);\n\t\t\tif (!elDialog) return;\n\n\t\t\tconst elToPages = querySelectorAllArray(elDialog, `[data-view-page=\"${pageLink}\"]`);\n\t\t\tif (!elToPages) return;\n\n\t\t\tif (!isVisible(elToPages[0])) {\n\t\t\t\tconst hash = TopDialogWorker.genViewPageHash(toView, 'prev');\n\n\t\t\t\t// // не убирает кнопку \"Вперед\" в браузере\n\t\t\t\t// history.replaceState(null, '', hash);\n\t\t\t\t// toViewDirty(toView, 'prev');\n\n\t\t\t\t// // добавляет текущую страницу в историю браузера\n\t\t\t\thistorySetState(false, hash);\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tconst $dialog = $(elDialog);\n\n\t\t$dialog.dialog('close');\n\t});\n\n\t/**\n\t * Все submit должны обрабатываться через js\n\t */\n\tdocument.addEventListener('submit', (e) => {\n\t\tconst elForm = e.target as HTMLElement;\n\n\t\tif (elForm.matches('.modal-body > form') || elForm.matches('.modal-layer-body > form')) {\n\t\t\te.preventDefault();\n\t\t}\n\t});\n\n\t/**\n\t * Выполнение действия по нажатию Enter\n\t *\n\t * @todo Убрать `.searcher`\n\t */\n\tdocument.addEventListener('keypress', (e) => {\n\t\tif (!(e.target instanceof HTMLElement)) return;\n\n\t\tconst eventTarget = e.target;\n\n\t\tconst elModalBody = eventTarget.closest('.ui-dialog .modal-body');\n\t\tif (!elModalBody) return;\n\n\t\tconst isInput =\n\t\t\teventTarget.matches('input:not(.searcher), textarea:not(.searcher), select:not(.searcher), button:not(.searcher)')\n\t\t\t|| eventTarget.hasAttribute('contenteditable');\n\t\tif (!isInput) return;\n\n\t\t// if (e.keyCode !== 10 && e.key !== 'ENTER') return;\n\t\tif (e.key !== 'Enter') return;\n\n\t\t// не выполнять submit действий при работе с jquery autocomplete\n\t\tif (eventTarget.classList.contains('autocomplete')) {\n\t\t\te.preventDefault();\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (eventTarget.tagName === 'TEXTAREA') {\n\t\t\tif (!e.ctrlKey && !e.metaKey) return;\n\n\t\t\tconst elForm = eventTarget.closest('form');\n\n\t\t\tif (elForm) {\n\t\t\t\t// Find visible submit buttons\n\t\t\t\tconst elSubmitButton = querySelectorAllArray(elForm, 'button[type=\"submit\"]')\n\t\t\t\t\t.concat(querySelectorAllArray(elForm, 'input[type=\"submit\"]'))\n\t\t\t\t\t.find((elSubmitButton) => {\n\t\t\t\t\t\treturn isVisible(elSubmitButton);\n\t\t\t\t\t});\n\n\t\t\t\telSubmitButton?.click();\n\t\t\t}\n\t\t}\n\t});\n\n\t/**\n\t * Закрытие диалога по клику вне окна\n\t */\n\tdocument.addEventListener('click', function (event) {\n\t\tif (!(event.target instanceof HTMLElement)) return;\n\n\t\tconst eventTarget = event.target;\n\n\t\tif (!eventTarget.classList.contains('ui-widget-overlay')) return;\n\n\t\tlet elDialogWrapperWithTopZIndex: ElTopDialogWrapper | undefined;\n\t\tlet topZIndex = 0;\n\n\t\tconst elDialogWrapperVisibles = querySelectorAllArray<ElTopDialogWrapper>(document, '.ui-dialog').filter((elDialogWrapper) => {\n\t\t\treturn isVisible(elDialogWrapper);\n\t\t});\n\n\t\telDialogWrapperVisibles.forEach((elDialogWrapper) => {\n\t\t\tconst zIndex = Number(window.getComputedStyle(elDialogWrapper).zIndex);\n\t\t\tif (zIndex < topZIndex) return;\n\n\t\t\telDialogWrapperWithTopZIndex = elDialogWrapper;\n\t\t\ttopZIndex = zIndex;\n\t\t});\n\n\t\tif (elDialogWrapperWithTopZIndex) {\n\t\t\tconst elDialog = elDialogWrapperWithTopZIndex.querySelector('.ui-dialog-content');\n\n\t\t\t$(elDialog).dialog('close');\n\t\t}\n\t});\n\n\twindow.addEventListener('resize', TopDialogUtils.recalcPositions);\n\tTopDialogUtils.recalcPositions();\n};\n",":root {\n\t--dialog-border-color: var(--color-line-1);\n\t--dialog-loading-duration: 10s;\n\n\t--top-dialog-footer-height: var(--top-forms-base-height_s);\n}\n\nhtml.with_dialog { overflow: hidden !important; }\n\na[data-to-view] { cursor: pointer; }\n\n/* common */\n.ui-widget-overlay { background: #040404; opacity: 0.50; filter: Alpha(Opacity=50); }\n.ui-dialog { border-radius: 8px; border: none; padding: 0; }\n.ui-dialog.ui-widget { border: none; }\n.ui-dialog-titlebar { display: none; }\n.ui-dialog .ui-dialog-content { padding: 0; overflow: visible; }\n.ui-dialog .project_name { word-break: break-all; }\n\n.ui-dialog-content {\n\t--dialog-header-height: 50px;\n\t--dialog-layer-pageSelector: 0px;\n}\n.ui-dialog-content-withPageSelector {\n\t--dialog-layer-pageSelector: 42px;\n}\n\n.modal-header,\n.modal-body,\n.modal-footer { font-size: 14px; position: relative; }\n.modal-body { padding: var(--padding-default); }\n.modal-body:has(> .topTable:first-child) {\n\tpadding-top: calc(var(--padding-default) / 4);\n}\n\n/* modal-header */\n.modal-header {\n\tborder-bottom: 1px solid var(--dialog-border-color); height: var(--dialog-header-height); padding: 0 var(--padding-default);\n\tdisplay: flex; justify-content: space-between; align-items: center; gap: var(--top-padding-2);\n}\n.modal-header > * { padding: 10px 0; font-size: 16px; }\n.modal-header > .top-title {\n\tmargin: 0;\n\tfont-weight: normal;\n\toverflow: hidden; text-overflow: ellipsis; white-space: nowrap;\n\tflex-grow: 1; order: 50; display: flex; align-items: center;\n}\n.modal-header > .top-title > div[class*=icon] { display: none; }\n.modal-header > div:not(.top-title) { order: 60; }\n.modal-header > div.close {\n\t--top-icon-color: var(--color-text-2);\n\n\tcursor: pointer;\n\tbackground: var(--color-layout-front-1); font-size: 16px;\n\torder: 100;\n\tanimation-name: none !important;\n}\n.modal-header > div.close:hover {\n\t--top-icon-color: var(--color-text-1);\n}\n\n.modal-header .links_icons { position: absolute; right: 50px; }\n.modal-header .links_icons [class*=\"icon-\"] { width: auto; height: auto; padding: 0 5px; color: #D6DEE0; }\n.modal-header .links_icons [class*=\"icon-\"].active { color: var(--color-bg-warning-1); }\n\n.modal-layer-pageSelector { padding: 0 10px !important; }\n\n/* modal-body */\n.modal-body {\n\tmax-height: calc(var(--100vh) - var(--dialog-header-height) - 1px - var(--dialog-layer-pageSelector) - var(--top-dialog-footer-height) - 1px);\n\toverflow-y: auto; overflow-x: hidden; box-sizing: border-box; flex-grow: 1;\n}\n.modal-body hr { margin: 16px -15px; }\n.modal-body h4 { padding: 0; margin: 0 0 10px 0; line-height: normal; }\n.modal-body .inner { padding: var(--padding-default); margin: 0 calc(0px - var(--padding-default)); position: relative; }\n.modal-body .inner .bt { border-top: 1px dashed var(--color-layout-front-primary-3); position: absolute; top: 0; right: 0; left: 0; }\n.modal-body .inner .bb { border-bottom: 1px dashed var(--color-layout-front-primary-3); position: absolute; right: 0; bottom: 0; left: 0; }\n.modal-body .inner.color-1 { background: var(--color-layout-front-primary-3); color: var(--color-text-1); }\n.modal-body .inner strong { color: var(--color-text-1); }\n.modal-body .comment { line-height: 18px; }\n\n/* modal-footer */\n.modal-footer {\n\tmin-height: var(--top-dialog-footer-height);\n\tpadding: var(--top-gap-2);\n\tdisplay: flex;\n\tflex-shrink: 0;\n\talign-items: center;\n\tjustify-content: flex-end;\n\tgap: var(--top-gap-2);\n}\n\n.modal-footer .modal-footer-btn-left { margin-right: auto; }\n\n.modal-footer > .btn.full_width,\n.modal-footer > .top-button.full_width { flex-grow: 1; align-self: flex-end; }\n\n.modal-footer-fullWith {\n\tflex-wrap: wrap;\n}\n.modal-footer-fullWith > * {\n\tflex-grow: 1;\n}\n.modal-footer-fullWith > .top-info {\n\tflex-grow: 5;\n}\n.modal-footer-fullWith > *:empty {\n\tflex-grow: 0;\n}\n\n/* modal form */\n.ui-dialog-content > .modal-layer > [data-view-page] > input[type=\"submit\"] { position: absolute; visibility: hidden; }\n\n/* modal help_popup */\n.help_popup .modal-header { display: none; }\n.help_popup .modal-header a { top: 2px; z-index: 10; }\n.help_popup .modal-header .top-title { display: none; }\n\n/* view */\n.modal-layer { overflow: hidden; }\n.modal-layer a[data-top-icon]:empty { color: var(--color-text-4); text-decoration: none; }\n\n.modal-layer > [data-view-page] > div > div.buttons { display: flex; white-space: nowrap; gap: var(--top-padding-1); }\n.modal-layer > [data-view-page] > div > div.buttons:empty { display: none; }\n.modal-layer > [data-view-page] > div > div.buttons > div,\n.modal-layer > [data-view-page] > div > div.buttons > a {\n\tcursor: pointer;\n\twidth: auto; height: auto; min-width: auto; min-height: auto; padding: 10px 9px;\n\tcolor: var(--color-text-4);\n}\n.modal-layer > [data-view-page] > div > div.buttons > div:hover { color: var(--color-text-2); }\n.modal-layer > [data-view-page] > div > div.buttons > div.hidden { display: none !important; }\n\n.ui-dialog-content[data-view-page-active] { display: flex !important; flex-direction: column; justify-items: stretch; }\n.ui-dialog-content > .modal-layer { display: flex !important; align-items: stretch; position: relative; }\n.ui-dialog-content.i-change-page > .modal-layer { overflow: hidden; }\n.ui-dialog-content > .modal-layer > [data-view-page] {\n\twidth: 100%;\n\tposition: relative; display: none;\n\tflex-direction: column; justify-content: space-between;\n\tanimation: 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;\n}\n.ui-dialog-content > .modal-layer > [data-view-page].active { display: flex; }\n.ui-dialog-content > .modal-layer > [data-view-page].reverse { animation-direction: reverse; }\n.ui-dialog-content > .modal-layer > [data-view-page].center-to-left,\n.ui-dialog-content > .modal-layer > [data-view-page].right-to-center { display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }\n.ui-dialog-content > .modal-layer > [data-view-page].center-to-left > div,\n.ui-dialog-content > .modal-layer > [data-view-page].right-to-center > div { overflow: hidden; }\n\n.ui-dialog-content > .modal-layer-header { border-bottom: 1px solid var(--dialog-border-color); min-height: var(--dialog-header-height); }\n.ui-dialog-content > .modal-layer-header > [data-view-page] > .modal-header { border: none; background: none; }\n.ui-dialog-content > .modal-layer-header > [data-view-page] > .modal-header > * { animation: 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].reverse > .modal-header > * { animation-direction: reverse; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].center-to-left > .modal-header > .top-title { animation-name: dialog-center-to-left-header-title; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].right-to-center > .modal-header > .top-title { animation-name: dialog-right-to-center-header-title; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].center-to-left > .modal-header > [class*=\"widget-\"] { animation-name: dialog-center-to-left-header-title; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].right-to-center > .modal-header > [class*=\"widget-\"] { animation-name: dialog-right-to-center-header-title; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].center-to-left > .modal-header > div { animation-name: dialog-center-to-left-header-icons; }\n.ui-dialog-content > .modal-layer-header > [data-view-page].right-to-center > .modal-header > div { animation-name: dialog-right-to-center-header-icons; }\n\n.ui-dialog-content > .modal-layer-body { border-radius: 0 0 8px 8px; max-height: calc(var(--100vh) - var(--dialog-header-height) - var(--dialog-layer-pageSelector) - var(--toolbar-height)); flex-grow: 2; }\n.ui-dialog-content.i-change-page > .modal-layer-body > [data-view-page] { background: var(--color-layout-front-1); }\n.ui-dialog-content > .modal-layer-body > [data-view-page].center-to-left { animation-name: dialog-center-to-left; }\n.ui-dialog-content > .modal-layer-body > [data-view-page].right-to-center { animation-name: dialog-right-to-center; }\n\n.ui-dialog-content .modal-footer .second_level {\n\tbox-sizing: border-box;\n\tbackground: var(--color-layout-front-1); width: 100%; min-height: 25px;\n\tdisplay: flex; align-items: center; justify-content: center;\n}\n.ui-dialog-content .modal-footer .second_level input {\n\tborder-radius: 8px;\n\twidth: 100%; height: var(--top-forms-base-height);\n\tpadding: var(--top-padding-1) var(--top-padding-3);\n\tbox-sizing: border-box;\n}\n\n.ui-dialog-content > .modal-layer-body > [data-view-page].i-load-data {\n\tpointer-events: none;\n}\n.ui-dialog-content > .modal-layer-body > [data-view-page].i-load-data:before {\n\tcontent: \" \";\n\tbackground: #378DC6; width: 0; height: 4px;\n\tposition: absolute; top: 0; left: 0; z-index: 100;\n\tanimation: top-loadbar var(--dialog-loading-duration) forwards;\n}\n\n.ui-dialog-content.modal-expanded { width: 100vw !important; height: calc(var(--100vh) + 10px) !important; }\n\n/* widgets */\n.modal-header > [data-widget] {\n\tpadding: 0 8px;\n\tposition: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; overflow: hidden;\n\talign-items: center;\n\tvisibility: hidden;\n\ttransition: opacity 0.3s; z-index: 1;\n}\n\n.modal-header > [data-widget=\"search\"] div.cancel {\n\topacity: 0;\n\ttransform: translateX(100%);\n\ttransition: transform, opacity; transition-duration: 0.3s;\n}\n\n[data-view-page].i-show-search { }\n[data-view-page].i-show-search .modal-header > :not([data-widget=\"search\"]) { visibility: hidden; }\n[data-view-page].i-show-search [data-widget=\"search\"] { visibility: visible; opacity: 1; }\n[data-view-page].i-show-search [data-widget=\"search\"] .cancel { transform: translateX(0); opacity: 1; }\n\n[data-view-page] > .modal-header > * { transition: opacity 0.3s; }\n[data-view-page].i-show-search > .modal-header > div.buttons { opacity: 0; }\n\n/* top-popup */\n.modal-layer .top-popup-wrapper { height: 100% !important; }\n\n/* animation */\n@keyframes dialog-center-to-left-header-title {\n\tfrom { transform: translateX(0); opacity: 1; }\n\t75% { opacity: 0; }\n\tto { transform: translateX(-30%); opacity: 0; }\n}\n\n@keyframes dialog-right-to-center-header-title {\n\tfrom { transform: translateX(100%); opacity: 0; }\n\t25% { opacity: 0; }\n\tto { transform: translateX(0); opacity: 1; }\n}\n\n@keyframes dialog-center-to-left-header-icons {\n\tfrom { transform: translateX(0); opacity: 1; }\n\t35% { transform: translateX(-20%); opacity: 0; }\n\tto { transform: translateX(-20%); opacity: 0; }\n}\n\n@keyframes dialog-right-to-center-header-icons {\n\tfrom { transform: translateX(20%); opacity: 0; }\n\t65% { transform: translateX(20%); opacity: 0; }\n\tto { transform: translateX(0); opacity: 1; }\n}\n\n@keyframes dialog-center-to-left {\n\tfrom { transform: translateX(0); filter: brightness(1); }\n\tto { transform: translateX(-30%); filter: brightness(0.9); }\n}\n\n@keyframes dialog-right-to-center {\n\tfrom { transform: translateX(100%); box-shadow: rgba(0, 0, 0, 0.1) 0 0 10px; }\n\tto { transform: translateX(0); box-shadow: rgba(0, 0, 0, 0.2) 0 0 10px; }\n}\n\n/* вид с дополнительной секцией TopPopup сбоку от окна */\n@media only screen and (max-width: 1480px) {\n\t.win_side_panel_opener { display: none; }\n}\n\n@media only screen and (min-width: 1480px) {\n\t.ui-dialog-content.with_side_panel { box-shadow: rgb(0 0 0 / 20%) 0 0 6px; }\n\n\t.ui-dialog-content.with_side_panel .modal-layer-body { background: var(--color-layout-front-1); }\n\n\t[data-widget=\"side_panel\"] {\n\t\t--side_panel_width: calc((100vw - 900px) / 2 - 28px);\n\n\t\tbox-sizing: border-box;\n\t\tbackground: var(--color-layout-front-1); max-width: var(--side_panel_width); padding: 18px;\n\t\tposition: absolute; top: calc(var(--dialog-header-height) + 1px + var(--dialog-layer-pageSelector)); bottom: calc(var(--top-dialog-footer-height) + 1px);\n\t\tz-index: -1; display: block;\n\t\ttransition: 0.2s;\n\t}\n\n\t.win_side_panel_left { border-radius: 8px 0 0 8px; right: 100%; }\n\n\t.win_side_panel_right { border-radius: 0 8px 8px 0; left: 100%; }\n\n\t.win_side_panel_closed.win_side_panel_left { right: calc(100% - var(--side_panel_width)); }\n\n\t.win_side_panel_closed.win_side_panel_right { left: calc(100% - var(--side_panel_width)); }\n\n\t[data-widget=\"side_panel\"] .template { display: block; }\n\n\t[data-widget=\"side_panel\"] .template > .header,\n\t[data-widget=\"side_panel\"] .template > .footer { display: flex; }\n\n\t.win_side_panel_opener { cursor: pointer; background: var(--color-cyan); color: #FFF; padding: 4px; position: absolute; top: 20px; }\n\n\t.win_side_panel_closed .win_side_panel_opener:not(:hover) { opacity: 0.3; }\n\n\t.win_side_panel_left .win_side_panel_opener { border-radius: 4px 0 0 4px; right: 100%; }\n\n\t.win_side_panel_right .win_side_panel_opener { border-radius: 0 6px 6px 0; left: 100%; }\n}\n\n@media only screen and (max-height: 900px) {\n\thtml.with_dialog { background: #F1F1F1; overflow: hidden; }\n\n\t.ui-widget-overlay { }\n\n\t.ui-dialog.me-tightly {\n\t\tborder-radius: 0;\n\t\theight: auto !important;\n\t\tposition: fixed; top: 0 !important; bottom: 0 !important;\n\t}\n\n\t.ui-dialog.me-tightly .ui-dialog-content { min-height: 100% !important; }\n\n\t/* для не view */\n\t.ui-dialog.me-tightly > div > .modal-body { position: absolute; top: var(--dialog-header-height); right: 0; left: 0; bottom: var(--dialog-header-height); }\n\n\t.ui-dialog.me-tightly > div > .modal-body:last-child { bottom: 0; }\n\n\t.ui-dialog.me-tightly > div > .modal-footer { position: absolute; right: 0; bottom: 0; left: 0; }\n\n\t/* view */\n\t.modal-layer { }\n\n\t.ui-dialog.me-tightly .modal-layer-body { border-radius: 0; min-height: 0 !important; }\n\n\t.ui-dialog.me-tightly .modal-layer-body .modal-footer { min-height: unset; }\n}\n","html.with_dialog body { height: var(--100vh); overflow: hidden; }\n\n.ui-widget-overlay { height: calc(100% - var(--toolbar-height)); }\n\n.ui-dialog {\n\tborder-radius: 0;\n\twidth: auto !important; height: auto !important;\n\tposition: fixed; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;\n}\n\n.ui-dialog-content {\n\twidth: 100% !important;\n\theight: 100% !important;\n\tmin-width: 0 !important;\n\tmax-width: 100% !important;\n}\n\n/* modal-header */\n.modal-header > .top-title { text-align: center; font-size: 14px; }\n.modal-header > div.close { font-size: 14px; order: 1; }\n.modal-header > div.close:before { content: \"\"; }\n\n/* modal-body */\n.modal-body { }\n.modal-body:last-child { bottom: 0; }\n.modal-footer { bottom: 0; }\n\n/* modal-footer */\n.modal-footer .second_level { padding: 10px 8px; }\n\n/* view */\n.modal-layer-body { min-height: 0 !important; }\n.ui-dialog-content > .modal-layer-body { border-radius: 0; }\n/*.ui-dialog-content > .modal-layer-body > [data-view-page] .modal-body{ margin: auto 0; }*/\n\n.modal-body,\n.modal-footer { padding-right: 12px; padding-left: 12px; }\n.modal-footer .btn:last-child { margin-right: 12px; }\n\n.modal-body .inner { padding: 12px; margin: 0 -12px; position: relative; }\n","/* menu */\n.modal-menu-opener { order: 1 !important; }\n.modal-menu-opener:before {\n\t--top-icon-size: 20px;\n\t--top-icon-color: #FFF;\n\t--top-icon-width: var(--top-icon-size);\n\n\tborder-radius: 50%; background: var(--color-bg-primary-1); padding: 3px;\n\ttransition: transform 0.1s;\n}\n.modal-menu-opener:hover:before { background: var(--color-bg-primary-2); }\n.modal-menu-opener.top-active:before { background: var(--color-bg-primary-2); transform: scale(0.8); }\n\n/* top-popup */\n.modal-layer .top-popup-wrapper {\n\tbackground: transparent;\n\twidth: auto !important; padding: 0 !important; margin: 0 !important;\n\ttop: 0 !important; right: 0 !important; left: 0 !important;\n\ttransition: background 0.3s;\n}\n\n.modal-layer .top-popup-wrapper > .top-popup[class],\n.modal-layer .top-popup-wrapper.with_notch > .top-popup[class] {\n\tborder-radius: 8px; border: none; margin: 12px !important; max-width: 100%; max-height: calc(100% - 24px);\n\ttop: 0 !important; right: 0 !important; bottom: auto !important; left: 0 !important; overflow: auto; display: flex; flex-direction: column;\n\topacity: 1;\n\ttransform: translateY(calc(-100% - 24px));\n\ttransition: transform 0.3s;\n}\n\n.modal-layer .top-popup > .top-popup_header { background: var(--color-theme-50); }\n\n.modal-layer .top-theme-lite .top-popup > .top-popup_header .select { border: none; }\n.modal-layer .top-theme-lite .top-popup > .top-popup_header .select .text { color: #FFF; }\n.modal-layer .top-theme-lite .top-popup > .top-popup_header .select .arrow { background: none; }\n\n.modal-layer .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) {\n\tpointer-events: auto;\n\tbackground: rgba(52, 73, 94, 0.25);\n}\n\n@media only screen and (min-width: 1480px) {\n\t.ui-dialog-content.with_side_panel { box-shadow: rgb(0 0 0 / 20%) 0 0 6px; }\n\n\t.ui-dialog-content.with_side_panel .modal-layer-body { background: var(--color-layout-front-1); }\n\n\t[data-widget=\"side_panel\"] {\n\t\t--side_panel_width: calc((100vw - 900px) / 2 - 28px);\n\n\t\tbox-sizing: border-box;\n\t\tbackground: var(--color-layout-front-1); max-width: var(--side_panel_width); padding: 18px;\n\t\tdisplay: block; position: absolute; top: 51px; bottom: 51px; z-index: -1;\n\t\ttransition: 0.2s;\n\t}\n\n\t.win_side_panel_left { border-radius: 8px 0 0 8px; right: 100%; }\n\n\t.win_side_panel_right { border-radius: 0 8px 8px 0; left: 100%; }\n\n\t.win_side_panel_closed.win_side_panel_left { right: calc(100% - var(--side_panel_width)); }\n\n\t.win_side_panel_closed.win_side_panel_right { left: calc(100% - var(--side_panel_width)); }\n\n\t[data-widget=\"side_panel\"] .template { display: block; }\n\n\t[data-widget=\"side_panel\"] .template > .header,\n\t[data-widget=\"side_panel\"] .template > .footer { display: flex; }\n\n\t.win_side_panel_opener { cursor: pointer; background: var(--color-cyan); color: #FFF; padding: 4px; position: absolute; top: 20px; }\n\n\t.win_side_panel_closed .win_side_panel_opener:not(:hover) { opacity: 0.3; }\n\n\t.win_side_panel_left .win_side_panel_opener { border-radius: 4px 0 0 4px; right: 100%; }\n\n\t.win_side_panel_right .win_side_panel_opener { border-radius: 0 6px 6px 0; left: 100%; }\n}\n","html {\n\t--top-dialog-width: auto;\n\t--top-dialog-height: auto;\n}\n\n.top-dialog {\n\tmax-width: 100vw;\n}\n\n.top-dialog .modal-layer-body {\n\theight: var(--top-dialog-height);\n}\n",".top-dialog {\n\twidth: var(--top-dialog-width) !important;\n}","import 'jquery';\nimport { nextTick } from 'vue';\n\nimport Core from '@/core/core/core';\nimport { TopPopupWorker } from '@/components/popup/worker';\nimport { sleep, waitWhile } from '@/core/utils/system';\nimport { setHashs } from '@/core/utils/route';\nimport { connectScrollShadow } from '@/core/utils/scroll';\n\nimport type { ElTopDialog, ElTopDialogBody, ElTopDialogModalLayer, ElTopDialogPage, ElTopDialogWrapper, MoveDirection } from './types';\nimport { TopDialogWorker } from './worker';\nimport { initDialogGlobalEvents } from './utils.globalEvents';\nimport { getDialogWorker } from '../dialog/dialogs/dialogs.vue';\n\nimport css from '../dialog/style/dialog.css?inline';\nimport cssM from '../dialog/style/dialog.m.css?inline';\nimport cssPC from '../dialog/style/dialog.pc.css?inline';\nimport cssModern from '../dialog/style/modern/dialog.css?inline';\nimport cssModernPC from '../dialog/style/modern/dialog.pc.css?inline';\nimport { isVisible, querySelectorAllArray } from '@/core/utils/dom';\n\nCore.insertStyleToPage(css);\nCore.insertStyleToPage(cssM, 'm');\nCore.insertStyleToPage(cssPC, 'pc');\nCore.insertStyleToPage(cssModern);\nCore.insertStyleToPage(cssModernPC, 'pc');\n\nlet timerClearAnimation: NodeJS.Timeout;\nlet isInited = false;\n\n/**\n * Является ли элемент JQuery<HTMLElement>\n */\nconst isElJQuery = (el: JQuery<HTMLElement> | HTMLElement | HTMLElement[]) => {\n\treturn !!el && typeof el === 'object' && 'jquery' in el;\n};\n\nconst init = () => {\n\t$.extend($.ui.dialog.prototype.options, {\n\t\tfocus: (e: any) => {\n\t\t\te.target.focus();\n\n\t\t\t$('[autofocus]', e.target)[0]?.focus();\n\n\t\t\t// setTimeout(function () {\n\t\t\t// \tif ($('[autofocus]', e.target).length) return;\n\t\t\t// \t$('.modal-footer button:first, .modal-body :input:first', e.target).eq(0).focus();\n\t\t\t//\n\t\t\t// \t// fix пропадающего autocomplete при нажатии на scroll в autocomplete\n\t\t\t// \t$(e.target).add($(e.target).closest('.ui-dialog')).removeAttr('tabindex');\n\t\t\t// });\n\t\t},\n\t\tcreate: (e: any) => onCreate(e.target),\n\t\topen: (e: any) => onOpen(e.target),\n\t\tclose: (e: any) => onClose(e.target),\n\t\tmodal: true,\n\t\tresizable: false,\n\t\tcloseOnEscape: false,\n\t\twidth: 'auto',\n\t\tminHeight: 0,\n\t});\n\n\t$.ui.dialog.prototype._focusTabbable = $.noop;\n\n\t$.ui.dialog.prototype._moveToTopOriginal = $.ui.dialog.prototype._moveToTop;\n\t$.ui.dialog.prototype._moveToTop = function () {\n\t\tthis._moveToTopOriginal();\n\n\t\tconst $dialog = $(this.element);\n\t\t$dialog.trigger('dialogsMoveToTop', [$dialog]);\n\t};\n\n\tinitDialogGlobalEvents();\n\n\tisInited = true;\n};\n\n/**\n * Получить настройки диалогового окна из Vue компонента\n */\nconst genVueOptions = (elDialog: ElTopDialog) => {\n\tconst options: {\n\t\tmodal?: boolean,\n\t\tposition?: any,\n\t} = {};\n\n\tif (elDialog.dataset?.modal === 'false') options.modal = false;\n\tif (elDialog.dataset?.position) options.position = JSON.parse(elDialog.dataset.position);\n\n\treturn options;\n};\n\nconst getElDialogById = (id: string) => {\n\treturn <ElTopDialog | null>document.getElementById(id);\n};\n\n/**\n * Сменить состояние диалогового окна Vue\n */\nconst updatePageVue = async (dialogId: string, pageName?: string, pageNameNext?: string) => {\n\tif (!dialogId.startsWith('dialog_')) return;\n\n\tconst dialog = getDialogWorker(dialogId);\n\tif (!dialog) return;\n\n\tdialog.isOpened.value = true;\n\tif (pageName !== undefined) dialog.pageActive.value = pageName;\n\tif (pageNameNext !== undefined) dialog.pageActiveNext.value = pageNameNext;\n\n\tawait nextTick();\n\n\tif (pageNameNext) {\n\t\tconst elDialog = getElDialogById(dialogId);\n\t\tif (!elDialog) return;\n\n\t\tconst elNextpages = elDialog.querySelectorAll(`[data-view-page=\"${pageNameNext}\"]`);\n\n\t\tif (!elNextpages.length) {\n\t\t\tawait waitWhile(() => !elDialog.querySelectorAll(`[data-view-page=\"${pageNameNext}\"]`).length);\n\t\t}\n\t}\n};\n\n/**\n * Callback for jQuery dialog onCreate\n */\nconst onCreate = (elDialog: ElTopDialog) => {\n\tconst elDialogBody = elDialog.querySelector<ElTopDialogBody>('.modal-body');\n\tif (!elDialogBody) return;\n\n\tconnectScrollShadow(elDialogBody);\n\n\tTopDialogWorker.state.decoratorOnCreate?.(elDialog);\n\n\tinitPopup(elDialog);\n};\n\n/**\n * Инициирование событий TopPopup в диалоговом окне\n */\nconst initPopup = (elDialog: HTMLElement) => {\n\t$(elDialog).on('aftershow.top-menu-popup', '[data-top-popup]', (_e, $popup) => {\n\t\t// перенести popup в корневой элемент страницы диалогового окна\n\t\tconst elPopup = $popup[0];\n\n\t\t// перенести popup в корневой элемент страницы диалогового окна\n\t\tconst elPageContents = TopDialogWorker.getPairPage(elPopup);\n\t\telPageContents?.[1]?.prepend(elPopup);\n\t});\n};\n\n/**\n * Callback for jQuery dialog onOpen\n */\nconst onOpen = async (elDialog: ElTopDialog) => {\n\tconst pageName = elDialog.dataset.viewPageActive;\n\tconst args = elDialog.dataset.args ? elDialog.dataset.args?.split(':') : [];\n\n\tconst w1 = window.innerWidth;\n\n\tCore.state.documentClassModificators.set('top-dialog', 'with_dialog');\n\n\tconst w2 = window.innerWidth;\n\n\tconst scrollBarWidth = w2 - w1;\n\tif (document.documentElement.scrollHeight > window.innerHeight) document.querySelector('html')!.style.marginRight = scrollBarWidth + 'px';\n\n\trecalcPositions();\n\n\tconst dialog = getDialogWorker(elDialog.getAttribute('id')!);\n\tdialog?.emit?.('open', pageName, args);\n};\n\n/**\n * Callback for jQuery dialog onClose\n */\nconst onClose = async (elDialog: ElTopDialog) => {\n\tconst viewName = elDialog.getAttribute('id');\n\tconst pageName = elDialog.dataset.viewPageActive;\n\n\tif (pageName) {\n\t\tconst hashData = {\n\t\t\tvpn: TopDialogWorker.state.viewPageN as number | null,\n\t\t\t['view-' + viewName]: null,\n\t\t};\n\t\thashData['view-' + viewName] = null;\n\n\t\tif (TopDialogWorker.state.viewPageN === 0 || TopDialogWorker.state.viewPageN === 1) {\n\t\t\thashData.vpn = null;\n\t\t}\n\n\t\tsetHashs(hashData, false);\n\t}\n\n\tconst elUiWidgetOverlayVisibles = querySelectorAllArray(document, '.ui-widget-overlay').filter((el) => {\n\t\treturn isVisible(el);\n\t});\n\n\tif (!elUiWidgetOverlayVisibles.length) {\n\t\tCore.state.documentClassModificators.delete('top-dialog');\n\n\t\tdocument.querySelector('html')!.style.marginRight = '';\n\t}\n\n\t$(elDialog).trigger('viewAfterClose', [$(elDialog)]);\n\n\tconst dialog = getDialogWorker(viewName);\n\n\tif (dialog) {\n\t\tdialog.isOpened.value = false;\n\t\tdialog.emit?.('close', pageName);\n\n\t\tif (dialog.onCloseOnce) {\n\t\t\tdialog.onCloseOnce(dialog.props, pageName);\n\t\t\tdialog.onCloseOnce = undefined;\n\t\t}\n\t}\n\n\t// после закрытия диалога может потребоваться пересчет позиций элементов\n\twindow.dispatchEvent(new Event('resize'));\n};\n\n/**\n * Пересчитать положения и размеры открытых диалоговых окон\n */\nconst recalcPositions = () => {\n\tconst elDialogVisibilityes = querySelectorAllArray(document, '.ui-dialog').filter((el) => {\n\t\treturn isVisible(el) && el.querySelector<ElTopDialog>(':scope > .ui-dialog-content');\n\t}).map((el) => {\n\t\treturn el.querySelector<ElTopDialog>(':scope > .ui-dialog-content')!;\n\t});\n\n\telDialogVisibilityes.forEach((elDialog) => {\n\t\tconst elDialogBody = elDialog.querySelector<ElTopDialogBody>('.modal-body');\n\t\tif (!elDialogBody) return;\n\n\t\tconst elDialogWrapper = elDialog.closest('.ui-dialog');\n\n\t\tconst options = genVueOptions(elDialog);\n\n\t\toptions.position ??= { of: window };\n\n\t\tconst $dialog = $(elDialog);\n\t\t$dialog.dialog('option', options);\n\n\t\telDialogWrapper.classList.remove('me-tightly');\n\t\tif ((elDialogWrapper.clientHeight ?? 0) > window.innerHeight) elDialogWrapper.classList.add('me-tightly');\n\t});\n};\n\n/**\n * Переход к view page по неразобранной ссылке в формате: {viewName}-{pageName}[:args]\n */\nconst toViewDirty = async (toViewPageName: string, moveDirection?: MoveDirection) => {\n\tconst regexp = /(\\w+)[=-]([\\w-]+)(?::([\\w.:-]+))?/g;\n\tconst toViewParts = regexp.exec(toViewPageName);\n\tif (toViewParts) {\n\t\tconst viewName = toViewParts[1];\n\t\tconst pageName = toViewParts[2];\n\t\tconst argsString = toViewParts[3];\n\n\t\tlet args: string[] = [];\n\t\tif (argsString) args = argsString.split(':');\n\n\t\tawait toView(viewName, pageName, args, moveDirection);\n\t}\n};\n\n/**\n * Открыть диалоговое окно, возможно указать нужную страницу\n * @param viewNameOrElDialog - id страницы окна или элемент окна\n * @param pageName - имя страницы\n * @param args - аргументы, набор проивзольных параметров, которые могут обрабатываться каждым окном по своему\n * @param moveDirection\n * @param callback - функция, которая будет запущена после октытия страницы\n */\nconst toView = async (\n\tviewNameOrElDialog: ElTopDialog | JQuery<ElTopDialog> | string,\n\tpageName?: string,\n\targs?: string[],\n\tmoveDirection?: MoveDirection,\n\tcallback?: (dialog: JQuery<ElTopDialog>) => void,\n) => {\n\tif (!isInited) {\n\t\tawait new Promise<void>((resolve, _reject) => {\n\t\t\tconst timer = setInterval(() => {\n\t\t\t\tif (!isInited) return;\n\n\t\t\t\tclearInterval(timer);\n\n\t\t\t\tresolve();\n\t\t\t}, 10);\n\t\t});\n\t}\n\n\tawait nextTick();\n\n\tlet elDialog: ElTopDialog | null;\n\tif (typeof (viewNameOrElDialog) === 'object') {\n\t\tif (isElJQuery(viewNameOrElDialog)) viewNameOrElDialog = viewNameOrElDialog?.[0]; // todo: убрать после переписки jquery на сайте\n\n\t\telDialog = viewNameOrElDialog;\n\t} else {\n\t\telDialog = getElDialogById(viewNameOrElDialog);\n\t}\n\n\t// Диалоговое окно еще не загружено\n\tif (!elDialog && typeof viewNameOrElDialog === 'string' && TopDialogWorker.state.load) {\n\t\tawait TopDialogWorker.state.load(viewNameOrElDialog);\n\n\t\telDialog = getElDialogById(viewNameOrElDialog);\n\t\tif (!elDialog) {\n\t\t\tthrow new Error('Dialog no exists: ' + viewNameOrElDialog);\n\t\t}\n\t}\n\n\tif (!elDialog) return;\n\n\tawait toViewPage(elDialog, pageName, args, moveDirection);\n\n\tconst $dialog = $(elDialog);\n\n\tif (elDialog?.classList.contains('ui-dialog-content')) {\n\t\t// var zIndexMax = 0;\n\t\t// $.map($('.ui-dialog'), function (el) {\n\t\t// \tvar zIndex = $(el).css('z-index') * 1;\n\t\t// \tif (zIndex > zIndexMax) zIndexMax = zIndex;\n\t\t// });\n\t\t//\n\t\t// if ($dialog.is(':hidden')) $dialog.dialog('open');\n\t\t//\n\t\t// var $dialogWrapper = $dialog.parent();\n\t\t// var $dialogOverlay = $dialogWrapper.next();\n\t\t//\n\t\t// if ($dialogWrapper.css('z-index') * 1 < zIndexMax) {\n\t\t// \t$dialogWrapper.css('z-index', zIndexMax + 2);\n\t\t// \t$dialogOverlay.css('z-index', zIndexMax + 1);\n\t\t// }\n\n\t\t$dialog.dialog('open');\n\t} else {\n\t\tconst options = genVueOptions(elDialog);\n\n\t\t$dialog.dialog(options);\n\t}\n\n\tif (callback) callback($dialog);\n};\n\nconst toViewPage = async (elDialog: ElTopDialog | JQuery<ElTopDialog>, pageName?: string, args?: string[], moveDirection?: MoveDirection) => {\n\t// todo: убрать после переписки jquery на сайте\n\tif (isElJQuery(elDialog)) elDialog = elDialog?.[0];\n\n\tif (pageName === undefined) pageName = elDialog.dataset.viewPageActive;\n\tif (args === undefined) args = elDialog.dataset.args?.split(':') ?? [];\n\n\tif (pageName !== elDialog.dataset.viewPageActive) {\n\t\tconst stopped = stopAnimations(elDialog);\n\t\tif (stopped) await sleep(100);\n\t}\n\n\tawait updatePageVue(elDialog.getAttribute('id') as string, undefined, pageName);\n\n\tconst elModalLayers = querySelectorAllArray<ElTopDialogModalLayer>(elDialog, '.modal-layer');\n\tconst elCurrentPages = elModalLayers.reduce<ElTopDialogPage[]>((acc, elModalLayer) => {\n\t\tconst elCurrentPage = elModalLayer.querySelector<ElTopDialogPage>(':scope > .active');\n\t\tif (elCurrentPage) {\n\t\t\tacc.push(elCurrentPage);\n\t\t}\n\n\t\treturn acc;\n\t}, []);\n\n\tconst elNextPages = elModalLayers.reduce<ElTopDialogPage[]>((acc, elModalLayer) => {\n\t\tconst elNextPage = elModalLayer.querySelector<ElTopDialogPage>(`:scope > [data-view-page=\"${pageName}\"]`);\n\t\tif (elNextPage) {\n\t\t\tacc.push(elNextPage);\n\t\t}\n\n\t\treturn acc;\n\t}, []);\n\n\tconst argsString = args.join(':');\n\n\tif (moveDirection === undefined) {\n\t\tmoveDirection = 'next';\n\t\tif ((elNextPages[0]?.dataset.order ?? 0) < (elCurrentPages[0]?.dataset.order ?? 0)) moveDirection = 'prev';\n\t}\n\n\tif (!elNextPages.length) return;\n\n\telDialog.dataset.viewPageActive = pageName;\n\telDialog.dataset.args = args?.join(':') ?? '';\n\n\t// запрашиваемая страница уже открыта\n\tif (elNextPages[0].classList.contains('active')) {\n\t\tif (elNextPages[0].dataset.viewPageArgs !== argsString) {\n\t\t\telNextPages.forEach((elNextPage) => {\n\t\t\t\telNextPage.dataset.viewPageArgs = argsString;\n\t\t\t});\n\n\t\t\t// dialogs.beforeOpenViewPage($dialog, $nextPage, pageName, args);\n\t\t\t// dialogs.afterOpenViewPage($dialog, $nextPage, pageName, args);\n\t\t}\n\n\t\tbeforeOpenViewPage(elDialog, elNextPages, pageName, args);\n\t\tafterOpenViewPage(elDialog, elNextPages, pageName, args);\n\n\t\treturn;\n\t}\n\n\telNextPages.forEach((elNextPage) => {\n\t\telNextPage.dataset.viewPageArgs = argsString;\n\t});\n\n\telCurrentPages.forEach((elCurrentPage) => {\n\t\tif (elCurrentPage.querySelector('.top-popup-wrapper')) {\n\t\t\tTopPopupWorker.close(elCurrentPage.querySelector('.top-popup-wrapper')!);\n\t\t}\n\t});\n\n\tconst elDialogWrapper = elNextPages[0].closest<ElTopDialogWrapper>('.ui-dialog');\n\n\tif (elDialogWrapper && !isVisible(elDialogWrapper)) moveDirection = 'none';\n\tif (!elCurrentPages.length) moveDirection = 'none';\n\tif (isVisible(elNextPages[0])) moveDirection = 'none';\n\n\tswitch (moveDirection) {\n\t\tcase 'prev': {\n\t\t\telNextPages.forEach((elNextPage) => {\n\t\t\t\tconst elActive = elNextPage.parentNode?.querySelector(':scope > .active');\n\t\t\t\tif (elActive) elNextPage.parentNode?.insertBefore(elNextPage, elActive);\n\t\t\t});\n\n\t\t\telCurrentPages.forEach((elCurrentPage) => {\n\t\t\t\telCurrentPage.classList.add('right-to-center', 'reverse');\n\t\t\t});\n\n\t\t\telNextPages.forEach((elNextPage) => {\n\t\t\t\telNextPage.classList.add('center-to-left', 'reverse');\n\t\t\t});\n\n\t\t\tbreak;\n\t\t}\n\t\tcase 'next': {\n\t\t\telNextPages.forEach((elNextPage) => {\n\t\t\t\tconst elActive = elNextPage.parentNode?.querySelector(':scope > .active');\n\t\t\t\tif (elActive) elNextPage.parentNode?.insertBefore(elNextPage, elActive.nextSibling);\n\t\t\t});\n\n\t\t\telCurrentPages.forEach((elCurrentPage) => {\n\t\t\t\telCurrentPage?.classList.add('center-to-left');\n\t\t\t});\n\n\t\t\telNextPages.forEach((elNextPage) => {\n\t\t\t\telNextPage.classList.add('right-to-center');\n\t\t\t});\n\n\t\t\tbreak;\n\t\t}\n\t}\n\n\telDialog.setAttribute('view-page-active', pageName);\n\n\telCurrentPages.forEach((elCurrentPage) => {\n\t\telCurrentPage.classList.remove('active');\n\t});\n\n\telNextPages.forEach((elNextPage) => {\n\t\telNextPage.classList.add('active');\n\t});\n\n\tbeforeOpenViewPage(elDialog, elNextPages, pageName, args);\n\n\tif (moveDirection) {\n\t\telDialog.classList.add('i-change-page');\n\n\t\tconst delay = Number(window.getComputedStyle(elNextPages[0]).animationDuration.replace('s', '')) * 1000;\n\n\t\ttimerClearAnimation = setTimeout(function () {\n\t\t\tupdatePageVue(elDialog.getAttribute('id'), pageName, '');\n\t\t\tstopAnimations(elDialog);\n\t\t\tafterOpenViewPage(elDialog, elNextPages, pageName, args);\n\t\t}, delay);\n\t} else {\n\t\tawait updatePageVue(elDialog.getAttribute('id'), pageName, '');\n\t\tafterOpenViewPage(elDialog, elNextPages, pageName, args);\n\t}\n};\n\n/**\n * К предыдущему представлению\n */\nconst toPrevPage = (elDialog: ElTopDialog) => {\n\tconst elModalLayers = querySelectorAllArray<ElTopDialogModalLayer>(elDialog, '.modal-layer');\n\tconst elCurrentPages = elModalLayers.reduce<ElTopDialogPage[]>((acc, elModalLayer) => {\n\t\tconst elCurrentPage = elModalLayer.querySelector<ElTopDialogPage>(':scope > .active');\n\n\t\tif (elCurrentPage) {\n\t\t\tacc.push(elCurrentPage);\n\t\t}\n\n\t\treturn acc;\n\t}, []);\n\n\tconst elPrevPages = elCurrentPages.reduce<ElTopDialogPage[]>((acc, elCurrentPage) => {\n\t\tlet elPrevPage = elCurrentPage.previousElementSibling as ElTopDialogPage | null;\n\t\twhile (elPrevPage && !elPrevPage.hasAttribute('data-view-page')) {\n\t\t\telPrevPage = elPrevPage.previousElementSibling as ElTopDialogPage | null;\n\t\t}\n\n\t\tif (elPrevPage) acc.push(elPrevPage);\n\n\t\treturn acc;\n\t}, []);\n\n\tconst prevPageName = (elPrevPages[0])?.dataset.viewPage;\n\n\tif (prevPageName) {\n\t\tvoid toViewPage(elDialog, prevPageName, undefined, 'prev');\n\t} else {\n\t\tconst $dialog = $(elDialog);\n\t\t$dialog.dialog('close');\n\t}\n};\n\n/**\n * Для обработки событий вне vue\n */\nconst beforeOpenViewPageTimers = new Set();\nconst beforeOpenViewPage = (elDialog: ElTopDialog, elPages: ElTopDialogPage[], pageName: string, args: string[]) => {\n\t// группировка цепочки событий\n\t// запрос на открытие страницы может выполняться несколько раз, чаще такое может быть при открытии, загрузке и переходе сразу к нужной странице\n\tconst eventKey = elDialog.getAttribute('id') + elPages[0].dataset.viewPage + pageName + args.join();\n\n\tif (beforeOpenViewPageTimers.has(eventKey)) return;\n\tbeforeOpenViewPageTimers.add(eventKey);\n\n\tsetTimeout(function () {\n\t\tbeforeOpenViewPageTimers.delete(eventKey);\n\n\t\t$(elDialog).trigger('viewBeforeOpen', [$(elDialog), $(elPages), pageName, args]);\n\t});\n};\n\n/**\n * Для обработки событий вне vue\n */\nconst afterOpenViewPage = (elDialog: ElTopDialog, elPages: ElTopDialogPage[], pageName: string, args: string[]) => {\n\tsetTimeout(function () {\n\t\t$(elDialog).trigger('viewAfterOpen', [$(elDialog), $(elPages), pageName, args]);\n\t});\n};\n\n/**\n * Получить состояние: Диалоговое окно находится в состоянии смены страницы\n */\nconst inAnimation = (elDialog: ElTopDialog | JQuery<ElTopDialog>) => {\n\tif (isElJQuery(elDialog)) elDialog = elDialog?.[0]; // todo: убрать после переписки jquery на сайте\n\n\treturn elDialog.classList.contains('i-change-page');\n};\n\n/**\n * Остановить анимацию смены страницы\n *\n * @returns Вернет true, если анимация производилась и была остановлена\n */\nconst stopAnimations = (elDialog: ElTopDialog) => {\n\tif (!inAnimation(elDialog)) return false;\n\n\tclearTimeout(timerClearAnimation);\n\n\tconst elModalLayers = querySelectorAllArray(elDialog, '.modal-layer');\n\n\tconst pageName = elDialog.dataset.viewPageActive;\n\telDialog.classList.remove('i-change-page');\n\n\telModalLayers.forEach((elModalLayer) => {\n\t\telModalLayer.querySelectorAll(':scope > [data-view-page]').forEach((el) => {\n\t\t\tel.classList.remove('center-to-left', 'right-to-center', 'reverse', 'active');\n\t\t});\n\t});\n\n\telModalLayers.forEach((elModalLayer) => {\n\t\telModalLayer.querySelector(`:scope > [data-view-page=\"${pageName}\"]`)?.classList.add('active');\n\t});\n\n\treturn true;\n};\n\n/**\n * Закрыть диалоговое окно\n */\nconst close = function (dialogId: string) {\n\tconst elDialog = getElDialogById(dialogId);\n\tif (!elDialog) return;\n\n\tconst $dialog = $(elDialog);\n\n\tif (!$dialog.dialog('instance')) return;\n\n\t$dialog.dialog('close');\n};\n\n/**\n * Управление props.isLoading\n */\nconst setLoading = (elPages: ElTopDialogPage[] | JQuery<ElTopDialogPage>, isLoading: boolean, duration?: number) => {\n\tif (isElJQuery(elPages)) elPages = elPages.toArray(); // todo: убрать после переписки jquery на сайте\n\n\tconst elPagesVisibleds = elPages.reduce<ElTopDialogPage[]>((acc, elPage) => {\n\t\tif (elPage.hasAttribute('data-view-page') && isVisible(elPage)) acc.push(elPage);\n\n\t\treturn acc;\n\t}, []);\n\n\tif (isLoading) {\n\t\tif (duration !== undefined) {\n\t\t\telPagesVisibleds.forEach((elPagesVisibled) => {\n\t\t\t\telPagesVisibled.style.setProperty('--dialog-loading-duration', duration + 's');\n\t\t\t});\n\t\t}\n\n\t\telPagesVisibleds.forEach((elPagesVisibled) => {\n\t\t\telPagesVisibled.classList.add('i-load-data');\n\t\t});\n\t} else {\n\t\telPagesVisibleds.forEach((elPagesVisibled) => {\n\t\t\telPagesVisibled.classList.remove('i-load-data');\n\t\t});\n\n\t\telPagesVisibleds.forEach((elPagesVisibled) => {\n\t\t\telPagesVisibled.style.setProperty('--dialog-loading-duration', '10s');\n\t\t});\n\t}\n};\n\nconst isLoading = (elPage: ElTopDialogPage | JQuery<ElTopDialogPage>) => {\n\tif (isElJQuery(elPage)) elPage = elPage?.[0]; // todo: убрать после переписки jquery на сайте\n\n\treturn elPage.classList.contains('i-load-data');\n};\n\nexport const TopDialogUtils = {\n\tgetElDialogById,\n\tupdatePageVue,\n\trecalcPositions,\n\ttoViewDirty,\n\ttoView,\n\ttoViewPage,\n\ttoPrevPage,\n\tsetLoading,\n\tisLoading,\n\tinAnimation,\n\tclose,\n};\n\ninit();\n"],"mappings":";;;;;;;;;AAGe;;;ACGf,IAAI,IAAS,IASA,UAA+B;CACvC,MACJ,IAAS,IAKT,SAAS,iBAAiB,YAAY,MAAM;EAE3C,IADI,EAAE,QAAQ,YACV,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,CAAC,GAAU;EAEf,IAAM,IAAU,EAAE,CAAQ;EAErB,EAAQ,OAAO,UAAU,KAE9B,EAAQ,OAAO,OAAO;CACvB;AAqDA;AAEA,EAAK"}
|
package/api/index.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define([`require`,`exports`,`../.chunks/api-
|
|
1
|
+
define([`require`,`exports`,`../.chunks/api-BlIxMRlW.amd`,`../.chunks/field-DEusYVqS.amd`],function(e,t,n,r){"use strict";if(i===void 0)var i=window.Vue;Object.defineProperty(t,"__esModule",{value:!0}),t.postInWindow=t.isPublicAPI=t.getBaseDomainUrl=t.genFieldOrder=t.genFieldFilter=t.genExtRes=t.dataToForm=t.createClient=void 0,Object.defineProperty(t,"getBaseDomainUrl",{enumerable:!0,get:function(){return n.a}}),Object.defineProperty(t,"genExtRes",{enumerable:!0,get:function(){return n.i}}),Object.defineProperty(t,"dataToForm",{enumerable:!0,get:function(){return n.n}}),Object.defineProperty(t,"isPublicAPI",{enumerable:!0,get:function(){return n.o}}),Object.defineProperty(t,"postInWindow",{enumerable:!0,get:function(){return n.r}}),Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return n.t}}),Object.defineProperty(t,"genFieldOrder",{enumerable:!0,get:function(){return r.n}}),Object.defineProperty(t,"genFieldFilter",{enumerable:!0,get:function(){return r.t}})});
|
|
2
2
|
//# sourceMappingURL=index.amd.js.map
|
package/api/index.amd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["api/index.js"],"names":["vue","exports","
|
|
1
|
+
{"version":3,"sources":["api/index.js"],"names":["vue","exports","api_BlIxMRlW_esm_js_1","field_DEusYVqS_esm_js_1"],"mappings":"AAAA,OAAO,CAAC,UAAW,UAAW,8BAAkC,+BAAkC,EAAG,SAAU,EAAS,EAAS,EAAuB,EAAyB,CAC7K,aAAA,GAAAA,IAAA,OAAA,IAAAA,EAAA,OAAA,IACA,OAAO,eAAeC,EAAS,aAAc,CAAE,MAAO,EAAK,CAAC,EAC5D,EAAQ,aAAe,EAAQ,YAAc,EAAQ,iBAAmB,EAAQ,cAAgB,EAAQ,eAAiB,EAAQ,UAAY,EAAQ,WAAa,EAAQ,aAAe,IAAK,GAC9L,OAAO,eAAeA,EAAS,mBAAoB,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOC,EAAsB,CAAG,CAAE,CAAC,EAC7H,OAAO,eAAeD,EAAS,YAAa,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOC,EAAsB,CAAG,CAAE,CAAC,EACtH,OAAO,eAAeD,EAAS,aAAc,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOC,EAAsB,CAAG,CAAE,CAAC,EACvH,OAAO,eAAeD,EAAS,cAAe,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOC,EAAsB,CAAG,CAAE,CAAC,EACxH,OAAO,eAAeD,EAAS,eAAgB,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOC,EAAsB,CAAG,CAAE,CAAC,EACzH,OAAO,eAAeD,EAAS,eAAgB,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOC,EAAsB,CAAG,CAAE,CAAC,EACzH,OAAO,eAAeD,EAAS,gBAAiB,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOE,EAAwB,CAAG,CAAE,CAAC,EAC5H,OAAO,eAAeF,EAAS,iBAAkB,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOE,EAAwB,CAAG,CAAE,CAAC,CACjI,CAAC","sourcesContent":["define([\"require\", \"exports\", \"../.chunks/api-BlIxMRlW.esm.js\", \"../.chunks/field-DEusYVqS.esm.js\"], function (require, exports, api_BlIxMRlW_esm_js_1, field_DEusYVqS_esm_js_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.postInWindow = exports.isPublicAPI = exports.getBaseDomainUrl = exports.genFieldOrder = exports.genFieldFilter = exports.genExtRes = exports.dataToForm = exports.createClient = void 0;\n Object.defineProperty(exports, \"getBaseDomainUrl\", { enumerable: true, get: function () { return api_BlIxMRlW_esm_js_1.a; } });\n Object.defineProperty(exports, \"genExtRes\", { enumerable: true, get: function () { return api_BlIxMRlW_esm_js_1.i; } });\n Object.defineProperty(exports, \"dataToForm\", { enumerable: true, get: function () { return api_BlIxMRlW_esm_js_1.n; } });\n Object.defineProperty(exports, \"isPublicAPI\", { enumerable: true, get: function () { return api_BlIxMRlW_esm_js_1.o; } });\n Object.defineProperty(exports, \"postInWindow\", { enumerable: true, get: function () { return api_BlIxMRlW_esm_js_1.r; } });\n Object.defineProperty(exports, \"createClient\", { enumerable: true, get: function () { return api_BlIxMRlW_esm_js_1.t; } });\n Object.defineProperty(exports, \"genFieldOrder\", { enumerable: true, get: function () { return field_DEusYVqS_esm_js_1.n; } });\n Object.defineProperty(exports, \"genFieldFilter\", { enumerable: true, get: function () { return field_DEusYVqS_esm_js_1.t; } });\n});\n"]}
|
package/api/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../.chunks/api-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../.chunks/api-BlIxMRlW.esm.js";
|
|
2
2
|
import { n as o, t as s } from "../.chunks/field-DEusYVqS.esm.js";
|
|
3
3
|
export { a as createClient, n as dataToForm, t as genExtRes, s as genFieldFilter, o as genFieldOrder, e as getBaseDomainUrl, r as isPublicAPI, i as postInWindow };
|
package/assets/core.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
button,input,textarea,select{border:1px solid var(--top-forms-border-color);background:var(--top-forms-background-color);color:var(--color-text-1);font-size:var(--top-font-size);font-family:inherit}::placeholder{color:var(--top-forms-placeholder-color)}[contenteditable][placeholder]:empty:before{content:attr(placeholder);color:var(--color-text-2)}.top-forms-optionWrapper{cursor:pointer;color:var(--color-text-1);align-items:flex-start;gap:4px;padding:8px 0;line-height:1.3;display:inline-flex}.top-forms-option{cursor:pointer;-webkit-appearance:none;appearance:none;flex-shrink:0;margin:3px;padding:0;display:inline-flex}.top-focus{outline:2px solid var(--color-line-primary-1);outline-offset:2px;z-index:1;transition:border-color .15s;position:relative}.top-forms-focusable:focus-visible{outline:2px solid var(--color-line-primary-1);outline-offset:2px;z-index:1;transition:border-color .15s;position:relative}.top-forms-focusable:hover,.top-forms-focusable:focus,.top-forms-focusable:focus-within,.top-focus:hover,.top-focus:focus,.top-input:hover>.top-input_input,.top-select:hover>.top-select_select{--top-forms-border-color:var(--top-forms-border-color-hover);--top-forms-background-color:var(--top-forms-background-color-hover)}:is([contenteditable]:focus-visible,.top-selector-multiselect:focus-within){outline:2px solid var(--color-line-primary-1)}:root{--top-font-size:14px;--top-font-size-s:12px;--top-font-size-xs:10px;--top-forms-radius:8px;--top-forms-border-width:1px;--top-style_outline-color:transparent;--top-forms-base-height_xs:24px;--top-forms-base-height_s:32px;--top-forms-base-height_m:36px;--top-forms-base-height_l:40px;--top-forms-background-color-regular:var(--color-layout-front-1);--top-forms-background-color-regular-hover:var(--color-layout-front-1);--top-forms-background-color-light:var(--top-forms-background-color-regular);--top-forms-background-color-light-hover:var(--top-forms-background-color-regular);--top-forms-background-color-soft:var(--color-theme-75);--top-forms-background-color-soft-hover:var(--color-bg-shading-2);--top-forms-background-color-transparent:transparent;--top-forms-background-color-transparent-hover:var(--color-layout-front-3);--top-forms-base-height:var(--top-forms-base-height_s);--top-forms-padding_xs:6px;--top-forms-padding_s:8px;--top-forms-padding_m:10px;--top-forms-padding_l:12px;--top-forms-padding:var(--top-forms-padding_s);--top-forms-option-height:24px;--top-selector-arrow-width:0px;--top-forms_clear-width:0px;--top-forms-border-color:var(--color-line-1);--top-forms-border-color-hover:var(--color-line-primary-1);--top-forms-placeholder-color:var(--color-text-3);--top-forms-placeholder-color-active:var(--color-text-2);--top-forms-background-color:var(--color-layout-front-1);--top-forms-background-color-hover:var(--color-layout-front-1)}.top-style_light{--top-forms-radius:0;border-top-width:0!important;border-left-width:0!important;border-right-width:0!important}.top-style_soft,.top-style_transparent{--top-forms-border-color:transparent;--top-forms-border-color-hover:transparent}.top-style_soft{--top-forms-background-color:var(--top-forms-background-color-soft);--top-forms-background-color-hover:var(--top-forms-background-color-soft-hover)}.top-style_transparent{--top-forms-background-color:var(--top-forms-background-color-transparent);--top-forms-background-color-hover:var(--top-forms-background-color-transparent-hover)}.top-size_xs{--top-forms-base-height:var(--top-forms-base-height_xs)}.top-size_s{--top-forms-base-height:var(--top-forms-base-height_s)}.top-size_m{--top-forms-base-height:var(--top-forms-base-height_m)}.top-size_l{--top-forms-base-height:var(--top-forms-base-height_l)}.top-input_input,.top-textarea_textarea,.top-editArea_form,.top-select_select,.top-as-input{box-sizing:border-box;border-radius:var(--top-forms-radius);border:var(--top-forms-border-width) solid var(--top-forms-border-color);background-color:var(--top-forms-background-color);color:var(--color-text-2);min-height:var(--top-forms-base-height);-webkit-appearance:none;appearance:none;display:inline-flex}.top-input_input:hover,.top-textarea_textarea:hover,.top-editArea_form:hover,.top-select_select:hover,.top-as-input:hover{background-color:var(--top-forms-background-color-hover)}.top-input_input:focus,.top-textarea_textarea:focus,.top-editArea_form:focus,.top-select_select:focus,.top-as-input:focus,.top-as-input:focus-within{background-color:var(--top-forms-background-color-hover);color:var(--color-text-1)}.top-select_select{padding-right:calc(var(--top-forms-padding) + var(--top-forms_clear-width) + var(--top-selector-arrow-width))}.top-select{position:relative}.top-select[data-top-icon]:before,.top-select[data-top-icon2]:after{z-index:3;position:absolute}.top-select[data-top-icon][data-top-icon2]:after{left:calc(var(--top-icon-width))}.top-cleaner[data-top-icon]{--top-icon-size:20px;--top-icon-width:20px;--top-icon-color:var(--color-text-secondary);cursor:pointer;width:30px;height:24px;transform:translateX(calc(0px - var(--top-forms-border-width) - var(--top-selector-arrow-width)));z-index:1;border-radius:50%;justify-content:center;align-items:center;margin-left:-34px;display:flex;position:relative}.top-cleaner[data-top-icon]:hover{--top-icon-color:var(--color-text-secondary-2)}.top-as-selector{--top-selector-arrow-size:12px;--top-selector-arrow-width:24px;background-image:url("data:image/svg+xml,%3Csvg width='16' height='9' viewBox='0 0 16 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.293 0.29269L8 6.5857L1.70704 0.29269C1.31679 -0.0975633 0.682937 -0.0975633 0.292687 0.29269C-0.0975624 0.682943 -0.0975624 1.31656 0.292687 1.70682L7.29294 8.70713C7.68343 9.09762 8.31657 9.09762 8.70706 8.70713L15.7073 1.70682C16.0976 1.31656 16.0976 0.682943 15.7073 0.29269C15.3171 -0.0975633 14.6832 -0.0975633 14.293 0.29269Z' fill='%23808A99'/%3E%3C/svg%3E");background-size:14px;background-position:calc(100% - var(--top-forms-padding)) 50%;padding-right:calc(var(--top-selector-arrow-width) + var(--top-padding-2));background-repeat:no-repeat}.top-as-selector.top-button{padding-right:calc(var(--top-selector-arrow-width) + var(--top-padding-2))}.top-as-selector~.top-cleaner{--top-selector-arrow-width:24px}.top-as-a{cursor:pointer;color:var(--color-text-primary)}.top-as-a:hover{text-decoration:underline}.top-ellipsis,.top-ellipsis1{text-overflow:ellipsis;flex-grow:1;max-height:100%;line-height:1.26;overflow:hidden}.top-ellipsis1{white-space:nowrap}.top-ellipsis2,.top-ellipsis3{-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:-moz-fit-content;max-width:fit-content;line-height:1.26;display:-webkit-box;overflow:hidden}.top-ellipsis3{-webkit-line-clamp:3}.top-hidden{display:none!important}.top-unvisible{-webkit-appearance:none;appearance:none;border:none;width:0;height:0;position:absolute;overflow:hidden}.top-unvisible:focus-visible{outline:none}.top-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}:disabled:not(option):not(optgroup),:disabled~.top-formsCaption,.top-disabled{opacity:.4;filter:grayscale()}.top-input.top-disabled,.top-select.top-disabled{filter:unset}.top-input_input:disabled,.top-textarea_textarea:disabled,.top-select_select:disabled{opacity:1;background-color:var(--color-bg-shading-3);filter:unset}.top-checkbox_input:not(:checked):not(:indeterminate):disabled,.top-radio_input:not(:checked):disabled,.top-checkboxSwitcher_input:disabled{opacity:1;background-color:var(--color-layer-1)}.top-checkboxSwitcher_input:disabled{background-color:var(--color-layer-4)}.top-error,.top-error::placeholder,.top-error:before{--top-forms-border-color:var(--color-line-negative-1);border-color:var(--color-line-negative-1)}.top-error{--top-icon-color:var(--color-text-negative);color:var(--color-text-negative)}input.top-error:focus,textarea.top-error:focus,select.top-error:focus,div.top-error:focus{outline-color:var(--color-line-negative-1);border-color:var(--color-line-negative-1)}.top-error~.top-formsCaption{color:var(--color-text-negative)}.top-warning{--top-icon-color:var(--color-text-warning);color:var(--color-text-warning)}.top-forms-focusable.top-error{--top-error-keyframes-outline-color-100:transparent;animation:.6s ease-out top-error}.top-forms-focusable.top-error:focus{--top-error-keyframes-outline-color-100:var(--color-line-negative-1)}@keyframes top-error{0%{outline-offset:10px;outline:3px solid #0000}50%{outline-offset:2px;outline:3px solid var(--color-line-negative-1)}to{outline-offset:2px;outline:2px solid var(--top-error-keyframes-outline-color-100)}}@media only screen and (min-width:900px){.top-only-mobile{display:none!important}}@media only screen and (max-width:900px){.top-only-pc{display:none!important}}html:not([lang=ru]) .top-only-ru,html:not([lang=en]) .top-only-en,html[data-is-admin="0"] .top-only-admin,html[data-is-admin="1"] .top-only-no-admin{display:none!important}.has_scroll_container{transform:translate(0)}.has_scroll{--scroll-offset-top:0px;--scroll-padding-top:0px;--scroll-padding-bottom:0px;--scroll-height:0px;--scroll-shadow-height:15px;--scroll-shadow-color:#0000001a}.has_scroll:before{pointer-events:none;content:"";background:linear-gradient(180deg, transparent calc(100% - var(--scroll-shadow-height)), var(--scroll-shadow-color));height:calc(var(--scroll-height) - var(--scroll-padding-top) - var(--scroll-padding-bottom));top:calc(var(--scroll-offset-top) + var(--scroll-padding-top));z-index:2;display:block;position:fixed;left:0;right:0}.has_scroll-started:before{background:linear-gradient(180deg, var(--scroll-shadow-color), transparent var(--scroll-shadow-height), transparent calc(100% - var(--scroll-shadow-height)), var(--scroll-shadow-color))}.has_scroll-finished:before{background:linear-gradient(180deg, var(--scroll-shadow-color), transparent var(--scroll-shadow-height))}.top-scrollBarXHidding{scrollbar-width:none;overflow:auto hidden}.top-scrollBarXHidding:hover{scrollbar-width:thin}.top-scrollBarXHidding::-webkit-scrollbar{height:6px;display:none}.top-scrollBarXHidding:hover::-webkit-scrollbar{scrollbar-width:thin;display:block}.top-scrollBarXHidding::-webkit-scrollbar-track{background-color:#0000;box-shadow:inset 0 0 0 10px #0000000f}.top-scrollBarXHidding::-webkit-scrollbar-track:hover{box-shadow:inset 0 0 0 10px #00000014}.top-scrollBarXHidding::-webkit-scrollbar-track:active{box-shadow:inset 0 0 0 10px #0000001a}.top-scrollBarXHidding::-webkit-scrollbar-thumb{background-color:var(--color-line-1-opacity)}.top-scrollBarXHidding::-webkit-scrollbar-thumb:hover{background-color:var(--color-line-2-opacity)}.top-scrollBarXHidding::-webkit-scrollbar-thumb:active{background-color:var(--color-line-3-opacity)}.top-scrollBarXHidding::-webkit-scrollbar-button{width:0;height:0}[data-top-badge]{align-self:flex-start;width:0;margin:-3px 16px 0 -16px;display:flex;position:relative}[data-top-badge]:after{content:attr(data-top-badge);background:var(--color-bg-negative-1);color:var(--color-text-white);border-radius:4px;padding:2px 3px;font-size:12px}:root{--color-tag-1:var(--color-theme-350);--color-tag-2:#fd6052;--color-tag-3:#f48d09;--color-tag-4:#f4d30c;--color-tag-5:#5aacfd;--color-tag-6:#c98ae4;--color-tag-7:#a7de59;--color-tag-8:#e44097;--color-tag-9:#0354a5;--color-tag-10:#33b8a5;--color-tag-all:var(--color-text-3)}.top-comment{color:var(--color-text-3);font-size:12px}img.top-flag{width:24px;height:15px;margin:0 6px 0 0;box-shadow:0 0 3px #0003;flex-grow:0!important;flex-shrink:0!important}:root{--top-formsCaption-offset:16px}.top-formsCaptionWrapper{padding-top:20px}.top-formsCaption{pointer-events:none;width:calc(100% - var(--top-forms-padding) - var(--top-icon-both-width) - var(--top-forms_clear-width) - var(--top-selector-arrow-width));padding:0 var(--top-forms-padding);color:var(--top-forms-placeholder-color);white-space:nowrap;text-overflow:ellipsis;transform:translate(var(--top-icon-both-width), 0);transition:all .1s;position:absolute;overflow:hidden}.top-error~.top-formsCaption{transition:all .1s .1s}.top-formsCaption *{pointer-events:auto}.top-formsCaptionWrapper>input:not([readonly]):focus~.top-formsCaption,.top-formsCaptionWrapper>input:not(:placeholder-shown)~.top-formsCaption,.top-formsCaptionWrapper>textarea:not(:placeholder-shown)~.top-formsCaption,.top-formsCaptionWrapper.top-select>.top-formsCaption,.top-formsCaptionWrapper.top-inputRange>.top-formsCaption,.top-formsCaptionWrapper-always>.top-formsCaption{width:100%;color:var(--top-forms-placeholder-color-active);transform:translate(0, calc(-1em - var(--top-formsCaption-offset)));padding:0;font-size:11px;transition:all .1s}html .ui-tooltip{pointer-events:none;background:var(--color-layout-front-1);width:max-content;padding:var(--top-padding-4);margin:0 var(--top-padding-4);z-index:200000;border:none;font-size:13px;box-shadow:0 6px 18px #0e152f21,0 -2px 6px #0e152f08}.ui-tooltip.ui-corner-all{border-radius:var(--top-padding-2)}.ui-tooltip img{margin:var(--top-padding-3) 0 0 0}.ui-tooltip ul{margin-left:24px}:root{--top-icon-size:24px;--top-icon-width:0px;--top-icon2-size:24px;--top-icon2-width:0px;--top-icon-both-width:0px}[data-top-icon]{--top-icon-width:calc(var(--top-icon-size) + var(--top-forms-padding));--top-icon-color:inherit}[data-top-icon2]{--top-icon2-width:calc(var(--top-icon2-size) + 8px);--top-icon2-color:inherit}[data-top-icon=""]{--top-icon-width:0px}[data-top-icon2=""]{--top-icon2-width:0px}[data-top-icon]:before,[data-top-icon2]:after{pointer-events:none;content:attr(data-top-icon);border-radius:var(--top-forms-radius);width:var(--top-icon-width);color:var(--top-icon-color);font-family:Topvisor-2;font-size:var(--top-icon-size);flex-shrink:0;justify-content:center;align-items:center;font-weight:400;line-height:1;display:inline-flex}[data-top-icon2]:after{content:attr(data-top-icon2);width:var(--top-icon2-width);color:var(--top-icon2-color);font-size:var(--top-icon2-size)}[data-top-icon],[data-top-icon2]{--top-icon-both-width:calc(var(--top-icon-width) + var(--top-icon2-width))}[data-top-icon=]:before{font-family:Topvisor}:root{--top-line-heihgt:1.36;--top-page-width:1180px;--100vh:100dvh;--top-scrollbar-width:6px;--transition:.2s ease-in-out;--transition-fast:.1s;--transition-normal:.3s;--transition-slow:.5s;--top-padding-1:4px;--top-padding-2:8px;--top-padding-3:12px;--top-padding-4:16px;--top-padding-5:20px;--top-padding-6:24px;--top-padding-7:28px;--top-padding-8:32px;--top-padding-9:36px;--top-padding-10:40px;--top-padding-11:44px;--top-padding-12:48px;--top-gap-1:4px;--top-gap-2:8px;--top-gap-3:12px;--top-gap-4:16px;--top-gap-5:20px;--top-gap-6:24px;--top-gap-7:28px;--top-gap-8:32px;--top-gap-9:36px;--top-gap-10:40px;--top-gap-11:44px;--top-gap-12:48px;--top-radius-1:4px;--top-radius-2:8px;--top-radius-3:12px;--top-radius-4:16px;--top-radius-5:20px;--top-radius-6:24px;--top-radius-7:28px;--top-radius-8:32px;--top-radius-9:36px;--top-radius-10:40px;--top-radius-11:44px;--top-radius-12:48px;--padding-default:var(--top-padding-4)}@media only screen and (max-width:900px){:root{--padding-default:var(--top-padding-3)}}.ui-widget-content{background:var(--color-layout-front-1);color:var(--color-text-1)}
|
|
1
|
+
button,input,textarea,select{border:1px solid var(--top-forms-border-color);background:var(--top-forms-background-color);color:var(--color-text-1);font-size:var(--top-font-size);font-family:inherit}::placeholder{color:var(--top-forms-placeholder-color)}[contenteditable][placeholder]:empty:before{content:attr(placeholder);color:var(--color-text-2)}.top-forms-optionWrapper{cursor:pointer;color:var(--color-text-1);align-items:flex-start;gap:4px;padding:8px 0;line-height:1.3;display:inline-flex}.top-forms-option{cursor:pointer;-webkit-appearance:none;appearance:none;flex-shrink:0;margin:3px;padding:0;display:inline-flex}.top-focus{outline:2px solid var(--color-line-primary-1);outline-offset:2px;z-index:1;transition:border-color .15s;position:relative}.top-forms-focusable:focus-visible{outline:2px solid var(--color-line-primary-1);outline-offset:2px;z-index:1;transition:border-color .15s;position:relative}.top-forms-focusable:hover,.top-forms-focusable:focus,.top-forms-focusable:focus-within,.top-focus:hover,.top-focus:focus,.top-input:hover>.top-input_input,.top-select:hover>.top-select_select{--top-forms-border-color:var(--top-forms-border-color-hover);--top-forms-background-color:var(--top-forms-background-color-hover)}:is([contenteditable]:focus-visible,.top-selector-multiselect:focus-within){outline:2px solid var(--color-line-primary-1)}:root{--top-font-size:14px;--top-font-size-s:12px;--top-font-size-xs:10px;--top-forms-radius:8px;--top-forms-border-width:1px;--top-style_outline-color:transparent;--top-forms-base-height_xs:24px;--top-forms-base-height_s:32px;--top-forms-base-height_m:36px;--top-forms-base-height_l:40px;--top-forms-background-color-regular:var(--color-layout-front-1);--top-forms-background-color-regular-hover:var(--color-layout-front-1);--top-forms-background-color-light:var(--top-forms-background-color-regular);--top-forms-background-color-light-hover:var(--top-forms-background-color-regular);--top-forms-background-color-soft:var(--color-theme-75);--top-forms-background-color-soft-hover:var(--color-bg-shading-2);--top-forms-background-color-transparent:transparent;--top-forms-background-color-transparent-hover:var(--color-layout-front-3);--top-forms-base-height:var(--top-forms-base-height_s);--top-forms-padding_xs:6px;--top-forms-padding_s:8px;--top-forms-padding_m:10px;--top-forms-padding_l:12px;--top-forms-padding:var(--top-forms-padding_s);--top-forms-option-height:24px;--top-selector-arrow-width:0px;--top-forms_clear-width:0px;--top-forms-border-color:var(--color-line-1);--top-forms-border-color-hover:var(--color-line-primary-1);--top-forms-placeholder-color:var(--color-text-3);--top-forms-placeholder-color-active:var(--color-text-2);--top-forms-background-color:var(--color-layout-front-1);--top-forms-background-color-hover:var(--color-layout-front-1)}.top-style_light{--top-forms-radius:0;border-top-width:0!important;border-left-width:0!important;border-right-width:0!important}.top-style_soft,.top-style_transparent{--top-forms-border-color:transparent;--top-forms-border-color-hover:transparent}.top-style_soft{--top-forms-background-color:var(--top-forms-background-color-soft);--top-forms-background-color-hover:var(--top-forms-background-color-soft-hover)}.top-style_transparent{--top-forms-background-color:var(--top-forms-background-color-transparent);--top-forms-background-color-hover:var(--top-forms-background-color-transparent-hover)}.top-size_xs{--top-forms-base-height:var(--top-forms-base-height_xs)}.top-size_s{--top-forms-base-height:var(--top-forms-base-height_s)}.top-size_m{--top-forms-base-height:var(--top-forms-base-height_m)}.top-size_l{--top-forms-base-height:var(--top-forms-base-height_l)}.top-input_input,.top-textarea_textarea,.top-editArea_form,.top-select_select,.top-as-input{box-sizing:border-box;border-radius:var(--top-forms-radius);border:var(--top-forms-border-width) solid var(--top-forms-border-color);background-color:var(--top-forms-background-color);color:var(--color-text-2);min-height:var(--top-forms-base-height);-webkit-appearance:none;appearance:none;display:inline-flex}.top-input_input:hover,.top-textarea_textarea:hover,.top-editArea_form:hover,.top-select_select:hover,.top-as-input:hover{background-color:var(--top-forms-background-color-hover)}.top-input_input:focus,.top-textarea_textarea:focus,.top-editArea_form:focus,.top-select_select:focus,.top-as-input:focus,.top-as-input:focus-within{background-color:var(--top-forms-background-color-hover);color:var(--color-text-1)}.top-select_select{padding-right:calc(var(--top-forms-padding) + var(--top-forms_clear-width) + var(--top-selector-arrow-width))}.top-select{position:relative}.top-select[data-top-icon]:before,.top-select[data-top-icon2]:after{z-index:3;position:absolute}.top-select[data-top-icon][data-top-icon2]:after{left:calc(var(--top-icon-width))}.top-cleaner[data-top-icon]{--top-icon-size:20px;--top-icon-width:20px;--top-icon-color:var(--color-text-secondary);cursor:pointer;width:30px;height:24px;transform:translateX(calc(0px - var(--top-forms-border-width) - var(--top-selector-arrow-width)));z-index:1;border-radius:50%;justify-content:center;align-items:center;margin-left:-34px;display:flex;position:relative}.top-cleaner[data-top-icon]:hover{--top-icon-color:var(--color-text-secondary-2)}.top-as-selector{--top-selector-arrow-size:12px;--top-selector-arrow-width:24px;background-image:url("data:image/svg+xml,%3Csvg width='16' height='9' viewBox='0 0 16 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.293 0.29269L8 6.5857L1.70704 0.29269C1.31679 -0.0975633 0.682937 -0.0975633 0.292687 0.29269C-0.0975624 0.682943 -0.0975624 1.31656 0.292687 1.70682L7.29294 8.70713C7.68343 9.09762 8.31657 9.09762 8.70706 8.70713L15.7073 1.70682C16.0976 1.31656 16.0976 0.682943 15.7073 0.29269C15.3171 -0.0975633 14.6832 -0.0975633 14.293 0.29269Z' fill='%23808A99'/%3E%3C/svg%3E");background-size:14px;background-position:calc(100% - var(--top-forms-padding)) 50%;padding-right:calc(var(--top-selector-arrow-width) + var(--top-padding-2));background-repeat:no-repeat}.top-as-selector.top-button{padding-right:calc(var(--top-selector-arrow-width) + var(--top-padding-2))}.top-as-selector~.top-cleaner{--top-selector-arrow-width:24px}.top-as-a{cursor:pointer;color:var(--color-text-primary)}.top-as-a:hover{text-decoration:underline}.top-ellipsis,.top-ellipsis1{text-overflow:ellipsis;flex-grow:1;max-height:100%;line-height:1.26;overflow:hidden}.top-ellipsis1{white-space:nowrap}.top-ellipsis2,.top-ellipsis3{-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:-moz-fit-content;max-width:fit-content;line-height:1.26;display:-webkit-box;overflow:hidden}.top-ellipsis3{-webkit-line-clamp:3}.top-hidden{display:none!important}.top-unvisible{-webkit-appearance:none;appearance:none;border:none;width:0;height:0;position:absolute;overflow:hidden}.top-unvisible:focus-visible{outline:none}.top-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}:disabled:not(option):not(optgroup),:disabled~.top-formsCaption,.top-disabled{opacity:.4;filter:grayscale()}.top-input.top-disabled,.top-select.top-disabled{filter:unset}.top-input_input:disabled,.top-textarea_textarea:disabled,.top-select_select:disabled{opacity:1;background-color:var(--color-bg-shading-3);filter:unset}.top-checkbox_input:not(:checked):not(:indeterminate):disabled,.top-radio_input:not(:checked):disabled,.top-checkboxSwitcher_input:disabled{opacity:1;background-color:var(--color-layer-1)}.top-checkboxSwitcher_input:disabled{background-color:var(--color-layer-4)}.top-error,.top-error::placeholder,.top-error:before{--top-forms-border-color:var(--color-line-negative-1);border-color:var(--color-line-negative-1)}.top-error{--top-icon-color:var(--color-text-negative);color:var(--color-text-negative)}input.top-error:focus,textarea.top-error:focus,select.top-error:focus,div.top-error:focus{outline-color:var(--color-line-negative-1);border-color:var(--color-line-negative-1)}.top-error~.top-formsCaption{color:var(--color-text-negative)}.top-warning{--top-icon-color:var(--color-text-warning);color:var(--color-text-warning)}.top-forms-focusable.top-error{--top-error-keyframes-outline-color-100:transparent;animation:.6s ease-out top-error}.top-forms-focusable.top-error:focus{--top-error-keyframes-outline-color-100:var(--color-line-negative-1)}@keyframes top-error{0%{outline-offset:10px;outline:3px solid #0000}50%{outline-offset:2px;outline:3px solid var(--color-line-negative-1)}to{outline-offset:2px;outline:2px solid var(--top-error-keyframes-outline-color-100)}}@media only screen and (min-width:900px){.top-only-mobile{display:none!important}}@media only screen and (max-width:900px){.top-only-pc{display:none!important}}html:not([lang=ru]) .top-only-ru,html:not([lang=en]) .top-only-en,html[data-is-admin="0"] .top-only-admin,html[data-is-admin="1"] .top-only-no-admin{display:none!important}.has_scroll_container{transform:translate(0)}.has_scroll{--scroll-offset-top:0px;--scroll-padding-top:0px;--scroll-padding-bottom:0px;--scroll-height:0px;--scroll-shadow-height:15px;--scroll-shadow-color:#0000001a}.has_scroll:before{pointer-events:none;content:"";background:linear-gradient(180deg, transparent calc(100% - var(--scroll-shadow-height)), var(--scroll-shadow-color));height:calc(var(--scroll-height) - var(--scroll-padding-top) - var(--scroll-padding-bottom));top:calc(var(--scroll-offset-top) + var(--scroll-padding-top));z-index:2;display:block;position:fixed;left:0;right:0}.has_scroll-started:before{background:linear-gradient(180deg, var(--scroll-shadow-color), transparent var(--scroll-shadow-height), transparent calc(100% - var(--scroll-shadow-height)), var(--scroll-shadow-color))}.has_scroll-finished:before{background:linear-gradient(180deg, var(--scroll-shadow-color), transparent var(--scroll-shadow-height))}.top-scrollBarXHidding{scrollbar-width:none;overflow:auto hidden}.top-scrollBarXHidding:hover{scrollbar-width:thin}.top-scrollBarXHidding::-webkit-scrollbar{height:6px;display:none}.top-scrollBarXHidding:hover::-webkit-scrollbar{scrollbar-width:thin;display:block}.top-scrollBarXHidding::-webkit-scrollbar-track{background-color:#0000;box-shadow:inset 0 0 0 10px #0000000f}.top-scrollBarXHidding::-webkit-scrollbar-track:hover{box-shadow:inset 0 0 0 10px #00000014}.top-scrollBarXHidding::-webkit-scrollbar-track:active{box-shadow:inset 0 0 0 10px #0000001a}.top-scrollBarXHidding::-webkit-scrollbar-thumb{background-color:var(--color-line-1-opacity)}.top-scrollBarXHidding::-webkit-scrollbar-thumb:hover{background-color:var(--color-line-2-opacity)}.top-scrollBarXHidding::-webkit-scrollbar-thumb:active{background-color:var(--color-line-3-opacity)}.top-scrollBarXHidding::-webkit-scrollbar-button{width:0;height:0}[data-top-badge]{align-self:flex-start;width:0;margin:-3px 16px 0 -16px;display:flex;position:relative}[data-top-badge]:after{content:attr(data-top-badge);background:var(--color-bg-negative-1);color:var(--color-text-white);border-radius:4px;padding:2px 3px;font-size:12px}:root{--color-tag-1:var(--color-theme-350);--color-tag-2:#fd6052;--color-tag-3:#f48d09;--color-tag-4:#f4d30c;--color-tag-5:#5aacfd;--color-tag-6:#c98ae4;--color-tag-7:#a7de59;--color-tag-8:#e44097;--color-tag-9:#0354a5;--color-tag-10:#33b8a5;--color-tag-all:var(--color-text-3)}.top-comment{color:var(--color-text-3);font-size:12px}.top-comment>p:last-child{margin-bottom:0}img.top-flag{width:24px;height:15px;margin:0 6px 0 0;box-shadow:0 0 3px #0003;flex-grow:0!important;flex-shrink:0!important}:root{--top-formsCaption-offset:16px}.top-formsCaptionWrapper{padding-top:20px}.top-formsCaption{pointer-events:none;width:calc(100% - var(--top-forms-padding) - var(--top-icon-both-width) - var(--top-forms_clear-width) - var(--top-selector-arrow-width));padding:0 var(--top-forms-padding);color:var(--top-forms-placeholder-color);white-space:nowrap;text-overflow:ellipsis;transform:translate(var(--top-icon-both-width), 0);transition:all .1s;position:absolute;overflow:hidden}.top-error~.top-formsCaption{transition:all .1s .1s}.top-formsCaption *{pointer-events:auto}.top-formsCaptionWrapper>input:not([readonly]):focus~.top-formsCaption,.top-formsCaptionWrapper>input:not(:placeholder-shown)~.top-formsCaption,.top-formsCaptionWrapper>textarea:not(:placeholder-shown)~.top-formsCaption,.top-formsCaptionWrapper.top-select>.top-formsCaption,.top-formsCaptionWrapper.top-inputRange>.top-formsCaption,.top-formsCaptionWrapper-always>.top-formsCaption{width:100%;color:var(--top-forms-placeholder-color-active);transform:translate(0, calc(-1em - var(--top-formsCaption-offset)));padding:0;font-size:11px;transition:all .1s}html .ui-tooltip{pointer-events:none;background:var(--color-layout-front-1);width:max-content;padding:var(--top-padding-4);margin:0 var(--top-padding-4);z-index:200000;border:none;font-size:13px;box-shadow:0 6px 18px #0e152f21,0 -2px 6px #0e152f08}.ui-tooltip.ui-corner-all{border-radius:var(--top-padding-2)}.ui-tooltip img{margin:var(--top-padding-3) 0 0 0}.ui-tooltip ul{margin-left:24px}:root{--top-icon-size:24px;--top-icon-width:0px;--top-icon2-size:24px;--top-icon2-width:0px;--top-icon-both-width:0px}[data-top-icon]{--top-icon-width:calc(var(--top-icon-size) + var(--top-forms-padding));--top-icon-color:inherit}[data-top-icon2]{--top-icon2-width:calc(var(--top-icon2-size) + 8px);--top-icon2-color:inherit}[data-top-icon=""]{--top-icon-width:0px}[data-top-icon2=""]{--top-icon2-width:0px}[data-top-icon]:before,[data-top-icon2]:after{pointer-events:none;content:attr(data-top-icon);border-radius:var(--top-forms-radius);width:var(--top-icon-width);color:var(--top-icon-color);font-family:Topvisor-2;font-size:var(--top-icon-size);flex-shrink:0;justify-content:center;align-items:center;font-weight:400;line-height:1;display:inline-flex}[data-top-icon2]:after{content:attr(data-top-icon2);width:var(--top-icon2-width);color:var(--top-icon2-color);font-size:var(--top-icon2-size)}[data-top-icon],[data-top-icon2]{--top-icon-both-width:calc(var(--top-icon-width) + var(--top-icon2-width))}[data-top-icon=]:before{font-family:Topvisor}:root{--top-line-heihgt:1.36;--top-page-width:1180px;--100vh:100dvh;--top-scrollbar-width:6px;--transition:.2s ease-in-out;--transition-fast:.1s;--transition-normal:.3s;--transition-slow:.5s;--top-padding-1:4px;--top-padding-2:8px;--top-padding-3:12px;--top-padding-4:16px;--top-padding-5:20px;--top-padding-6:24px;--top-padding-7:28px;--top-padding-8:32px;--top-padding-9:36px;--top-padding-10:40px;--top-padding-11:44px;--top-padding-12:48px;--top-gap-1:4px;--top-gap-2:8px;--top-gap-3:12px;--top-gap-4:16px;--top-gap-5:20px;--top-gap-6:24px;--top-gap-7:28px;--top-gap-8:32px;--top-gap-9:36px;--top-gap-10:40px;--top-gap-11:44px;--top-gap-12:48px;--top-radius-1:4px;--top-radius-2:8px;--top-radius-3:12px;--top-radius-4:16px;--top-radius-5:20px;--top-radius-6:24px;--top-radius-7:28px;--top-radius-8:32px;--top-radius-9:36px;--top-radius-10:40px;--top-radius-11:44px;--top-radius-12:48px;--padding-default:var(--top-padding-4)}@media only screen and (max-width:900px){:root{--padding-default:var(--top-padding-3)}}.ui-widget-content{background:var(--color-layout-front-1);color:var(--color-text-1)}
|
package/assets/schedule.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.top-schedule-style_go{--color-topSchedule-border:var(--color-line-primary-1);--color-topSchedule-background:var(--color-layout-front-primary-3);--color-topSchedule-accentBackground:var(--color-bg-primary-1);--color-topSchedule-accentBackground-hover:var(--color-bg-primary-2)}.top-schedule-style_report{--color-topSchedule-border:var(--color-line-warning-1);--color-topSchedule-background:var(--color-layout-front-warning-3);--color-topSchedule-accentBackground:var(--color-bg-warning-1);--color-topSchedule-accentBackground-hover:var(--color-bg-warning-2)}.top-schedule-style_neutral{--color-topSchedule-border:var(--color-line-2);--color-topSchedule-background:var(--color-layout-front-3);--color-topSchedule-accentBackground:var(--color-bg-primary-1);--color-topSchedule-accentBackground-hover:var(--color-bg-primary-2)}.top-schedule{border:1px solid var(--color-topSchedule-border);border-radius:var(--top-radius-4);background:var(--color-topSchedule-background);width:100%;max-width:332px}.top-schedule_header{padding:var(--top-padding-4);gap:var(--top-gap-4);flex-direction:column;display:flex}.top-schedule_headerTitle{font-size:18px;font-weight:600}.top-schedule_headerTriggerType{width:100%}.top-schedule_body{border-top:1px solid var(--color-topSchedule-border);border-bottom-left-radius:var(--top-radius-4);border-bottom-right-radius:var(--top-radius-4);background:var(--color-layout-front-1)}.top-schedule_bodyContainer{border-bottom:1px solid var(--color-line-1);padding:var(--top-padding-4)}.top-schedule_bodyContainer:last-child{border-bottom:0}.top-scheduleCalendar{gap:var(--top-gap-4);flex-direction:column;display:flex}.top-scheduleCalendar_header{justify-content:space-between;align-items:flex-end;display:flex}.top-scheduleCalendar_headerButton.top-button{min-width:auto;margin-left:auto}.top-scheduleCalendar_calendar{gap:var(--top-gap-2);grid-template-columns:repeat(7,1fr);display:grid}.top-scheduleCalendar_calendarDay{--top-icon-size:20px;cursor:pointer;border:1px solid var(--color-line-1);border-radius:var(--top-radius-2);
|
|
1
|
+
.top-schedule-style_go{--color-topSchedule-border:var(--color-line-primary-1);--color-topSchedule-background:var(--color-layout-front-primary-3);--color-topSchedule-accentBackground:var(--color-bg-primary-1);--color-topSchedule-accentBackground-hover:var(--color-bg-primary-2)}.top-schedule-style_report{--color-topSchedule-border:var(--color-line-warning-1);--color-topSchedule-background:var(--color-layout-front-warning-3);--color-topSchedule-accentBackground:var(--color-bg-warning-1);--color-topSchedule-accentBackground-hover:var(--color-bg-warning-2)}.top-schedule-style_neutral{--color-topSchedule-border:var(--color-line-2);--color-topSchedule-background:var(--color-layout-front-3);--color-topSchedule-accentBackground:var(--color-bg-primary-1);--color-topSchedule-accentBackground-hover:var(--color-bg-primary-2)}.top-schedule{border:1px solid var(--color-topSchedule-border);border-radius:var(--top-radius-4);background:var(--color-topSchedule-background);width:100%;max-width:332px}.top-schedule_header{padding:var(--top-padding-4);gap:var(--top-gap-4);flex-direction:column;display:flex}.top-schedule_headerTitle{font-size:18px;font-weight:600}.top-schedule_headerTriggerType{width:100%}.top-schedule_body{border-top:1px solid var(--color-topSchedule-border);border-bottom-left-radius:var(--top-radius-4);border-bottom-right-radius:var(--top-radius-4);background:var(--color-layout-front-1)}.top-schedule_bodyContainer{border-bottom:1px solid var(--color-line-1);padding:var(--top-padding-4)}.top-schedule_bodyContainer:last-child{border-bottom:0}.top-scheduleCalendar{gap:var(--top-gap-4);flex-direction:column;display:flex}.top-scheduleCalendar_header{justify-content:space-between;align-items:flex-end;display:flex}.top-scheduleCalendar_headerButton.top-button{min-width:auto;margin-left:auto}.top-scheduleCalendar_calendar{gap:var(--top-gap-2);grid-template-columns:repeat(7,1fr);display:grid}.top-scheduleCalendar_calendarDay{--top-icon-size:20px;aspect-ratio:1;cursor:pointer;border:1px solid var(--color-line-1);border-radius:var(--top-radius-2);justify-content:center;align-items:center;display:flex;position:relative}.top-scheduleCalendar_calendarDay:hover{border-color:var(--color-topSchedule-border);background:var(--color-layout-front-3)}.top-scheduleCalendar_calendarDay:has(.top-scheduleCalendar_calendarDayRadio:focus-visible){outline:1px solid var(--color-topSchedule-border);outline-offset:2px}.top-scheduleCalendar_calendarDay:has(.top-scheduleCalendar_calendarDayRadio:checked){border-color:var(--color-topSchedule-background);background:var(--color-topSchedule-accentBackground);color:var(--color-text-white)}.top-scheduleCalendar_calendarDay:has(.top-scheduleCalendar_calendarDayRadio:checked):hover{background:var(--color-topSchedule-accentBackground-hover)}.top-scheduleCalendar_calendarDayRadio{pointer-events:none;opacity:0;width:1px;height:1px;position:absolute}.top-scheduleCalendar_selectionSummary{text-align:center}.top-scheduleCalendar_selectionSummary:not(.top-error){color:var(--color-text-3)}.top-scheduleEmailSelector .top-input{width:100%}.top-scheduleEmailSelector .top-input_input{padding-right:var(--top-padding-10)}.top-scheduleEmailSelector_submit.top-button{--top-icon-size:20px;top:50%;right:var(--top-padding-2);z-index:1;position:absolute;transform:translateY(-50%)}.top-scheduleEmailSelector_submit.top-button:focus-visible{position:absolute}.top-scheduleEmailSelector .ui-autocomplete{border-radius:var(--top-radius-2);background:var(--color-layout-front-2);gap:var(--top-gap-1);padding:var(--top-padding-2)!important}.top-scheduleEmailSelector .ui-autocomplete .ui-menu-item{margin:0!important}.top-scheduleEmailSelector .ui-autocomplete .ui-menu-item .ui-menu-item-wrapper{border-radius:var(--top-radius-2);align-items:flex-end;gap:var(--top-gap-2);transition:var(--transition-normal);box-sizing:border-box;background:0 0;display:flex;padding:var(--top-padding-1) var(--top-padding-2)!important;margin:0!important}.top-scheduleEmailSelector .ui-autocomplete .ui-menu-item:hover .ui-menu-item-wrapper,.top-scheduleEmailSelector .ui-autocomplete .ui-menu-item .ui-menu-item-wrapper.ui-state-active{background:var(--color-layout-front-3)}.top-scheduleEmailSelector .ui-autocomplete .ui-menu-item .ui-menu-item-wrapper *{background:0 0;padding:0}.top-scheduleEmail{flex-direction:column;gap:10px;display:flex}.top-scheduleEmail_title{font-weight:600}.top-scheduleEmail_emails{border:1px solid var(--color-line-1);border-radius:var(--top-radius-2)}.top-scheduleEmail_emailsItem{--top-icon-size:20px;padding:var(--top-padding-1) var(--top-padding-4);padding-right:var(--top-padding-2);border-bottom:1px solid var(--color-line-1);justify-content:space-between;align-items:center;gap:var(--top-gap-1);display:flex}.top-scheduleEmail_emailsItem:last-child{border-bottom:0}.top-scheduleReportSend{flex-direction:column;gap:10px;display:flex}.top-scheduleReportSend_title{font-weight:600}.top-scheduleReportSend_channels{border:1px solid var(--color-line-1);border-radius:var(--top-radius-2)}.top-scheduleReportSend_channel{height:40px;padding:0 var(--top-padding-4);padding-right:var(--top-padding-2);border-bottom:1px solid var(--color-line-1);align-items:center;gap:var(--top-gap-2);display:flex}.top-scheduleReportSend_channel:last-child{border-bottom:0}.top-scheduleReportSend_channelIcon{--top-icon-size:20px;--top-icon-color:var(--color-text-3)}.top-scheduleReportSend_channelLabel{flex-grow:0}.top-scheduleReportSend_channelSettings{--top-icon-size:16px}.top-scheduleReportSend_channelSwitcher{margin-left:auto}.top-scheduleTimeSelector{align-items:center;display:flex}.top-scheduleTimeSelector .top-select{width:60px}.top-scheduleTimeSelector_hour .top-select_select{border-top-right-radius:0;border-bottom-right-radius:0}.top-scheduleTimeSelector_minute .top-select_select{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.top-scheduleTimeSelectors{flex-direction:column;gap:10px;display:flex}.top-scheduleTimeSelectors_item{align-items:center;gap:var(--top-gap-2);display:flex}.top-scheduleTimeSelectors_itemAdd.top-button,.top-scheduleTimeSelectors_itemAdd.top-button:hover{--top-icon-color:var(--color-text-primary)}
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
".chunks/dialog_regionSelectorRegions-zJShjr2f.amd.js": [
|
|
73
73
|
"../assets/dialog_regionSelectorRegions.css"
|
|
74
74
|
],
|
|
75
|
-
".chunks/formsExt-
|
|
75
|
+
".chunks/formsExt-Iw04hpHr.amd.js": [
|
|
76
76
|
"../assets/formsExt.css"
|
|
77
77
|
],
|
|
78
78
|
".chunks/notice-Dw5ZUJxW.amd.js": [
|
|
79
79
|
"../assets/notice.css"
|
|
80
80
|
],
|
|
81
|
-
".chunks/popup-
|
|
81
|
+
".chunks/popup-ClpsGU2P.amd.js": [
|
|
82
82
|
"../assets/popup.css"
|
|
83
83
|
]
|
|
84
84
|
}
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
".chunks/dialog_regionSelectorRegions-zJShjr2f.esm.js": [
|
|
84
84
|
"../assets/dialog_regionSelectorRegions.css"
|
|
85
85
|
],
|
|
86
|
-
".chunks/formsExt-
|
|
86
|
+
".chunks/formsExt-Iw04hpHr.esm.js": [
|
|
87
87
|
"../assets/formsExt.css"
|
|
88
88
|
],
|
|
89
89
|
".chunks/notice-Dw5ZUJxW.esm.js": [
|
|
90
90
|
"../assets/notice.css"
|
|
91
91
|
],
|
|
92
|
-
".chunks/popup-
|
|
92
|
+
".chunks/popup-ClpsGU2P.esm.js": [
|
|
93
93
|
"../assets/popup.css"
|
|
94
94
|
]
|
|
95
95
|
}
|
package/formsExt/formsExt.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define([`require`,`exports`,`../.chunks/formsExt-
|
|
1
|
+
define([`require`,`exports`,`../.chunks/formsExt-Iw04hpHr.amd`],function(e,t,n){"use strict";if(r===void 0)var r=window.Vue;Object.defineProperty(t,"__esModule",{value:!0}),t.apiSetSearchParamsFilter=t.TopSelector2=t.TopRadioGroup=t.TopPolicy=t.TopMenu=t.TopInfo=t.TopEditInput=t.TopEditArea=t.TopCheckboxGroup=t.ITEM_ID_NEW=t.ITEM_ID_ALL=void 0,Object.defineProperty(t,"TopEditInput",{enumerable:!0,get:function(){return n.a}}),Object.defineProperty(t,"ITEM_ID_ALL",{enumerable:!0,get:function(){return n.c}}),Object.defineProperty(t,"TopMenu",{enumerable:!0,get:function(){return n.f}}),Object.defineProperty(t,"TopRadioGroup",{enumerable:!0,get:function(){return n.i}}),Object.defineProperty(t,"ITEM_ID_NEW",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(t,"TopInfo",{enumerable:!0,get:function(){return n.n}}),Object.defineProperty(t,"TopEditArea",{enumerable:!0,get:function(){return n.o}}),Object.defineProperty(t,"TopCheckboxGroup",{enumerable:!0,get:function(){return n.r}}),Object.defineProperty(t,"TopSelector2",{enumerable:!0,get:function(){return n.s}}),Object.defineProperty(t,"TopPolicy",{enumerable:!0,get:function(){return n.t}}),Object.defineProperty(t,"apiSetSearchParamsFilter",{enumerable:!0,get:function(){return n.u}})});
|
|
2
2
|
//# sourceMappingURL=formsExt.amd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["formsExt/formsExt.js"],"names":["vue","exports","
|
|
1
|
+
{"version":3,"sources":["formsExt/formsExt.js"],"names":["vue","exports","formsExt_Iw04hpHr_esm_js_1"],"mappings":"AAAA,OAAO,CAAC,UAAW,UAAW,kCAAqC,EAAG,SAAU,EAAS,EAAS,EA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,GAAM,IAAK,UAAY,CAAE,OAAOC,EAA2B,CAAG,CAAE,CAAC,EAC3H,OAAO,eAAeD,EAAS,2BAA4B,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOC,EAA2B,CAAG,CAAE,CAAC,CAC9I,CAAC","sourcesContent":["define([\"require\", \"exports\", \"../.chunks/formsExt-Iw04hpHr.esm.js\"], function (require, exports, formsExt_Iw04hpHr_esm_js_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.apiSetSearchParamsFilter = exports.TopSelector2 = exports.TopRadioGroup = exports.TopPolicy = exports.TopMenu = exports.TopInfo = exports.TopEditInput = exports.TopEditArea = exports.TopCheckboxGroup = exports.ITEM_ID_NEW = exports.ITEM_ID_ALL = void 0;\n Object.defineProperty(exports, \"TopEditInput\", { enumerable: true, get: function () { return formsExt_Iw04hpHr_esm_js_1.a; } });\n Object.defineProperty(exports, \"ITEM_ID_ALL\", { enumerable: true, get: function () { return formsExt_Iw04hpHr_esm_js_1.c; } });\n Object.defineProperty(exports, \"TopMenu\", { enumerable: true, get: function () { return formsExt_Iw04hpHr_esm_js_1.f; } });\n Object.defineProperty(exports, \"TopRadioGroup\", { enumerable: true, get: function () { return formsExt_Iw04hpHr_esm_js_1.i; } });\n Object.defineProperty(exports, \"ITEM_ID_NEW\", { enumerable: true, get: function () { return formsExt_Iw04hpHr_esm_js_1.l; } });\n Object.defineProperty(exports, \"TopInfo\", { enumerable: true, get: function () { return formsExt_Iw04hpHr_esm_js_1.n; } });\n Object.defineProperty(exports, \"TopEditArea\", { enumerable: true, get: function () { return formsExt_Iw04hpHr_esm_js_1.o; } });\n Object.defineProperty(exports, \"TopCheckboxGroup\", { enumerable: true, get: function () { return formsExt_Iw04hpHr_esm_js_1.r; } });\n Object.defineProperty(exports, \"TopSelector2\", { enumerable: true, get: function () { return formsExt_Iw04hpHr_esm_js_1.s; } });\n Object.defineProperty(exports, \"TopPolicy\", { enumerable: true, get: function () { return formsExt_Iw04hpHr_esm_js_1.t; } });\n Object.defineProperty(exports, \"apiSetSearchParamsFilter\", { enumerable: true, get: function () { return formsExt_Iw04hpHr_esm_js_1.u; } });\n});\n"]}
|
package/formsExt/formsExt.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, f as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../.chunks/formsExt-
|
|
1
|
+
import { a as e, c as t, f as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../.chunks/formsExt-Iw04hpHr.esm.js";
|
|
2
2
|
export { t as ITEM_ID_ALL, i as ITEM_ID_NEW, s as TopCheckboxGroup, o as TopEditArea, e as TopEditInput, a as TopInfo, n as TopMenu, l as TopPolicy, r as TopRadioGroup, c as TopSelector2, u as apiSetSearchParamsFilter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";if(vue===void 0)var vue=window.Vue;`boxShadow`in document.body.style||document.body.setAttribute(`class`,`noBoxShadow`),document.body.addEventListener(`click`,function(e){
|
|
1
|
+
"use strict";if(vue===void 0)var vue=window.Vue;`boxShadow`in document.body.style||document.body.setAttribute(`class`,`noBoxShadow`),document.body.addEventListener(`click`,function(e){let t=e.target;t.tagName===`INPUT`&&t.getAttribute(`class`).indexOf(`liga`)===-1&&t.select()}),function(){let e=document.getElementById(`fontSize`),t=document.getElementById(`testDrive`),n=document.getElementById(`testText`);function r(){t.innerHTML=n.value||`\xA0`,window.icomoonLiga&&window.icomoonLiga(t)}function i(){t.style.fontSize=e.value+`px`}e.addEventListener(`change`,i,!1),n.addEventListener(`input`,r,!1),n.addEventListener(`change`,r,!1),i()}();
|
|
2
2
|
//# sourceMappingURL=demo.amd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["icomoon/demo-files/demo.js"],"names":["target","fontSize","testDrive","testText","updateTest","updateSize"],"mappings":"AAAA,aAAA,GAAA,MAAA,OAAA,IAAA,IAAA,OAAA,IACM,cAAe,SAAS,KAAK,OAC/B,SAAS,KAAK,aAAa,QAAS,aAAa,EAErD,SAAS,KAAK,iBAAiB,QAAS,SAAU,EAAG,CACjD,
|
|
1
|
+
{"version":3,"sources":["icomoon/demo-files/demo.js"],"names":["target","fontSize","testDrive","testText","updateTest","updateSize"],"mappings":"AAAA,aAAA,GAAA,MAAA,OAAA,IAAA,IAAA,OAAA,IACM,cAAe,SAAS,KAAK,OAC/B,SAAS,KAAK,aAAa,QAAS,aAAa,EAErD,SAAS,KAAK,iBAAiB,QAAS,SAAU,EAAG,CACjD,IAAMA,EAAS,EAAE,OACbA,EAAO,UAAY,SACnBA,EAAO,aAAa,OAAO,CAAC,CAAC,QAAQ,MAAM,IAAM,IACjDA,EAAO,OAAO,CAEtB,CAAC,EACA,UAAY,CACT,IAAMC,EAAW,SAAS,eAAe,UAAU,EAAGC,EAAY,SAAS,eAAe,WAAW,EAAGC,EAAW,SAAS,eAAe,UAAU,EACrJ,SAASC,GAAa,CAClB,EAAU,UAAYD,EAAS,OAAS,OACpC,OAAO,aACP,OAAO,YAAYD,CAAS,CAEpC,CACA,SAASG,GAAa,CAClB,EAAU,MAAM,SAAWJ,EAAS,MAAQ,IAChD,CACAA,EAAS,iBAAiB,SAAUI,EAAY,EAAK,EACrDF,EAAS,iBAAiB,QAASC,EAAY,EAAK,EACpDD,EAAS,iBAAiB,SAAUC,EAAY,EAAK,EACrDC,EAAW,CACf,EAAE","sourcesContent":["\"use strict\";\nif (!('boxShadow' in document.body.style)) {\n document.body.setAttribute('class', 'noBoxShadow');\n}\ndocument.body.addEventListener(\"click\", function (e) {\n const target = e.target;\n if (target.tagName === \"INPUT\" &&\n target.getAttribute('class').indexOf('liga') === -1) {\n target.select();\n }\n});\n(function () {\n const fontSize = document.getElementById('fontSize'), testDrive = document.getElementById('testDrive'), testText = document.getElementById('testText');\n function updateTest() {\n testDrive.innerHTML = testText.value || String.fromCharCode(160);\n if (window.icomoonLiga) {\n window.icomoonLiga(testDrive);\n }\n }\n function updateSize() {\n testDrive.style.fontSize = fontSize.value + 'px';\n }\n fontSize.addEventListener('change', updateSize, false);\n testText.addEventListener('input', updateTest, false);\n testText.addEventListener('change', updateTest, false);\n updateSize();\n}());\n"]}
|
|
@@ -3,7 +3,7 @@ if (!('boxShadow' in document.body.style)) {
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
document.body.addEventListener("click", function(e) {
|
|
6
|
-
|
|
6
|
+
const target = e.target;
|
|
7
7
|
if (target.tagName === "INPUT" &&
|
|
8
8
|
target.getAttribute('class').indexOf('liga') === -1) {
|
|
9
9
|
target.select();
|
|
@@ -11,7 +11,7 @@ document.body.addEventListener("click", function(e) {
|
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
(function() {
|
|
14
|
-
|
|
14
|
+
const fontSize = document.getElementById('fontSize'),
|
|
15
15
|
testDrive = document.getElementById('testDrive'),
|
|
16
16
|
testText = document.getElementById('testText');
|
|
17
17
|
function updateTest() {
|
package/icomoon/demo.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";if(vue===void 0)var vue=window.Vue;`boxShadow`in document.body.style||document.body.setAttribute(`class`,`noBoxShadow`),document.body.addEventListener(`click`,function(e){
|
|
1
|
+
"use strict";if(vue===void 0)var vue=window.Vue;`boxShadow`in document.body.style||document.body.setAttribute(`class`,`noBoxShadow`),document.body.addEventListener(`click`,function(e){let t=e.target;t.tagName===`INPUT`&&t.getAttribute(`class`).indexOf(`liga`)===-1&&t.select()}),function(){let e=document.getElementById(`fontSize`),t=document.getElementById(`testDrive`),n=document.getElementById(`testText`);function r(){t.innerHTML=n.value||`\xA0`,window.icomoonLiga&&window.icomoonLiga(t)}function i(){t.style.fontSize=e.value+`px`}e.addEventListener(`change`,i,!1),n.addEventListener(`input`,r,!1),n.addEventListener(`change`,r,!1),i()}();
|
|
2
2
|
//# sourceMappingURL=demo.amd.js.map
|
package/icomoon/demo.amd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["icomoon/demo.js"],"names":["target","fontSize","testDrive","testText","updateTest","updateSize"],"mappings":"AAAA,aAAA,GAAA,MAAA,OAAA,IAAA,IAAA,OAAA,IACM,cAAe,SAAS,KAAK,OAC/B,SAAS,KAAK,aAAa,QAAS,aAAa,EAErD,SAAS,KAAK,iBAAiB,QAAS,SAAU,EAAG,CACjD,
|
|
1
|
+
{"version":3,"sources":["icomoon/demo.js"],"names":["target","fontSize","testDrive","testText","updateTest","updateSize"],"mappings":"AAAA,aAAA,GAAA,MAAA,OAAA,IAAA,IAAA,OAAA,IACM,cAAe,SAAS,KAAK,OAC/B,SAAS,KAAK,aAAa,QAAS,aAAa,EAErD,SAAS,KAAK,iBAAiB,QAAS,SAAU,EAAG,CACjD,IAAMA,EAAS,EAAE,OACbA,EAAO,UAAY,SACnBA,EAAO,aAAa,OAAO,CAAC,CAAC,QAAQ,MAAM,IAAM,IACjDA,EAAO,OAAO,CAEtB,CAAC,EACA,UAAY,CACT,IAAMC,EAAW,SAAS,eAAe,UAAU,EAAGC,EAAY,SAAS,eAAe,WAAW,EAAGC,EAAW,SAAS,eAAe,UAAU,EACrJ,SAASC,GAAa,CAClB,EAAU,UAAYD,EAAS,OAAS,OACpC,OAAO,aACP,OAAO,YAAYD,CAAS,CAEpC,CACA,SAASG,GAAa,CAClB,EAAU,MAAM,SAAWJ,EAAS,MAAQ,IAChD,CACAA,EAAS,iBAAiB,SAAUI,EAAY,EAAK,EACrDF,EAAS,iBAAiB,QAASC,EAAY,EAAK,EACpDD,EAAS,iBAAiB,SAAUC,EAAY,EAAK,EACrDC,EAAW,CACf,EAAE","sourcesContent":["\"use strict\";\nif (!('boxShadow' in document.body.style)) {\n document.body.setAttribute('class', 'noBoxShadow');\n}\ndocument.body.addEventListener(\"click\", function (e) {\n const target = e.target;\n if (target.tagName === \"INPUT\" &&\n target.getAttribute('class').indexOf('liga') === -1) {\n target.select();\n }\n});\n(function () {\n const fontSize = document.getElementById('fontSize'), testDrive = document.getElementById('testDrive'), testText = document.getElementById('testText');\n function updateTest() {\n testDrive.innerHTML = testText.value || String.fromCharCode(160);\n if (window.icomoonLiga) {\n window.icomoonLiga(testDrive);\n }\n }\n function updateSize() {\n testDrive.style.fontSize = fontSize.value + 'px';\n }\n fontSize.addEventListener('change', updateSize, false);\n testText.addEventListener('input', updateTest, false);\n testText.addEventListener('change', updateTest, false);\n updateSize();\n}());\n"]}
|
package/icomoon/demo.js
CHANGED
|
@@ -3,7 +3,7 @@ if (!('boxShadow' in document.body.style)) {
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
document.body.addEventListener("click", function(e) {
|
|
6
|
-
|
|
6
|
+
const target = e.target;
|
|
7
7
|
if (target.tagName === "INPUT" &&
|
|
8
8
|
target.getAttribute('class').indexOf('liga') === -1) {
|
|
9
9
|
target.select();
|
|
@@ -11,7 +11,7 @@ document.body.addEventListener("click", function(e) {
|
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
(function() {
|
|
14
|
-
|
|
14
|
+
const fontSize = document.getElementById('fontSize'),
|
|
15
15
|
testDrive = document.getElementById('testDrive'),
|
|
16
16
|
testText = document.getElementById('testText');
|
|
17
17
|
function updateTest() {
|