{"version":3,"file":"index-D0wqT7ho.js","sources":["../../../src/modules/site-header.ts","../../../node_modules/@uppy/utils/lib/Translator.js","../../../node_modules/namespace-emitter/index.js","../../../node_modules/nanoid/non-secure/index.js","../../../node_modules/lodash/isObject.js","../../../node_modules/lodash/_freeGlobal.js","../../../node_modules/lodash/_root.js","../../../node_modules/lodash/now.js","../../../node_modules/lodash/_trimmedEndIndex.js","../../../node_modules/lodash/_baseTrim.js","../../../node_modules/lodash/_Symbol.js","../../../node_modules/lodash/_getRawTag.js","../../../node_modules/lodash/_objectToString.js","../../../node_modules/lodash/_baseGetTag.js","../../../node_modules/lodash/isObjectLike.js","../../../node_modules/lodash/isSymbol.js","../../../node_modules/lodash/toNumber.js","../../../node_modules/lodash/debounce.js","../../../node_modules/lodash/throttle.js","../../../node_modules/@uppy/store-default/lib/index.js","../../../node_modules/@uppy/utils/lib/getFileNameAndExtension.js","../../../node_modules/@uppy/utils/lib/mimeTypes.js","../../../node_modules/@uppy/utils/lib/getFileType.js","../../../node_modules/@uppy/utils/lib/generateFileID.js","../../../node_modules/@uppy/core/lib/supportsUploadProgress.js","../../../node_modules/@uppy/core/lib/getFileName.js","../../../node_modules/@uppy/utils/lib/getTimeStamp.js","../../../node_modules/@uppy/core/lib/loggers.js","../../../node_modules/@transloadit/prettier-bytes/dist/prettierBytes.js","../../../node_modules/wildcard/index.js","../../../node_modules/mime-match/index.js","../../../node_modules/@uppy/core/lib/Restricter.js","../../../node_modules/@uppy/core/lib/locale.js","../../../node_modules/@uppy/core/lib/Uppy.js","../../../node_modules/preact/dist/preact.module.js","../../../node_modules/@uppy/utils/lib/isDOMElement.js","../../../node_modules/@uppy/utils/lib/findDOMElement.js","../../../node_modules/@uppy/utils/lib/getTextDirection.js","../../../node_modules/@uppy/core/lib/BasePlugin.js","../../../node_modules/@uppy/core/lib/UIPlugin.js","../../../node_modules/@uppy/utils/lib/emaFilter.js","../../../node_modules/@uppy/status-bar/lib/StatusBarStates.js","../../../node_modules/classnames/index.js","../../../node_modules/@uppy/status-bar/lib/calculateProcessingProgress.js","../../../node_modules/@uppy/utils/lib/secondsToTime.js","../../../node_modules/@uppy/utils/lib/prettyETA.js","../../../node_modules/@uppy/status-bar/lib/Components.js","../../../node_modules/@uppy/status-bar/lib/StatusBarUI.js","../../../node_modules/@uppy/status-bar/lib/locale.js","../../../node_modules/@uppy/status-bar/lib/StatusBar.js","../../../node_modules/@uppy/informer/lib/FadeIn.js","../../../node_modules/@uppy/informer/lib/TransitionGroup.js","../../../node_modules/@uppy/informer/lib/Informer.js","../../../node_modules/@uppy/utils/lib/dataURItoBlob.js","../../../node_modules/@uppy/utils/lib/isObjectURL.js","../../../node_modules/@uppy/utils/lib/isPreviewSupported.js","../../../node_modules/exifr/dist/mini.esm.mjs","../../../node_modules/@uppy/thumbnail-generator/lib/locale.js","../../../node_modules/@uppy/thumbnail-generator/lib/index.js","../../../node_modules/@uppy/utils/lib/findAllDOMElements.js","../../../node_modules/@uppy/utils/lib/toArray.js","../../../node_modules/@uppy/utils/lib/getDroppedFiles/utils/webkitGetAsEntryApi/getFilesAndDirectoriesFromDirectory.js","../../../node_modules/@uppy/utils/lib/getDroppedFiles/utils/webkitGetAsEntryApi/index.js","../../../node_modules/@uppy/utils/lib/getDroppedFiles/utils/fallbackApi.js","../../../node_modules/@uppy/utils/lib/getDroppedFiles/index.js","../../../node_modules/preact/hooks/dist/hooks.module.js","../../../node_modules/@uppy/utils/lib/VirtualList.js","../../../node_modules/@uppy/provider-views/lib/ProviderView/ProviderView.js","../../../node_modules/memoize-one/dist/memoize-one.esm.js","../../../node_modules/@uppy/utils/lib/FOCUSABLE_ELEMENTS.js","../../../node_modules/@uppy/dashboard/lib/utils/getActiveOverlayEl.js","../../../node_modules/@uppy/dashboard/lib/utils/trapFocus.js","../../../node_modules/@uppy/dashboard/lib/utils/createSuperFocus.js","../../../node_modules/@uppy/utils/lib/isDragDropSupported.js","../../../node_modules/shallow-equal/dist/index.modern.mjs","../../../node_modules/@uppy/dashboard/lib/utils/getFileTypeIcon.js","../../../node_modules/@uppy/dashboard/lib/components/FilePreview.js","../../../node_modules/@uppy/dashboard/lib/components/FileItem/MetaErrorMessage.js","../../../node_modules/@uppy/dashboard/lib/components/FileItem/FilePreviewAndLink/index.js","../../../node_modules/@uppy/dashboard/lib/components/FileItem/FileProgress/index.js","../../../node_modules/@uppy/utils/lib/truncateString.js","../../../node_modules/@uppy/dashboard/lib/components/FileItem/FileInfo/index.js","../../../node_modules/@uppy/dashboard/lib/utils/copyToClipboard.js","../../../node_modules/@uppy/dashboard/lib/components/FileItem/Buttons/index.js","../../../node_modules/@uppy/dashboard/lib/components/FileItem/index.js","../../../node_modules/@uppy/dashboard/lib/components/FileList.js","../../../node_modules/@uppy/dashboard/lib/components/AddFiles.js","../../../node_modules/@uppy/dashboard/lib/components/AddFilesPanel.js","../../../node_modules/@uppy/dashboard/lib/utils/ignoreEvent.js","../../../node_modules/@uppy/dashboard/lib/components/PickerPanelContent.js","../../../node_modules/@uppy/dashboard/lib/components/EditorPanel.js","../../../node_modules/@uppy/dashboard/lib/components/PickerPanelTopBar.js","../../../node_modules/@uppy/dashboard/lib/components/FileCard/RenderMetaFields.js","../../../node_modules/@uppy/dashboard/lib/components/FileCard/index.js","../../../node_modules/@uppy/dashboard/lib/components/Slide.js","../../../node_modules/@uppy/dashboard/lib/components/Dashboard.js","../../../node_modules/@uppy/dashboard/lib/locale.js","../../../node_modules/@uppy/dashboard/lib/Dashboard.js","../../../node_modules/@uppy/utils/lib/getFileTypeExtension.js","../../../node_modules/is-mobile/index.js","../../../node_modules/@uppy/utils/lib/canvasToBlob.js","../../../node_modules/@uppy/webcam/lib/supportsMediaRecorder.js","../../../node_modules/@uppy/webcam/lib/CameraIcon.js","../../../node_modules/@uppy/webcam/lib/SnapshotButton.js","../../../node_modules/@uppy/webcam/lib/RecordButton.js","../../../node_modules/@uppy/webcam/lib/formatSeconds.js","../../../node_modules/@uppy/webcam/lib/RecordingLength.js","../../../node_modules/@uppy/webcam/lib/VideoSourceSelect.js","../../../node_modules/@uppy/webcam/lib/SubmitButton.js","../../../node_modules/@uppy/webcam/lib/DiscardButton.js","../../../node_modules/@uppy/webcam/lib/CameraScreen.js","../../../node_modules/@uppy/webcam/lib/PermissionsScreen.js","../../../node_modules/@uppy/webcam/lib/locale.js","../../../node_modules/@uppy/webcam/lib/Webcam.js","../../../node_modules/@uppy/locales/lib/cs_CZ.js","../../../src/modules/order-form.ts","../../../src/modules/person-list-item.ts","../../../src/modules/person-list.ts","../../../src/index.ts"],"sourcesContent":["export default class SiteHeader {\n\n headerWrapper: HTMLElement | null;\n navElement: HTMLElement | null;\n focusableElements: Array;\n\n //foldable main menu\n lastScrollTop: number;\n scrollHandler: EventListener;\n resizeHandler: EventListener;\n focusoutHandler: EventListener;\n\n //dropdowns\n clickHandler: EventListener;\n keyboardHandler: EventListener;\n\n constructor(id: string = 'site-header') {\n\n this.headerWrapper = document.getElementById(id);\n\n if(!this.headerWrapper) {\n throw new Error(\"Header element not found\");\n }\n\n this.navElement = this.headerWrapper.querySelector('nav');\n\n if(!this.navElement) {\n throw new Error(\"Nav element not found\");\n }\n\n this.focusableElements = new Array();\n this.headerWrapper?.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])').forEach((element) => {\n if(element instanceof HTMLElement) {\n this.focusableElements.push(element);\n }\n });\n \n this.clickHandler = this.handleClickEvent.bind(this);\n this.keyboardHandler = this.handleKeyboardEvent.bind(this);\n this.scrollHandler = this.handleScrollEvent.bind(this);\n this.resizeHandler = this.handleResizeEvent.bind(this);\n this.focusoutHandler = this.handleFocusoutEvent.bind(this);\n\n\t\tthis.enable();\n\t}\n\n enable() {\n window.addEventListener('click', this.clickHandler, false);\n window.addEventListener('scroll', this.scrollHandler, false);\n window.addEventListener('resize', this.resizeHandler, false);\n this.navElement?.addEventListener('focusout', this.focusoutHandler, true);\n this.toggleMenuIfScrolledDown();\n }\n\n destroy() {\n window.removeEventListener('click', this.clickHandler);\n window.removeEventListener('scroll', this.scrollHandler);\n window.removeEventListener('resize', this.resizeHandler);\n this.navElement?.removeEventListener('focusout', this.focusoutHandler);\n }\n\n handleScrollEvent(e: Event) {\n this.toggleMenuIfScrolledDown();\n }\n\n toggleMenuIfScrolledDown() {\n let currentScrollTop = document.documentElement.scrollTop || document.body.scrollTop;\n document.body.classList.toggle('scrolled-down', currentScrollTop > 50);\n }\n\n handleResizeEvent(e: Event) {\n //document.body.classList.remove('scrolled-down');\n this.closeMenu();\n }\n\n handleClickEvent(e: MouseEvent) {\n \n const target = e.target as HTMLElement;\n switch(target?.id) {\n case 'button-toggle-menu':\n this.toggleMenu();\n break;\n }\n\n if(target == document.body || target.classList.contains('menu-link')) {\n this.closeMenu();\n }\n };\n\n handleKeyboardEvent(e: KeyboardEvent) {\n\n switch (e.key) {\n\n case \"Escape\":\n this.closeMenu();\n break;\n\n case \"Tab\":\n\n \n // let first = this.focusableElements[0];\n // let last = this.focusableElements[this.focusableElements.length - 1];\n // let shift = e.shiftKey;\n // if (shift) {\n // if (e.target === first) { // shift-tab pressed on first input in dialog\n // last.focus();\n // e.preventDefault();\n // }\n // } else {\n // if (e.target === last || e.target == this.navElement ) { // tab pressed on last input in dialog\n // first.focus();\n // e.preventDefault();\n // }\n // }\n break;\n }\n }\n\n handleFocusoutEvent(e: FocusEvent) {\n //this.closeMenu();\n }\n\n openMenu() {\n document.body.classList.add('menu-open');\n window.addEventListener('keydown', this.keyboardHandler, false);\n this.navElement?.focus();\n }\n\n closeMenu() {\n document.body.classList.remove('menu-open');\n window.removeEventListener('keydown', this.keyboardHandler);\n }\n\n toggleMenu() {\n\n if(document.body.classList.contains('menu-open')) {\n this.closeMenu();\n } else {\n this.openMenu();\n }\n }\n}","function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError(\"attempted to use private field on non-instance\"); return e; }\nvar id = 0;\nfunction _classPrivateFieldLooseKey(e) { return \"__private_\" + id++ + \"_\" + e; }\n// We're using a generic because languages have different plural rules.\n\n// eslint-disable-next-line no-use-before-define\n\nfunction insertReplacement(source, rx, replacement) {\n const newParts = [];\n source.forEach(chunk => {\n // When the source contains multiple placeholders for interpolation,\n // we should ignore chunks that are not strings, because those\n // can be JSX objects and will be otherwise incorrectly turned into strings.\n // Without this condition we’d get this: [object Object] hello [object Object] my