{"version":3,"sources":["components/table/Table.js","components/table/TableHead.js","components/table/TableBody.js","components/table/TableRow.js","components/table/TableHeadCell.js","components/table/TableBodyCell.js","constants/menu_types.js","utils/menu.js","components/NewLoader/index.tsx","components/Panel/components/Heading.tsx","components/Panel/components/CollapseContent.tsx","components/Panel/index.tsx","containers/articles-list/utils/useGetLocationParams.ts","components/HookForm/Input.tsx","components/HookForm/TextField.tsx","components/HookForm/Label.tsx","components/HookForm/RedStar.tsx","components/RemoteData/RemoteDataSuspense.tsx","components/HookForm/index.ts","components/routes/components/Loader.js","components/routes/components/PrivateRoute.js","components/routes/components/PublicRoute.js","components/routes/utils/createRedirectUrl.ts","components/routes/utils/useGetUrlManager.js","containers/articles-list/utils/useGetIsOutdated.ts","containers/articles-list/utils/useGetMenuId.ts","modules/articles/api/getMenuArticles.ts","components/ArticleComponents/Content/utils/processTables.js","components/ArticleComponents/Content/utils/processImageSource.js","components/ArticleComponents/Content/utils/processIFrameWithTraseoMap.js","components/ArticleComponents/Aside/components/TipButton.tsx","components/ArticleComponents/Aside/components/Section.tsx","components/ArticleComponents/Aside/components/utils/prepareContent.ts","components/ArticleComponents/Aside/index.tsx","modules/articles/api/getHistoricalArticleZipAttachmentsUrl.ts","modules/articles/api/getArticleZipAttachmentsUrl.ts","utils/downloadFile/getFile.ts","utils/downloadFile/initDownloadToLocal.ts","components/ArticleComponents/Attachments/components/DownloadAll.tsx","utils/downloadFile/useDownloadFile.ts","utils/downloadFile/getFileName.ts","components/FileIcon/index.tsx","components/ArticleComponents/Attachments/components/AttachmentsList/components/AttachmentMetricPrintPreview.tsx","components/ArticleComponents/Attachments/components/AttachmentsList/components/ItemInformation.tsx","components/ArticleComponents/Attachments/components/AttachmentsList/components/AttachmentMetric.js","components/ArticleComponents/Attachments/components/AttachmentsList/components/MetricOverlay.js","components/ArticleComponents/Attachments/components/AttachmentsList/components/PreviewModal.js","components/ArticleComponents/Attachments/components/AttachmentsList/components/ItemActions.tsx","components/ArticleComponents/Attachments/components/AttachmentsList/utils/checkIsPhotoFormat.js","components/ArticleComponents/Attachments/components/AttachmentsList/components/AttachmentListItem.tsx","components/ArticleComponents/Attachments/components/AttachmentsList/index.tsx","components/ArticleComponents/Attachments/index.tsx","components/ArticleComponents/Comments/components/AnswersList.tsx","components/ArticleComponents/Comments/components/CommentsList.tsx","components/ArticleComponents/Comments/components/CommentForm.tsx","modules/articles/schemas/useCommentFormValidationSchema.ts","components/ArticleComponents/Comments/index.tsx","components/ArticleComponents/faq/components/Element.js","components/ArticleComponents/faq/Faq.js","components/ArticleComponents/gallery/components/Thumbnail.js","api/files.ts","components/ArticleComponents/gallery/Gallery.js","components/ArticleComponents/metrics/Metrics.js","components/ArticleComponents/relations/components/RelationOverlay.js","components/ArticleComponents/relations/components/NonArticleRelation.js","components/ArticleComponents/relations/components/RelationsNode.js","components/ArticleComponents/relations/Relations.js","components/ArticleComponents/tags/Tags.js","components/ArticleComponents/historical-link/HistoricalLink.js","components/ArticleComponents/TableComponents/Stamp.js","components/ArticleComponents/registries/components/TableRow.js","components/ArticleComponents/TableComponents/ResponsiveTable.js","components/ArticleComponents/registries/components/Table.tsx","components/ArticleComponents/registries/Registries.tsx","components/ArticleComponents/versions/components/Table.js","components/ArticleComponents/versions/Versions.tsx","components/SanitizeHtml/additionalAllowedTags.ts","components/SanitizeHtml/allowedAttributes.ts","components/SanitizeHtml/sanitizeHtml.ts","components/videoPlayer/index.jsx","components/videoPlayer/changeAdditionalVideoPlayerAttributes.ts","components/ArticleComponents/Content/utils/mk-modules.const.js","components/ArticleComponents/Content/utils/replaceDataModuleVideoStreamInstructions.jsx","components/ArticleComponents/Content/keys/index.ts","components/ArticleComponents/Content/components/ActionButtons/components/ContactFormModal.tsx","components/ArticleComponents/Content/components/ActionButtons/components/ForwardModalForm.tsx","components/ArticleComponents/Content/components/ActionButtons/components/useForwardValuesValidationSchema.ts","components/ArticleComponents/Content/components/ActionButtons/components/ForwardModal.tsx","api/articleVersions.ts","components/ArticleComponents/Content/components/ActionButtons/index.js","components/ArticleComponents/Content/components/maps/components/InfoWindow.js","components/ArticleComponents/Content/components/maps/components/GoogleMap.js","components/ArticleComponents/Content/components/maps/components/LeafletMap.js","components/ArticleComponents/Content/components/maps/components/Markers.js","components/ArticleComponents/Content/components/maps/Maps.js","components/ArticleComponents/Content/utils/processActionButtons.js","components/ArticleComponents/Content/components/OrganizationalUnits/index.tsx","components/ArticleComponents/Content/utils/processOrganizationUnits.js","components/ArticleComponents/Content/utils/processAnchor.js","components/ArticleComponents/Content/utils/processAnchorLink.js","components/ArticleComponents/Content/utils/processGoogleMap.js","components/ArticleComponents/Content/utils/processTitle.js","components/ArticleComponents/Content/utils/processTableRows.js","components/ArticleComponents/Content/utils/createArticlePages.js","components/ArticleComponents/Content/utils/getProcessingInstructions.js","components/ArticleComponents/Content/Content.tsx","components/ArticleContent/index.tsx","containers/articles-list/components/ArticleContentContainer.tsx","containers/articles-list/components/menu-children/components/ListItem.jsx","containers/articles-list/components/menu-children/MenuTilesChildren/MenuTile.jsx","containers/articles-list/components/menu-children/MenuTilesChildren/index.jsx","containers/articles-list/components/menu-children/MenuChildren.js","containers/articles-list/components/ArticleSectionContainer.tsx","containers/articles-list/components/HideInPrintContent.tsx","containers/articles-list/components/ArchivedButtons.tsx","containers/articles-list/components/tabs/Tabs.js","containers/articles-list/components/tabs/TabsContainer.tsx","utils/search-params.js","containers/articles-list/components/articles-table/components/TableCell.js","containers/articles-list/components/articles-table/ArticlesTableHeader.js","containers/articles-list/components/articles-table/components/TableRow.js","containers/articles-list/components/articles-table/components/ColumnField.js","containers/articles-list/components/articles-table/components/Td.tsx","containers/articles-list/components/articles-table/components/LinkRow.js","containers/articles-list/components/articles-table/components/RowWithMore.js","containers/articles-list/components/articles-table/ArticlesTableBody.js","containers/articles-list/components/articles-table/ArticlesTable.js","containers/articles-list/components/title-bar/TitleBar.js","components/SearchForm/SearchField.tsx","components/SearchForm/searchFormValidationSchema.tsx","components/SearchForm/SearchForm.tsx","containers/articles-list/components/contextSearch/components/advanced-search/components/advancedSearchFormSchemaStrategy.ts","containers/articles-list/components/contextSearch/components/advanced-search/components/AdvancedSearchForm.tsx","containers/articles-list/components/contextSearch/components/advanced-search/AdvancedSearch.js","containers/articles-list/components/contextSearch/ContextSearch.tsx","containers/articles-list/components/articles-table/components/FilterBar.tsx","containers/articles-list/components/articles-table/ArticlesTableContainer.tsx","containers/articles-list/ArticleListContainer.tsx","containers/articles-list/utils/createArticleBreadCrumbs.ts","containers/articles-list/utils/showArticlesTable.ts","containers/articles-list/utils/getArticleId.ts","containers/articles-list/utils/checkIfHaveNoArticles.ts","containers/article/Article.tsx","components/routes/Routes.js","components/routes/components/RedirectToSignIn.js","api/articlePreviews.ts","containers/preview/Preview.js","containers/Surveys/SurveyPreview.tsx","components/routes/utils/previewRoutes.ts","components/ArticleComponents/TableComponents/User/components/UserTipRow.jsx","components/ArticleComponents/TableComponents/User/components/UserTip.js","components/ArticleComponents/TableComponents/User/index.js","api/menus.ts","redux/utils/createTranslationsDictionary.ts","redux/modules/language.js","redux/modules/accessibility.js","api/language.ts","themes/contrastTheme.js","themes/greyTheme.js","themes/primaryTheme.js","themes/przedborzTheme.js","themes/pksTheme.js","themes/themes.js","themes/szamotulyTheme.js","themes/whiteGreyTheme.js","themes/wiazownaTheme.ts","modules/visitorsCounter/api/getVisitorsCounter.ts","modules/visitorsCounter/presentation/VisitorsCounter.tsx","components/Aside/components/Menu/components/Separator.js","components/Aside/components/Menu/components/ListItem.js","components/Aside/components/Menu/components/MenuItem.js","components/Aside/components/Menu/components/SubMenu.js","components/Aside/components/Menu/components/Redirection.jsx","components/Aside/components/Menu/components/LatestArticles.js","components/Aside/components/Menu/components/SeparatorH2.jsx","components/Aside/components/Menu/components/MainMenuItems.js","components/Aside/components/Menu/index.js","components/Aside/index.js","components/container/Container.js","components/Footer/components/FooterAside.tsx","utils/checkIfBrowser.ts","components/Footer/components/FooterContent.tsx","components/Footer/components/useScrollToTopAccessKey.ts","components/Footer/components/FooterEditable.tsx","components/Footer/index.tsx","components/Header/components/Emblem/EmblemImage.tsx","components/Header/components/Emblem/index.tsx","components/Header/components/HeaderEditable.tsx","components/Header/components/MainLogo/Link.tsx","components/Header/components/MainLogo/Image.tsx","components/Header/components/MainLogo/CustomizedLogoContainer/BipLogo.tsx","components/Header/utils/getImageSource.ts","components/Header/components/MainLogo/CustomizedLogoContainer/CustomizedLogo.tsx","components/Header/components/MainLogo/CustomizedLogoContainer/index.tsx","components/Header/components/MainLogo/MadkomLogo.tsx","components/Header/components/MainLogo/PksLogo.tsx","components/Header/components/MainLogo/index.tsx","components/Header/index.tsx","components/skip-links/SkipLink.tsx","components/skip-links/utils/useShowDeclarationOfAvailabilitySkipLink.ts","utils/useGetDeclarationOfAvailabilityUrl.ts","components/skip-links/SkipLinks.tsx","components/Dropdown/Dropdown.tsx","constants/font-sizes.ts","components/Dropdown/AccessibilityDropdown.tsx","utils/useFontSize.ts","components/toolbar/components/tools/components/Buttons/DesktopAccessibilityButton.tsx","components/toolbar/components/tools/components/Buttons/NormalLettersButton.tsx","components/toolbar/components/tools/components/Buttons/MediumLettersButton.tsx","components/toolbar/components/tools/components/Buttons/BigLettersButton.tsx","components/toolbar/components/tools/components/Buttons/ParagraphSpacingButton.tsx","components/toolbar/components/tools/components/Buttons/LinesSpacingButton.tsx","components/toolbar/components/tools/components/Buttons/WordSpacingButton.tsx","components/toolbar/components/tools/components/Buttons/LettersSpacingButton.tsx","components/toolbar/components/tools/components/Buttons/ContrastButton.tsx","components/toolbar/components/tools/components/Buttons/DropdownButton.tsx","components/toolbar/components/tools/components/MobileAccessibilityMenu.tsx","components/toolbar/components/tools/components/AccessibilityMenu.tsx","components/toolbar/components/authentication/Authentication.js","modules/articles/schemas/searchBarValidationSchema.ts","components/Combobox/index.tsx","components/toolbar/components/tools/components/search-bar/components/SuggestionInputField.tsx","api/search-suggestion.ts","components/toolbar/components/tools/components/search-bar/SearchBar.tsx","components/toolbar/components/tools/components/Buttons/AccessibilityLanguageDropdown.tsx","components/toolbar/components/tools/Tools.tsx","components/toolbar/components/tools/components/useIncreaseDecreaseFontSize.ts","components/toolbar/index.tsx","components/layout/Layout.js","components/layout/DefaultStyleWrapper.jsx","components/layout/Content.jsx","components/layout/Main.jsx","components/layout/LayoutWithoutMenu.jsx","components/privacy-policy/PrivacyPolicy.js","App/AppContent.tsx","containers/PageNotFound/index.tsx","App/App.tsx","registerServiceWorker.js","redux/reducer.js","redux/enhancer.js","redux/store.js","App/Providers.tsx","index.js","components/translate/Translate.js","modules/articles/api/getFileUrl.ts","App/keys.ts","components/ToastNotification/toastNotification.ts","components/Breadcrumb/BreadcrumbItem.js","components/Breadcrumb/Divider.tsx","components/Breadcrumb/Breadcrumb.js","types/enums/SortType.ts","components/typography/PageTitle.js","components/typography/SectionTitle.js","components/typography/Text.js","redux/modules/document-title.js","components/Breadcrumb/index.js","components/modal/Modal.js","components/pagination/index.js","utils/yup/useRecaptchaValidationSchema.ts","components/pagination/components/NumberButton.jsx","utils/useRemoveFocus.ts","components/pagination/components/NumberOnPage.js","components/pagination/Pages.tsx","components/pagination/Pagination.tsx","components/RemoteData/useReactQuery.ts","components/buttons/Button.tsx","App/AppLoader.tsx","redux/modules/context.js","api/contexts.ts","components/DangerousInnerHtml/index.tsx","components/UnderlineSpan/index.jsx","components/buttons/ExternalLinkButton.js","utils/yup/emailValidationSchema.ts","components/HookForm/FormColumn.tsx","components/HookForm/DateField/DatePickerInput.tsx","components/HookForm/DateField/index.tsx","api/api.config.ts","redux/modules/breadcrumbs.js","containers/Surveys/components/CompletedText.tsx","containers/Surveys/components/SurveyHeader.tsx","components/Breadcrumb/withBreadcrumbs.js","components/HookForm/StyledErrorMessage.tsx","redux/modules/authentication.js","components/form-fields/components/CheckboxContainer.js","utils/yup/messages.ts","utils/yup/checkboxRequiredValidationSchema.ts","components/translate/withTranslate.js","components/translate/useTranslation.ts","components/ArticleComponents/TableComponents/MetricGrid/components/Grid.js","components/ArticleComponents/TableComponents/MetricGrid/components/Row.js","components/ArticleComponents/TableComponents/MetricGrid/components/Column.js","components/HookForm/Buttons/SpinnerButton.tsx","components/HookForm/Buttons/ResetDynamicFormButton.tsx","components/HookForm/Buttons/ResetButton.tsx","components/loader/TextLoader.js","utils/accessibility.js","components/buttons/LinkButton.js","containers/search/utils/useSearchValueStore.ts","components/HookForm/TextAreaField.tsx","components/HookForm/types/TextFieldType.ts","components/HookForm/FormGroup.tsx","components/HookForm/FormRow.tsx","components/HookForm/SelectField.tsx","api/contactForms.ts","modules/survey/keys/index.ts","redux/utils/shouldCreateAdditionalMenuItem.ts","components/ErrorBoundary/index.tsx","utils/useLocalStorage.ts","components/HookForm/CheckBoxFieldPrototype.tsx","components/buttons/utils.tsx","utils/yup/nullableFloatSchema.ts","modules/survey/utils/isSurveyCompletedIcLocalStorage.ts","modules/survey/utils/getCompletedSurveys.ts","modules/survey/utils/createSurveyBreadCrumbs.ts","utils/useIsAuthorized.ts","modules/survey/utils/addCompletedSurveyIdToLocalStorage.ts","modules/survey/api/getSurvey.ts","modules/survey/api/postSurvey.ts","modules/survey/utils/createDefaultSurveyFormValues.ts","containers/Surveys/components/SurveyForm/components/fields/RankingField/SortableItem.js","containers/Surveys/components/SurveyForm/components/fields/RankingField/SortableList.tsx","containers/Surveys/components/SurveyForm/components/fields/RankingField/index.tsx","containers/Surveys/components/SurveyForm/components/fields/SingleChoiceField.tsx","containers/Surveys/components/SurveyForm/components/fields/MultipleChoiceField/SurveyCheckbox.tsx","containers/Surveys/components/SurveyForm/components/fields/MultipleChoiceField/Option.tsx","containers/Surveys/components/SurveyForm/components/fields/MultipleChoiceField/index.tsx","containers/Surveys/components/SurveyForm/components/fields/MultipleChoiceField/utils/createCheckboxFieldName.ts","containers/Surveys/components/SurveyForm/components/fields/MatrixField/MatrixRadioGroupField.tsx","containers/Surveys/components/SurveyForm/components/fields/MatrixField/index.tsx","containers/Surveys/components/SurveyForm/components/SurveyQuestionField.tsx","containers/Surveys/components/SurveyForm/surveyFormValidationSchema.ts","containers/Surveys/components/SurveyForm/index.tsx","modules/survey/api/getSurveyResults.ts","modules/survey/utils/getMatrixDataValuesFromAnswer.ts","containers/Surveys/components/SurveyResults/SingleSurveyResult.tsx","modules/survey/utils/getDefaultDataValuesFromAnswer.ts","containers/Surveys/components/SurveyResults/index.tsx","constants/search_urls.js","redux/utils/createSearchUrl.ts","modules/survey/types/FieldTypes.ts","utils/url.js","redux/utils/prepareUrl.ts","modules/visitorsCounter/api/postVisitorsCounter.ts","api/urls.ts","constants/bip_modules.js","components/ArticleComponents/metrics/components/ContentColumn.jsx","components/ArticleComponents/metrics/components/SpanWithTranslation.tsx","components/ArticleComponents/metrics/components/HeadColumn.tsx","components/ArticleComponents/metrics/components/CreateInformationDate.tsx","components/ArticleComponents/metrics/components/CreationDate.tsx","components/ArticleComponents/metrics/components/ExpirationDate.tsx","components/ArticleComponents/metrics/components/ProducerOfInformation.tsx","components/ArticleComponents/metrics/components/ResponsibleUser.tsx","components/ArticleComponents/metrics/components/TimeOfPublication.tsx","components/ArticleComponents/metrics/components/UnitName.tsx","components/ArticleComponents/metrics/components/VisitorNumber.tsx","components/loader/withLoader.js","utils/getOffsetFromPage.js","utils/getPageFromOffset.js","utils/useAccessibilityClass.ts","utils/onScrollTop.ts","utils/useChangeAttributesForIframes.ts","components/Alert/Notification.ts","components/Alert/Alert.tsx","components/Tooltip/index.tsx","components/HookForm/Form.tsx","components/HookForm/types/FormFieldType.ts","components/HookForm/CheckBoxField.tsx","components/HookForm/RadioGroupField.tsx","components/HookForm/Separator.tsx","components/HookForm/ConditionalField.tsx","components/HookForm/PasswordStrength.tsx","components/Icon/index.tsx","redux/modules/menu.js","components/RemoteData/RemoteData.tsx","components/HookForm/types/index.ts","components/HookForm/FieldPrototype.tsx","containers/articles-list/components/articlesSorting/ArticlesSorting.tsx","containers/Surveys/Survey.tsx","types/IContactForm.ts","containers/contact-form/utils/useCreateContactFormValidationSchema.ts","containers/contact-form/utils/createContactFormDefaultValues.ts","containers/contact-form/components/ContactFormFieldsSwitch.tsx","containers/contact-form/components/ContactForm.tsx","components/HookForm/CheckboxGroupField.tsx","components/HookForm/DateRangeField.tsx","components/HookForm/NumberRangeField.tsx","components/HookForm/FormFieldsGenerator/FormFieldsGenerator.tsx","components/HookForm/RecaptchaField/index.tsx","components/HookForm/RecaptchaField/changeRecaptchaCurrentAdditionalAttributes.ts","components/HookForm/utils/formFieldsGeneratorSchemaAdapter.ts","assets/img/background-szamotuly.jpg","assets/img/wcag_logo.png","assets/img/bip_logo.png","assets/img/madkom_logo_new.png","assets/img/pks_logo.png","components/ErrorPanel/index.tsx","api/articles.ts","modules/articles/keys.ts","redux/modules/loader.js","utils/breadcrumbs.js"],"names":["ResponsiveContainer","styled","div","StyledTable","table","Table","children","id","data-testid","TableHead","thead","theme","lightPrimaryColor","dividerColor","TableBody","tbody","contentBackground","defaultBackground","TableRow","tr","TableHeadCell","th","text","primaryColor","TableBodyCell","td","MENU_TYPES","getEnabledMenuElements","langCode","context","menuElements","createSeparator","contentRegistryEnabled","push","createMenuElement","BIP_MODULES","CONTENT_REGISTRY","calculatorsEnabled","CALCULATOR","caseStatusesEnabled","EZD_CASE_STATUS","ezdRegistryEnabled","menuElement","EZD_REGISTRY","ezdRegistryMenuElements","redirectUrl","length","link","editorsPageEnabled","EDITORS_PAGE","accessibilityPageEnabled","accessibilityMenuEnabled","DECLARATION_OF_AVAILABILITY","module","separator","urlType","isNotDefaultContext","contextFriendlyUrl","contextPathElement","langPathElement","test","split","isNotDefaultLang","modulePathElement","fullUrl","friendlyUrl","targetId","name","parent","defaultMenuId","type","target","isSeparator","menuItem","isSubMenu","Loader","size","loaderColor","isContrast","amber","LoaderContainer","StyledLoader","Heading","title","onClick","isOpen","withCollapse","iconClassName","useMappedState","mapStateToProps","style","fontSize","HeadingContainer","aria-expanded","ArrowIcon","className","Title","accessibility","button","span","secondaryColor","withTranslate","CollapseContent","CollapseContainer","aria-hidden","isOpened","Panel","printable","isInitiallyOpen","useState","setIsOpen","Container","prevIsOpen","Content","useGetLocationParams","location","useLocation","queryString","parse","search","Input","input","hasError","errorColor","focusOutline","TextField","isRequired","label","TextFieldType","TEXT","inputProps","FieldPrototype","isSubmitting","methods","formState","render","props","autoComplete","disabled","onChange","event","Label","RedStar","StyledStar","RemoteDataSuspense","fallback","Spinner","attrs","pastDelay","enhance","compose","withRouter","connect","authentication","isAuthenticated","withProps","isFullUrl","userPanelUrl","SIGN_IN","state","Component","component","rest","to","pathname","from","USER_PANEL","createRedirectUrl","unit","hasSeparator","startArticleId","startMenuId","startUrl","language","useGetIsOutdated","match","useRouter","params","method","useGetMenuId","apiUrl","ApiConfig","getEntryPoint","getMenuArticles","menuId","limit","offset","sort","sort_dir","archived","tab","searchParams","axios","get","then","response","data","processTable","shouldProcessNode","node","attribs","undefined","processNode","index","borderSize","border","tableStyle","restAttribs","width","height","str","forEach","el","property","value","formattedProperty","splitted","slice","map","word","toUpperCase","join","formatStringToCamelCase","trim","getStyleObjectFromString","processImageSource","processNodeDefinitions","src","matchResult","updatedNode","getFileUrl","processDefaultNode","processIFrameWithTraseoMap","includes","frameborder","StyledIFrameLink","href","StyledIFrame","data-frameBorder","iframe","TipButton","tip","showTip","toggleTip","TipContainer","aria-label","data-flat","show","onHide","container","rootClose","OverlayContent","Tip","Section","content","SectionContainer","Header","Name","htmlToReactParser","HtmlToReact","Parser","ProcessNodeDefinitions","React","processingInstructions","parseWithInstructions","prepareContent","section","header","h5","Aside","sections","AsideContainer","key","etiquette","aside","getHistoricalArticleZipAttachmentsUrl","versionId","getFile","fileUrl","responseType","headers","initDownloadToLocal","filename","url","window","URL","createObjectURL","Blob","document","createElement","setAttribute","body","appendChild","click","parentNode","removeChild","DownloadAll","isHistorical","isDownloading","setIsDownloading","downloadFile","a","res","find","n","replace","replaceAll","finally","useDownloadFile","newDownload","articleId","toastNotification","INotificationType","ERROR","data-color","display","alignItems","marginRight","marginLeft","FileIcon","restProps","Icon","path","mdiFilePdfOutline","mdiFileWord","mdiFileExcel","mdiFileXml","mdiFileOutline","mdiFileDocument","mdiFileImage","mdiFilePowerpoint","mdiFileMusic","mdiFileVideo","mdiFile","AttachmentMetricPrintPreview","attachment","AttachmentsMetricPreviewContainer","unitName","createUser","responseUser","createDate","publishDate","ItemInformation","showAttachmentIcon","printAttachmentMetric","extension","PrimaryText","SecondaryContainer","SecondaryText","fileSize","downloadCounter","p","AttachmentMetric","User","user","MetricOverlay","this","toggle","OverlayContainer","PreviewModal","attachmentName","isPhotoFormat","uuid","frameId","protocol","frameSrc","showCopyToClipboardMessage","setShowCopyToClipboardMessage","refreshFrame","useCallback","frame","querySelector","Modal","HeaderContent","mdiRefresh","mdiInformationOutline","setTimeout","navigator","clipboard","writeText","clipboardData","setData","mdiClipboardArrowDownOutline","CloseButton","ImageContainer","Image","Body","IFrame","h1","img","ItemActions","format","showMetric","setShowMetric","showPreview","setShowPreview","useMemo","toggleMetric","togglePreview","OverlayButtonContainer","some","acceptedFormat","toLowerCase","downloadable","AttachmentListItem","InformationContainer","ActionsContainer","ListItem","li","AttachmentsList","attachments","List","ul","Attachments","memo","isPreview","isSomeAttachmentsAreNotDeleted","deleted","prevState","nextState","AnswersList","answers","answer","Publisher","publisher","CommentsList","comments","comment","PublishDate","publishedDate","CommentForm","alert","setAlert","onSubmit","model","validModel","agreement","formData","Object","keys","reduce","obj","append","FormData","postArticleComment","Notification","SUCCESS","message","catch","Alert","onClose","defaultValues","validationSchema","yup","shape","required","validationMessages","requiredField","checkboxRequiredValidationSchema","useRecaptchaValidationSchema","rows","FormButtons","Comments","CommentsContainer","Element","element","toggleIsOpen","Question","question","Answer","defaultProps","h2","composed","withStateHandlers","Description","ElementsList","ElementsListItem","Faq","faq","Fragment","description","elements","Thumbnail","image","isImage","setIsImage","onKeyDown","thumbnailSrc","alt","caption","onError","tabIndex","ThumbnailsContainer","StyledFooter","Gallery","images","files","file","fileId","isModal","isModalOpen","setIsModalOpen","currentIndex","setCurrentIndex","toggleModal","frameProps","views","formatters","getAltText","getCloseLabel","getFullscreenLabel","getNextTitle","getNextLabel","getPrevTitle","getPrevLabel","components","Footer","currentView","justifyContent","color","showCreateInformationDate","toString","publicationDate","expireDate","createInformationDate","RelationOverlay","dataRow","head","fieldName","dangerouslySetInnerHTML","__html","showOverlay","toggleOverlay","relation","additionalData","RelationsNode","relations","RelationsList","Relation","Link","RouterLink","Relations","RelationsNodeContainer","groupedRelations","groupBy","TagsList","TagsListItem","TagLink","Tags","tags","tag","HistoricalLink","Stamp","StampContainer","StampContent","DateTd","date","showReason","reason","ResponsiveTable","showArticleEditReason","items","item","info","Registries","setLimit","setOffset","handleLimitChange","handlePageChange","page","getOffsetFromPage","RemoteData","fetcher","getArticleRegistries","queryKey","articlesKeys","articleRegistries","total","totalPages","Math","ceil","showPagination","showNumberOnPage","currentNumber","onNumberChange","current","getPageFromOffset","onPageChange","StyledLink","DangerousInnerHtml","html","version","Versions","articleVersions","getArticleVersions","showPages","additionalAllowedTags","allowedAttributes","form","doctype","source","video","sanitizeHtml","sanitizeHtmlLib","allowedTags","defaults","concat","allowedSchemes","VideoPlayer","isVideoReady","setIsVideoReady","autoPlaying","setAutoPlaying","innerRef","useRef","ref","playerContainer","useEffect","offsetHeight","playerRefCurrent","playerIframe","getElementsByTagName","removeAttribute","changeAdditionalVideoPlayerAttributes","PlayerWrapper","StyledReactPlayer","onReady","controls","playing","ReactPlayer","MK_MODULES","ACTION_BUTTONS","GOOGLE_MAP","ORGANIZATIONAL_UNITS","VIDEO_STREAM","replaceDataModuleVideoStreamInstructions","replaceChildren","contentKeys","ContactFormModal","contactFormId","getContactForm","FallBackContainer","contactForm","ContactForm","formId","ButtonsFormGroup","FormGroup","ForwardModalForm","onSuccess","isHistoricalArticle","postArticleForward","emailValidationSchema","ForwardModal","handleClose","errorMessage","pure","withHandlers","downloadPdf","getArticlePdfUrl","downloadXml","getArticleXmlUrl","print","forwardOpened","openForward","closeForward","contactFormOpened","openContactForm","closeContactForm","showContactForm","showForward","showDownloadPdf","showDownloadXml","showPrint","InfoWindowElement","withComponent","Address","InfoWindow","marker","onCloseClick","address","loadingElement","containerElement","mapElement","withScriptjs","withGoogleMap","mapConfiguration","openedMarkerId","onMarkerClick","onMarkerCloseClick","defaultZoom","zoom","defaultCenter","lat","centerLat","lng","centerLng","markers","position","renderPopup","withTheme","mapProviderData","leafletMapContainer","mapId","setMarkers","createMap","setView","i","tileLayer","mapUrl","attribution","providerUrl","providerName","maxZoom","apiKey","addTo","tempMarkers","tempMarker","createMarker","bindPopup","on","openPopup","Markers","selectMarker","markerId","preventDefault","MarkersList","Marker","role","isActive","onKeyPress","MarkerName","MarkerAddress","h4","MapContainer","MarkersContainer","Maps","setMapConfiguration","setOpenedMarkerId","getGoogleMapConfiguration","Number","provider","googleMapURL","processActionButtons","OrganizationalUnits","history","useHistory","dispatch","useDispatch","queryClient","useQueryClient","isLoading","setIsLoading","onContextChange","getAllByUrl","prepareUrl","newGetAll","resource","menu","searchUrl","createSearchUrl","lang","enhancedContext","fetchContextSucceeded","fetchMenuSucceeded","shouldCreateAdditionalMenuItem","additionalMenuElements","fetchAdditionalMenuSucceeded","setQueryData","applicationKeys","application","AppLoader","getOrganizationalUnits","UnitsList","UnitName","units","isExternal","externalLink","fullName","ExternalLink","e","processOrganizationUnits","processAnchor","Children","child","goToAnchor","anchorId","getElementById","documentElement","scrollTop","offsetTop","processAnchorLink","AnchorSpan","bind","processGoogleMap","processTitle","processTableRows","restAttributes","valign","createArticlePages","pagedContent","paginationSeparator","isValidNode","contentPage","getProcessingInstructions","currentPage","setCurrentPage","articlePages","ArticlePage","Pagination","css","getBackground","ArticleContent","article","printMetric","listAttachments","filter","isList","galleryAttachments","isGallery","hasAside","placeholders","ArticleContainer","MainSection","actualLink","additionalStamp","commentsEnabled","basicData","active","expire","ArticleContentContainer","mainArticle","getArticle","configuration","refetchOnWindowFocus","menuShowOrderedListEnabled","itemIndex","StyledListItem","MenuTile","tile","titleLinesCount","setTitleLinesCount","round","Tile","HeaderTitle","lineClamp","layoutDividerColor","asideMenuItemColor","MenuTilesChildren","menuChildren","StyledContainer","StyledHyperLink","MenuChildren","showChildrenAsTiles","ErrorPanel","selectedId","findMenuItemById","menuItems","ArticleSectionContainer","HideInPrintContent","ArchivedButtons","menuArticles","isOutdated","StyledLinkButton","actualListLink","outdatedListLink","LinkButton","Tabs","tabs","activeTab","onTabClick","NavContainer","TabsList","TabsListItem","TabButton","aria-current","nav","newTab","TabsContainer","showArticlesTable","parsedParams","newParams","stringify","parseFormModelArrayFieldToRestParams","fieldValues","restParams","restParamName","fieldValue","parseFormModelObjectFieldToRestParams","fieldKey","TableCell","$width","propTypes","PropTypes","number","ArticlesTableHeader","columns","column","Th","ColumnField","columnFields","articleFields","columnField","columnId","articleField","fieldId","stopPropagation","processColumnNode","Td","StyledTd","ClickableTableRow","onNavigate","articleTitle","RowWithMore","gap","lineHeight","StyledIcon","mdiArrowRightBoldCircleOutline","hoverAllowed","ArticlesTableBody","articles","linkMoreEnabled","TBody","query","maxWidth","matches","ArticlesTable","TitleBar","useReactRouter","openRss","open","getRssUrl","openXml","getXmlUrl","TitleText","ButtonsContainer","SearchField","StyledSearchField","StyledTextField","placeholder","StyledSearchButton","Button","searchFormValidationSchema","max","maxTwoHundredSymbols","minThreeSymbols","textField","nullable","SearchForm","resetOnSubmit","advancedSearchFormSchemaStrategy","formField","FormFieldType","TEXT_FIELD","TEXT_AREA","textFieldName","CHECKBOX_GROUP","array","DATE_RANGE","dateFromName","dateToName","dateFrom","dateTo","moment","isBefore","isAfter","NUMBER","nullableFloatSchema","NUMBER_RANGE","numberFromName","numberToName","numberFrom","numberTo","AdvancedSearchForm","fields","dynamicDefaultValues","field","createDefaultValues","formFieldsGeneratorSchemaAdapter","Buttons","AdvancedSearch","onOpenOverlay","closeAdvanceSearch","ToggleButton","UnderlineSpan","FormContainer","withState","setShowOverlay","ContextSearch","FilterBar","listTitle","searchFields","sortFields","ArticlesSorting","paddingRight","formModel","modelField","Array","isArray","parseFormModelToRestParams","currentParams","formParams","param","setFormParams","ArticlesTableContainer","allArticles","setSortFields","setSearchFields","onLimitChange","paramKey","filterFormParams","marginTop","marginBottom","articleListSearch","errorBoundaryProps","resetKeys","StyledH1Title","withBreadcrumbs","setContextBreadcrumbs","useReactQuery","getMenu","retry","suspense","selectMenuItem","Breadcrumb","menuTitle","menuPath","parentId","createBreadcrumbItem","reverse","setDocumentTitle","totalArticles","mainArticleId","totalTabs","getArticleId","haveNoArticles","checkIfHaveNoArticles","hasArchived","recursiveMenuDisplayEnabled","articleVersion","articleVersionId","errorFallback","breadcrumbItems","mainMenuPath","mainMenuId","currentPathElement","FaqPage","Loadable","loader","loading","AlcoholSellFeeCalculator","CalculatorsList","ContentRegistry","Editors","Declaration","EzdCaseStatus","EzdRegistriesList","EzdRegistryContainer","GreenAreaAndTreeRemovalCalculator","Newsletter","NoContentPage","NoStartArticlePage","OccupationOfRoadwayCalculator","RemindPassword","SalaryCalculator","Search","SignIn","SignUp","SiteMap","Survey","Surveys","UserPanel","FileNotFound","userLogInEnabled","extensionMatch","homePath","fromPath","useGetUrlManager","showNoContentRoute","exact","Article","ArticleListContainer","previewHash","PreviewContainer","withLoader","lifecycle","componentDidMount","setNotFound","startLoader","setArticle","status","stopLoader","notFound","previewRoutes","Preview","paramsId","useParams","surveyId","isSurveyCompletedIcLocalStorage","isCompleted","setIsCompleted","SurveyResults","isDeprecated","SurveyForm","UserTipRow","Value","UserTip","contact","email","phone","Tooltip","tooltipId","isBifTheme","UserName","siteTheme","createTranslationsDictionary","translations","translation","createActions","setTranslations","setLanguage","reducer","handleActions","payload","setContrast","toggleContrast","contrastTheme","darkPrimaryColor","grey","white","highlightBackground","lightColor","buttons","primary","background","hoverBackground","secondary","default","strongPrimary","red","strongSecondary","blueGrey","primaryTheme","imageFilter","asideBackground","lightBlue","asideMenuItemBackground","footerLinkColor","footerGoUpColor","footerContentBackground","toolbarBackground","lightGreen","themes","contrast","gray","przedborz","pks","szamotuly","asideMenuItemActiveBackground","asideMenuItemActiveColor","layoutBackground","backgroundImage","menuSeparatorBackground","menuSeparatorColor","pageTitleColor","whiteGrey","footerBackground","headerBackground","wiazowna","orange","getVisitorsCounterKey","VisitorsCounter","getVisitorsCounter","visitorsCounter","Separator","SeparatorListItem","Text","MenuItem","BifListItem","SubMenu","Redirection","menuDirIconEnabled","menuSelectedId","isSubMenuItem","isRedirectLink","isSelected","showSubMenu","showDirIcon","truncate","activeClassName","LatestArticles","latestArticles","setLatestArticles","getLatestArticles","result","SeparatorH2","MainMenuItems","separatorName","Menu","lastArticlesEnabled","additionalItems","collapsedMobile","setCollapsedMobile","MenuContainer","DefaultList","MobileList","visitorsCounterEnabled","Browser","FooterAside","mapState","corporateMarkEnabled","w3cInfoShow","wcagLogoUrl","checkIfBrowser","browser","userAgent","toLocaleLowerCase","indexOf","FooterContent","links","handler","Firefox","altKey","shiftKey","onScrollTop","addEventListener","removeEventListener","LinksList","LinkListItem","SITE_MAP","accessKey","FooterGoUpButton","FooterEditable","footerHtml","footerHtmlMobile","footerLinks","FooterContainer","StaticFooterContainer","FooterContentContainer","EmblemImage","logoFileId","siteTitle","logoAlt","logoDescription","logoSrc","Emblem","rel","logoHref","HeaderEditable","headHtml","headHtmlMobile","BipLogo","logoMainHref","logoUrl","getImageSource","CustomizedLogo","logoMainFileId","altImageTitle","CustomizedLogoContainer","logoMainDescription","MadkomLogo","localLogoUrl","MadkomLogoContainer","StyledBifTitle","StyledImage","PksLogo","MainLogo","AppHeader","reverseOrder","showEmblem","HeaderContainer","MainLogoContainer","HeaderEditableContainer","SkipLink","useGetDeclarationOfAvailabilityUrl","domainName","origin","SkipLinks","showDeclarationOfAvailability","useShowDeclarationOfAvailabilitySkipLink","declarationOfAvailabilityUrl","listStyleType","as","focus","FONT_SIZES","Dropdown","containerVisible","setContainerVisible","containerRef","buttonRef","mouseEventListener","contains","prevContainerVisible","ChildrenContainer","containerVisibility","AccessibilityDropdown","dropdownContainer","isDropDownOpen","setIsDropDownOpen","dropdown","getElementsByClassName","handleClickOutside","dataItem","metadata","useFontSize","useLocalStorage","DEFAULT","fontSizeLocalStorage","setFontSizeLocalStorage","setDocumentFontClass","classList","add","setFontSize","remove","clearFontSizes","initFontSizeInDocument","DesktopAccessibilityButton","StyledButton","NormalLettersButton","aria-pressed","MediumLettersButton","MEDIUM","BigLettersButton","LARGE","ParagraphSpacingButton","useAccessibilityClass","isAccessibilityClassActive","toggleAccessibilityClass","LinesSpacingButton","WordSpacingButton","LettersSpacingButton","ContrastButton","DropdownButton","MobileAccessibilityMenu","AccessibilityMenu","accessibilityButtons","StyledAccessibilityMenu","accessibilityButton","AuthenticationContainer","onSignOut","signOut","signInUrl","signUpUrl","SIGN_UP","searchBarValidationSchema","s","Combobox","suggestionContainer","suggestionInput","SuggestionInputField","onSearch","isListOpen","setIsListOpen","inputContainer","storeSearchValue","useSearchValueStore","searchStore","searchValue","useFormContext","errors","setValue","getValues","searchFieldValue","InputContainer","aria-activedescendant","onToggle","autoSelectMatches","hideCaret","hideEmptyPopup","messages","emptyList","readOnly","onSelect","SearchBar","setStoreSearchValue","setSearchValue","shallow","StyledForm","SearchFieldGroup","AccessibilityLanguageDropdown","availableLanguages","currentLangCode","onChangeLanguage","startLink","removeQueries","StyledDropdown","dataKey","renderListItem","langTitle","Tools","isMobile","useMedia","increaseFontSize","decreaseFontSize","useIncreaseDecreaseFontSize","deafArticleUrl","helpArticleUrl","authenticationEnabled","rssUrl","hostname","StyledMobileAccessibilityMenu","AccessibilityAuthenticationContainer","ExternalLinkButton","Toolbar","StickyContainer","ToolbarContainer","StyledTools","DefaultStyleWrapper","Main","Layout","PrivacyPolicyContent","privatePolicyInfo","privatePolicyUrl","showPrivacyPolicy","setShowPrivacyPolicy","isOnPreviewRoutes","previewRoute","matchPath","acceptPrivacyPolicy","localStorage","setItem","getItem","AppContent","documentTitle","googleAnalyticsTrackingId","useChangeAttributesForIframes","ReactGA","initialize","gaOptions","siteSpeedSampleRate","pageview","defer","data-showdeclaration","PageNotFound","App","invalidateQueries","Boolean","combineReducers","breadcrumbs","enhancer","composeWithDevTools","applyMiddleware","thunk","store","next","action","getState","mainMenuSeparatorInjector","createStore","Providers","QueryClient","Provider","client","ReactDOM","serviceWorker","ready","registration","unregister","NotificationManager","success","error","BreadcrumbItem","itemAccessKey","redirect","translate","useTranslation","ActiveListItem","Divider","StyledDivider","preprocessedItems","BreadcrumbContainer","BreadcrumbList","ol","SortType","PageTitle","SectionTitle","modalStyle","top","right","bottom","left","zIndex","backdropStyle","backgroundColor","black","opacity","ModalContent","isRecaptchaDisabled","requiredRecaptchaField","NumberButton","htmlElRef","blur","useRemoveFocus","removeFocus","isCurrentChoose","NumberOnPage","numbersSet","StyledList","Pages","PagesContainer","hrefBuilder","hrefAllControls","ariaLabelBuilder","pageIndex","nextAriaLabel","previousAriaLabel","forcePage","initialPage","previousLabel","nextLabel","breakLabel","pageCount","marginPagesDisplayed","pageRangeDisplayed","selected","containerClassName","disableInitialCallback","PaginationContainer","pagesLimit","onResize","options","config","useQuery","data-contrast","getFontSize","getPadding","getBoxShadow","getColor","getHoverBackground","getHoverBorderColor","Overlay","mapProps","omit","invalidEmail","FormColumn","StyledFormColumn","DatePickerInput","handleChange","datePickerProps","toDate","findDOMNode","InputGroup","onCalendarOpen","onCalendarClose","previousMonthButtonLabel","previousMonthAriaLabel","nextMonthButtonLabel","nextMonthAriaLabel","chooseDayAriaLabelPrefix","disabledDayAriaLabelPrefix","locale","pl","dateFormat","selectsEnd","customInput","showMonthDropdown","showYearDropdown","InputCalendar","mdiCalendar","DateField","shouldValidate","process","REACT_APP_API_URL","setBreadcrumbs","clearBreadcrumbs","CompletedText","SurveyHeader","completedCount","surveyName","Translate","WrappedComponent","WithBreadcrumbs","contextBreadcrumbs","withAccessKey","withRedirect","StyledErrorMessage","signInSuccess","signOutSuccess","updateUserSuccess","deleteAccount","loaderId","addLoader","removeLoader","updateUser","CheckboxContainer","checkboxValue","BaseComponent","Grid","dl","Row","Column","bool","SpinnerButton","hasErrors","isEmpty","ResetDynamicFormButton","ResetButton","reset","isTrueInLocalStorage","itemKey","create","set","TextAreaField","textAreaProps","TextArea","textarea","FormRow","StyledFormRow","SelectField","emptyOption","preparedOptions","option","getValue","Select","select","postContactForm","post","surveyKeys","surveyResult","surveyForm","surveysList","ErrorFallback","ErrorBoundary","FallbackComponent","initialValue","readValue","JSON","console","warn","storedValue","setStoredValue","handleStorageChange","newValue","Function","dispatchEvent","Event","CheckBoxFieldPrototype","onBlur","checked","StyledRedStar","sizes","padding","flat","small","medium","large","transform","originalValue","getCompletedSurveys","createSurveyBreadCrumbs","SURVEY","useIsAuthorized","loginRequired","addCompletedSurveyIdToLocalStorage","completedSurveys","updatedCompletedSurveys","uniq","postSurvey","createDefaultSurveyFormValues","questions","FIELD_TYPES","LIST_RANKING","SortableItem","SortableElement","SortableList","SortableContainer","RankingField","questionField","onSortEnd","oldIndex","newIndex","updatedItems","arrayMove","SingleChoiceField","watch","createRadioFieldName","withEmpty","createOptions","showOpenField","ownAnswerFieldName","withOpen","LIST_ONE_OPEN","LIST_ONE_COMMENT","SurveyCheckBoxField","customChange","currentValue","checkedValue","Option","checkboxFieldName","checkboxLabel","commentFieldName","optionHasComment","showCommentField","MultipleChoiceField","setError","clearErrors","questionFieldType","LIST_MANY_OPEN","LIST_MANY_COMMENT","createCheckboxFieldName","withOpenField","someFieldChecked","mappedNames","values","handleFieldChange","showOwnAnswerField","hasComment","showChildren","MatrixRadioGroupField","MatrixField","areAllFieldsFilled","checkValidation","SurveyQuestionField","OPEN","DATE","LIST_ONE_CLOSED","LIST_MANY_CLOSED","LIST_MATRIX","surveyFormValidationSchema","surveyQuestion","surveyQuestionFieldsLength","listManyClosed","listManyOpen","listManyComment","every","filteredKey","isAuthorized","purifyKey","m","formKey","itemFormKey","objectKey","answerKey","getSurvey","completed","getMatrixDataValuesFromAnswer","answersCounter","firstAnswer","record","getMatrixDataTitlesFromAnswer","SingleSurveyResult","legend","maxLines","bar","groupWidth","dataAnswers","answerCounter","dataValues","getDefaultDataValuesFromAnswer","chartType","getSurveyResults","SEARCH_URL","FULL","FRIENDLY","hasContextOrLang","SEARCH_URLS","trimUrlPath","substr","trimmedPath","host","CONTACT_FORM","NEWSLETTER","FAQ","REMIND_PASSWORD","ContentColumn","StyledColumn","dd","SpanWithTranslation","HeadColumn","fontWeight","margin","CreateInformationDate","CreationDate","ExpirationDate","ProducerOfInformation","ResponsibleUser","TimeOfPublication","VisitorNumber","WithLoader","getOffsetOfPage","localStorageKey","setIsAccessibilityClassActive","scrollTo","behavior","bodyTag","observer","MutationObserver","callback","observe","childList","subtree","disconnect","mutationsList","mutation","iframes","AlertContainer","data-dismiss","COLORS","green","WARNING","placement","trigger","overlay","Form","useForm","resolver","yupResolver","mode","handleSubmit","CheckBoxField","RadioGroupField","aria-checked","ConditionalField","register","PasswordStrength","scoreWords","shortScoreWord","StyledMdiIcon","aria-labelledby","MdiIcon","clearSelectedMenuItem","mainSeparatorName","menuItemsWithMainSeparator","RemoteDataThrowable","Error","FieldContainer","htmlFor","sortDirName","currentSorting","StyledLi","SortFieldLink","isActualSorting","SortDirLink","ASC","sortDir","DESC","NavLink","ContactFormFieldType","textSchema","useCreateContactFormValidationSchema","dynamicFieldsSchema","fieldType","MAIL_FIELD","contactFormSchemaStrategy","recaptchaResponse","terms","createContactFormDefaultValues","dynamicFieldsDefaultValues","ContactFormFieldsSwitch","EMAIL","conset","handleOnSubmit","MessageWrapper","CheckboxGroupField","checkboxGroupValue","currentTarget","singleCheckbox","singleCheckboxValue","DateRangeField","NumberRangeField","FormFieldsGenerator","SELECT","RecaptchaField","siteKey","recaptchaValue","recaptchaRef","recaptchaCurrent","token","captcha","iframesLength","changeRecaptchaCurrentAdditionalAttributes","sitekey","googleRecaptchaId","schemaStrategy","exports"],"mappings":"soBAGA,IAQMA,EAAsBC,IAAOC,IAAV,KAOnBC,EAAcF,IAAOG,MAAV,KAKFC,EApBD,SAAC,GAAsB,IAApBC,EAAmB,EAAnBA,SAAUC,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,EAAlB,WAA6BA,KAGxBs/C,EAAe,eAACn/B,EAAD,uDAAQ,GAAR,mBAAC,eACxBA,GADuB,IAE1Bo4B,UAAU,KAGC8G,EAAgB,WAA2B,IAA1Bl/B,EAAyB,uDAAlB,GAAI2pB,EAAc,uCACrD,MAAyB,kBAAdA,GAA+C,IAArBA,EAAU/pC,OACtC,2BACFogB,GADL,IAEE2pB,cAGG3pB,K","file":"static/js/main.58c822ed.chunk.js","sourcesContent":["import React from \"react\";\nimport styled from \"styled-components\";\n\nconst Table = ({ children, id }) => {\n return (\n \n {children}\n \n );\n};\n\nconst ResponsiveContainer = styled.div`\n display: inline-block;\n width: 100%;\n overflow-x: auto;\n margin-bottom: 1rem;\n`;\n\nconst StyledTable = styled.table`\n width: 100%;\n max-width: 100%;\n`;\n\nexport default Table;\n","import styled from \"styled-components\";\n\nconst TableHead = styled.thead`\n background: ${({ theme }) => theme.lightPrimaryColor};\n border-top: 1px solid ${({ theme }) => theme.dividerColor};\n border-bottom: 2px solid ${({ theme }) => theme.dividerColor};\n`;\n\nexport default TableHead;\n","import styled from \"styled-components\";\n\nconst TableBody = styled.tbody`\n background: ${({ theme }) =>\n theme.contentBackground || theme.defaultBackground};\n`;\n\nexport default TableBody;\n","import styled from \"styled-components\";\n\nconst TableRow = styled.tr`\n &:not(:last-child) {\n border-bottom: 1px solid ${({ theme }) => theme.dividerColor};\n }\n`;\n\nexport default TableRow;\n","import styled from \"styled-components\";\n\nconst TableHeadCell = styled.th`\n color: ${({ theme }) => theme.text.primaryColor};\n font-size: 0.875em;\n padding: 0.75rem;\n font-weight: bold;\n`;\n\nexport default TableHeadCell;\n","import styled from \"styled-components\";\n\nconst TableBodyCell = styled.td`\n color: ${({ theme }) => theme.text.primaryColor};\n font-size: 0.875em;\n padding: 0.5rem 0.75rem;\n`;\n\nexport default TableBodyCell;\n","/**\n * Created by fkurzawa on 07.02.18.\n */\nexport const MENU_TYPES = {\n MENU_ITEM: \"N\",\n SUB_MENU: \"D\",\n SEPARATOR: \"S\"\n};\n","import { BIP_MODULES } from \"./../constants/bip_modules\";\nimport { MENU_TYPES } from \"./../constants/menu_types\";\n\nexport function getEnabledMenuElements(langCode, context = {}) {\n let menuElements = [createSeparator(\"Inne\")];\n\n if (context.contentRegistryEnabled) {\n menuElements.push(\n createMenuElement(langCode, context, BIP_MODULES.CONTENT_REGISTRY)\n );\n }\n if (context.calculatorsEnabled) {\n menuElements.push(\n createMenuElement(langCode, context, BIP_MODULES.CALCULATOR)\n );\n }\n if (context.caseStatusesEnabled) {\n menuElements.push(\n createMenuElement(langCode, context, BIP_MODULES.EZD_CASE_STATUS)\n );\n }\n if (context.ezdRegistryEnabled) {\n const menuElement = createMenuElement(\n langCode,\n context,\n BIP_MODULES.EZD_REGISTRY\n );\n const { ezdRegistryMenuElements = [] } = context;\n const redirectUrl =\n ezdRegistryMenuElements.length > 0\n ? ezdRegistryMenuElements[0].link\n : null;\n menuElements.push({\n ...menuElement,\n link: redirectUrl !== null ? redirectUrl : menuElement.link,\n children: ezdRegistryMenuElements\n });\n }\n if (context.editorsPageEnabled) {\n menuElements.push(\n createMenuElement(langCode, context, BIP_MODULES.EDITORS_PAGE)\n );\n }\n if (context.accessibilityPageEnabled && !context.accessibilityMenuEnabled) {\n menuElements.push(\n createMenuElement(\n langCode,\n context,\n BIP_MODULES.DECLARATION_OF_AVAILABILITY\n )\n );\n }\n return menuElements;\n}\n\nexport function createMenuElement(langCode, context = {}, module = {}) {\n const separator = context.urlType && context.urlType === \"full\" ? \"/\" : \",\";\n const isNotDefaultContext =\n context.contextFriendlyUrl && context.contextFriendlyUrl !== \"default\";\n const contextPathElement = `${\n isNotDefaultContext ? context.contextFriendlyUrl : \"\"\n }`;\n const langPathElement = /pl_\\w+/.test(langCode)\n ? \"\"\n : `${context.urlType === \"full\" ? langCode : langCode.split(\"_\")[0]}`;\n const isNotDefaultLang = langPathElement !== \"\";\n const modulePathElement =\n context.urlType === \"full\" ? module.fullUrl : module.friendlyUrl;\n const link = `${contextPathElement}${\n isNotDefaultContext ? separator : \"\"\n }${langPathElement}${isNotDefaultLang ? separator : \"\"}${modulePathElement}`;\n\n return {\n id: module.id || null,\n targetId: module.id || null,\n link,\n name: module.name || \"\",\n parent: context.defaultMenuId || null,\n type: MENU_TYPES.MENU_ITEM,\n target: \"_self\",\n redirectUrl: null,\n children: null\n };\n}\n\nexport function createSeparator(name) {\n return {\n name,\n type: MENU_TYPES.SEPARATOR\n };\n}\n\nexport function isSeparator(menuItem) {\n return !!menuItem && menuItem.type === MENU_TYPES.SEPARATOR;\n}\n\nexport function isSubMenu(menuItem) {\n return !!menuItem && menuItem.type === MENU_TYPES.SUB_MENU;\n}\n\nexport const findMenuItemById = (menuItems = [], menuItemId) => {\n if (menuItemId) {\n for (let menuItem of menuItems) {\n if (menuItem.id === menuItemId) {\n return menuItem;\n }\n if (menuItem.children && menuItem.children.length > 0) {\n let result = findMenuItemById(menuItem.children, menuItemId);\n if (result) {\n return result;\n }\n }\n }\n }\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { isContrast } from \"../../utils\";\n// @ts-ignore\nimport { amber } from \"material-colors\";\n\ninterface IProps {\n size?: number;\n}\n\nconst Loader = ({ size }: IProps) => {\n const loaderColor = isContrast() ? amber[500] : \"#c62828\";\n return (\n \n \n \n );\n};\n\nconst StyledLoader = styled.div`\n border: ${({ size }) => (size ? size / 8 + \"px\" : \"6px\")} solid #d7dbdd;\n border-radius: 50%;\n border-top: ${({ size }) => (size ? size / 8 + \"px\" : \"6px\")} solid\n ${({ loaderColor }) => loaderColor};\n width: ${({ size }) => (size ? size + \"px\" : \"80px\")};\n height: ${({ size }) => (size ? size + \"px\" : \"80px\")};\n -webkit-animation: spin 0.5s linear infinite;\n animation: spin 0.5s linear infinite;\n\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n`;\n\nconst LoaderContainer = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n margin: auto;\n font-size: 2.25em;\n`;\n\nexport { Loader };\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport { withTranslate } from \"./../../translate\";\n\ninterface IProps {\n id: string;\n title: string;\n onClick: () => void;\n isOpen: boolean;\n withCollapse: boolean;\n}\n\nconst Heading = ({ id, title, onClick, isOpen, withCollapse }: IProps) => {\n const iconClassName = `fa fa-chevron-${isOpen ? \"up\" : \"down\"}`;\n const { isContrast } = useMappedState(mapStateToProps);\n\n return (\n

\n \n {withCollapse && (\n \n )}\n {title}\n \n

\n );\n};\n\nconst mapStateToProps = ({ accessibility }: any) => ({\n isContrast: accessibility.isContrast\n});\n\nconst HeadingContainer = styled.button`\n background: ${({ theme }) => theme.lightPrimaryColor};\n width: 100%;\n min-height: 55px;\n padding: 12px 15px;\n display: flex;\n align-items: center;\n border-left: none;\n border-right: none;\n border-top: none;\n border-bottom: 2px solid;\n border-color: ${({ theme }) => theme.dividerColor};\n &:hover {\n cursor: ${({ withCollapse }) => (withCollapse ? \"pointer\" : \"default\")};\n }\n &:-moz-focusring {\n outline: 2px solid ${({ isContrast }) => (isContrast ? \"white\" : \"black\")};\n }\n`;\n\nconst ArrowIcon = styled.span`\n color: ${({ theme }) => theme.secondaryColor};\n border: 1px solid ${({ theme }) => theme.dividerColor};\n margin-right: 12px;\n padding: 5px 6px 6px 7px;\n\n && {\n @media print {\n display: none;\n }\n }\n`;\n\nconst Title = withTranslate(styled.span`\n color: ${({ theme }) => theme.text.primaryColor};\n font-weight: bold;\n text-transform: uppercase;\n margin: 0;\n`);\n\nexport { Heading };\n","import React from \"react\";\nimport { Collapse } from \"react-collapse\";\nimport styled from \"styled-components\";\n\nimport { IChildrenProp } from \"types/IChildrenProp\";\n\ninterface IProps extends IChildrenProp {\n isOpen: boolean;\n id: string;\n}\n\nconst CollapseContent = ({ id, isOpen, children }: IProps) => {\n return (\n \n \n {children}\n \n \n );\n};\n\nconst CollapseContainer = styled.div`\n .ReactCollapse--collapse {\n @media print {\n display: block !important;\n height: auto !important;\n }\n }\n`;\n\nexport { CollapseContent };\n","import React, { useState } from \"react\";\nimport styled from \"styled-components\";\n\nimport { Heading } from \"./components/Heading\";\n\nimport { IChildrenProp } from \"types/IChildrenProp\";\nimport { CollapseContent } from \"./components/CollapseContent\";\n\ninterface IProps extends IChildrenProp {\n id: string;\n title: string;\n printable?: boolean;\n isInitiallyOpen?: boolean;\n withCollapse?: boolean;\n}\n\nconst Panel = ({\n children,\n id,\n title,\n printable = false,\n isInitiallyOpen = false,\n withCollapse = true\n}: IProps) => {\n const [isOpen, setIsOpen] = useState(isInitiallyOpen);\n const handleToggleIsOpen = () => {\n if (!withCollapse) {\n return;\n }\n setIsOpen(prevIsOpen => !prevIsOpen);\n };\n\n return (\n \n \n {withCollapse ? (\n \n {children}\n \n ) : (\n {children}\n )}\n \n );\n};\n\nconst Container = styled.div`\n font-size: 1em;\n\n .ReactCollapse--collapse {\n transition: height 500ms;\n }\n\n @media print {\n display: ${({ printable }) => (printable ? \"block\" : \"none\")};\n }\n margin-bottom: 30px;\n`;\n\nconst Content = styled.div`\n padding: 25px 0 0 0;\n`;\n\nexport { Panel };\n","import queryString from \"query-string\";\nimport { useLocation } from \"react-router-dom\";\n\nexport const useGetLocationParams = () => {\n const location = useLocation();\n return queryString.parse(location.search);\n};\n","import styled from \"styled-components\";\n\nexport const Input = styled.input`\n border: 1px solid\n ${({ theme, hasError }) =>\n hasError ? theme.errorColor : theme.dividerColor};\n border-radius: 3px;\n display: block;\n font-size: 1em;\n padding: 0.25rem 0.5rem;\n width: 100%;\n\n &:not(:disabled) {\n background: ${({ theme }) => theme.defaultBackground};\n color: ${({ theme }) => theme.text.primaryColor};\n }\n\n &:focus:not(:active) {\n outline: ${({ theme }) => theme.focusOutline};\n }\n`;\n","import React, { ChangeEvent, ReactNode } from \"react\";\nimport { Controller } from \"react-hook-form\";\n\nimport { FieldPrototype } from \"./FieldPrototype\";\nimport { TextFieldType } from \"./types/TextFieldType\";\nimport { Input } from \"./Input\";\n\ninterface IProps\n extends Omit, \"type\"> {\n name: string;\n id: string;\n label?: ReactNode;\n isRequired?: boolean;\n type?: TextFieldType;\n}\n\nconst TextField = ({\n isRequired = true,\n label,\n name,\n type = TextFieldType.TEXT,\n ...inputProps\n}: IProps) => {\n return (\n \n {({\n hasError,\n methods: {\n formState: { isSubmitting }\n }\n }) => (\n (\n ) => {\n props.onChange(event);\n inputProps.onChange && inputProps.onChange(event);\n }}\n />\n )}\n />\n )}\n \n );\n};\n\nexport { TextField };\n","/**\n * Created by fkurzawa on 27.03.18.\n */\nimport styled from \"styled-components\";\n\nconst Label = styled.label`\n display: block;\n width: 100%;\n color: ${({ hasError, theme }: any) =>\n hasError ? theme.errorColor : theme.text.primaryColor};\n font-size: 0.875em;\n margin: 0;\n`;\n\nexport default Label;\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\nconst RedStar = () => {\n const { isContrast } = useMappedState(mapStateToProps);\n return *;\n};\n\nconst mapStateToProps = ({ accessibility }: any) => ({\n isContrast: accessibility.isContrast\n});\n\nconst StyledStar = styled.span`\n color: ${({ isContrast }) => (isContrast ? \"white\" : \"red\")};\n`;\n\nexport { RedStar };\n","import React, { ReactNode, Suspense } from \"react\";\n\nimport { IRemoteData, RemoteData } from \"./RemoteData\";\nimport { Loader } from \"../NewLoader\";\n\ninterface IRemoteDataSuspense extends IRemoteData {\n fallback?: ReactNode;\n}\n\nconst RemoteDataSuspense = ({\n fallback = ,\n ...props\n}: IRemoteDataSuspense) => {\n return (\n \n \n \n );\n};\n\nexport { RemoteDataSuspense };\n","export { Form } from \"./Form\";\nexport { TextAreaField } from \"./TextAreaField\";\nexport { TextField } from \"./TextField\";\nexport { RecaptchaField } from \"./RecaptchaField\";\nexport { SpinnerButton, ResetDynamicFormButton, ResetButton } from \"./Buttons\";\nexport { CheckBoxField } from \"./CheckBoxField\";\nexport { FormGroup } from \"./FormGroup\";\nexport { RadioGroupField } from \"./RadioGroupField\";\nexport { DateField } from \"./DateField\";\nexport { FormRow } from \"./FormRow\";\nexport { FormColumn } from \"./FormColumn\";\nexport * from \"./types\";\nexport { Separator } from \"./Separator\";\nexport { SelectField } from \"./SelectField\";\nexport { formFieldsGeneratorSchemaAdapter } from \"./utils\";\nexport { default as Label } from \"./Label\";\nexport { FormFieldsGenerator } from \"./FormFieldsGenerator/FormFieldsGenerator\";\nexport { RedStar } from \"./RedStar\";\nexport { ConditionalField } from \"./ConditionalField\";\nexport { StyledErrorMessage } from \"./StyledErrorMessage\";\nexport { FieldPrototype } from \"./FieldPrototype\";\nexport { PasswordStrength } from \"./PasswordStrength\";\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nconst Loader = ({ pastDelay }) => {\n return pastDelay ? : null;\n};\n\nconst Spinner = styled.span.attrs({ className: \"fa fa-spinner fa-spin\" })`\n && {\n color: ${({ theme }) => theme.text.primaryColor};\n font-size: 2em;\n padding: 1rem 0.5rem;\n }\n`;\n\nexport default Loader;\n","import PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { connect } from \"react-redux\";\nimport { Route, Redirect, withRouter } from \"react-router\";\nimport { compose, withProps } from \"recompose\";\nimport BIP_MODULES from \"./../../../constants/bip_modules\";\n\nconst PrivateRoute = ({\n component: Component,\n isAuthenticated,\n redirectUrl,\n ...rest\n}) => (\n \n isAuthenticated === true ? (\n \n ) : (\n \n )\n }\n />\n);\n\nPrivateRoute.propTypes = {\n isAuthenticated: PropTypes.bool,\n redirectUrl: PropTypes.string.isRequired\n};\n\nconst mapStateToProps = ({ authentication, context }) => ({\n friendlyUrl: context.contextFriendlyUrl,\n isAuthenticated: authentication.isAuthenticated,\n urlType: context.urlType\n});\n\nconst enhance = compose(\n withRouter,\n connect(mapStateToProps),\n withProps(({ friendlyUrl, location, urlType }) => {\n const isFullUrl = urlType === \"full\";\n const context =\n friendlyUrl !== \"default\" ? `${friendlyUrl}${isFullUrl ? \"/\" : \",\"}` : \"\";\n const userPanelUrl = `/${context}${\n isFullUrl ? BIP_MODULES.SIGN_IN.fullUrl : BIP_MODULES.SIGN_IN.friendlyUrl\n }`;\n const redirectUrl =\n (location.state && location.state.redirectUrl) || userPanelUrl;\n return {\n redirectUrl\n };\n })\n);\n\nexport default enhance(PrivateRoute);\n","import PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { connect } from \"react-redux\";\nimport { Route, Redirect, withRouter } from \"react-router\";\nimport { compose, withProps } from \"recompose\";\nimport BIP_MODULES from \"./../../../constants/bip_modules\";\n\nconst PublicRoute = ({\n component: Component,\n isAuthenticated,\n redirectUrl,\n ...rest\n}) => (\n \n isAuthenticated === false ? (\n \n ) : (\n \n )\n }\n />\n);\n\nPublicRoute.propTypes = {\n isAuthenticated: PropTypes.bool,\n redirectUrl: PropTypes.string.isRequired\n};\n\nconst mapStateToProps = ({ authentication, context }) => ({\n friendlyUrl: context.contextFriendlyUrl,\n isAuthenticated: authentication.isAuthenticated,\n urlType: context.urlType\n});\n\nconst enhance = compose(\n withRouter,\n connect(mapStateToProps),\n withProps(({ friendlyUrl, location, urlType }) => {\n const isFullUrl = urlType === \"full\";\n const context =\n friendlyUrl !== \"default\" ? `${friendlyUrl}${isFullUrl ? \"/\" : \",\"}` : \"\";\n const userPanelUrl = `/${context}${\n isFullUrl\n ? BIP_MODULES.USER_PANEL.fullUrl\n : BIP_MODULES.USER_PANEL.friendlyUrl\n }`;\n const redirectUrl =\n (location.state && location.state.redirectUrl) || userPanelUrl;\n return {\n redirectUrl\n };\n })\n);\n\nexport default enhance(PublicRoute);\n","export const createRedirectUrl = (\n unit: string,\n hasSeparator: boolean,\n separator: string,\n startArticleId: number,\n startMenuId: number,\n startUrl: string\n) => {\n if (startArticleId) {\n return `/${unit}${hasSeparator ? separator : \"\"}${startUrl}`;\n }\n if (startMenuId) {\n return `/${startUrl}`;\n }\n return `/${unit}${hasSeparator ? separator : \"\"}${startUrl}`;\n};\n","import { useMappedState } from \"redux-react-hook\";\nimport { createRedirectUrl } from \"./createRedirectUrl\";\n\nconst useGetUrlManager = location => {\n const {\n friendlyUrl,\n langCode,\n startArticleId,\n startUrl,\n urlType,\n startMenuId\n } = useMappedState(mapStateToProps);\n\n const separator = urlType === \"full\" ? \"/\" : \",\";\n const isNotDefaultContext = friendlyUrl !== \"default\";\n const context = `${friendlyUrl === \"default\" ? \"\" : friendlyUrl}`;\n const lang = /pl_\\w+/.test(langCode)\n ? \"\"\n : `${isNotDefaultContext ? separator : \"\"}${\n langCode ? langCode.split(\"_\")[0] : \"pl\"\n }`;\n const extensionMatch = location.pathname.match(/\\.\\w+$/);\n const extension = extensionMatch !== null ? extensionMatch[0] : \"\";\n const hasSeparator = isNotDefaultContext && startUrl !== \"\";\n const homePath = `/${context}${lang}${extension}`;\n\n const fromPath = location.pathname === \"/\" ? location.pathname : homePath;\n\n return {\n homePath,\n fromPath,\n redirectUrl: createRedirectUrl(\n context,\n hasSeparator,\n separator,\n startArticleId,\n startMenuId,\n startUrl\n )\n };\n};\n\nconst mapStateToProps = ({ context, language }) => ({\n friendlyUrl: context.contextFriendlyUrl,\n langCode: language.langCode,\n startUrl: context.startUrl,\n urlType: context.urlType,\n startArticleId: context.startArticleId,\n startMenuId: context.startMenuId\n});\n\nexport { useGetUrlManager };\n","import useRouter from \"use-react-router\";\n\nexport const useGetIsOutdated = () => {\n const { match } = useRouter<{\n method: string;\n id: string;\n }>();\n\n return match.params.method === \"o\" || match.params.method === \"getOutdated\"\n ? 1\n : 0;\n};\n","import useRouter from \"use-react-router\";\nimport { useMappedState } from \"redux-react-hook\";\n\nexport const useGetMenuId = () => {\n const { startMenuId } = useMappedState(mapStateToProps);\n const { match } = useRouter<{\n method: string;\n id: string;\n }>();\n\n return match.params.id || startMenuId;\n};\n\nconst mapStateToProps = ({ context }: any) => ({\n startMenuId: context.startMenuId\n});\n","import axios from \"axios\";\n\nimport { IMenuArticlesList } from \"modules/articles/types/IMenuArticlesList\";\n\nimport ApiConfig from \"../../../api/api.config\";\n\nconst apiUrl = `${ApiConfig.getEntryPoint()}menu`;\n\nexport const getMenuArticles = (\n menuId: number,\n limit: number = 10,\n offset: number = 0,\n sort: string[] | string | null,\n sort_dir: string[] | string | null,\n archived: number,\n tab: string[] | string | null,\n searchParams?: any\n): Promise =>\n axios\n .get(`${apiUrl}/${menuId}/articles`, {\n params: {\n limit,\n offset,\n sort,\n sort_dir,\n archived,\n tab,\n ...searchParams\n }\n })\n .then(response => response.data);\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nexport const processTable = {\n shouldProcessNode: node =>\n node.name &&\n node.name === \"table\" &&\n node.attribs &&\n node.attribs[\"border\"] !== undefined,\n processNode: function(node, children, index) {\n const formatStringToCamelCase = str => {\n const splitted = str.split(\"-\");\n if (splitted.length === 1) return splitted[0];\n return (\n splitted[0] +\n splitted\n .slice(1)\n .map(word => word[0].toUpperCase() + word.slice(1))\n .join(\"\")\n );\n };\n\n const getStyleObjectFromString = str => {\n const style = {};\n str.split(\";\").forEach(el => {\n const [property, value] = el.split(\":\");\n if (!property) return;\n\n const formattedProperty = formatStringToCamelCase(property.trim());\n style[formattedProperty] = value.trim();\n });\n\n return style;\n };\n\n const borderSize = node.attribs.border;\n const tableStyle = `${node.attribs.style} border: solid ${borderSize}px`;\n const { width, height, border, ...restAttribs } = node.attribs;\n return (\n \n {children}\n \n );\n }\n};\n\nconst StyledTable = styled.table`\n td {\n border: ${({ borderSize }) => `solid ${borderSize}px`};\n }\n`;\n","import { getFileUrl } from \"modules/articles/api/getFileUrl\";\n\nexport const processImageSource = processNodeDefinitions => {\n return {\n shouldProcessNode: node =>\n node.type === \"tag\" && (node.name === \"source\" || node.name === \"img\"),\n processNode: (node, children, index) => {\n const { src } = node.attribs;\n if (!src) {\n return;\n }\n const matchResult = src.match(/id(?:=|,)(\\w+)(?:.json)?$/);\n if (matchResult !== null) {\n const [, id] = matchResult;\n const updatedNode = {\n ...node,\n attribs: {\n ...node.attribs,\n style: node.attribs.style + \";max-width: 100%; height: auto;\",\n src: getFileUrl(id)\n }\n };\n return processNodeDefinitions.processDefaultNode(\n updatedNode,\n children,\n index\n );\n } else {\n return processNodeDefinitions.processDefaultNode(node, children, index);\n }\n }\n };\n};\n","import styled from \"styled-components\";\nimport React from \"react\";\n\nexport const processIFrameWithTraseoMap = {\n shouldProcessNode: node =>\n node.name &&\n node.name === \"iframe\" &&\n node.attribs.src &&\n node.attribs.src.includes(\"www.traseo.pl\"),\n processNode: (node, children, index) => {\n const { frameborder, style, ...restAttribs } = node.attribs;\n return (\n
\n \n Zobacz mapę Tutaj\n \n \n
\n );\n }\n};\n\nconst StyledIFrame = styled.iframe`\n border-width: ${props => props[\"data-frameBorder\"]}px;\n @media print {\n display: none;\n }\n`;\n\nconst StyledIFrameLink = styled.div`\n text-decoration: underline;\n display: none;\n @media print {\n display: block;\n }\n`;\n","/**\n * Created by fkurzawa on 22.03.18.\n */\nimport React, { useState } from \"react\";\nimport styled from \"styled-components\";\nimport { Overlay } from \"react-overlays\";\n\nimport { Button } from \"components/buttons\";\n\ninterface IProps {\n tip: string;\n}\n\nconst TipButton = ({ tip }: IProps) => {\n const [showTip, toggleTip] = useState(false);\n\n return (\n \n toggleTip(!showTip)}\n >\n \n \n {/*// @ts-ignore*/}\n toggleTip(!showTip)}\n // @ts-ignore\n container={this}\n rootClose\n >\n {/*@ts-ignore*/}\n \n {tip}\n \n \n \n );\n};\n\nconst TipContainer = styled.div`\n position: relative;\n`;\n\nconst OverlayContent = styled.div`\n z-index: 1;\n position: absolute;\n top: auto !important;\n left: auto !important;\n margin-top: 3px;\n right: 0;\n\n background: ${({ theme }) => theme.lightPrimaryColor};\n border: 1px solid ${({ theme }) => theme.dividerColor};\n border-radius: 1px;\n\n width: calc(100vw - 30px);\n\n @media screen and (min-width: 768px) {\n width: 300px;\n }\n`;\n\nconst Tip = styled.div`\n color: ${({ theme }) => theme.text.secondaryColor};\n font-size: 0.75em;\n padding: 0.75rem;\n`;\n\nexport { TipButton };\n","/**\n * Created by fkurzawa on 22.03.18.\n */\nimport React from \"react\";\nimport styled from \"styled-components\";\n\nimport { prepareContent } from \"./utils/prepareContent\";\n\nimport { TipButton } from \"./TipButton\";\n\ninterface IProps {\n name: string;\n label: string;\n content: any;\n}\n\nconst Section = ({ name, label, content }: IProps) => {\n return (\n \n
\n {name}\n {label && }\n
\n {prepareContent(content)}\n
\n );\n};\n\nconst SectionContainer = styled.section`\n margin-bottom: 2rem;\n\n & > *:not(:last-child) {\n margin-bottom: 1rem;\n }\n`;\n\nconst Header = styled.header`\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-bottom: 0.5rem;\n border-bottom: 1px solid;\n border-color: ${({ theme }) => theme.dividerColor};\n`;\n\nconst Name = styled.h5`\n text-transform: uppercase;\n font-weight: bold;\n font-size: 0.875em;\n color: ${({ theme }) => theme.text.primaryColor};\n margin: 0;\n padding: 0;\n`;\n\nconst Content = styled.div`\n color: ${({ theme }) => theme.text.primaryColor};\n font-size: 0.75em;\n padding-bottom: 0.5rem;\n border-bottom: 2px solid;\n border-color: ${({ theme }) => theme.dividerColor};\n\n a {\n color: ${({ theme }) => theme.text.secondaryColor};\n text-decoration: underline;\n &:hover {\n color: ${({ theme }) => theme.secondaryColor};\n text-decoration: none;\n }\n \n :focus {\n outline: ${({ theme }) => theme.focusOutline};\n }\n }\n`;\n\nexport { Section };\n","// @ts-ignore\nimport HtmlToReact from \"html-to-react\";\nimport React from \"react\";\n\nimport { getFileUrl } from \"modules/articles/api/getFileUrl\";\nimport { processTable } from \"../../../Content/utils/processTables\";\nimport { processImageSource } from \"../../../Content/utils/processImageSource\";\nimport { processIFrameWithTraseoMap } from \"../../../Content/utils/processIFrameWithTraseoMap\";\n\nexport const prepareContent = (content: any) => {\n const htmlToReactParser = new HtmlToReact.Parser();\n const processNodeDefinitions = new HtmlToReact.ProcessNodeDefinitions(React);\n\n //@todo: Czy aside zachowauje się tak jak artykuł, czy wszystkie funkcje preprocesowujące artykuł powinny znaleźć się też tutaj?\n const isValidNode = () => true;\n const processingInstructions = [\n {\n shouldProcessNode: (node: any) =>\n node.type === \"tag\" && (node.name === \"source\" || node.name === \"img\"),\n processNode: (node: any, children: any, index: any) => {\n const { src } = node.attribs;\n const [, id] = src.match(/id(?:=|,)(\\w+)(?:.json)?$/);\n const updatedNode = {\n ...node,\n attribs: {\n ...node.attribs,\n src: getFileUrl(id)\n }\n };\n return processNodeDefinitions.processDefaultNode(\n updatedNode,\n children,\n index\n );\n }\n },\n processTable,\n processImageSource(processNodeDefinitions),\n processIFrameWithTraseoMap,\n {\n shouldProcessNode: () => true,\n processNode: processNodeDefinitions.processDefaultNode\n }\n ];\n\n return htmlToReactParser.parseWithInstructions(\n content,\n isValidNode,\n processingInstructions\n );\n};\n","/**\n * Created by fkurzawa on 22.03.18.\n */\nimport React from \"react\";\nimport styled from \"styled-components\";\n\nimport { Section } from \"./components/Section\";\n\nimport { IArticlePlaceholder } from \"../../../types/IArticlePlaceholder\";\n\ninterface IProps {\n sections: IArticlePlaceholder[];\n}\n\nconst Aside = ({ sections }: IProps) => (\n \n {sections.map((section, index) => (\n \n ))}\n \n);\n\nconst AsideContainer = styled.aside`\n flex-basis: 250px;\n min-width: 250px;\n`;\n\nexport { Aside };\n","import ApiConfig from \"api/api.config\";\n\nconst apiUrl = `${ApiConfig.getEntryPoint()}`;\n\nexport const getHistoricalArticleZipAttachmentsUrl = (versionId: number) =>\n `${apiUrl}article-versions/${versionId}/zip-attachments`;\n","import ApiConfig from \"../../../api/api.config\";\n\nconst apiUrl = `${ApiConfig.getEntryPoint()}`;\n\nexport const getArticleZipAttachmentsUrl = (articleId: number) =>\n `${apiUrl}articles/${articleId}/zip-attachments`;","import axios from \"axios\";\n\nexport const getFile = (fileUrl: string) => {\n return axios.get(fileUrl, {\n responseType: \"arraybuffer\",\n headers: {\n \"Content-Type\": \"multipart/form-data\"\n }\n });\n};\n","import {IBlob} from \"./types/IBlob\";\n\nexport const initDownloadToLocal = (data: IBlob, filename: string) => {\n const url = window.URL.createObjectURL(\n new Blob([data], { type: \"application/zip\" })\n );\n const link = document.createElement(\"a\");\n link.href = url;\n link.setAttribute(\"download\", filename);\n\n // Append to html link element page\n document.body.appendChild(link);\n\n // Start download\n link.click();\n\n // Clean up and remove the link\n link?.parentNode?.removeChild(link);\n}","/**\n * Created by fkurzawa on 19.03.18.\n */\nimport React from \"react\";\nimport styled from \"styled-components\";\n\nimport { getHistoricalArticleZipAttachmentsUrl } from \"modules/articles/api/getHistoricalArticleZipAttachmentsUrl\";\nimport { getArticleZipAttachmentsUrl } from \"modules/articles/api/getArticleZipAttachmentsUrl\";\n\nimport { useDownloadFile } from \"utils/downloadFile/useDownloadFile\";\n\nimport { Button } from \"../../../buttons\";\nimport Translate from \"../../../translate\";\nimport { Loader } from \"../../../NewLoader\";\nimport {\n INotificationType,\n toastNotification\n} from \"../../../ToastNotification/toastNotification\";\n\ninterface IProps {\n versionId: number;\n isHistorical: boolean;\n disabled: boolean;\n}\n\nconst DownloadAll = ({ versionId, isHistorical, disabled }: IProps) => {\n const { downloadFile, isDownloading } = useDownloadFile();\n\n const newDownload = async () => {\n const fileUrl = isHistorical\n ? getHistoricalArticleZipAttachmentsUrl(versionId)\n : getArticleZipAttachmentsUrl(versionId);\n try {\n await downloadFile(fileUrl);\n } catch (e) {\n toastNotification(\n INotificationType.ERROR,\n \"Pobieranie załączników\",\n \"Wystąpił problem z pobraniem załączników.\"\n );\n }\n };\n\n return (\n \n \n \n Download all attachments\n {isDownloading && (\n \n \n \n )}\n \n \n );\n};\n\nconst Container = styled.div`\n width: 100%;\n display: flex;\n justify-content: flex-end;\n\n @media print {\n display: none;\n }\n`;\n\nexport { DownloadAll };\n","import { useState } from \"react\";\n\nimport { getFile } from \"./getFile\";\nimport { getFileName } from \"./getFileName\";\nimport { initDownloadToLocal } from \"./initDownloadToLocal\";\n\nexport const useDownloadFile = () => {\n const [isDownloading, setIsDownloading] = useState(false);\n\n const downloadFile = async (fileUrl: string) => {\n setIsDownloading(true);\n await getFile(fileUrl)\n .then(res => {\n const filename = getFileName(res.headers);\n initDownloadToLocal(res.data, filename);\n })\n .finally(() => {\n setIsDownloading(false);\n });\n };\n\n return { downloadFile, isDownloading };\n};\n","export const getFileName = (responseHeader: any) => {\n return responseHeader[\"content-disposition\"]\n .split(\";\")\n .find((n: string) => n.includes(\"filename=\"))\n .replace(\"filename=\", \"\")\n .replaceAll('\"', \"\")\n .trim();\n};\n","import React from \"react\";\nimport { Icon, IIcon } from \"../Icon\";\nimport {\n mdiFile,\n mdiFileDocument,\n mdiFileExcel,\n mdiFileImage,\n mdiFileMusic,\n mdiFileOutline,\n mdiFilePdfOutline,\n mdiFilePowerpoint,\n mdiFileVideo,\n mdiFileWord,\n mdiFileXml\n} from \"@mdi/js\";\n\ninterface IProps extends Omit {\n type: string;\n}\n\nconst FileIcon = ({ type, ...restProps }: IProps) => {\n switch (type) {\n case \"pdf\":\n return ;\n case \"doc\":\n case \"docx\":\n return ;\n case \"xls\":\n case \"xlsx\":\n return ;\n case \"xml\":\n return ;\n case \"zip\":\n return ;\n case \"odt\":\n case \"txt\":\n return ;\n case \"jpeg\":\n case \"jpg\":\n case \"png\":\n case \"svg\":\n return ;\n case \"ppt\":\n case \"pptx\":\n return ;\n case \"mp3\":\n return ;\n case \"mp4\":\n return ;\n default:\n return ;\n }\n};\n\nexport { FileIcon };\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { Grid, Row } from \"../../../../TableComponents/MetricGrid\";\n\nimport { IArticleAttachment } from \"modules/articles/types/IArticleAttachment\";\nimport {ContentColumn, HeadColumn} from \"../../../../metrics/components\";\n\ninterface IProps {\n attachment: IArticleAttachment;\n}\n\nconst AttachmentMetricPrintPreview = ({ attachment }: IProps) => {\n return (\n \n \n \n Podmiot udostępniający informację\n {attachment.unitName}\n \n \n Osoba wprowadzająca informację\n {attachment.createUser.name}\n \n \n Osoba odpowiedzialna za informację\n {attachment.responseUser.name}\n \n \n Czas wytworzenia\n {attachment.createDate}\n \n \n Czas publikacji\n {attachment.publishDate}\n \n \n \n );\n};\n\nconst AttachmentsMetricPreviewContainer = styled.div`\n display: none;\n @media print {\n display: initial;\n padding-left: 20px;\n }\n`;\n\nexport { AttachmentMetricPrintPreview };\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\n// @ts-ignore\nimport fileSize from \"filesize\";\n\nimport { IArticleAttachment } from \"modules/articles/types/IArticleAttachment\";\n\nimport { FileIcon } from \"../../../../../FileIcon\";\nimport { AttachmentMetricPrintPreview } from \"./AttachmentMetricPrintPreview\";\n\ninterface IProps {\n attachment: IArticleAttachment;\n showAttachmentIcon: boolean;\n}\n\nconst ItemInformation = ({ attachment, showAttachmentIcon }: IProps) => {\n const { printAttachmentMetric } = useMappedState(mapStateToProps);\n\n return (\n \n
\n {showAttachmentIcon && (\n
\n \n
\n )}\n {attachment.name}\n
\n \n Data: {attachment.publishDate}\n Rozmiar: {fileSize(attachment.size)}\n Format: .{attachment.extension}\n {printAttachmentMetric && (\n \n )}\n Pobrano: {attachment.downloadCounter}\n \n
\n );\n};\n\nconst mapStateToProps = ({ context }: any) => ({\n printAttachmentMetric: context.printAttachmentMetric\n});\n\nconst Container = styled.div`\n padding-bottom: 6px;\n @media screen and (min-width: 992px) {\n padding-bottom: 0;\n }\n`;\n\nconst PrimaryText = styled.p`\n font-weight: bold;\n color: ${({ theme }) => theme.text.primaryColor};\n word-break: break-word;\n margin: 0;\n font-size: 0.875em;\n`;\n\nconst SecondaryContainer = styled.div`\n display: flex;\n flex-direction: column;\n\n @media screen and (min-width: 992px) {\n flex-direction: row;\n\n & > *:not(:last-child) {\n margin-right: 2.25rem;\n }\n }\n`;\n\nconst SecondaryText = styled.span`\n color: ${({ theme }) => theme.text.secondaryColor};\n margin: 0;\n font-size: 0.75em;\n`;\n\nexport { ItemInformation };\n","/**\n * Created by fkurzawa on 20.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport { User } from \"../../../../TableComponents/User\";\nimport { Grid, Row } from \"../../../../TableComponents/MetricGrid\";\nimport { ContentColumn, HeadColumn } from \"../../../../metrics/components\";\n\nconst AttachmentMetric = ({ attachment }) => {\n return (\n \n \n \n Podmiot udostępniający informację\n \n \n {attachment.unitName}\n \n \n \n \n Osoba wprowadzająca informację\n \n \n \n \n \n \n \n Osoba odpowiedzialna za informację\n \n \n \n \n \n \n \n Czas wytworzenia\n \n \n {attachment.createDate}\n \n \n \n \n Czas publikacji\n \n \n {attachment.publishDate}\n \n \n \n );\n};\n\nAttachmentMetric.propTypes = {\n attachment: PropTypes.object.isRequired\n};\n\nexport { AttachmentMetric };\n","/**\n * Created by fkurzawa on 20.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { Overlay } from \"react-overlays\";\n\nimport { AttachmentMetric } from \"./AttachmentMetric\";\n\n/*\n@todo: W przyszłości spróbować zmienić na komponent funkcyjny, dokumentacja https://react-bootstrap.github.io/react-overlays/api/Overlay\nAktualnie po zamianie na komponent funkcyjny layout całkowicie się psuje\n */\n\nclass MetricOverlay extends React.Component {\n render() {\n const { attachment, show, toggle } = this.props;\n\n return (\n \n \n \n \n \n \n \n );\n }\n}\n\nMetricOverlay.propTypes = {\n attachment: PropTypes.object.isRequired,\n show: PropTypes.bool.isRequired,\n toggle: PropTypes.func.isRequired\n};\n\nconst OverlayContainer = styled.div`\n position: relative;\n`;\n\nconst OverlayContent = styled.div`\n position: absolute;\n top: 6px !important;\n\n @media screen and (max-width: 575px) {\n width: calc(100vw - 30px);\n }\n\n @media screen and (min-width: 576px) {\n width: 400px;\n }\n\n @media screen and (min-width: 768px) {\n width: 500px;\n }\n\n @media screen and (min-width: 992px) {\n right: 0 !important;\n left: auto !important;\n }\n\n padding: 6px;\n background: ${({ theme }) => theme.lightPrimaryColor};\n border: 1px solid ${({ theme }) => theme.dividerColor};\n border-radius: 1px;\n z-index: 1;\n`;\n\nexport { MetricOverlay };\n","import React, { useCallback, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport uuid from \"uuid/v4\";\nimport {\n mdiClipboardArrowDownOutline,\n mdiInformationOutline,\n mdiRefresh\n} from \"@mdi/js\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport Modal from \"../../../../../modal/Modal\";\nimport { Button } from \"components/buttons\";\nimport { Icon } from \"components/Icon\";\n\nconst PreviewModal = ({\n attachmentName,\n fileUrl,\n show,\n toggle,\n isPhotoFormat\n}) => {\n const { isContrast } = useMappedState(mapStateToProps);\n const [frameId] = useState(`frame-${uuid()}`);\n const { protocol } = window.location;\n const [frameSrc] = useState(\n `${protocol}//docs.google.com/gview?url=${fileUrl}&embedded=true`\n );\n const [showCopyToClipboardMessage, setShowCopyToClipboardMessage] = useState(\n false\n );\n\n const refreshFrame = useCallback(() => {\n let frame = document.querySelector(`#${frameId}`);\n const src = frame.src;\n if (frame) {\n frame.src = src;\n }\n }, [frameId]);\n\n const copyFileUrlToClipboard = () => {\n setTimeout(() => {\n setShowCopyToClipboardMessage(false);\n }, 3000);\n if (navigator.clipboard !== undefined) {\n navigator.clipboard.writeText(fileUrl);\n } else if (window.clipboardData) {\n // Internet Explorer\n window.clipboardData.setData(\"Text\", fileUrl);\n }\n setShowCopyToClipboardMessage(true);\n };\n\n return (\n \n \n
\n \n Podgląd: {attachmentName}\n \n \n \n \n copyFileUrlToClipboard()}\n >\n \n \n {showCopyToClipboardMessage && Skopiowano do schowka}\n \n \n \n \n
\n {isPhotoFormat ? (\n \n {fileUrl && }\n \n ) : (\n \n {frameSrc && (\n \n )}\n \n )}\n
\n
\n );\n};\n\nconst mapStateToProps = ({ accessibility }) => ({\n isContrast: accessibility.isContrast\n});\n\nPreviewModal.propTypes = {\n attachmentName: PropTypes.string.isRequired,\n fileUrl: PropTypes.string.isRequired,\n isPhotoFormat: PropTypes.bool.isRequired,\n show: PropTypes.bool,\n toggle: PropTypes.func\n};\n\nconst Content = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n`;\n\nconst Header = styled.div`\n border-bottom: 1px solid;\n border-color: ${({ theme }) => theme.dividerColor};\n padding: 1em;\n`;\n\nconst HeaderContent = styled.div`\n display: inline-flex;\n align-items: center;\n\n & > *:not(:last-child) {\n margin-right: 9px;\n }\n`;\n\nconst Title = styled.h1`\n font-size: 1.25em;\n display: inline-block;\n margin: 0;\n padding: 0;\n color: ${({ theme }) => theme.text.primaryColor};\n`;\n\nconst CloseButton = styled.button.attrs({\n className: \"close\"\n})`\n && {\n padding: 0.2rem 0.4rem;\n }\n &:-moz-focusring {\n outline: 2px solid ${({ isContrast }) => (isContrast ? \"white\" : \"black\")};\n }\n`;\n\nconst Body = styled.div`\n flex-grow: 1;\n display: flex;\n`;\n\nconst ImageContainer = styled.div`\n background-color: #999;\n display: inline-block;\n`;\n\nconst Image = styled.img`\n width: 100%;\n`;\n\nconst IFrame = styled.iframe`\n border: none;\n flex-grow: 1;\n height: 100%;\n`;\n\nexport { PreviewModal };\n","import React, { useMemo, useState } from \"react\";\nimport styled from \"styled-components\";\n\nimport { getFileUrl } from \"modules/articles/api/getFileUrl\";\n\nimport { checkIsPhotoFormat } from \"../utils/checkIsPhotoFormat\";\n\nimport { MetricOverlay } from \"./MetricOverlay\";\nimport { PreviewModal } from \"./PreviewModal\";\nimport { Button } from \"components/buttons\";\nimport Translate from \"../../../../../translate\";\n\ninterface IProps {\n attachment: any;\n}\n\nconst ItemActions = ({ attachment }: IProps) => {\n const [showMetric, setShowMetric] = useState(false);\n const [showPreview, setShowPreview] = useState(false);\n const fileUrl = useMemo(() => getFileUrl(attachment.id), [attachment.id]);\n const download = () => {\n window.location.href = fileUrl;\n };\n const toggleMetric = () => setShowMetric(!showMetric);\n const togglePreview = () => setShowPreview(!showPreview);\n\n return (\n \n \n \n \n \n \n \n\n {attachment.showPreview && (\n <>\n \n \n \n \n \n )}\n\n {attachment.downloadable && (\n \n \n  Download\n \n )}\n \n );\n};\n\nconst Container = styled.div`\n display: flex;\n & > *:not(:last-child) {\n margin-right: 6px;\n }\n\n @media print {\n display: none;\n }\n`;\n\nconst OverlayButtonContainer = styled.div`\n display: inline-block;\n`;\n\nexport { ItemActions };\n","export const checkIsPhotoFormat = format => {\n const acceptedFormats = [\"png\", \"jpg\", \"jpeg\"];\n return acceptedFormats.some(\n acceptedFormat => acceptedFormat.toLowerCase() === format\n );\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { IArticleAttachment } from \"modules/articles/types/IArticleAttachment\";\n\nimport { ItemInformation } from \"./ItemInformation\";\nimport { ItemActions } from \"./ItemActions\";\n\ninterface IProps {\n attachment: IArticleAttachment;\n showAttachmentIcon: boolean;\n}\n\nconst AttachmentListItem = ({\n attachment,\n showAttachmentIcon,\n}: IProps) => {\n return (\n \n \n \n \n \n \n \n \n );\n};\n\nconst ListItem = styled.li`\n padding: 12px 0;\n display: flex;\n flex-direction: column;\n\n @media screen and (min-width: 992px) {\n flex-direction: row;\n }\n\n &:not(:last-child) {\n border-bottom: solid 1px ${({ theme }) => theme.dividerColor};\n }\n`;\n\nconst InformationContainer = styled.div`\n flex-grow: 1;\n`;\n\nconst ActionsContainer = styled.div`\n flex-shrink: 0;\n`;\n\nexport { AttachmentListItem };\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { IArticleAttachment } from \"modules/articles/types/IArticleAttachment\";\n\nimport { AttachmentListItem } from \"./components/AttachmentListItem\";\n\ninterface IProps {\n attachments: IArticleAttachment[];\n showAttachmentIcon: boolean;\n}\n\nconst AttachmentsList = ({ attachments, showAttachmentIcon }: IProps) => {\n return (\n \n {attachments.map(attachment => (\n \n ))}\n \n );\n};\n\nconst List = styled.ul`\n list-style-type: none;\n padding: 0;\n margin: 0;\n`;\n\nexport { AttachmentsList };\n","import React, { memo } from \"react\";\n\nimport { IArticleAttachment } from \"modules/articles/types/IArticleAttachment\";\n\nimport { DownloadAll } from \"./components/DownloadAll\";\nimport { AttachmentsList } from \"./components/AttachmentsList\";\n\ninterface IProps {\n versionId: number;\n attachments: IArticleAttachment[];\n isHistorical: boolean;\n showAttachmentIcon: boolean;\n isPreview: boolean;\n}\n\nconst Attachments = memo(\n ({\n versionId,\n attachments = [],\n isHistorical,\n showAttachmentIcon,\n isPreview\n }: IProps) => {\n const isSomeAttachmentsAreNotDeleted = attachments.some(\n attachment => !attachment.deleted\n );\n\n return (\n <>\n {isSomeAttachmentsAreNotDeleted && (\n \n )}\n \n \n );\n },\n (prevState, nextState) => {\n return (\n prevState.attachments.length === nextState.attachments.length &&\n prevState.versionId === nextState.versionId\n );\n }\n);\n\nexport { Attachments };\n","/**\n * Created by fkurzawa on 26.03.18.\n */\nimport React from \"react\";\nimport styled from \"styled-components\";\n\nimport { IArticleCommentAnswer } from \"../../../../types/IArticle\";\n\ninterface IProps {\n answers: IArticleCommentAnswer[];\n}\n\nconst AnswersList = ({ answers }: IProps) => {\n return (\n \n {answers.map(answer => (\n \n {answer.publisher}\n {answer.content}\n \n ))}\n \n );\n};\n\nconst List = styled.ul`\n margin: 0;\n list-style: none;\n border-radius: 1px;\n background: ${({ theme }) => theme.lightPrimaryColor};\n padding: 0.5rem;\n`;\n\nconst ListItem = styled.li`\n &:not(:last-child) {\n padding-bottom: 3px;\n border-bottom: 1px solid ${({ theme }) => theme.dividerColor};\n margin-bottom: 3px;\n }\n`;\n\nconst Publisher = styled.div`\n font-size: 0.75em;\n color: ${({ theme }) => theme.text.primaryColor};\n font-weight: bold;\n`;\n\nconst Content = styled.div`\n font-size: 0.75em;\n color: ${({ theme }) => theme.text.primaryColor};\n word-wrap: break-word;\n`;\n\nexport { AnswersList };\n","/**\n * Created by fkurzawa on 26.03.18.\n */\nimport React from \"react\";\nimport styled from \"styled-components\";\n\nimport { AnswersList } from \"./AnswersList\";\n\nimport { IArticleComment } from \"../../../../types/IArticle\";\n\ninterface IProps {\n comments: IArticleComment[];\n}\n\nconst CommentsList = ({ comments }: IProps) => {\n return (\n \n {comments.map(comment => (\n \n Czas publikacji: {comment.publishedDate}\n {comment.content}\n\n {comment.answers && comment.answers.length > 0 && (\n \n )}\n \n ))}\n \n );\n};\n\nconst List = styled.ul`\n margin: 0;\n padding: 0;\n list-style: none;\n`;\n\nconst ListItem = styled.li`\n font-size: 1em;\n display: flex;\n flex-direction: column;\n padding-top: 0.5rem;\n\n &:not(:last-child) {\n padding-bottom: 0.6rem;\n border-bottom: 1px solid ${({ theme }) => theme.dividerColor};\n }\n`;\n\nconst Content = styled.div`\n &:not(:last-child) {\n margin-bottom: 0.3rem;\n }\n align-self: flex-start;\n font-size: 0.875em;\n color: ${({ theme }) => theme.text.primaryColor};\n`;\n\nconst PublishDate = styled.div`\n align-self: flex-end;\n font-size: 0.75em;\n color: ${({ theme }) => theme.text.secondaryColor};\n`;\n\nexport { CommentsList };\n","/**\n * Created by fkurzawa on 26.03.18.\n */\nimport React, { useState } from \"react\";\nimport styled from \"styled-components\";\n\nimport { postArticleComment } from \"api/articles\";\n\nimport { ICommentForm } from \"modules/articles/types/ICommentForm\";\nimport { useCommentFormValidationSchema } from \"modules/articles/schemas/useCommentFormValidationSchema\";\n\nimport {\n CheckBoxField,\n Form,\n FormGroup,\n RecaptchaField,\n ResetButton,\n SpinnerButton,\n TextAreaField\n} from \"components/HookForm\";\nimport { Alert, Notification } from \"components/Alert\";\n\ninterface IProps {\n articleId: number;\n}\n\nconst CommentForm = ({ articleId }: IProps) => {\n const [alert, setAlert] = useState<{\n type: Notification;\n message: string;\n } | null>(null);\n\n const onSuccess = () => {\n setAlert({\n type: Notification.SUCCESS,\n message: \"Komentarz został zapisany. Oczekuje na publikację.\"\n });\n };\n\n const onError = () => {\n setAlert({\n type: Notification.ERROR,\n message: \"Zapisanie komentarza zakończone niepowodzeniem\"\n });\n };\n\n const onSubmit = async (model: ICommentForm) => {\n setAlert(null);\n const validModel = {\n ...model,\n agreement: model.agreement ? 1 : 0\n };\n\n const formData = Object.keys(validModel).reduce(\n (obj: FormData, key: string) => {\n // @ts-ignore\n obj.append(key, validModel[key as keyof typeof validModel]);\n return obj;\n },\n new FormData()\n );\n\n await postArticleComment(articleId, formData)\n .then(() => {\n onSuccess();\n })\n .catch(() => {\n onError();\n });\n };\n\n return (\n <>\n {alert && (\n \n setAlert(null)}>\n {alert.message}\n \n \n )}\n \n onSubmit={onSubmit}\n defaultValues={{ comment: \"\", agreement: 0, \"recaptcha-response\": \"\" }}\n validationSchema={useCommentFormValidationSchema()}\n >\n {() => {\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }}\n \n \n );\n};\n\nconst FormButtons = styled.div`\n margin-top: 9px;\n display: flex;\n\n & > * {\n margin-right: 12px;\n }\n`;\n\nexport { CommentForm };\n","import * as yup from \"yup\";\n\nimport { checkboxRequiredValidationSchema } from \"utils/yup/checkboxRequiredValidationSchema\";\nimport { useRecaptchaValidationSchema } from \"utils/yup/useRecaptchaValidationSchema\";\nimport { validationMessages } from \"utils/yup/messages\";\n\nimport { ICommentForm } from \"../types/ICommentForm\";\n\nexport const useCommentFormValidationSchema = () => {\n return yup.object().shape({\n comment: yup.string().required(validationMessages.requiredField),\n agreement: checkboxRequiredValidationSchema,\n \"recaptcha-response\": useRecaptchaValidationSchema()\n });\n}\n","/**\n * Created by fkurzawa on 26.03.18.\n */\nimport React from \"react\";\nimport styled from \"styled-components\";\n\nimport { CommentsList } from \"./components/CommentsList\";\n\nimport { IArticleComment } from \"types/IArticle\";\nimport {CommentForm} from \"./components/CommentForm\";\n\ninterface IProps {\n articleId: number;\n comments: IArticleComment[];\n}\n\nconst Comments = ({ articleId, comments }: IProps) => {\n return (\n \n {comments.length > 0 && }\n \n \n );\n};\n\nconst CommentsContainer = styled.div`\n & > *:not(:last-child) {\n margin-bottom: 1rem;\n }\n`;\n\nexport { Comments };\n","/**\n * Created by fkurzawa on 26.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { Collapse } from \"react-collapse\";\nimport { compose, withStateHandlers } from \"recompose\";\n\nconst Element = ({ element, isOpen, toggleIsOpen }) => {\n return (\n
\n
\n {element.question}\n
\n \n {element.answer}\n \n
\n );\n};\n\nElement.propTypes = {\n element: PropTypes.object.isRequired,\n isOpen: PropTypes.bool,\n toggleIsOpen: PropTypes.func\n};\n\nElement.defaultProps = {\n toggleIsOpen: () => {}\n};\n\nconst Header = styled.div`\n cursor: pointer;\n`;\n\nconst Question = styled.h2`\n margin: 0;\n font-size: 0.875em;\n font-weight: bold;\n text-transform: uppercase;\n padding: 0.5rem 0;\n border-bottom: 2px solid ${({ theme }) => theme.dividerColor};\n color: ${({ theme }) => theme.text.primaryColor};\n`;\n\nconst Answer = styled.p`\n padding: 0.5rem 0;\n margin: 0;\n font-size: 0.875em;\n color: ${({ theme }) => theme.text.secondaryColor};\n`;\n\nconst composed = compose(\n withStateHandlers(\n { isOpen: false },\n {\n toggleIsOpen: ({ isOpen }) => () => ({ isOpen: !isOpen })\n }\n )\n);\n\nexport default composed(Element);\n","/**\n * Created by fkurzawa on 26.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport Element from \"./components/Element\";\n\nconst Faq = ({ faq }) => {\n return (\n \n {faq.description}\n \n {faq.elements &&\n faq.elements.map(element => (\n \n \n \n ))}\n \n \n );\n};\n\nFaq.propTypes = {\n faq: PropTypes.object.isRequired\n};\n\nconst Description = styled.p`\n font-size: 1em;\n color: ${({ theme }) => theme.text.primaryColor};\n`;\n\nconst ElementsList = styled.ul`\n padding: 0;\n margin: 0;\n list-style: none;\n`;\n\nconst ElementsListItem = styled.li`\n &:not(:last-child) {\n margin-bottom: 15px;\n }\n`;\n\nexport default Faq;\n","/**\n * Created by fkurzawa on 23.03.18.\n */\nimport React, { useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\n\nconst Thumbnail = ({ image, onClick }) => {\n const [isImage, setIsImage] = useState(true);\n\n return (\n <>\n {isImage ? (\n {\n if (event.key === \"Enter\") {\n onClick();\n }\n }}\n src={image.thumbnailSrc}\n alt={image.alt}\n title={image.caption}\n onError={() => setIsImage(false)}\n onClick={onClick}\n tabIndex={0}\n />\n ) : (\n {image.alt}\n )}\n \n );\n};\n\nThumbnail.propTypes = {\n image: PropTypes.object.isRequired,\n onClick: PropTypes.func\n};\n\nThumbnail.defaultProps = {\n onClick: () => {}\n};\n\nconst Image = styled.img`\n cursor: pointer;\n\n :focus-within {\n outline: ${({ theme }) => theme.focusOutline};\n }\n`;\n\nexport { Thumbnail };\n","/**\n * Created by fkurzawa on 19.03.18.\n */\nimport ApiConfig from \"./api.config\";\n\nconst apiUrl = `${ApiConfig.getEntryPoint()}files`;\n\nexport const getFileThumbnailUrl = (fileId: number) =>\n `${apiUrl}/${fileId}/thumbnail`;\n","import React, { useState } from \"react\";\nimport styled from \"styled-components\";\nimport { Thumbnail } from \"./components/Thumbnail\";\nimport { getFileThumbnailUrl } from \"../../../api/files\";\nimport Carousel, { Modal, ModalGateway } from \"react-images\";\n\nimport { getFileUrl } from \"modules/articles/api/getFileUrl\";\n\nconst Gallery = ({ files }) => {\n const images = files.map(file => ({\n id: file.id,\n src: getFileUrl(file.id),\n thumbnailSrc: getFileThumbnailUrl(file.id),\n caption: file.name,\n alt: file.name,\n isModal: true\n }));\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [currentIndex, setCurrentIndex] = useState(0);\n\n const toggleModal = () => {\n setIsModalOpen(isModalOpen => !isModalOpen);\n };\n\n return (\n <>\n \n {isModalOpen ? (\n \n {\n //Błąd biblioteki, tak naprawdę nie dostajemy typu CommonProps jako props\n return props?.data?.alt;\n },\n getCloseLabel: () => \"Zamknij (Esc)\",\n getFullscreenLabel: () => \"Cały ekran\",\n getNextTitle: () => \"Kolejny obraz (Prawa strzałka)\",\n getNextLabel: () => null,\n getPrevTitle: () => \"Poprzedni obraz (Lewa strzałka)\",\n getPrevLabel: () => null\n }}\n components={{\n Footer: ({ currentIndex, views, currentView }) => {\n return (\n \n \n \n {currentView.caption}\n \n {`${currentIndex +\n 1} z ${views.length}`}\n \n \n );\n }\n }}\n />\n \n ) : null}\n \n \n {images.map((image, index) => (\n {\n setCurrentIndex(index);\n toggleModal();\n }}\n />\n ))}\n \n \n );\n};\n\nconst ThumbnailsContainer = styled.div`\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n & > * {\n margin: 6px;\n }\n\n img:focus {\n outline: ${({ theme }) => theme.focusOutline};\n }\n`;\n\nconst StyledFooter = styled.div`\n background-color: #141414;\n bottom: 0;\n color: rgba(255, 255, 255, 0.9);\n display: flex;\n flex: 0 0 auto;\n font-size: 13px;\n justify-content: space-between;\n left: 0;\n padding: 30px 20px 20px;\n position: absolute;\n right: 0;\n transform: translateY(10px);\n transition: opacity 300ms, -webkit-transform 300ms, transform 300ms;\n z-index: 1;\n box-sizing: border-box;\n`;\n\nexport default Gallery;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\n\nimport { Grid } from \"../TableComponents/MetricGrid\";\n\nimport {\n VisitorNumber,\n UnitName,\n ProducerOfInformation,\n ResponsibleUser,\n CreationDate,\n TimeOfPublication,\n ExpirationDate,\n CreateInformationDate\n} from \"./components\";\n\nconst Metrics = ({\n views,\n unitName,\n createUser,\n responseUser,\n createDate,\n publicationDate,\n expireDate,\n createInformationDate,\n showCreateInformationDate\n}) => {\n return (\n \n \n \n \n \n \n \n \n {showCreateInformationDate && (\n \n )}\n \n );\n};\n\nMetrics.propTypes = {\n views: PropTypes.number,\n unitName: PropTypes.string,\n createUser: PropTypes.object,\n responseUser: PropTypes.object,\n createDate: PropTypes.string,\n publicationDate: PropTypes.string,\n expireDate: PropTypes.string,\n createInformationDate: PropTypes.string,\n showCreateInformationDate: PropTypes.bool\n};\n\nconst mapStateToProps = ({ context }) => ({\n showCreateInformationDate:\n context.showCreateInformationDate.toString() === \"true\"\n});\n\nexport default connect(mapStateToProps)(Metrics);\n","/**\n * Created by fkurzawa on 21.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { Overlay } from \"react-overlays\";\n\nimport { Grid, Row, Column } from \"../../TableComponents/MetricGrid\";\n\nconst OverlayContainer = styled.div`\n z-index: 1;\n position: absolute;\n top: 2em;\n left: 0;\n width: 100%;\n\n @media screen and (min-width: 768px) {\n left: auto;\n width: 420px;\n }\n\n @media screen and (min-width: 992px) {\n width: 500px;\n }\n`;\n\nconst OverlayContent = styled.div`\n padding: 6px;\n background: ${({ theme }) => theme.lightPrimaryColor};\n border: 1px solid ${({ theme }) => theme.dividerColor};\n border-radius: 1px;\n`;\n\nclass RelationOverlay extends React.Component {\n render() {\n const { data, show, toggle } = this.props;\n\n return (\n \n \n \n \n {data.map((dataRow, index) => (\n \n {dataRow.fieldName}\n \n \n ))}\n \n \n \n \n );\n }\n}\n\nRelationOverlay.propTypes = {\n data: PropTypes.array,\n show: PropTypes.bool.isRequired,\n toggle: PropTypes.func.isRequired\n};\n\nRelationOverlay.defaultProps = {\n data: []\n};\n\nexport { RelationOverlay };\n","/**\n * Created by fkurzawa on 21.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { compose, withStateHandlers } from \"recompose\";\n\nimport { RelationOverlay } from \"./RelationOverlay\";\n\nconst NonArticleRelation = ({ relation, showOverlay, toggleOverlay }) => {\n return (\n
\n \n {relation.title}\n \n \n
\n );\n};\n\nNonArticleRelation.propTypes = {\n relation: PropTypes.object.isRequired\n};\n\nconst composed = compose(\n withStateHandlers(\n { showOverlay: false },\n {\n toggleOverlay: ({ showOverlay }) => () => ({ showOverlay: !showOverlay })\n }\n )\n);\n\nexport default composed(NonArticleRelation);\n","/**\n * Created by fkurzawa on 21.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { Link as RouterLink } from \"react-router-dom\";\nimport NonArticleRelation from \"./NonArticleRelation\";\n\nconst RelationsNode = ({ name, relations }) => {\n return (\n <>\n {name}:\n \n {relations.map(relation => (\n \n \n {relation.link && (\n {relation.title}\n )}\n {!relation.link && }\n \n ))}\n \n \n );\n};\n\nRelationsNode.propTypes = {\n name: PropTypes.string.isRequired,\n relations: PropTypes.array\n};\n\nRelationsNode.defaultProps = {\n relations: []\n};\n\nconst Link = styled(RouterLink)`\n color: ${({ theme }) => theme.text.secondaryColor};\n text-decoration: underline;\n\n &:hover {\n color: ${({ theme }) => theme.secondaryColor};\n text-decoration: none;\n }\n\n :focus {\n outline: ${({ theme }) => theme.focusOutline};\n }\n`;\n\nconst Name = styled.h5`\n margin: 0;\n padding: 0.375rem 1rem;\n border-bottom: 1px solid ${({ theme }) => theme.dividerColor};\n line-height: 1em;\n font-size: 1em;\n color: ${({ theme }) => theme.text.secondaryColor};\n`;\n\nconst RelationsList = styled.ul`\n list-style: none;\n margin: 0;\n padding: 0;\n`;\n\nconst Relation = styled.li`\n display: flex;\n align-items: center;\n padding-left: 2rem;\n position: relative;\n\n a,\n button {\n cursor: pointer;\n display: inline-block;\n font-size: 0.875em;\n line-height: 0.875em;\n padding: 0.625em 0.375em;\n background: transparent;\n border: none;\n color: ${({ theme }) => theme.text.primaryColor};\n\n &:hover {\n text-decoration: none;\n color: ${({ theme }) => theme.secondaryColor};\n }\n }\n`;\n\nconst ArrowIcon = styled.span.attrs({\n className: \"fa fa-angle-double-right\"\n})`\n color: ${({ theme }) => theme.text.secondaryColor};\n margin-right: 0.75rem;\n`;\n\nexport default RelationsNode;\n","/**\n * Created by fkurzawa on 21.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport RelationsNode from \"./components/RelationsNode\";\nimport { compose, withProps } from \"recompose\";\nimport { groupBy } from \"lodash\";\n\nconst Relations = ({ relations }) => {\n return (\n \n {relations.map(relation => (\n \n \n \n ))}\n \n );\n};\n\nRelations.propTypes = {\n relations: PropTypes.array\n};\n\nRelations.defaultProps = {\n relations: []\n};\n\nconst RelationsNodeContainer = styled.div`\n &:not(:last-child) {\n margin-bottom: 1rem;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n`;\n\nconst composed = compose(\n withProps(({ relations }) => ({\n relations: (() => {\n const groupedRelations = groupBy(relations, \"relationType\");\n return Object.keys(groupedRelations).map(key => ({\n name: key,\n relations: groupedRelations[key]\n }));\n })()\n }))\n);\n\nexport default composed(Relations);\n","/**\n * Created by fkurzawa on 26.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { Link } from \"react-router-dom\";\n\nconst Tags = ({ tags }) => {\n return (\n \n {tags.map((tag, index) => (\n \n {tag.name}\n \n ))}\n \n );\n};\n\nTags.propTypes = {\n tags: PropTypes.array.isRequired\n};\n\nconst TagsList = styled.ul`\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n flex-wrap: wrap;\n`;\n\nconst TagsListItem = styled.li`\n margin-bottom: 12px;\n &:not(:last-child) {\n margin-right: 9px;\n }\n`;\n\nconst TagLink = styled(Link)`\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);\n border-radius: 1px;\n padding: 0.375rem 0.5rem;\n background: ${({ theme }) => theme.lightPrimaryColor};\n font-size: 0.875em;\n color: ${({ theme }) => theme.text.primaryColor};\n\n &:hover {\n text-decoration: none;\n color: ${({ theme }) => theme.secondaryColor};\n }\n`;\n\nexport default Tags;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { Link as RouterLink } from \"react-router-dom\";\nimport Translate from \"./../../translate\";\n\nconst HistoricalLink = ({ link }) => {\n return (\n \n \n Click here to go to the most recent version of the article.\n \n \n );\n};\n\nHistoricalLink.propTypes = {\n link: PropTypes.string.isRequired\n};\n\nconst Link = styled(RouterLink)`\n padding: 1rem 0;\n color: ${({ theme }) => theme.text.secondaryColor};\n font-size: 1.125em;\n font-weight: bold;\n text-decoration: underline;\n\n &:hover {\n cursor: pointer;\n text-decoration: none;\n color: ${({ theme }) => theme.secondaryColor};\n }\n\n @media screen and (max-width: 767px) {\n margin-top: 1rem;\n }\n`;\n\nexport default HistoricalLink;\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nconst Stamp = ({ children }) => {\n return (\n \n {children}\n \n );\n};\n\nconst StampContainer = styled.div`\n display: flex;\n justify-content: flex-end;\n`;\n\nconst StampContent = styled.div`\n border: 4px solid ${({ theme }) => theme.errorColor};\n color: ${({ theme }) => theme.errorColor};\n border-radius: 5px;\n font-size: 1.5em;\n font-weight: bold;\n padding: 5px 10px;\n display: inline-block;\n margin: 15px 10px 15px 15px;\n text-align: center;\n transform: rotate(15deg);\n vertical-align: middle;\n word-wrap: break-word;\n width: 170px;\n`;\n\nexport { Stamp };\n","/**\n * Created by fkurzawa on 16.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\n\nimport { User } from \"../../TableComponents/User\";\n\nconst DateTd = styled.td`\n min-width: 100px;\n`;\n\nconst TableRow = ({ date, user, description, showReason, reason }) => {\n return (\n \n {date}\n \n \n \n {description}\n {showReason && {reason}}\n \n );\n};\n\nTableRow.propTypes = {\n date: PropTypes.string,\n user: PropTypes.object,\n description: PropTypes.string,\n showReason: PropTypes.bool,\n reason: PropTypes.string\n};\n\nexport default TableRow;\n","/**\n * Created by fkurzawa on 16.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\n\nconst ResponsiveTable = ({ children }) => (\n
\n {children}
\n
\n);\n\nResponsiveTable.propTypes = {\n children: PropTypes.node.isRequired\n};\n\nconst Table = styled.table.attrs({ className: \"table\" })`\n && {\n font-size: 0.75em;\n color: ${({ theme }) => theme.text.secondaryColor};\n\n th,\n td {\n border-color: ${({ theme }) => theme.dividerColor};\n padding-top: 9px;\n padding-bottom: 9px;\n word-break: keep-all;\n }\n\n th {\n border-top: none;\n }\n }\n`;\n\nexport { ResponsiveTable };\n","/**\n * Created by fkurzawa on 16.03.18.\n */\nimport React from \"react\";\n\nimport { IArticleRegistryListElement } from \"modules/contentRegistry/types/IArticleRegistryListElement\";\n\nimport TableRow from \"./TableRow\";\nimport { ResponsiveTable } from \"../../TableComponents/ResponsiveTable\";\n\ninterface IProps {\n showArticleEditReason: boolean;\n items: IArticleRegistryListElement[];\n}\n\nconst Table = ({ showArticleEditReason, items }: IProps) => {\n return (\n \n Historia zmian\n \n \n Czas\n Dane osoby zmieniającej\n Opis zmiany\n {showArticleEditReason && Powód zmiany}\n \n \n \n {items.map(item => (\n \n ))}\n \n \n );\n};\n\nexport { Table };\n","import React, { useState } from \"react\";\n\nimport { IArticleRegistries } from \"modules/contentRegistry/types/IArticleRegistries\";\nimport { articlesKeys } from \"modules/articles/keys\";\n\nimport { getArticleRegistries } from \"api/articles\";\n\nimport { getOffsetFromPage, getPageFromOffset } from \"utils\";\n\nimport Pagination from \"../../pagination\";\nimport { Table } from \"./components/Table\";\nimport { Panel } from \"../../Panel\";\nimport { RemoteData } from \"../../RemoteData/RemoteData\";\n\ninterface IProps {\n articleId: number;\n}\n\nconst Registries = ({ articleId }: IProps) => {\n const [limit, setLimit] = useState(10);\n const [offset, setOffset] = useState(0);\n\n const handleLimitChange = (limit: number) => {\n setLimit(limit);\n setOffset(0);\n };\n\n const handlePageChange = (page: number) => {\n setOffset(getOffsetFromPage(page, limit));\n };\n\n return (\n \n fetcher={() => getArticleRegistries(articleId, limit, offset)}\n queryKey={[articlesKeys.articleRegistries, limit, offset, articleId]}\n >\n {({ elements, total, limit, offset, showArticleEditReason }) => {\n if (total === 0) {\n return <>;\n }\n setLimit(limit);\n setOffset(offset);\n const totalPages = Math.ceil(total / limit);\n const showPagination = total > 10;\n\n return (\n \n \n {showPagination && (\n \n )}\n \n );\n }}\n \n );\n};\n\nexport { Registries };\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { Link } from \"react-router-dom\";\n\nimport { DangerousInnerHtml } from \"components/DangerousInnerHtml\";\n\nimport { ResponsiveTable } from \"../../TableComponents/ResponsiveTable\";\n\nconst StyledLink = styled(Link)`\n color: ${({ theme }) => theme.text.primaryColor};\n\n &:hover {\n color: ${({ theme }) => theme.secondaryColor};\n text-decoration: none;\n }\n`;\n\nconst Table = ({ items }) => {\n return (\n \n Starsze wersje artykułu\n \n \n Lp.\n Tytuł\n Czas\n Wersja\n \n \n \n {items.map((item, index) => (\n \n {index + 1}\n \n \n \n \n \n {item.date}\n {item.version}\n \n ))}\n \n \n );\n};\n\nTable.propTypes = {\n items: PropTypes.array.isRequired\n};\n\nTable.defaultProps = {\n items: []\n};\n\nexport default Table;\n","import React, { useState } from \"react\";\n\nimport { getArticleVersions } from \"api/articles\";\n\nimport { articlesKeys } from \"modules/articles/keys\";\n\nimport { getOffsetFromPage, getPageFromOffset } from \"../../../utils\";\n\nimport Table from \"./components/Table\";\nimport Pagination from \"../../pagination\";\n\nimport { IArticleVersions } from \"types/IArticleVersions\";\nimport { Panel } from \"../../Panel\";\nimport { RemoteData } from \"../../RemoteData/RemoteData\";\n\ninterface IProps {\n articleId: number;\n}\n\nconst Versions = ({ articleId }: IProps) => {\n const [limit, setLimit] = useState(10);\n const [offset, setOffset] = useState(0);\n\n const handleLimitChange = (limit: number) => {\n setLimit(limit);\n setOffset(0);\n };\n\n const handlePageChange = (page: number) => {\n setOffset(getOffsetFromPage(page, limit));\n };\n\n return (\n \n queryKey={[articlesKeys.articleVersions, limit, offset, articleId]}\n fetcher={() => getArticleVersions(articleId, limit, offset)}\n >\n {({ elements, limit, offset, total }) => {\n if (total === 0) {\n return <>;\n }\n setLimit(limit);\n setOffset(offset);\n const showPagination = total > 10;\n const totalPages = Math.ceil(total / limit);\n return (\n \n \n {showPagination && (\n 1}\n currentNumber={limit}\n onNumberChange={handleLimitChange}\n current={getPageFromOffset(offset, limit)}\n total={totalPages}\n onPageChange={handlePageChange}\n />\n )}\n \n );\n }}\n \n );\n};\n\nexport { Versions };\n","export const additionalAllowedTags = [\n \"img\",\n \"aside\",\n \"video\",\n \"iframe\",\n \"source\",\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\",\n \"ul\",\n \"ol\",\n \"li\",\n \"blockquote\",\n \"p\",\n \"u\",\n \"em\",\n \"strong\",\n \"br\",\n \"a\",\n \"form\",\n \"input\",\n \"noscript\",\n \"span\",\n \"button\",\n \"video\",\n \"div\",\n \"table\",\n \"tbody\",\n \"tr\",\n \"td\"\n];\n","export const allowedAttributes = {\n \"*\": [\n \"id\",\n \"class\",\n \"style\",\n \"data-module\",\n \"data-url\",\n \"width\",\n \"height\",\n \"src\",\n \"frameborder\",\n \"name\",\n \"title\",\n \"border\",\n \"data-contact-form-id\",\n \"data-forward\",\n \"data-pdf\",\n \"data-xml\",\n \"data-print\",\n \"data-contact-form-id\",\n \"align\"\n ],\n a: [\"href\", \"name\", \"target\"],\n body: [\"onload\"],\n form: [\"method\", \"action\"],\n input: [\"type\", \"name\", \"value\"],\n doctype: [\"html\"],\n button: [\"style\", \"class\", \"type\"],\n source: [\"src\", \"type\"],\n video: [\"width\", \"height\", \"controls\", \"src\"],\n div: [\"class\", \"style\", \"data-module\", \"data-url\"],\n iframe: [\"width\", \"height\", \"style\", \"src\", \"frameborder\"],\n table: [\"border\", \"cellspacing\", \"cellpadding\"],\n td: [\"width\", \"valign\", \"colspan\", \"rowspan\"],\n img: [\"alt\"]\n};\n","import { default as sanitizeHtmlLib } from \"sanitize-html\";\n\nimport { additionalAllowedTags } from \"./additionalAllowedTags\";\nimport { allowedAttributes } from \"./allowedAttributes\";\n\nexport const sanitizeHtml = (html: string) => {\n return sanitizeHtmlLib(html, {\n allowedAttributes: allowedAttributes,\n allowedTags: sanitizeHtmlLib.defaults.allowedTags.concat(\n additionalAllowedTags\n ),\n allowedSchemes: sanitizeHtmlLib.defaults.allowedSchemes.concat([\"data\"])\n });\n};\n","import React, { useRef, useEffect, useState } from \"react\";\nimport ReactPlayer from \"react-player\";\nimport styled from \"styled-components\";\nimport PropTypes from \"prop-types\";\n\nimport { changeAdditionalVideoPlayerAttributes } from \"./changeAdditionalVideoPlayerAttributes\";\n\nconst VideoPlayer = ({ url }) => {\n const [isVideoReady, setIsVideoReady] = useState(false);\n const [autoPlaying, setAutoPlaying] = useState(false);\n const innerRef = useRef(null);\n const ref = useRef(null);\n const playerContainer = ref && ref.current;\n\n useEffect(() => {\n if (innerRef && innerRef.current && innerRef.current.offsetHeight > 0) {\n setAutoPlaying(true);\n }\n }, [innerRef]);\n\n useEffect(() => {\n changeAdditionalVideoPlayerAttributes(playerContainer);\n }, [playerContainer, isVideoReady]);\n\n return (\n \n setIsVideoReady(true)}\n id=\"VideoPlayer\"\n className=\"react-player\"\n url={url}\n controls={true}\n playing={autoPlaying}\n />\n \n );\n};\n\nVideoPlayer.propTypes = {\n url: PropTypes.string\n};\n\nconst PlayerWrapper = styled.div`\n position: relative;\n padding-top: 56.25% /* Player ratio: 100 / (1280 / 720) */;\n`;\n\nconst StyledReactPlayer = styled(ReactPlayer)`\n position: absolute;\n top: 0;\n left: 0;\n`;\n\nexport { VideoPlayer };\n","//podmiana atrybutów aby validator w3c nie wyrzucał błędów ze względu na przeadwnione atrybuty\nexport const changeAdditionalVideoPlayerAttributes = (\n playerRefCurrent: any\n) => {\n const playerIframe =\n playerRefCurrent && playerRefCurrent.getElementsByTagName(\"iframe\")[0];\n\n if (playerIframe) {\n playerIframe.removeAttribute(\"frameborder\");\n playerIframe.removeAttribute(\"width\");\n playerIframe.removeAttribute(\"height\");\n playerIframe.setAttribute(\"allowfullscreen\", \"\");\n playerIframe.setAttribute(\"style\", \"width: 100%; height: 100%\");\n }\n};\n","const MK_MODULES = {\n ACTION_BUTTONS: \"actionBtns\",\n GOOGLE_MAP: \"gmap\",\n ORGANIZATIONAL_UNITS: \"organization-units\",\n VIDEO_STREAM: \"video-stream\"\n};\n\nexport default MK_MODULES;\n","import React from \"react\";\n\nimport { VideoPlayer } from \"../../../videoPlayer\";\nimport MK_MODULES from \"./mk-modules.const\";\n\nexport const replaceDataModuleVideoStreamInstructions = {\n replaceChildren: true,\n shouldProcessNode: node =>\n node.attribs && node.attribs[\"data-module\"] === MK_MODULES.VIDEO_STREAM,\n processNode: node => \n};\n","export const contentKeys = {\n contactFormModal: \"contactFormModal\"\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { getContactForm } from \"api/contactForms\";\n\nimport { SpinnerButton } from \"components/HookForm\";\n\nimport { FormGroup } from \"components/HookForm\";\n\nimport Modal from \"./../../../../../modal/Modal\";\nimport {Button} from \"../../../../../buttons\";\nimport { ContactForm } from \"../../../../../../containers/contact-form/components/ContactForm\";\nimport { RemoteDataSuspense } from \"../../../../../RemoteData/RemoteDataSuspense\";\nimport { IContactForm } from \"../../../../../../types/IContactForm\";\nimport { contentKeys } from \"../../../keys\";\nimport { Loader } from \"../../../../../NewLoader\";\n\ninterface IProps {\n show: boolean;\n onClose: () => void;\n contactFormId: number;\n}\n\nconst ContactFormModal = ({ show, onClose, contactFormId }: IProps) => {\n return (\n \n \n \n fetcher={() => getContactForm(contactFormId)}\n queryKey={[contentKeys.contactFormModal, contactFormId]}\n fallback={\n \n \n \n }\n >\n {contactForm => (\n \n \n \n \n Zamknij\n \n \n \n )}\n \n \n \n );\n};\n\nconst Content = styled.div`\n min-height: 300px;\n padding: 1rem;\n @media screen and (min-width: 768px) {\n min-width: 600px;\n }\n`;\n\nconst FallBackContainer = styled(Content)`\n text-align: center;\n display: flex;\n`;\n\nconst ButtonsFormGroup = styled(FormGroup)`\n display: flex;\n & > *:not(:last-child) {\n margin-right: 1rem;\n }\n`;\n\nexport { ContactFormModal };\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { postArticleForward } from \"../../../../../../api/articles\";\n\nimport { Button } from \"../../../../../buttons\";\nimport { IForwardValues } from \"./types/IForwardValues\";\nimport { useForwardValuesValidationSchema } from \"./useForwardValuesValidationSchema\";\n\nimport {\n Form,\n TextAreaField,\n TextField,\n RecaptchaField,\n SpinnerButton,\n FormGroup\n} from \"components/HookForm\";\n\ninterface IProps {\n onClose: () => void;\n onSuccess: () => void;\n onError: (errorMessage: string) => void;\n articleId: number;\n isHistoricalArticle: boolean;\n}\n\nconst ForwardModalForm = ({\n articleId,\n onClose,\n onError,\n onSuccess,\n isHistoricalArticle\n}: IProps) => {\n const onSubmit = async (model: IForwardValues) => {\n let formData = new FormData();\n Object.keys(model).forEach(key => {\n formData.append(key, model[key as keyof typeof model]);\n });\n try {\n await postArticleForward(articleId, formData, isHistoricalArticle);\n onSuccess();\n } catch (e) {\n onError(e.response.data.message);\n }\n };\n\n return (\n <>\n \n onSubmit={onSubmit}\n validationSchema={useForwardValuesValidationSchema()}\n defaultValues={{\n \"recipient-email\": \"\",\n \"referrer-email\": \"\",\n content: \"\",\n \"recaptcha-response\": null\n }}\n >\n {() => {\n return (\n <>\n \n \n \n \n \n \n\n \n \n onClose()}\n >\n Zamknij\n \n \n \n );\n }}\n \n \n );\n};\n\nconst ButtonsFormGroup = styled(FormGroup)`\n display: flex;\n & > *:not(:last-child) {\n margin-right: 1rem;\n }\n`;\n\nexport { ForwardModalForm };\n","import * as yup from \"yup\";\nimport { IForwardValues } from \"./types/IForwardValues\";\n\nimport { emailValidationSchema } from \"utils/yup/emailValidationSchema\";\nimport { validationMessages } from \"utils/yup/messages\";\nimport { useRecaptchaValidationSchema } from \"utils/yup/useRecaptchaValidationSchema\";\n\nexport const useForwardValuesValidationSchema = () => {\n return yup.object().shape({\n \"recipient-email\": emailValidationSchema.required(\n validationMessages.requiredField\n ),\n \"referrer-email\": emailValidationSchema.required(\n validationMessages.requiredField\n ),\n content: yup.string().required(validationMessages.requiredField),\n \"recaptcha-response\": useRecaptchaValidationSchema()\n });\n};\n","import React, { useState } from \"react\";\nimport styled from \"styled-components\";\n\nimport { FormGroup } from \"components/HookForm\";\n\nimport { ForwardModalForm } from \"./ForwardModalForm\";\nimport Modal from \"./../../../../../modal/Modal\";\nimport { Alert, Notification } from \"../../../../../Alert\";\n\ninterface IProps {\n show: boolean;\n articleId: number;\n onClose: () => void;\n isHistoricalArticle: boolean;\n}\n\nconst ForwardModal = ({ show, articleId, onClose, isHistoricalArticle }: IProps) => {\n const [alert, setAlert] = useState<{\n type: Notification;\n message: string;\n } | null>(null);\n\n const onSuccess = () => {\n setAlert({\n type: Notification.SUCCESS,\n message: \"Wiadomość została wysłana\"\n });\n };\n\n const onError = (errorMessage: string) => {\n setAlert({\n type: Notification.ERROR,\n message: errorMessage\n });\n };\n\n const handleClose = () => {\n onClose();\n setAlert(null);\n };\n\n return (\n \n \n \n {alert && {alert.message}}\n \n \n \n \n );\n};\n\nconst Content = styled.div`\n padding: 1rem;\n\n @media screen and (min-width: 768px) {\n min-width: 600px;\n }\n`;\n\nexport { ForwardModal };\n","import axios from \"axios\";\nimport ApiConfig from \"./api.config\";\nimport { IArticle } from \"../types/IArticle\";\n\nconst apiUrl = `${ApiConfig.getEntryPoint()}article-versions`;\n\nexport const getArticleVersion = (\n articleVersionId: number\n): Promise => {\n return axios\n .get(`${apiUrl}/${articleVersionId}`)\n .then(response => response.data);\n};\n\nexport const getArticleVersionXmlUrl = (versionId: number) =>\n `${apiUrl}/${versionId}/xml`;\n\nexport const getArticleVersionPdfUrl = (versionId: number) =>\n `${apiUrl}/${versionId}/pdf`;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { compose, pure, withHandlers, withStateHandlers } from \"recompose\";\n\nimport { Button } from \"components/buttons\";\n\nimport { ForwardModal, ContactFormModal } from \"./components\";\nimport {\n getArticlePdfUrl,\n getArticleXmlUrl\n} from \"../../../../../api/articles\";\nimport {\n getArticleVersionPdfUrl,\n getArticleVersionXmlUrl\n} from \"../../../../../api/articleVersions\";\n\nconst ActionButtons = ({\n isHistorical,\n articleId,\n contactFormId,\n contactFormOpened,\n closeContactForm,\n closeForward,\n downloadPdf,\n downloadXml,\n forwardOpened,\n isPreview,\n showContactForm,\n showForward,\n showDownloadPdf,\n showDownloadXml,\n showPrint,\n openContactForm,\n openForward,\n print\n}) => {\n return (\n <>\n {showForward && !isPreview && (\n \n )}\n {showContactForm && !isPreview && (\n \n )}\n \n {showContactForm && (\n
  • \n \n \n \n
  • \n )}\n {showForward && (\n
  • \n \n \n \n
  • \n )}\n {showDownloadPdf && (\n
  • \n \n \n \n
  • \n )}\n {showDownloadXml && (\n
  • \n \n \n \n
  • \n )}\n {showPrint && (\n
  • \n \n \n \n
  • \n )}\n
    \n \n );\n};\n\nActionButtons.propTypes = {\n articleId: PropTypes.string.isRequired,\n closeContactForm: PropTypes.func.isRequired,\n closeForward: PropTypes.func.isRequired,\n contactFormId: PropTypes.number,\n contactFormOpened: PropTypes.bool,\n downloadPdf: PropTypes.func.isRequired,\n downloadXml: PropTypes.func.isRequired,\n forwardOpened: PropTypes.bool,\n isPreview: PropTypes.bool,\n openContactForm: PropTypes.func.isRequired,\n openForward: PropTypes.func.isRequired,\n print: PropTypes.func.isRequired,\n showContactForm: PropTypes.bool,\n showForward: PropTypes.bool,\n showDownloadPdf: PropTypes.bool,\n showDownloadXml: PropTypes.bool,\n showPrint: PropTypes.bool\n};\n\nconst Container = styled.ul`\n margin: 5px 0 0 0;\n list-style-type: none;\n display: flex;\n justify-content: flex-end;\n\n & > *:not(:last-child) {\n margin-right: 0.5rem;\n }\n\n @media print {\n display: none;\n }\n`;\n\nconst enhance = compose(\n pure,\n withHandlers({\n downloadPdf: ({ articleId, isHistorical }) => () => {\n window.location.href = isHistorical\n ? getArticleVersionPdfUrl(articleId)\n : getArticlePdfUrl(articleId);\n },\n downloadXml: ({ articleId, isHistorical }) => () => {\n window.location.href = isHistorical\n ? getArticleVersionXmlUrl(articleId)\n : getArticleXmlUrl(articleId);\n },\n print: () => () => {\n window.print();\n }\n }),\n withStateHandlers(\n { forwardOpened: false },\n {\n openForward: () => () => ({ forwardOpened: true }),\n closeForward: () => () => ({ forwardOpened: false })\n }\n ),\n withStateHandlers(\n { contactFormOpened: false },\n {\n openContactForm: () => () => ({ contactFormOpened: true }),\n closeContactForm: () => () => ({ contactFormOpened: false })\n }\n )\n);\n\nexport { ActionButtons, enhance };\nexport default enhance(ActionButtons);\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { InfoWindow as GoogleInfoWindow } from \"react-google-maps\";\n\nconst InfoWindow = ({ marker, onCloseClick }) => {\n const { name, address, description } = marker;\n return (\n \n \n {name && {name}}\n {address &&
    {address}
    }\n {description && {description}}\n
    \n
    \n );\n};\n\nInfoWindow.propTypes = {\n marker: PropTypes.object.isRequired,\n onCloseClick: PropTypes.func.isRequired\n};\n\nconst InfoWindowElement = styled.div`\n margin: 0;\n padding: 0;\n color: ${({ theme }) => theme.text.primaryColor};\n text-align: center;\n`;\n\nconst Name = styled(InfoWindowElement.withComponent(\"h5\"))`\n font-size: 1.125em;\n text-transform: uppercase;\n`;\n\nconst Address = InfoWindowElement.withComponent(\"address\");\n\nconst Description = styled(InfoWindowElement.withComponent(\"p\"))`\n margin-top: 1.125rem;\n border-top: 1px solid ${({ theme }) => theme.dividerColor};\n padding-top: 1rem;\n`;\n\nexport default InfoWindow;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { compose, withProps } from \"recompose\";\nimport {\n withGoogleMap,\n withScriptjs,\n GoogleMap as ReactGoogleMap,\n Marker\n} from \"react-google-maps\";\nimport InfoWindow from \"./InfoWindow\";\n\nconst GoogleMap = ({\n mapConfiguration,\n openedMarkerId,\n onMarkerClick,\n onMarkerCloseClick\n}) => {\n return (\n
    \n \n {mapConfiguration.markers.map(marker => (\n onMarkerClick(marker.id)}\n >\n {openedMarkerId === marker.id && (\n \n )}\n \n ))}\n \n
    \n );\n};\n\nGoogleMap.propTypes = {\n mapConfiguration: PropTypes.shape({\n centerLat: PropTypes.number.isRequired,\n centerLng: PropTypes.number.isRequired,\n markers: PropTypes.arrayOf(\n PropTypes.shape({\n address: PropTypes.string,\n description: PropTypes.string,\n id: PropTypes.number,\n lat: PropTypes.number,\n lng: PropTypes.number,\n name: PropTypes.string,\n position: PropTypes.number\n })\n ),\n zoom: PropTypes.number.isRequired\n }),\n openedMarkerId: PropTypes.number,\n onMarkerClick: PropTypes.func.isRequired,\n onMarkerCloseClick: PropTypes.func.isRequired\n};\n\nconst composed = compose(\n withProps({\n loadingElement:
    ,\n containerElement:
    ,\n mapElement:
    \n }),\n withScriptjs,\n withGoogleMap\n);\n\nexport default composed(GoogleMap);\n","import { map as createMap, marker as createMarker, tileLayer } from \"leaflet\";\nimport PropTypes from \"prop-types\";\nimport React, { useEffect, useRef, useState } from \"react\";\nimport styled, { withTheme } from \"styled-components\";\nimport uuid from \"uuid/v4\";\n\nconst LeafletMap = ({\n mapConfiguration,\n mapProviderData,\n onMarkerClick,\n onMarkerCloseClick,\n openedMarkerId,\n theme\n}) => {\n const ref = useRef(null);\n const leafletMapContainer = ref?.current;\n\n const [mapId] = useState(`map-${uuid()}`);\n const [markers, setMarkers] = useState({});\n\n let map = null;\n useEffect(() => {\n // eslint-disable-next-line\n map = createMap(mapId).setView(\n [mapConfiguration.centerLat, mapConfiguration.centerLng],\n mapConfiguration.zoom\n );\n }, [mapId]);\n\n useEffect(() => {\n //Po to, żeby pozbyć się atrybutu role, który w tym kontekście nie jest akceptowany przez walidator w3c bo imgages są puste\n //konkretnie chodzi o kafelki z kawałkami mapy\n //@todo: Warto sprawdzić jak to działa w nowszych wersjach biblioteki leaflet, na ten moment brak czasu\n const images =\n leafletMapContainer && leafletMapContainer.getElementsByTagName(\"img\");\n if (images) {\n for (let i = 0; i < images.length; i++) {\n images[i].removeAttribute(\"role\");\n }\n }\n }, [leafletMapContainer]);\n\n useEffect(() => {\n map &&\n tileLayer(mapProviderData.mapUrl, {\n attribution: `© OpenStreetMap contributors, © CartoDB, Maps © ${mapProviderData.providerName}`,\n maxZoom: 18,\n id: \"mapbox.streets\",\n apiKey: mapProviderData.apiKey\n }).addTo(map);\n\n let tempMarkers = {};\n map &&\n mapConfiguration.markers.forEach(marker => {\n const tempMarker = createMarker([marker.lat, marker.lng])\n .addTo(map)\n .bindPopup(renderPopup(marker, theme))\n .on(\"popupopen\", () => onMarkerClick(marker.id))\n .on(\"popupclose\", () => onMarkerCloseClick());\n tempMarkers[marker.id] = tempMarker;\n });\n map && setMarkers(tempMarkers);\n }, [\n map,\n mapConfiguration,\n mapId,\n mapProviderData.apiKey,\n mapProviderData.mapUrl,\n mapProviderData.providerName,\n mapProviderData.providerUrl,\n onMarkerClick,\n onMarkerCloseClick,\n theme\n ]);\n\n useEffect(() => {\n const marker = markers[openedMarkerId];\n if (marker) {\n marker.openPopup();\n }\n }, [markers, openedMarkerId]);\n\n return (\n
    \n \n
    \n );\n};\n\nconst renderPopup = (\n { name, address, description },\n theme\n) => `
    \n${\n name\n ? `
    ${name}
    `\n : \"\"\n}\n${address ? `
    ${address}
    ` : \"\"}\n${\n description\n ? `

    ${description}

    `\n : \"\"\n}\n
    `;\n\nconst Container = styled.div`\n height: 400px;\n z-index: 0;\n`;\n\nLeafletMap.propTypes = {\n mapConfiguration: PropTypes.shape({\n centerLat: PropTypes.number.isRequired,\n centerLng: PropTypes.number.isRequired,\n markers: PropTypes.arrayOf(\n PropTypes.shape({\n address: PropTypes.string,\n description: PropTypes.string,\n id: PropTypes.number,\n lat: PropTypes.number,\n lng: PropTypes.number,\n name: PropTypes.string,\n position: PropTypes.number\n })\n ),\n zoom: PropTypes.number.isRequired\n }),\n mapProviderData: PropTypes.shape({\n provider: PropTypes.string,\n providerName: PropTypes.string,\n providerUrl: PropTypes.string,\n apiKey: PropTypes.string,\n mapUrl: PropTypes.string\n }),\n openedMarkerId: PropTypes.number,\n onMarkerClick: PropTypes.func.isRequired,\n onMarkerCloseClick: PropTypes.func.isRequired\n};\n\nexport default withTheme(LeafletMap);\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\n\nconst Markers = ({ markers, openedMarkerId, onMarkerClick }) => {\n const selectMarker = (event, markerId) => {\n if (event.type === \"click\" || event.key === \"Enter\" || event.key === \" \") {\n event.preventDefault();\n onMarkerClick(markerId);\n }\n };\n\n return (\n \n {false &&
    Lista podmiotów:
    }\n \n {markers.map(marker => (\n selectMarker(event, marker.id)}\n onKeyPress={event => selectMarker(event, marker.id)}\n >\n {marker.name}\n {marker.address}\n \n ))}\n \n
    \n );\n};\n\nMarkers.propTypes = {\n markers: PropTypes.array,\n openedMarkerId: PropTypes.number,\n onMarkerClick: PropTypes.func\n};\n\nMarkers.defaultProps = {\n markers: [],\n onMarkerClick: () => {}\n};\n\nconst Header = styled.h4`\n font-size: 1em;\n font-weight: bold;\n color: ${({ theme }) => theme.text.primaryColor};\n`;\n\nconst MarkersList = styled.ul`\n list-style: none;\n padding: 0;\n margin: 0;\n height: 100%;\n`;\n\nconst Marker = styled.li`\n font-size: 0.875em;\n color: ${({ theme }) => theme.text.primaryColor};\n padding: 0.625rem 0.5rem;\n border-bottom: 1px solid ${({ theme }) => theme.dividerColor};\n border-right: ${({ theme, isActive }) =>\n isActive ? `6px solid ${theme.secondaryColor}` : \"none\"};\n &:hover {\n cursor: pointer;\n color: ${({ theme }) => theme.secondaryColor};\n border-bottom-color: ${({ theme }) => theme.secondaryColor};\n }\n`;\n\nconst MarkerName = styled.span`\n font-weight: bold;\n`;\n\nconst MarkerAddress = styled.address`\n margin: 0;\n`;\n\nexport default Markers;\n","import React, { Fragment, useEffect, useState } from \"react\";\nimport { useMappedState } from \"redux-react-hook\";\nimport styled from \"styled-components\";\nimport { getGoogleMapConfiguration } from \"../../../../../api/contexts\";\nimport { GoogleMap, LeafletMap, Markers } from \"./components\";\n\nconst Maps = () => {\n const { friendlyUrl, mapProviderData } = useMappedState(({ context }) => ({\n friendlyUrl: context.contextFriendlyUrl,\n mapProviderData: context.mapProviderData\n }));\n\n const [mapConfiguration, setMapConfiguration] = useState();\n const [openedMarkerId, setOpenedMarkerId] = useState(null);\n\n useEffect(() => {\n (async () => {\n const mapConfiguration = await getGoogleMapConfiguration(friendlyUrl);\n setMapConfiguration({\n ...mapConfiguration,\n centerLat: Number(mapConfiguration.centerLat),\n centerLng: Number(mapConfiguration.centerLng),\n markers: mapConfiguration.markers.map(marker => ({\n ...marker,\n lat: Number(marker.lat),\n lng: Number(marker.lng)\n }))\n });\n })();\n }, [friendlyUrl]);\n\n return (\n \n {mapConfiguration && (\n \n \n {(() => {\n switch (mapProviderData.provider) {\n case \"google\":\n return (\n setOpenedMarkerId(null)}\n openedMarkerId={openedMarkerId}\n />\n );\n default:\n return (\n setOpenedMarkerId(null)}\n openedMarkerId={openedMarkerId}\n />\n );\n }\n })()}\n \n \n \n \n \n )}\n \n );\n};\n\nconst MapContainer = styled.div`\n flex-grow: 1;\n height: 350px;\n\n @media screen and (min-width: 576px) {\n height: 400px;\n }\n\n @media screen and (min-width: 992px) {\n height: 450px;\n }\n\n @media screen and (min-width: 1200px) {\n height: 500px;\n }\n`;\n\nconst MarkersContainer = styled.div`\n min-width: 210px;\n`;\n\nconst Container = styled.div`\n display: flex;\n\n @media screen and (max-width: 991px) {\n flex-direction: column;\n & > *:not(:last-child) {\n margin-bottom: 1rem;\n }\n }\n\n @media screen and (min-width: 992px) {\n & > *:not(:last-child) {\n margin-right: 1rem;\n }\n }\n`;\n\nexport default Maps;\n","import React from \"react\";\nimport MK_MODULES from \"./mk-modules.const\";\nimport { ActionButtons } from \"../components\";\n\nexport const processActionButtons = (articleId, isHistorical, isPreview) => {\n return {\n shouldProcessNode: node =>\n node.attribs && node.attribs[\"data-module\"] === MK_MODULES.ACTION_BUTTONS,\n processNode: (node, children, index) => (\n \n )\n };\n};\n","import React, { useState } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport styled from \"styled-components\";\nimport { useQueryClient } from \"react-query\";\nimport { useDispatch } from \"redux-react-hook\";\n\nimport { getOrganizationalUnits } from \"api/contexts\";\nimport { getAllByUrl } from \"api/urls\";\n\nimport { prepareUrl } from \"redux/utils/prepareUrl\";\nimport { fetchContextSucceeded } from \"redux/modules/context\";\nimport {\n fetchAdditionalMenuSucceeded,\n fetchMenuSucceeded\n} from \"redux/modules/menu\";\nimport { createSearchUrl } from \"redux/utils/createSearchUrl\";\nimport { shouldCreateAdditionalMenuItem } from \"redux/utils/shouldCreateAdditionalMenuItem\";\nimport { getEnabledMenuElements } from \"utils/menu\";\n\nimport { createRedirectUrl } from \"../../../../routes/utils/createRedirectUrl\";\n\nimport { applicationKeys } from \"App/keys\";\nimport { IUnitTypeWithUnits } from \"types/IUnitTypeWithUnits\";\nimport { RemoteDataSuspense } from \"../../../../RemoteData/RemoteDataSuspense\";\nimport { AppLoader } from \"../../../../../App/AppLoader\";\n\nconst OrganizationalUnits = () => {\n const history = useHistory();\n const dispatch = useDispatch();\n const queryClient = useQueryClient();\n const [isLoading, setIsLoading] = useState(false);\n\n //@todo: Refactoring potrzebny, zwłaszcza funkcja onContextChange\n\n const onContextChange = async (friendlyUrl: string) => {\n setIsLoading(true);\n try {\n const newGetAll = await getAllByUrl(prepareUrl(`/${friendlyUrl}`));\n setIsLoading(false);\n const { context, resource, menu } = newGetAll;\n\n const contextFriendlyUrl = resource.context || \"default\";\n const separator = context.urlType === \"full\" ? \"/\" : \",\";\n const isNotDefaultContext = contextFriendlyUrl !== \"default\";\n const unit = `${contextFriendlyUrl === \"default\" ? \"\" : friendlyUrl}`;\n const hasSeparator = isNotDefaultContext && context.startUrl !== \"\";\n\n const searchUrl = createSearchUrl(\n context.urlType,\n resource.lang,\n contextFriendlyUrl\n );\n\n const enhancedContext = {\n ...context,\n contextFriendlyUrl,\n searchUrl\n };\n\n const redirectUrl = createRedirectUrl(\n unit,\n hasSeparator,\n separator,\n newGetAll.context.startArticleId,\n newGetAll.context.startMenuId,\n newGetAll.context.startUrl\n );\n\n history.push(redirectUrl);\n\n dispatch(fetchContextSucceeded(enhancedContext));\n dispatch(fetchMenuSucceeded(menu || []));\n if (shouldCreateAdditionalMenuItem(context)) {\n const additionalMenuElements = getEnabledMenuElements(\n resource.lang,\n enhancedContext\n );\n dispatch(fetchAdditionalMenuSucceeded(additionalMenuElements));\n }\n\n await queryClient.setQueryData([applicationKeys.application], newGetAll);\n } catch {\n setIsLoading(false);\n }\n };\n\n if (isLoading) {\n return ;\n }\n\n return (\n \n queryKey={[\"organizational-units\"]}\n fetcher={() => getOrganizationalUnits(\"default\")}\n >\n {data => {\n return (\n \n {data.map(unit => (\n \n {unit.name}\n \n {unit.units.map(\n ({\n id,\n isExternal,\n externalLink,\n friendlyUrl,\n fullName\n }) => (\n \n {isExternal ? (\n \n {fullName}\n \n ) : (\n {\n if (e.key === \"Enter\") {\n await onContextChange(friendlyUrl);\n }\n }}\n onClick={() => onContextChange(friendlyUrl)}\n >\n {fullName}\n \n )}\n \n )\n )}\n \n \n ))}\n \n );\n }}\n \n );\n};\n\nconst UnitsList = styled.ul`\n list-style: none;\n margin: 0;\n padding: 0;\n`;\n\nconst ListItem = styled.li`\n &:not(:last-child) {\n margin-bottom: 0.25rem;\n }\n`;\n\nconst UnitName = styled.h5`\n font-size: 1em;\n font-weight: bold;\n color: ${({ theme }) => theme.text.primaryColor};\n`;\n\nconst ExternalLink = styled.a`\n color: ${({ theme }) => theme.text.secondaryColor};\n display: block;\n font-size: 0.875em;\n &:hover {\n color: ${({ theme }) => theme.secondaryColor};\n text-decoration: none;\n }\n\n &:focus:not(:active) {\n outline: ${({ theme }) => theme.focusOutline};\n }\n`;\n\nconst Link = styled.a`\n cursor: pointer;\n text-decoration: underline;\n color: ${({ theme }) => theme.text.secondaryColor};\n &:hover {\n text-decoration: none;\n color: ${({ theme }) => theme.secondaryColor};\n }\n`;\n\nexport { OrganizationalUnits };\n","import React from \"react\";\nimport MK_MODULES from \"./mk-modules.const\";\nimport { OrganizationalUnits } from \"../components/OrganizationalUnits\";\n\nexport const processOrganizationUnits = {\n shouldProcessNode: node =>\n node.attribs &&\n node.attribs[\"data-module\"] === MK_MODULES.ORGANIZATIONAL_UNITS,\n processNode: (node, children, index) => \n};\n","import React from \"react\";\n\n//usuwanie obrazka gwiazdki ze spanow dla kotwic w artykule\nexport const processAnchor = {\n shouldProcessNode: node =>\n node.name &&\n node.name === \"span\" &&\n node.attribs &&\n node.attribs[\"class\"] === \"mkanchor\",\n processNode: (node, children, index) => (\n \n {React.Children.map(children, (child, i) => {\n if (child.type === \"img\") return;\n return child;\n })}\n \n )\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nconst goToAnchor = function(anchorId) {\n if (document.getElementById(anchorId) !== null) {\n document.documentElement.scrollTop = document.body.scrollTop =\n document.getElementById(anchorId).offsetTop - 100;\n }\n};\n\n//nadpisanie funkcjonalności klikniecia w linki do kotwic\nexport const processAnchorLink = {\n shouldProcessNode: node =>\n node.name &&\n node.name === \"a\" &&\n node.attribs &&\n node.attribs[\"class\"] === \"mkanchor\",\n processNode: function(node, children, index) {\n const anchorId =\n node.attribs.href.split(\"#\").length > 1\n ? node.attribs.href.split(\"#\")[1]\n : null;\n return (\n \n {node.attribs.title}\n \n );\n }\n};\n\nconst AnchorSpan = styled.span`\n color: ${({ theme }) => theme.text.secondaryColor};\n &:hover {\n color: ${({ theme }) => theme.secondaryColor};\n cursor: pointer;\n }\n`;\n","import React from \"react\";\nimport MK_MODULES from \"./mk-modules.const\";\nimport { Maps } from \"../components\";\n\nexport const processGoogleMap = {\n shouldProcessNode: node =>\n node.attribs && node.attribs[\"data-module\"] === MK_MODULES.GOOGLE_MAP,\n processNode: (node, children, index) => \n};\n","import React from \"react\";\nimport { PageTitle } from \"../../../typography\";\n\nexport const processTitle = {\n shouldProcessNode: node =>\n node.type === \"tag\" && node.name === \"h1\" && node.parent === null,\n processNode: (node, children, index) => (\n {children}\n )\n};\n","export const processTableRows = processNodeDefinitions => {\n return {\n shouldProcessNode: node =>\n (node.type === \"tag\" && node.name === \"td\") || node.name === \"th\",\n processNode: (node, children, index) => {\n const { width, valign, ...restAttributes } = node.attribs;\n const updatedNode = {\n ...node,\n attribs: {\n ...restAttributes\n }\n };\n return processNodeDefinitions.processDefaultNode(\n updatedNode,\n children,\n index\n );\n }\n };\n};\n","import HtmlToReact from \"html-to-react\";\n\nimport { sanitizeHtml } from \"components/SanitizeHtml\";\n\nimport { getProcessingInstructions } from \"./getProcessingInstructions\";\n\nexport const createArticlePages = (\n content,\n articleId,\n isHistorical,\n isPreview\n) => {\n const htmlToReactParser = new HtmlToReact.Parser();\n const pagedContent = content.split(paginationSeparator);\n const isValidNode = () => true;\n\n return pagedContent.map(contentPage =>\n htmlToReactParser.parseWithInstructions(\n sanitizeHtml(contentPage),\n isValidNode,\n getProcessingInstructions(articleId, isHistorical, isPreview)\n )\n );\n};\n\nconst paginationSeparator =\n '
    {podział strony}
    ';\n","import React from \"react\";\nimport HtmlToReact from \"html-to-react\";\n\nimport { replaceDataModuleVideoStreamInstructions } from \"./replaceDataModuleVideoStreamInstructions\";\nimport { processActionButtons } from \"./processActionButtons\";\nimport { processOrganizationUnits } from \"./processOrganizationUnits\";\nimport { processAnchor } from \"./processAnchor\";\nimport { processAnchorLink } from \"./processAnchorLink\";\nimport { processGoogleMap } from \"./processGoogleMap\";\nimport { processImageSource } from \"./processImageSource\";\nimport { processTitle } from \"./processTitle\";\nimport { processIFrameWithTraseoMap } from \"./processIFrameWithTraseoMap\";\nimport { processTableRows } from \"./processTableRows\";\nimport { processTable } from \"./processTables\";\n\nexport const getProcessingInstructions = (\n articleId,\n isHistorical,\n isPreview\n) => {\n const processNodeDefinitions = new HtmlToReact.ProcessNodeDefinitions(React);\n\n return [\n processTable,\n processActionButtons(articleId, isHistorical, isPreview),\n processOrganizationUnits,\n processAnchor,\n processAnchorLink,\n processGoogleMap,\n processImageSource(processNodeDefinitions),\n processIFrameWithTraseoMap,\n processTitle,\n processTableRows(processNodeDefinitions),\n replaceDataModuleVideoStreamInstructions,\n {\n shouldProcessNode: () => true,\n processNode: processNodeDefinitions.processDefaultNode\n }\n ];\n};\n","import React, { useState } from \"react\";\nimport styled, { css } from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport Pagination from \"../../pagination/Pagination\";\nimport { createArticlePages } from \"./utils/createArticlePages\";\nimport { getBackground } from \"../../buttons/utils\";\n\ninterface IProps {\n articleId: number;\n content: string;\n isHistorical: boolean;\n isPreview: boolean;\n}\n\nconst Content = ({ articleId, content, isHistorical, isPreview }: IProps) => {\n const { isContrast } = useMappedState(mapStateToProps);\n const [currentPage, setCurrentPage] = useState(1);\n const articlePages = createArticlePages(\n content,\n articleId,\n isHistorical,\n isPreview\n );\n\n const onPageChange = (page: number) => {\n setCurrentPage(page);\n };\n\n return (\n
    \n \n {articlePages[currentPage - 1]}\n \n {articlePages.length > 1 && (\n \n )}\n
    \n );\n};\n\nconst mapStateToProps = ({ accessibility }: any) => ({\n isContrast: accessibility.isContrast\n});\n\nconst ArticlePage = styled.section`\n color: ${({ theme }) => theme.text.primaryColor};\n a {\n display: inline-block;\n text-decoration: underline;\n color: ${({ theme }) => theme.text.secondaryColor};\n &:hover {\n text-decoration: none;\n color: ${({ theme }) => theme.secondaryColor};\n }\n }\n\n a:-moz-focusring {\n outline: 2px solid ${({ isContrast }) => (isContrast ? \"white\" : \"black\")};\n }\n\n span:not(:where(button > span)),\n p {\n ${({ isContrast }) =>\n isContrast &&\n css`\n color: ${getBackground} !important;\n `}\n }\n`;\n\nexport { Content };\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport { Aside } from \"../ArticleComponents/Aside\";\nimport { Attachments } from \"../ArticleComponents/Attachments\";\nimport { Comments } from \"../ArticleComponents/Comments\";\nimport Faq from \"../ArticleComponents/faq/Faq\";\nimport Gallery from \"../ArticleComponents/gallery/Gallery\";\nimport Metrics from \"../ArticleComponents/metrics/Metrics\";\nimport Relations from \"../ArticleComponents/relations/Relations\";\nimport Tags from \"../ArticleComponents/tags/Tags\";\nimport HistoricalLink from \"../ArticleComponents/historical-link/HistoricalLink\";\nimport { Stamp } from \"../ArticleComponents/TableComponents/Stamp\";\nimport { Registries } from \"../ArticleComponents/registries/Registries\";\nimport { Versions } from \"../ArticleComponents/versions/Versions\";\nimport { Content } from \"../ArticleComponents/Content/Content\";\nimport { IArticle } from \"../../types/IArticle\";\nimport { Panel } from \"../Panel\";\n\ninterface IProps {\n article: IArticle;\n isPreview?: boolean;\n}\n\nconst ArticleContent = ({ article, isPreview = false }: IProps) => {\n const { printMetric } = useMappedState(mapStateToProps);\n const { attachments = [] } = article;\n const listAttachments = attachments.filter(attachment => attachment.isList);\n\n const galleryAttachments = attachments.filter(\n attachment => attachment.isGallery && !attachment.deleted\n );\n\n const hasAside = article.placeholders && article.placeholders.length > 0;\n return (\n \n \n {article.isHistorical && }\n {article.additionalStamp && {article.additionalStamp}}\n \n {article.faq && (\n \n \n \n )}\n {listAttachments && listAttachments.length > 0 && (\n \n \n \n )}\n {galleryAttachments && galleryAttachments.length > 0 && (\n \n \n \n )}\n {article.relations && article.relations.length > 0 && (\n \n \n \n )}\n {article.commentsEnabled && !isPreview && (\n \n \n \n )}\n {!isPreview && (\n \n \n \n )}\n {!isPreview && }\n {!isPreview && }\n {article.tags && article.tags.length > 0 && (\n \n \n \n )}\n \n {hasAside &&
    \n {columns.map(column => (\n \n ))}\n \n \n );\n};\n\nArticlesTableHeader.propTypes = {\n columns: PropTypes.array\n};\n\nArticlesTableHeader.defaultProps = {\n columns: []\n};\n\nconst TableHead = styled.thead`\n border-top: 1px solid;\n border-bottom: 2px solid;\n border-color: ${({ theme }) => theme.dividerColor};\n color: ${({ theme }) => theme.text.primaryColor};\n background: ${({ theme }) => theme.lightPrimaryColor};\n font-size: 0.875em;\n`;\n\nconst Th = TableCell.withComponent(\"th\");\n\nexport default ArticlesTableHeader;\n","import styled from \"styled-components\";\n\nconst TableRow = styled.tr`\n padding: 0.375rem 0;\n &:not(:last-child) {\n border-bottom: 1px solid ${({ theme }) => theme.dividerColor};\n }\n`;\n\nexport default TableRow;\n","import { find } from \"lodash\";\nimport React, { Fragment } from \"react\";\nimport PropTypes from \"prop-types\";\nimport HtmlToReact from \"html-to-react\";\n\nimport { sanitizeHtml } from \"components/SanitizeHtml\";\n\nconst ColumnField = ({ columnFields, articleFields }) => {\n //Trzeba dodać stop propagation na elementach button oraz anchor tags a nie na całą kolumnę, więc będzie\n //trzeba dodać parser, który wykryje powyższe tagi i doda do nich stop propagation\n const htmlToReactParser = new HtmlToReact.Parser();\n const isValidNode = () => true;\n\n const processColumnNode = columnId => {\n const content = find(\n articleFields,\n articleField => articleField.fieldId === columnId\n )?.value;\n\n const processNodeDefinitions = new HtmlToReact.ProcessNodeDefinitions(\n React\n );\n\n return htmlToReactParser.parseWithInstructions(\n sanitizeHtml(content),\n isValidNode,\n [\n {\n shouldProcessNode: node => node.name && node.name === \"a\",\n processNode: (node, children, index) => (\n e.stopPropagation()}>\n {children}\n \n )\n },\n {\n shouldProcessNode: () => true,\n processNode: processNodeDefinitions.processDefaultNode\n }\n ]\n );\n };\n\n return columnFields.map(columnField => (\n \n {processColumnNode(columnField.id)}\n \n ));\n};\n\nColumnField.propTypes = {\n columnFields: PropTypes.array,\n articleFields: PropTypes.array\n};\n\nColumnField.defaultProps = {\n columnFields: [],\n articleFields: []\n};\n\nexport default ColumnField;\n","import React from \"react\";\nimport styled from \"styled-components\";\n\ninterface IProps\n extends React.DetailedHTMLProps<\n React.TdHTMLAttributes,\n HTMLTableDataCellElement\n > {}\n\nconst Td = ({ children, ...restProps }: IProps) => {\n return {children};\n};\n\nconst StyledTd = styled.td`\n padding: 0.375rem 0.5rem;\n width: ${({ $width }) => `${$width ? `${$width}%` : \"auto\"}`};\n\n img {\n max-width: 100px;\n height: auto;\n }\n\n a {\n color: ${({ theme }) => theme.text.secondaryColor};\n text-decoration: underline;\n\n &:hover {\n color: ${({ theme }) => theme.secondaryColor};\n text-decoration: none;\n }\n }\n`;\n\nexport { Td };\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withRouter } from \"react-router-dom\";\nimport styled from \"styled-components\";\nimport TableRow from \"./TableRow\";\nimport ColumnField from \"./ColumnField\";\nimport { compose, withHandlers } from \"recompose\";\nimport { get } from \"lodash\";\nimport { Td } from \"./Td\";\n\nconst LinkRow = ({ article, columns, onNavigate }) => {\n const articleTitle = get(article, \"aliasFields[0].value\");\n\n return (\n \n {columns.map(column => (\n \n ))}\n \n );\n};\n\nLinkRow.propTypes = {\n article: PropTypes.object.isRequired,\n columns: PropTypes.array.isRequired\n};\n\nconst ClickableTableRow = styled(TableRow)`\n &:hover {\n background: ${({ theme }) => theme.lightPrimaryColor};\n cursor: pointer;\n }\n\n &:focus:not(:active) {\n outline: ${({ theme }) => theme.focusOutline};\n }\n`;\n\nconst composed = compose(\n withHandlers({\n onNavigate: ({ article, history }) => event => {\n if (event.type === \"click\" || event.key === \"Enter\") {\n history.push(`/${article.link}`);\n }\n }\n })\n);\n\nexport default withRouter(composed(LinkRow));\n","import React from \"react\";\nimport { Link as RouterLink } from \"react-router-dom\";\nimport styled from \"styled-components\";\nimport { get } from \"lodash\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport TableRow from \"./TableRow\";\nimport ColumnField from \"./ColumnField\";\nimport { mdiArrowRightBoldCircleOutline } from \"@mdi/js\";\nimport { Icon } from \"../../../../../components/Icon\";\nimport {Td} from \"./Td\";\n\nconst RowWithMore = ({ article, columns }) => {\n const { isContrast } = useMappedState(mapStateToProps);\n const articleTitle = get(article, \"aliasFields[0].value\");\n return (\n \n {columns.map((column, index) => (\n \n ))}\n \n );\n};\n\nconst mapStateToProps = ({ accessibility }) => ({\n isContrast: accessibility.isContrast\n});\n\nconst Link = styled(RouterLink)`\n color: ${({ theme }) => theme.text.secondaryColor};\n display: inline-block;\n &:hover {\n text-decoration: none;\n color: ${({ theme }) => theme.secondaryColor};\n }\n float: right;\n &:focus {\n outline: 5px auto -webkit-focus-ring-color;\n }\n &:-moz-focusring {\n outline: 2px solid ${({ isContrast }) => (isContrast ? \"white\" : \"black\")};\n }\n`;\n\nconst StyledIcon = styled(Icon)`\n margin-left: -17px;\n\n float: right;\n`;\n\nexport { RowWithMore };\n","/**\n * Created by fkurzawa on 27.02.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport LinkRow from \"./components/LinkRow\";\nimport { RowWithMore } from \"./components/RowWithMore\";\nimport Media from \"react-media\";\n\nconst ArticlesTableBody = ({ articles, columns, linkMoreEnabled }) => (\n \n {articles.map(article => (\n \n \n {matches =>\n matches ? (\n \n ) : (\n \n {linkMoreEnabled && (\n \n )}\n {!linkMoreEnabled && (\n \n )}\n \n )\n }\n \n \n ))}\n \n);\n\nArticlesTableBody.propTypes = {\n articles: PropTypes.array,\n columns: PropTypes.array,\n linkMoreEnabled: PropTypes.bool\n};\n\nArticlesTableBody.defaultProps = {\n articles: [],\n columns: []\n};\n\nconst TBody = styled.tbody`\n font-size: 0.875em;\n color: ${({ theme }) => theme.text.primaryColor};\n`;\n\nexport default ArticlesTableBody;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport Table from \"../../../../components/table\";\nimport ArticlesTableHeader from \"./ArticlesTableHeader\";\nimport ArticlesTableBody from \"./ArticlesTableBody\";\n\nconst ArticlesTable = ({ articles, columns, linkMoreEnabled }) => {\n return (\n
    \n {column.name}\n
    \n \n \n {columns.length - 1 === index ? (\n \n \n \n \n \n \n ) : (\n \n )}\n
    \n \n \n \n
    Lista artykułów
    \n );\n};\n\nArticlesTable.propTypes = {\n articles: PropTypes.array,\n columns: PropTypes.array,\n linkMoreEnabled: PropTypes.bool\n};\n\nArticlesTable.defaultProps = {\n articles: [],\n columns: []\n};\n\nexport default ArticlesTable;\n","import React, { useCallback } from \"react\";\nimport styled from \"styled-components\";\nimport PropTypes from \"prop-types\";\nimport useReactRouter from \"use-react-router\";\nimport { Button } from \"components/buttons\";\nimport { getRssUrl, getXmlUrl } from \"../../../../api/menus\";\n\nconst TitleBar = ({ title }) => {\n const { match } = useReactRouter();\n const openRss = useCallback(\n () => window.open(getRssUrl(match.params.id), \"_blank\"),\n [match.params.id]\n );\n const openXml = useCallback(\n () => window.open(getXmlUrl(match.params.id), \"_blank\"),\n [match.params.id]\n );\n\n return (\n
    \n {title}\n \n \n \n \n \n \n \n \n
    \n );\n};\n\nTitleBar.propTypes = {\n title: PropTypes.string\n};\n\nTitleBar.defaultProps = {\n title: \"Lista artykułów\"\n};\n\nconst TitleText = styled.span`\n font-size: 1.1em;\n font-weight: 700;\n margin-right: 9px;\n`;\n\nconst ButtonsContainer = styled.div`\n display: inline-flex;\n & > *:not(:last-child) {\n min-width: 30px;\n margin-right: 0.5rem;\n }\n`;\n\nexport default TitleBar;\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { Button } from \"../buttons\";\nimport { TextField } from \"../HookForm\";\n\ninterface IProps {\n name: string;\n}\n\nconst SearchField = ({ name }: IProps) => {\n return (\n \n \n \n \n \n \n );\n};\n\nconst StyledSearchField = styled.div`\n display: flex;\n div {\n width: 100%;\n }\n`;\n\nconst StyledSearchButton = styled(Button)`\n height: 34px;\n`;\n\nconst StyledTextField = styled(TextField)`\n display: block;\n color: ${({ theme }) => theme.text.primaryColor};\n border: 1px solid ${({ theme }) => theme.dividerColor};\n background: ${({ theme }) => theme.defaultBackground};\n font-size: 1em;\n padding: 0.25rem 0.5rem;\n\n &::-webkit-search-cancel-button {\n -webkit-appearance: searchfield-cancel-button;\n cursor: pointer;\n padding: 0.125em;\n }\n\n &:focus:not(:active) {\n outline: ${({ theme }) => theme.focusOutline};\n }\n`;\n\nexport { SearchField };\n","import * as yup from \"yup\";\n\nimport { validationMessages } from \"utils/yup/messages\";\n\nexport const searchFormValidationSchema = (name: string) =>\n yup.object().shape({\n [name]: yup\n .string()\n .max(200, validationMessages.maxTwoHundredSymbols)\n .test(name, validationMessages.minThreeSymbols, function(textField) {\n const textLength = textField.replace(/\\s/g, \"\").length;\n return textLength > 2;\n })\n .nullable()\n });\n","import React from \"react\";\n\nimport { Form } from \"../HookForm\";\nimport { SearchField } from \"./SearchField\";\nimport { searchFormValidationSchema } from \"./searchFormValidationSchema\";\nimport { useGetLocationParams } from \"../../containers/articles-list/utils/useGetLocationParams\";\n\ninterface IProps {\n name: string;\n onSubmit: (model: any) => void;\n}\n\nconst SearchForm = ({ name, onSubmit }: IProps) => {\n const parsedParams = useGetLocationParams();\n return (\n \n {() => {\n return ;\n }}\n \n );\n};\n\nexport { SearchForm };\n","import * as yup from \"yup\";\nimport { array } from \"yup\";\nimport moment from \"moment\";\n\nimport { IDynamicFieldSchema } from \"utils/yup/IDynamicFieldSchema\";\nimport { validationMessages } from \"utils/yup/messages\";\nimport { nullableFloatSchema } from \"utils/yup/nullableFloatSchema\";\n\nimport { FormFieldType, IFormField } from \"components/HookForm\";\n\nexport const advancedSearchFormSchemaStrategy = (\n formField: IFormField\n): IDynamicFieldSchema => {\n switch (formField.type) {\n case FormFieldType.TEXT_FIELD:\n case FormFieldType.TEXT_AREA:\n const textFieldName = formField.name;\n return {\n [textFieldName]: yup\n .string()\n .test(textFieldName, validationMessages.minThreeSymbols, function(\n textField\n ) {\n if (textField === \"\") {\n return true;\n }\n const textLength = textField.replace(/\\s/g, \"\").length;\n return textLength > 2;\n })\n .max(200, validationMessages.maxTwoHundredSymbols)\n .nullable()\n };\n case FormFieldType.CHECKBOX_GROUP:\n return { [formField.name]: array(yup.number()).nullable() };\n case FormFieldType.DATE_RANGE:\n const dateFromName = `${formField.name}-from`;\n const dateToName = `${formField.name}-to`;\n return {\n [dateFromName]: yup\n .string()\n .test(\n dateFromName,\n 'Data powinna być wcześniejsza od daty \"Do\"',\n function(dateFrom) {\n const dateTo = this.parent[dateToName];\n if (!dateTo || !dateFrom || dateTo === dateFrom) {\n return true;\n }\n return moment(dateFrom).isBefore(dateTo);\n }\n ),\n [dateToName]: yup\n .string()\n .test(\n dateToName,\n 'Data powinna być późniejsza od daty \"Od\"',\n function(dateTo) {\n const dateFrom = this.parent[dateFromName];\n if (!dateFrom || !dateTo || dateTo === dateFrom) {\n return true;\n }\n return moment(dateTo).isAfter(dateFrom);\n }\n )\n };\n case FormFieldType.NUMBER:\n return { [formField.name]: nullableFloatSchema };\n case FormFieldType.NUMBER_RANGE:\n const numberFromName = `${formField.name}-from`;\n const numberToName = `${formField.name}-to`;\n return {\n [numberFromName]: nullableFloatSchema.test(\n numberFromName,\n 'Wartość powinna być mniejsza od wartości \"Do\"',\n function(numberFrom) {\n const numberTo = this.parent[numberToName];\n if (!numberTo || !numberFrom || numberTo === numberFrom) {\n return true;\n }\n return Number(numberFrom) < Number(numberTo);\n }\n ),\n [numberToName]: nullableFloatSchema.test(\n numberToName,\n 'Wartość powinna być większa od wartości \"Od\"',\n function(numberTo) {\n const numberFrom = this.parent[numberFromName];\n if (!numberFrom || !numberTo || numberTo === numberFrom) {\n return true;\n }\n return Number(numberTo) > Number(numberFrom);\n }\n )\n };\n default:\n return { [formField.name]: yup.string().nullable() };\n }\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport {\n Form,\n SpinnerButton,\n FormFieldsGenerator,\n formFieldsGeneratorSchemaAdapter,\n ResetDynamicFormButton,\n FormFieldType,\n IFormField\n} from \"components/HookForm\";\n\nimport { advancedSearchFormSchemaStrategy } from \"./advancedSearchFormSchemaStrategy\";\n\ninterface IProps {\n fields: IFormField[];\n onSubmit: () => void;\n}\n\nconst AdvancedSearchForm = ({ fields, onSubmit }: IProps) => {\n const createDefaultValues = () => {\n let dynamicDefaultValues: any = {};\n\n fields.forEach(field => {\n if (field.type === FormFieldType.DATE_RANGE) {\n dynamicDefaultValues[`${field.name}-from`] = field.value.from;\n dynamicDefaultValues[`${field.name}-to`] = field.value.to;\n return;\n }\n if (field.type === FormFieldType.NUMBER_RANGE) {\n dynamicDefaultValues[`${field.name}-from`] = field.value.from;\n dynamicDefaultValues[`${field.name}-to`] = field.value.to;\n return;\n }\n dynamicDefaultValues[field.name] = field.value;\n });\n return dynamicDefaultValues;\n };\n\n return (\n \n {() => {\n return (\n <>\n {fields.map(field => (\n \n ))}\n \n \n \n \n \n );\n }}\n \n );\n};\n\nconst Buttons = styled.div`\n display: flex;\n & > *:not(:last-child) {\n margin-right: 1rem;\n }\n`;\n\nexport { AdvancedSearchForm };\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { Overlay } from \"react-overlays\";\nimport { compose, withHandlers, withState } from \"recompose\";\n\nimport { UnderlineSpan } from \"../../../../../../components/UnderlineSpan\";\nimport { AdvancedSearchForm } from \"./components/AdvancedSearchForm\";\n\nclass AdvancedSearch extends React.Component {\n render() {\n const {\n showOverlay,\n onOpenOverlay,\n closeAdvanceSearch,\n fields,\n onSubmit\n } = this.props;\n\n return (\n \n \n Wyszukiwanie zaawansowane\n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nAdvancedSearch.propTypes = {\n fields: PropTypes.array,\n onSubmit: PropTypes.func.isRequired\n};\n\nAdvancedSearch.defaultProps = {\n fields: []\n};\n\nconst Container = styled.div`\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n`;\n\nconst ToggleButton = styled.button`\n cursor: pointer;\n background: transparent;\n border: none;\n font-size: 0.875em;\n color: ${({ theme }) => theme.text.secondaryColor};\n\n &:hover {\n color: ${({ theme }) => theme.secondaryColor};\n }\n\n &:focus:not(:active) {\n outline: ${({ theme }) => theme.focusOutline};\n }\n`;\n\nconst FormContainer = styled.div`\n position: absolute;\n top: 69px;\n z-index: 1;\n background: ${({ theme }) => theme.defaultBackground};\n border: 1px solid ${({ theme }) => theme.dividerColor};\n border-radius: 0.125rem;\n padding: 1rem;\n width: 300px;\n`;\n\nconst enhance = compose(\n withState(\"showOverlay\", \"setShowOverlay\", false),\n withHandlers({\n onOpenOverlay: ({ setShowOverlay }) => () => {\n setShowOverlay(true);\n },\n closeAdvanceSearch: ({ setShowOverlay }) => () => {\n setShowOverlay(false);\n }\n })\n);\n\nexport default enhance(AdvancedSearch);\n","import React from \"react\";\n\nimport { IFormField } from \"components/HookForm/types\";\nimport { SearchForm } from \"components/SearchForm/SearchForm\";\n\nimport AdvancedSearch from \"./components/advanced-search/AdvancedSearch\";\n\ninterface IProps {\n fields: IFormField[];\n onSubmit: (model: any) => void;\n}\n\nconst ContextSearch = ({ fields, onSubmit }: IProps) => {\n const contextSearchId = \"cs-s\";\n\n return (\n <>\n \n \n \n );\n};\n\nexport { ContextSearch };\n","import React from \"react\";\nimport queryString from \"query-string\";\nimport useRouter from \"use-react-router\";\n\nimport { IMenuArticleListSortField } from \"modules/articles/types/IMenuArticleListSortField\";\n\nimport { parseFormModelToRestParams, setFormParams } from \"utils/search-params\";\n\nimport { IFormField } from \"components/HookForm/types\";\n\nimport TitleBar from \"../../title-bar/TitleBar\";\nimport { ContextSearch } from \"../../contextSearch/ContextSearch\";\nimport { HideInPrintContent } from \"../../HideInPrintContent\";\n\nimport { ArticlesSorting } from \"../../articlesSorting/ArticlesSorting\";\n\ninterface IProps {\n sortFields: IMenuArticleListSortField[];\n searchFields: IFormField[];\n listTitle: string;\n}\n\nconst FilterBar = ({ listTitle, searchFields, sortFields }: IProps) => {\n const { history, location } = useRouter();\n\n const onSearchSubmit = (model: any) => {\n const searchParams = parseFormModelToRestParams(model);\n const newParams = setFormParams(\n queryString.parse(location.search),\n searchParams\n );\n history.push(\n `?${queryString.stringify({\n ...newParams,\n page: 1\n })}`\n );\n };\n\n return (\n \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n );\n};\n\nexport { FilterBar };\n","import React, { useState } from \"react\";\nimport useRouter from \"use-react-router\";\nimport queryString from \"query-string\";\n\nimport { articlesKeys } from \"modules/articles/keys\";\nimport { getMenuArticles } from \"modules/articles/api/getMenuArticles\";\n\nimport { useGetLocationParams } from \"../../utils/useGetLocationParams\";\nimport { useGetIsOutdated } from \"../../utils/useGetIsOutdated\";\nimport { useGetMenuId } from \"../../utils/useGetMenuId\";\nimport { filterFormParams } from \"../../../../utils/search-params\";\n\nimport { IMenuArticlesList } from \"modules/articles/types/IMenuArticlesList\";\n\nimport { Pagination } from \"components/pagination\";\n\nimport { ErrorPanel } from \"components/ErrorPanel\";\n\nimport ArticlesTable from \"./ArticlesTable\";\nimport { HideInPrintContent } from \"../HideInPrintContent\";\nimport { FilterBar } from \"./components/FilterBar\";\nimport { RemoteDataSuspense } from \"components/RemoteData/RemoteDataSuspense\";\n\ninterface IProps {\n allArticles: IMenuArticlesList;\n}\n\nconst ArticlesTableContainer = ({ allArticles }: IProps) => {\n const { history } = useRouter();\n const [sortFields, setSortFields] = useState(allArticles.sortFields);\n const [searchFields, setSearchFields] = useState(allArticles.searchFields);\n const parsedParams = useGetLocationParams();\n\n const onPageChange = (page: number) => {\n const params = {\n ...parsedParams,\n page\n };\n history.push(`?${queryString.stringify(params)}`);\n };\n\n const onLimitChange = (limit: number) => {\n const firstPage = \"1\";\n const params = {\n ...parsedParams,\n limit: limit.toString(),\n page: firstPage\n };\n history.push(`?${queryString.stringify(params)}`);\n };\n\n const isOutdated = useGetIsOutdated();\n const menuId = useGetMenuId();\n\n const {\n limit = 10,\n sort,\n sort_dir,\n archived = isOutdated,\n tab,\n page = 1\n } = useGetLocationParams();\n\n const offset = (Number(page) - 1) * Number(limit);\n\n const searchParams = filterFormParams(parsedParams);\n\n return (\n
    \n \n \n queryKey={[\n articlesKeys.articleListSearch,\n parsedParams,\n menuId,\n searchParams,\n isOutdated\n ]}\n errorBoundaryProps={{\n resetKeys: [menuId]\n }}\n fetcher={() =>\n getMenuArticles(\n menuId,\n Number(limit),\n offset,\n sort,\n sort_dir,\n Number(archived),\n tab,\n searchParams\n )\n }\n >\n {menuArticles => {\n const total = menuArticles !== null ? menuArticles.total : 0;\n const totalPages = Math.ceil(total / Number(limit));\n setSortFields(menuArticles.sortFields);\n setSearchFields(menuArticles.searchFields);\n return (\n <>\n {menuArticles.articles.length > 0 ? (\n
    \n \n \n \n \n
    \n ) : (\n
    \n \n
    \n )}\n \n );\n }}\n \n
    \n );\n};\n\nexport { ArticlesTableContainer };\n","import React from \"react\";\nimport { useDispatch, useMappedState } from \"redux-react-hook\";\nimport { get } from \"lodash\";\nimport styled from \"styled-components\";\n\nimport { getMenu } from \"api/menus\";\n\nimport { useGetIsOutdated } from \"./utils/useGetIsOutdated\";\nimport { useGetLocationParams } from \"./utils/useGetLocationParams\";\nimport { useGetMenuId } from \"./utils/useGetMenuId\";\n\nimport { fetchMenuSucceeded, selectMenuItem } from \"redux/modules/menu\";\nimport { articlesKeys } from \"modules/articles/keys\";\nimport { getMenuArticles } from \"modules/articles/api/getMenuArticles\";\nimport { setDocumentTitle } from \"redux/modules/document-title\";\n\nimport { createArticleBreadCrumbs } from \"./utils/createArticleBreadCrumbs\";\nimport { getArticleId } from \"./utils/getArticleId\";\nimport { checkIfHaveNoArticles } from \"./utils/checkIfHaveNoArticles\";\n\nimport { RemoteData } from \"components/RemoteData/RemoteData\";\nimport { useReactQuery } from \"components/RemoteData/useReactQuery\";\nimport { Breadcrumb } from \"components/Breadcrumb/Breadcrumb\";\nimport { ErrorPanel } from \"components/ErrorPanel\";\n\nimport { IMenuElement } from \"types/IMenuElement\";\nimport { IMenuArticlesList } from \"modules/articles/types/IMenuArticlesList\";\nimport { SortType } from \"types/enums/SortType\";\n\nimport { withBreadcrumbs } from \"components/Breadcrumb\";\n\nimport { ArticleContentContainer } from \"./components/ArticleContentContainer\";\nimport MenuChildren from \"./components/menu-children/MenuChildren\";\nimport { ArchivedButtons } from \"./components/ArchivedButtons\";\nimport { TabsContainer } from \"./components/tabs/TabsContainer\";\nimport { ArticlesTableContainer } from \"./components/articles-table/ArticlesTableContainer\";\nimport { getBackground } from \"components/buttons/utils\";\n\nimport { showArticlesTable } from \"./utils/showArticlesTable\";\n\nexport interface IParsedParams {\n limit: number;\n sort: string;\n sort_dir: SortType;\n archived: boolean;\n tab: any;\n page: number;\n}\n\ninterface IProps {\n setContextBreadcrumbs: (item: any[]) => void;\n}\n\nconst ArticleListContainer = ({ setContextBreadcrumbs }: IProps) => {\n const { isContrast } = useMappedState(mapStateToProps);\n const dispatch = useDispatch();\n const menuId = useGetMenuId();\n\n const { data } = useReactQuery(\n [articlesKeys.menuItems, menuId],\n () => getMenu(menuId),\n { retry: false, suspense: !!menuId }\n );\n const parsedParams = useGetLocationParams();\n const isOutdated = useGetIsOutdated();\n const { tab } = parsedParams;\n\n if (!menuId) {\n return (\n
    \n \n \n
    \n );\n }\n\n dispatch(fetchMenuSucceeded(data));\n dispatch(selectMenuItem(menuId));\n\n return (\n
    \n \n \n queryKey={[articlesKeys.allArticles, menuId, tab, isOutdated]}\n fetcher={() =>\n getMenuArticles(menuId, 10, 0, null, null, Number(isOutdated), tab)\n }\n errorBoundaryProps={{\n resetKeys: [menuId]\n }}\n >\n {allArticles => {\n const menuTitle = get(allArticles, \"menuPath[0].name\");\n setContextBreadcrumbs(createArticleBreadCrumbs(allArticles) || []);\n dispatch(setDocumentTitle(menuTitle));\n\n const articleId = getArticleId(allArticles);\n const haveNoArticles = checkIfHaveNoArticles(allArticles);\n return (\n
    \n {articleId ? (\n \n ) : (\n \n {menuTitle}\n \n )}\n {haveNoArticles && !allArticles.hasArchived ? (\n allArticles.recursiveMenuDisplayEnabled ? (\n \n ) : (\n \n )\n ) : (\n <>\n {allArticles.hasArchived && (\n \n )}\n {allArticles.tabs?.length > 0 && (\n 0}\n />\n )}\n {showArticlesTable(\n allArticles.total,\n allArticles.mainArticleId,\n allArticles.tabs.length\n ) && }\n \n )}\n
    \n );\n }}\n \n
    \n );\n};\n\nconst mapStateToProps = ({ accessibility }: any) => ({\n isContrast: accessibility.isContrast\n});\n\nconst StyledH1Title = styled.h1`\n color: ${({ isContrast }) => (isContrast ? getBackground : \"#37474f\")};\n font-size: 1.75em;\n font-weight: bold;\n padding: 0.625rem 0;\n border-bottom: 1px solid #bdbdbd;\n`;\n\nexport default withBreadcrumbs(ArticleListContainer);\n","import { createBreadcrumbItem } from \"utils/breadcrumbs\";\n\nimport { IMenuArticlesList } from \"modules/articles/types/IMenuArticlesList\";\n\nexport const createArticleBreadCrumbs = (menuArticles: IMenuArticlesList) => {\n return (\n menuArticles &&\n menuArticles.menuPath\n .filter((menuElement: any) => !!menuElement.parentId)\n .map((menuElement: any) =>\n createBreadcrumbItem(menuElement.name, menuElement.url || \"#\")\n )\n .reverse()\n );\n};\n","export const showArticlesTable = (totalArticles: number, mainArticleId: number | null, totalTabs: number) => {\n return totalArticles > 0 && !(totalArticles === 1 && !mainArticleId && totalTabs === 0);\n}\n","import { IMenuArticlesList } from \"modules/articles/types/IMenuArticlesList\";\n\nexport const getArticleId = (menuArticles: IMenuArticlesList) => {\n return (\n menuArticles.mainArticleId ||\n (menuArticles.tabs.length === 0 &&\n menuArticles.total === 1 &&\n menuArticles.articles[0].id)\n );\n};\n","import { IMenuArticlesList } from \"modules/articles/types/IMenuArticlesList\";\n\nexport const checkIfHaveNoArticles = (allArticles: IMenuArticlesList) => {\n return (\n allArticles.tabs.length === 0 &&\n allArticles.total === 0 &&\n allArticles.mainArticleId === null\n );\n};\n","import React from \"react\";\nimport useRouter from \"use-react-router\";\nimport { useDispatch, useMappedState } from \"redux-react-hook\";\n\nimport { getArticle } from \"../../api/articles\";\nimport { getArticleVersion } from \"../../api/articleVersions\";\nimport { createBreadcrumbItem } from \"../../utils/breadcrumbs\";\n\nimport { setDocumentTitle } from \"redux/modules/document-title\";\nimport { fetchMenuSucceeded, selectMenuItem } from \"redux/modules/menu\";\nimport { articlesKeys } from \"modules/articles/keys\";\n\nimport { getMenu } from \"../../api/menus\";\n\nimport { ArticleContent } from \"components/ArticleContent\";\nimport { Breadcrumb } from \"components/Breadcrumb/Breadcrumb\";\nimport withBreadcrumbs from \"components/Breadcrumb/withBreadcrumbs\";\nimport { RemoteData } from \"components/RemoteData/RemoteData\";\nimport { ErrorPanel } from \"components/ErrorPanel\";\n\nimport { IArticle } from \"../../types/IArticle\";\nimport { IMenuElement } from \"../../types/IMenuElement\";\n\ninterface IProps {\n setContextBreadcrumbs: (item: any[]) => void;\n}\n\nconst Article = ({ setContextBreadcrumbs }: IProps) => {\n const { location, match } = useRouter<{ method: string; id: string }>();\n const { startArticleId } = useMappedState(mapStateToProps);\n const dispatch = useDispatch();\n const id = location.pathname === \"/\" ? startArticleId : match.params.id;\n\n const fetchArticle = () => {\n const isVersion =\n match.params.method === \"v\" || match.params.method === \"getVersion\";\n\n return isVersion ? getArticleVersion(id) : getArticle(id);\n };\n\n return (\n
    \n \n \n queryKey={[articlesKeys.articleVersion, id]}\n configuration={{ refetchOnWindowFocus: false }}\n fetcher={fetchArticle}\n errorFallback={() => {\n setContextBreadcrumbs([]);\n return ;\n }}\n >\n {article => {\n const breadcrumbItems = [\n ...article.mainMenuPath\n .filter(menuElement => !!menuElement.parentId)\n .map(menuElement =>\n createBreadcrumbItem(menuElement.name, menuElement.url)\n )\n .reverse(),\n createBreadcrumbItem(article.title, location.pathname)\n ];\n setContextBreadcrumbs(breadcrumbItems);\n\n dispatch(selectMenuItem(article.mainMenuId));\n\n selectMenuItem(article.mainMenuId);\n\n const currentPathElement = article.mainMenuPath[0];\n dispatch(setDocumentTitle(currentPathElement.name));\n\n return (\n \n queryKey={[articlesKeys.menuItems, article.mainMenuId]}\n fetcher={() => getMenu(article.mainMenuId)}\n >\n {menuItems => {\n dispatch(fetchMenuSucceeded(menuItems));\n return ;\n }}\n \n );\n }}\n \n
    \n );\n};\n\nconst mapStateToProps = ({ context }: any) => ({\n startArticleId: context.startArticleId,\n context: context\n});\n\nexport default withBreadcrumbs(Article);\n","import { get } from \"lodash\";\nimport PropTypes from \"prop-types\";\nimport React from \"react\";\nimport Loadable from \"react-loadable\";\nimport { Switch, Route, Redirect } from \"react-router\";\nimport { withRouter } from \"react-router-dom\";\nimport { compose } from \"recompose\";\nimport { Loader, PrivateRoute, PublicRoute } from \"./components\";\nimport { useMappedState } from \"redux-react-hook\";\nimport { useGetUrlManager } from \"./utils/useGetUrlManager\";\nimport ArticleListContainer from \"../../containers/articles-list/ArticleListContainer\";\nimport Article from \"../../containers/article/Article\";\n\nconst FaqPage = Loadable({\n loader: () => import(\"../../containers/Faq\"),\n loading: Loader\n});\n\nconst AlcoholSellFeeCalculator = Loadable({\n loader: () => import(\"../../containers/Calculators/AlcoholSellFeeCalculator\"),\n loading: Loader\n});\n\nconst CalculatorsList = Loadable({\n loader: () => import(\"../../containers/Calculators/CalculatorsList\"),\n loading: Loader\n});\nconst ContactForm = Loadable({\n loader: () => import(\"./../../containers/contact-form\"),\n loading: Loader\n});\nconst ContentRegistry = Loadable({\n loader: () => import(\"../../containers/ContentRegistry\"),\n loading: Loader\n});\nconst Editors = Loadable({\n loader: () => import(\"../../containers/editors\"),\n loading: Loader\n});\nconst Declaration = Loadable({\n loader: () => import(\"../../containers/Declarations/Declaration\"),\n loading: Loader\n});\nconst EzdCaseStatus = Loadable({\n loader: () => import(\"../../containers/EzdCaseStatus/EzdCaseStatus\"),\n loading: Loader\n});\nconst EzdRegistriesList = Loadable({\n loader: () => import(\"../../containers/EzdRegistriesList/EzdRegistriesList\"),\n loading: Loader\n});\nconst EzdRegistryContainer = Loadable({\n loader: () => import(\"../../containers/EzdRegistry/EzdRegistryContainer\"),\n loading: Loader\n});\nconst GreenAreaAndTreeRemovalCalculator = Loadable({\n loader: () =>\n import(\"../../containers/Calculators/GreenAreaAndTreeRemovalCalculator\"),\n loading: Loader\n});\nconst Newsletter = Loadable({\n loader: () => import(\"../../containers/Newsletters/Newsletter\"),\n loading: Loader\n});\nconst NoContentPage = Loadable({\n loader: () => import(\"./../../containers/no-content-page/NoContentPage\"),\n loading: Loader\n});\nconst NoStartArticlePage = Loadable({\n loader: () => import(\"../../containers/article/NoStartArticlePage\"),\n loading: Loader\n});\nconst OccupationOfRoadwayCalculator = Loadable({\n loader: () =>\n import(\"../../containers/Calculators/OccupationOfRoadwayCalculator\"),\n loading: Loader\n});\nconst RemindPassword = Loadable({\n loader: () => import(\"./../../containers/remind-password\"),\n loading: Loader\n});\nconst SalaryCalculator = Loadable({\n loader: () => import(\"../../containers/Calculators/SalaryCalculator\"),\n loading: Loader\n});\nconst Search = Loadable({\n loader: () => import(\"../../containers/search/Search\"),\n loading: Loader\n});\nconst SignIn = Loadable({\n loader: () => import(\"../../containers/SignIn\"),\n loading: Loader\n});\nconst SignUp = Loadable({\n loader: () => import(\"../../containers/SignUp\"),\n loading: Loader\n});\nconst SiteMap = Loadable({\n loader: () => import(\"../../containers/SiteMap\"),\n loading: Loader\n});\nconst Survey = Loadable({\n loader: () => import(\"../../containers/Surveys/Survey\"),\n loading: Loader\n});\nconst Surveys = Loadable({\n loader: () => import(\"../../containers/Surveys/Surveys\"),\n loading: Loader\n});\nconst UserPanel = Loadable({\n loader: () => import(\"./../../containers/user-panel\"),\n loading: Loader\n});\n\nconst FileNotFound = Loadable({\n loader: () => import(\"../../containers/fileNotFound\"),\n loading: Loader\n});\n\nconst Routes = ({ location }) => {\n const {\n loader,\n startArticleId,\n userLogInEnabled,\n startMenuId,\n contextFriendlyUrl\n } = useMappedState(mapStateToProps);\n\n const { fromPath, homePath, redirectUrl } = useGetUrlManager(location);\n const showNoContentRoute =\n get(location, [\"state\", \"preventNoContentPage\"]) && loader.length === 0; //no content route when appropriate state and there are no loaders\n return (\n \n {startArticleId ? (\n \n ) : (\n \n )}\n\n {redirectUrl && homePath !== redirectUrl && (\n //redirect po to gdy wpisujemy nazwę samej jednostki\n \n )}\n {!startArticleId && !startMenuId && (\n \n )}\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {userLogInEnabled && (\n \n \n \n \n \n \n \n \n \n \n \n )}\n {showNoContentRoute && }\n \n );\n};\n\nRoutes.propTypes = {\n homePath: PropTypes.string,\n redirectUrl: PropTypes.string,\n showNoContentRoute: PropTypes.bool,\n userLogInEnabled: PropTypes.bool,\n startArticleId: PropTypes.string\n};\n\nconst mapStateToProps = ({ context, loader }) => ({\n userLogInEnabled: context.userLogInEnabled,\n startArticleId: context.startArticleId,\n startMenuId: context.startMenuId,\n loader: loader,\n contextFriendlyUrl: context.contextFriendlyUrl\n});\n\nconst enhance = compose(withRouter);\n\nexport default enhance(Routes);\n","import PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { Redirect } from \"react-router\";\nimport { connect } from \"react-redux\";\nimport { compose, withProps } from \"recompose\";\nimport BIP_MODULES from \"./../../../constants/bip_modules\";\n\nconst RedirectToSignIn = ({ pathname, redirectUrl }) => (\n \n);\n\nRedirectToSignIn.propTypes = {\n pathname: PropTypes.string.isRequired,\n redirectUrl: PropTypes.string\n};\n\nconst mapStateToProps = ({ context }) => ({\n friendlyUrl: context.contextFriendlyUrl,\n urlType: context.urlType\n});\n\nconst enhance = compose(\n connect(mapStateToProps),\n withProps(({ friendlyUrl, urlType }) => {\n const isFullUrl = urlType === \"full\";\n const context =\n friendlyUrl !== \"default\" ? `${friendlyUrl}${isFullUrl ? \"/\" : \",\"}` : \"\";\n return {\n pathname: `/${context}${\n isFullUrl\n ? BIP_MODULES.SIGN_IN.fullUrl\n : BIP_MODULES.SIGN_IN.friendlyUrl\n }`\n };\n })\n);\n\nexport default enhance(RedirectToSignIn);\n","import axios from \"axios\";\nimport ApiConfig from \"./api.config\";\nimport { IArticlePreview } from \"../types/IArticlePreview\";\n\nconst apiUrl = `${ApiConfig.getEntryPoint()}article-previews`;\n\nconst getArticle = (previewHash: string): Promise =>\n axios.get(`${apiUrl}/${previewHash}`).then(response => response.data);\n\nexport { getArticle };\n","import React from \"react\";\nimport { withRouter } from \"react-router-dom\";\nimport { compose, lifecycle, withState } from \"recompose\";\nimport styled from \"styled-components\";\n\nimport { getArticle } from \"../../api/articlePreviews\";\n\nimport { ErrorPanel } from \"components/ErrorPanel\";\n\nimport { ArticleContent } from \"../../components/ArticleContent\";\nimport { withLoader } from \"../../components/loader\";\n\nconst Preview = ({ article, notFound }) => (\n \n {article && }\n {notFound && }\n \n);\n\nconst PreviewContainer = styled.div`\n margin: 1rem;\n`;\n\nconst enhance = compose(\n withRouter,\n withLoader,\n withState(\"article\", \"setArticle\"),\n withState(\"notFound\", \"setNotFound\", false),\n lifecycle({\n async componentDidMount() {\n this.props.setNotFound(false);\n this.props.startLoader();\n try {\n const { previewHash } = this.props.match.params;\n const article = await getArticle(previewHash);\n this.props.setArticle(article);\n } catch ({ response }) {\n this.props.setNotFound(response.status === 404);\n } finally {\n this.props.stopLoader();\n }\n }\n })\n);\n\nexport { Preview, enhance };\nexport default enhance(Preview);\n","import React, { useState } from \"react\";\nimport styled from \"styled-components\";\nimport { useParams } from \"react-router-dom\";\n\nimport { isSurveyCompletedIcLocalStorage } from \"modules/survey/utils/isSurveyCompletedIcLocalStorage\";\n\nimport SurveyResults from \"./components/SurveyResults\";\nimport SurveyForm from \"./components/SurveyForm\";\n\nconst SurveyPreview = () => {\n const { id: paramsId } = useParams();\n const surveyId = Number(paramsId);\n const [isCompleted, setIsCompleted] = useState(\n isSurveyCompletedIcLocalStorage(surveyId)\n );\n\n return (\n \n {isCompleted ? (\n \n ) : (\n \n )}\n \n );\n};\n\nconst Container = styled.section`\n margin-bottom: 1rem;\n padding: 2rem;\n`;\n\nexport default SurveyPreview;\n","import { Preview } from \"../../../containers\";\nimport { SurveyPreview } from \"../../../containers/Surveys\";\n\nexport const previewRoutes = [\n {\n path: \"/(.*)?/p,:previewHash.html\",\n component: Preview\n },\n {\n path: \"/(.*,)?sp,:id,(.+).html\",\n component: SurveyPreview\n }\n];\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nconst UserTipRow = ({ label, value }) => (\n \n \n {value}\n \n);\n\nconst Container = styled.div`\n display: flex;\n align-items: flex-start;\n`;\n\nconst Label = styled.span`\n flex-grow: 0;\n min-width: 60px;\n flex-basis: 60px;\n`;\n\nconst Value = styled.span`\n flex-grow: 1;\n`;\n\nexport { UserTipRow };\n","/**\n * Created by fkurzawa on 16.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport { Tooltip } from \"components/Tooltip\";\n\nimport { UserTipRow } from \"./UserTipRow\";\n\nconst UserTip = ({ children, id, contact, description, email, phone }) => (\n \n {!contact && !description && !email && !phone && \"Brak informacji\"}\n {!!contact && }\n {!!description && }\n {!!email && }\n {!!phone && }\n \n }\n >\n {children}\n \n);\n\nUserTip.propTypes = {\n id: PropTypes.string.isRequired,\n contact: PropTypes.string,\n description: PropTypes.string,\n email: PropTypes.string,\n phone: PropTypes.string\n};\n\nexport { UserTip };\n","/**\n * Created by fkurzawa on 15.03.18.\n */\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport { UserTip } from \"./components/UserTip\";\n\nconst User = ({ user, id }) => {\n const tooltipId = `tip-${user.id}`;\n const { isBifTheme, isContrast } = useMappedState(mapStateToProps);\n\n return (\n \n \n {user.name}\n \n \n );\n};\n\nconst mapStateToProps = ({ accessibility, context }) => ({\n isContrast: accessibility.isContrast,\n isBifTheme: context.siteTheme === \"bif\"\n});\n\nUser.propTypes = {\n user: PropTypes.object.isRequired,\n id: PropTypes.string\n};\n\nconst UserName = styled.div`\n display: inline-flex;\n cursor: default;\n color: ${({ theme, isBifTheme, isContrast }) =>\n isBifTheme\n ? isContrast\n ? theme.text.primaryColor\n : \"#ff8f00\"\n : theme.text.primaryColor};\n`;\n\nexport { User };\n","/**\n * Created by fkurzawa on 25.01.18.\n */\nimport axios from \"axios\";\nimport ApiConfig from \"./api.config\";\nimport { IMenuElement } from \"../types/IMenuElement\";\n\nconst apiUrl = `${ApiConfig.getEntryPoint()}menu`;\n\nexport const getMenu = (menuId: number): Promise =>\n axios.get(`${apiUrl}/${menuId}`).then(response => response.data);\n\nexport const getSubMenu = (\n menuId: number,\n targetId: number\n): Promise =>\n axios\n .get(`${apiUrl}/${menuId}/submenu${targetId ? `/${targetId}` : \"\"}`)\n .then(response => response.data);\n\nexport const getRssUrl = (friendlyUrl = \"default\") =>\n `${apiUrl}/${friendlyUrl}/rss`;\n\nexport const getXmlUrl = (friendlyUrl = \"default\") =>\n `${apiUrl}/${friendlyUrl}/xml`;\n","import { ILanguageTranslation } from \"../../types/ILanguage\";\n\nexport const createTranslationsDictionary = (\n translations: ILanguageTranslation[] = []\n) => {\n return translations.reduce((map, obj) => {\n // @ts-ignore\n map[obj.key.toLowerCase()] = obj.translation;\n return map;\n }, {});\n};\n","/**\n * Created by fkurzawa on 13.06.18.\n */\nimport { createActions, handleActions } from \"redux-actions\";\n\nimport { createTranslationsDictionary } from \"../utils/createTranslationsDictionary\";\n\nconst { setTranslations, setLanguage } = createActions(\n \"SET_TRANSLATIONS\",\n \"SET_LANGUAGE\"\n);\n\nconst reducer = handleActions(\n {\n [setTranslations]: (state, { payload }) => ({\n ...state,\n translations: createTranslationsDictionary(payload)\n }),\n [setLanguage]: (state, { payload }) => ({\n ...state,\n langCode: payload\n })\n },\n {\n translations: {}\n }\n);\n\nexport { setTranslations, setLanguage };\nexport default reducer;\n","/**\n * Created by fkurzawa on 05.06.18.\n */\n\nimport { createActions, handleActions } from \"redux-actions\";\n\nconst { setContrast, toggleContrast } = createActions(\n \"SET_CONTRAST\",\n \"TOGGLE_CONTRAST\"\n);\n\nconst reducer = handleActions(\n {\n [setContrast]: (state, { payload: isContrast }) => ({\n ...state,\n isContrast\n }),\n [toggleContrast]: state => ({ ...state, isContrast: !state.isContrast })\n },\n {\n isContrast: false\n }\n);\n\nconst localStorageSaver = store => next => action => {\n next(action);\n if (\n action.type === setContrast.toString() ||\n action.type === toggleContrast.toString()\n ) {\n const { accessibility } = store.getState();\n window.localStorage.setItem(\"hc\", accessibility.isContrast);\n }\n};\n\nexport { setContrast, toggleContrast, localStorageSaver };\nexport default reducer;\n","/**\n * Created by fkurzawa on 13.06.18.\n */\nimport axios from \"axios\";\nimport ApiConfig from \"./api.config\";\nimport { ILanguage, ILanguageTranslation } from \"../types/ILanguage\";\n\nconst apiUrl = `${ApiConfig.getEntryPoint()}language`;\n\nconst getAvailableLanguages = (): Promise =>\n axios.get(`${apiUrl}/language`).then(response => response.data);\n\nconst getTranslation = (langCode: string): Promise =>\n axios\n .get(`${apiUrl}/${langCode}/translation`)\n .then(response => response.data);\n\nexport { getAvailableLanguages, getTranslation };\n","/**\n * Created by fkurzawa on 15.03.18.\n */\nimport { amber, white, grey, red, blueGrey } from \"material-colors\";\n\nconst contrastTheme = {\n primaryColor: amber[\"500\"],\n darkPrimaryColor: grey[\"900\"],\n lightPrimaryColor: grey[\"900\"],\n secondaryColor: white,\n dividerColor: amber[\"500\"],\n defaultBackground: grey[\"900\"],\n errorColor: white,\n highlightBackground: white,\n focusOutline: \"white solid 2px\",\n\n text: {\n primaryColor: amber[\"500\"],\n secondaryColor: amber[\"500\"],\n lightColor: amber[\"500\"]\n },\n\n buttons: {\n primary: {\n color: grey[\"900\"],\n background: amber[\"500\"],\n hoverBackground: amber[\"700\"]\n },\n\n secondary: {\n color: grey[\"900\"],\n background: amber[\"500\"],\n hoverBackground: amber[\"700\"]\n },\n\n default: {\n color: grey[\"900\"],\n background: amber[\"500\"],\n hoverBackground: amber[\"700\"]\n },\n\n strongPrimary: {\n color: grey[\"900\"],\n background: red[\"500\"],\n hoverBackground: red[\"700\"]\n },\n\n strongSecondary: {\n color: grey[\"900\"],\n background: blueGrey[\"500\"],\n hoverBackground: blueGrey[\"700\"]\n }\n }\n};\n\nexport default contrastTheme;\n","/**\n * Created by fkurzawa on 28.06.18.\n */\nimport { blueGrey, grey, red, white } from \"material-colors\";\n\nconst primaryTheme = {\n primaryColor: grey[\"500\"],\n darkPrimaryColor: grey[\"700\"],\n lightPrimaryColor: grey[\"200\"],\n secondaryColor: grey[\"800\"],\n dividerColor: grey[\"400\"],\n defaultBackground: white,\n errorColor: grey[\"600\"],\n highlightBackground: grey[\"100\"],\n imageFilter: \"grayscale(100%)\",\n focusOutline: \"black solid 2px\",\n\n text: {\n primaryColor: grey[\"800\"],\n secondaryColor: grey[\"600\"],\n lightColor: grey[\"200\"]\n },\n\n buttons: {\n primary: {\n color: grey[\"50\"],\n background: grey[\"600\"],\n hoverBackground: grey[\"800\"]\n },\n\n secondary: {\n color: grey[\"50\"],\n background: grey[\"600\"],\n hoverBackground: grey[\"800\"]\n },\n\n default: {\n color: grey[\"800\"],\n background: grey[\"300\"],\n hoverBackground: grey[\"400\"]\n },\n\n strongPrimary: {\n color: grey[\"50\"],\n background: red[\"600\"],\n hoverBackground: red[\"800\"]\n },\n\n strongSecondary: {\n color: grey[\"50\"],\n background: blueGrey[\"600\"],\n hoverBackground: blueGrey[\"800\"]\n }\n }\n};\n\nexport default primaryTheme;\n","/**\n * Created by fkurzawa on 15.03.18.\n */\nimport { amber, white, grey, blueGrey, red } from \"material-colors\";\n\nconst primaryTheme = {\n primaryColor: grey[\"500\"],\n darkPrimaryColor: grey[\"700\"],\n lightPrimaryColor: grey[\"200\"],\n secondaryColor: red[\"800\"],\n dividerColor: grey[\"400\"],\n defaultBackground: white,\n errorColor: red[\"600\"],\n highlightBackground: amber[\"100\"],\n focusOutline: \"black solid 2px\",\n\n text: {\n primaryColor: blueGrey[\"800\"],\n secondaryColor: blueGrey[\"600\"],\n lightColor: blueGrey[\"50\"]\n },\n\n buttons: {\n primary: {\n color: grey[\"50\"],\n background: red[\"500\"],\n hoverBackground: red[\"900\"]\n },\n\n secondary: {\n color: grey[\"50\"],\n background: blueGrey[\"500\"],\n hoverBackground: blueGrey[\"900\"]\n },\n\n default: {\n color: grey[\"800\"],\n background: grey[\"300\"],\n hoverBackground: grey[\"400\"]\n },\n\n strongPrimary: {\n color: grey[\"50\"],\n background: red[\"900\"],\n hoverBackground: red[\"700\"]\n },\n\n strongSecondary: {\n color: grey[\"50\"],\n background: blueGrey[\"600\"],\n hoverBackground: blueGrey[\"900\"]\n }\n }\n};\n\nexport default primaryTheme;\n","/**\n * Created by fkurzawa on 28.06.18.\n */\nimport { amber, white, grey, blueGrey, red, lightBlue } from \"material-colors\";\n\nconst primaryTheme = {\n primaryColor: grey[\"500\"],\n darkPrimaryColor: grey[\"700\"],\n lightPrimaryColor: grey[\"200\"],\n secondaryColor: red[\"500\"],\n dividerColor: grey[\"400\"],\n errorColor: red[\"600\"],\n highlightBackground: amber[\"100\"],\n\n asideBackground: lightBlue[\"900\"],\n asideMenuItemColor: white,\n asideMenuItemBackground: \"transparent\",\n\n defaultBackground: white,\n\n footerLinkColor: white,\n footerGoUpColor: grey[\"400\"],\n footerContentBackground: lightBlue[\"900\"],\n\n toolbarBackground: lightBlue[\"900\"],\n focusOutline: \"black solid 2px\",\n text: {\n primaryColor: blueGrey[\"800\"],\n secondaryColor: blueGrey[\"600\"],\n lightColor: blueGrey[\"200\"]\n },\n\n buttons: {\n primary: {\n color: grey[\"50\"],\n background: red[\"500\"],\n hoverBackground: red[\"900\"]\n },\n\n secondary: {\n color: grey[\"50\"],\n background: blueGrey[\"500\"],\n hoverBackground: blueGrey[\"900\"]\n },\n\n default: {\n color: grey[\"800\"],\n background: grey[\"300\"],\n hoverBackground: grey[\"400\"]\n },\n\n strongPrimary: {\n color: grey[\"50\"],\n background: red[\"900\"],\n hoverBackground: red[\"700\"]\n },\n\n strongSecondary: {\n color: grey[\"50\"],\n background: blueGrey[\"600\"],\n hoverBackground: blueGrey[\"900\"]\n }\n }\n};\n\nexport default primaryTheme;\n","/**\n * Created by fkurzawa on 28.06.18.\n */\nimport { amber, white, grey, blueGrey, red, lightGreen } from \"material-colors\";\n\nconst primaryTheme = {\n primaryColor: lightGreen[\"500\"],\n darkPrimaryColor: grey[\"700\"],\n lightPrimaryColor: lightGreen[\"200\"],\n secondaryColor: red[\"800\"],\n dividerColor: grey[\"500\"],\n errorColor: red[\"600\"],\n highlightBackground: amber[\"100\"],\n\n asideBackground: lightGreen[\"400\"],\n asideMenuItemBackground: \"transparent\",\n\n defaultBackground: white,\n\n footerContentBackground: lightGreen[\"400\"],\n footerLinkColor: blueGrey[\"800\"],\n footerGoUpColor: blueGrey[\"600\"],\n\n toolbarBackground: lightGreen[\"400\"],\n focusOutline: \"black solid 2px\",\n text: {\n primaryColor: blueGrey[\"800\"],\n secondaryColor: blueGrey[\"600\"],\n lightColor: blueGrey[\"200\"]\n },\n\n buttons: {\n primary: {\n color: grey[\"50\"],\n background: red[\"500\"],\n hoverBackground: red[\"900\"]\n },\n\n secondary: {\n color: grey[\"50\"],\n background: blueGrey[\"500\"],\n hoverBackground: blueGrey[\"900\"]\n },\n\n default: {\n color: lightGreen[\"900\"],\n background: lightGreen[\"200\"],\n hoverBackground: lightGreen[\"500\"]\n },\n\n strongPrimary: {\n color: grey[\"50\"],\n background: red[\"500\"],\n hoverBackground: red[\"900\"]\n },\n\n strongSecondary: {\n color: grey[\"50\"],\n background: blueGrey[\"500\"],\n hoverBackground: blueGrey[\"900\"]\n }\n }\n};\n\nexport default primaryTheme;\n","/**\n * Created by fkurzawa on 15.03.18.\n */\nimport contrast from \"./contrastTheme\";\nimport grey from \"./greyTheme\";\nimport primary from \"./primaryTheme\";\nimport przedborz from \"./przedborzTheme\";\nimport pks from \"./pksTheme\";\nimport szamotuly from \"./szamotulyTheme\";\nimport whiteGrey from \"./whiteGreyTheme\";\nimport wiazowna from \"./wiazownaTheme\";\n\nconst themes = {\n contrast,\n gray: grey,\n primary,\n przedborz,\n pks,\n szamotuly,\n whiteGrey,\n wiazowna\n};\n\nexport default themes;\n","/**\n * Created by fkurzawa on 28.06.18.\n */\nimport { amber, white, grey, blueGrey, red } from \"material-colors\";\nimport backgroundImage from \"./../assets/img/background-szamotuly.jpg\";\n\nconst primaryTheme = {\n primaryColor: grey[\"500\"],\n darkPrimaryColor: grey[\"700\"],\n lightPrimaryColor: \"#bccde5\",\n secondaryColor: red[\"800\"],\n dividerColor: grey[\"400\"],\n layoutDividerColor: \"#787878\",\n errorColor: red[\"600\"],\n highlightBackground: amber[\"100\"],\n\n asideBackground:\n \"linear-gradient(to bottom,#d6dbe7 0,#d6dbe7 66%,#9aacc5 100%)\",\n asideMenuItemActiveBackground: \"#dce3ed\",\n asideMenuItemActiveColor: \"#3b6094\",\n asideMenuItemColor: \"#3b6094\",\n asideMenuItemBackground: \"transparent\",\n contentBackground: \"#dce3ed\",\n defaultBackground: white,\n layoutBackground: `url(${backgroundImage}) no-repeat center top #d7d7d7`,\n menuSeparatorBackground: \"#012d6c\",\n menuSeparatorColor: \"white\",\n pageTitleColor: \"#0b9eca\",\n toolbarBackground: \"#d6dbe7\",\n focusOutline: \"black solid 2px\",\n text: {\n primaryColor: blueGrey[\"800\"],\n secondaryColor: blueGrey[\"600\"],\n lightColor: blueGrey[\"200\"]\n },\n\n buttons: {\n primary: {\n color: grey[\"50\"],\n background: red[\"500\"],\n hoverBackground: red[\"900\"]\n },\n\n secondary: {\n color: grey[\"50\"],\n background: blueGrey[\"500\"],\n hoverBackground: blueGrey[\"900\"]\n },\n\n default: {\n color: grey[\"800\"],\n background: grey[\"300\"],\n hoverBackground: grey[\"400\"]\n },\n\n strongPrimary: {\n color: grey[\"50\"],\n background: red[\"900\"],\n hoverBackground: red[\"700\"]\n },\n\n strongSecondary: {\n color: grey[\"50\"],\n background: blueGrey[\"600\"],\n hoverBackground: blueGrey[\"900\"]\n }\n }\n};\n\nexport default primaryTheme;\n","/**\n * Created by fkurzawa on 28.06.18.\n */\nimport { amber, white, grey, blueGrey, red } from \"material-colors\";\n\nconst primaryTheme = {\n primaryColor: grey[\"500\"],\n darkPrimaryColor: grey[\"700\"],\n lightPrimaryColor: grey[\"200\"],\n secondaryColor: red[\"800\"],\n dividerColor: grey[\"400\"],\n errorColor: red[\"600\"],\n highlightBackground: amber[\"100\"],\n\n defaultBackground: white,\n contentBackground: grey[\"300\"],\n footerBackground: grey[\"400\"],\n footerGoUpColor: blueGrey[\"600\"],\n headerBackground: grey[\"400\"],\n focusOutline: \"black solid 2px\",\n text: {\n primaryColor: blueGrey[\"800\"],\n secondaryColor: blueGrey[\"600\"],\n lightColor: blueGrey[\"200\"]\n },\n\n buttons: {\n primary: {\n color: grey[\"50\"],\n background: red[\"500\"],\n hoverBackground: red[\"900\"]\n },\n\n secondary: {\n color: grey[\"50\"],\n background: blueGrey[\"500\"],\n hoverBackground: blueGrey[\"900\"]\n },\n\n default: {\n color: grey[\"800\"],\n background: grey[\"400\"],\n hoverBackground: grey[\"600\"]\n },\n\n strongPrimary: {\n color: grey[\"50\"],\n background: red[\"500\"],\n hoverBackground: red[\"900\"]\n },\n\n strongSecondary: {\n color: grey[\"50\"],\n background: red[\"500\"],\n hoverBackground: red[\"900\"]\n }\n }\n};\n\nexport default primaryTheme;\n","// @ts-ignore\nimport { amber, white, grey, blueGrey, red, lightGreen, orange } from \"material-colors\";\n\nconst primaryTheme = {\n primaryColor: lightGreen[\"500\"],\n darkPrimaryColor: grey[\"700\"],\n lightPrimaryColor: lightGreen[\"a100\"],\n secondaryColor: red[\"800\"],\n dividerColor: grey[\"500\"],\n errorColor: red[\"600\"],\n highlightBackground: amber[\"100\"],\n\n asideBackground: orange[\"300\"],\n asideMenuItemBackground: \"#FFd9b5\",\n asideMenuItemActiveBackground: \"#FF7733\",\n asideMenuItemActiveColor: \"black\",\n\n defaultBackground: white,\n\n footerContentBackground: lightGreen[\"a100\"],\n footerLinkColor: blueGrey[\"800\"],\n footerGoUpColor: blueGrey[\"600\"],\n\n toolbarBackground: lightGreen[\"a100\"],\n focusOutline: \"#ff8c1a solid 2px\",\n text: {\n primaryColor: blueGrey[\"800\"],\n secondaryColor: blueGrey[\"600\"],\n lightColor: blueGrey[\"200\"]\n },\n\n buttons: {\n primary: {\n color: grey[\"50\"],\n background: red[\"500\"],\n hoverBackground: red[\"900\"]\n },\n\n secondary: {\n color: grey[\"50\"],\n background: blueGrey[\"500\"],\n hoverBackground: blueGrey[\"900\"]\n },\n\n default: {\n color: lightGreen[\"900\"],\n background: lightGreen[\"a100\"],\n hoverBackground: lightGreen[\"500\"]\n },\n\n strongPrimary: {\n color: grey[\"50\"],\n background: red[\"500\"],\n hoverBackground: red[\"900\"]\n },\n\n strongSecondary: {\n color: grey[\"50\"],\n background: blueGrey[\"500\"],\n hoverBackground: blueGrey[\"900\"]\n }\n }\n};\n\nexport default primaryTheme;\n","import axios from \"axios\";\nimport ApiConfig from \"../../../api/api.config\";\n\nconst apiUrl = `${ApiConfig.getEntryPoint()}contexts`;\n\nexport const getVisitorsCounter = (\n friendlyUrl: string\n): Promise => {\n return axios\n .get(`${apiUrl}/${friendlyUrl}/visit-counter`)\n .then(response => response.data);\n};\n\n\nexport const getVisitorsCounterKey = (friendlyUrl: string) => {\n return [`visitors-counter-${friendlyUrl}`]\n}","import React from \"react\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport {\n getVisitorsCounter,\n getVisitorsCounterKey\n} from \"../api/getVisitorsCounter\";\n\nimport { RemoteData } from \"components/RemoteData/RemoteData\";\n\nconst VisitorsCounter = () => {\n const { friendlyUrl } = useMappedState(mapStateToProps);\n return (\n \n queryKey={getVisitorsCounterKey(friendlyUrl)}\n fetcher={() => getVisitorsCounter(friendlyUrl)}\n data-testid=\"test-SiteMap\"\n errorFallback={() => <>}\n >\n {visitorsCounter => {\n return (\n \n Liczba odwiedzin: {visitorsCounter || 0}\n \n );\n }}\n \n );\n};\n\nconst mapStateToProps = ({ context }: any) => ({\n friendlyUrl: context.contextFriendlyUrl\n});\n\nconst Container = styled.section`\n color: ${({ theme }) => theme.asideMenuItemColor || theme.text.primaryColor};\n font-size: 0.75em;\n padding: 1rem;\n`;\n\nexport { VisitorsCounter };\n","/**\n * Created by fkurzawa on 12.02.18.\n */\nimport React from \"react\";\nimport { useMappedState } from \"redux-react-hook\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\n\nimport { withTranslate } from \"../../../../translate\";\n\nconst Separator = ({ text, onClick }) => {\n const { isBifTheme } = useMappedState(mapStateToProps);\n return (\n \n {text}\n \n );\n};\n\nSeparator.propTypes = {\n text: PropTypes.string,\n onClick: PropTypes.func,\n isBifTheme: PropTypes.bool\n};\n\nconst mapStateToProps = ({ context }) => ({\n isBifTheme: context.siteTheme === \"bif\"\n});\n\nconst SeparatorListItem = styled.li`\n background: ${({ theme }) =>\n theme.menuSeparatorBackground || theme.defaultBackground};\n position: relative;\n z-index: 2;\n padding: 15px;\n min-height: 60px;\n box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12), 0 2px 3px rgba(0, 0, 0, 0.24);\n ${({ isBifTheme }) =>\n isBifTheme &&\n `box-shadow: none;\n border: solid 1px #ccc;\n margin-left: -100%;\n padding-left: 100%;`};\n cursor: ${({ onClick }) =>\n typeof onClick === \"function\" ? \"pointer\" : \"default\"};\n`;\n\nconst Text = withTranslate(styled.span`\n color: ${({ theme }) => theme.menuSeparatorColor || theme.text.primaryColor};\n word-wrap: break-word;\n line-height: 30px;\n text-transform: uppercase;\n font-weight: bold;\n`);\n\nexport { Separator };\n","/**\n * Created by fkurzawa on 04.06.18.\n */\nimport styled from \"styled-components\";\n\nexport const ListItem = styled.li`\n background: ${({ theme }) =>\n theme.asideMenuItemBackground || theme.lightPrimaryColor};\n\n .fa {\n margin-right: 0.5rem;\n }\n\n a {\n color: ${({ theme }) =>\n theme.asideMenuItemColor || theme.text.primaryColor};\n border-bottom: 1px solid ${({ theme }) => theme.dividerColor};\n display: block;\n\n padding: 10px 15px;\n border-right: 6px solid transparent;\n\n &:hover,\n &.active:hover {\n text-decoration: none;\n position: relative;\n z-index: 1;\n color: ${({ theme }) => theme.secondaryColor};\n border-bottom-color: ${({ theme }) => theme.secondaryColor};\n }\n\n &.active {\n color: ${({ theme }) =>\n theme.asideMenuItemActiveColor || theme.text.primaryColor};\n border-right-color: ${({ theme }) => theme.asideMenuItemActiveBackground || theme.secondaryColor};\n background: ${({ theme }) =>\n theme.asideMenuItemActiveBackground || theme.defaultBackground};\n }\n\n &:focus-within:not(:active) {\n outline: ${({ theme }) => theme.focusOutline};\n }\n }\n`;\n","import PropTypes from \"prop-types\";\nimport React from \"react\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport { ListItem } from \"./ListItem\";\nimport { Redirection } from \"./Redirection\";\n\nconst MenuItem = ({ item }) => {\n const { isBifTheme } = useMappedState(mapStateToProps);\n return (\n <>\n {isBifTheme ? (\n \n \n \n ) : (\n \n \n \n )}\n \n );\n};\n\nMenuItem.propTypes = {\n item: PropTypes.object.isRequired,\n isBifTheme: PropTypes.bool\n};\n\nconst mapStateToProps = ({ context }) => ({\n isBifTheme: context.siteTheme === \"bif\"\n});\n\nconst BifListItem = styled(ListItem)`\n margin-left: -100%;\n padding-left: 100%;\n border-bottom: none;\n a {\n border-bottom: none;\n border-left: 6px solid transparent;\n &.active {\n border-left-color: ${({ theme }) => theme.secondaryColor};\n border-right-color: transparent;\n }\n }\n`;\n\nexport { MenuItem };\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\n\nimport { MenuItem } from \"./MenuItem\";\n\nconst SubMenu = ({ items }) => (\n \n {items.map((menuItem, index) => (\n \n ))}\n \n);\n\nSubMenu.propTypes = {\n items: PropTypes.array\n};\n\nSubMenu.defaultProps = {\n items: []\n};\n\nconst List = styled.ul`\n margin: 0;\n padding: 0 0 0 20px;\n list-style-type: none;\n`;\n\nexport { SubMenu };\n","import React from \"react\";\nimport { truncate } from \"lodash\";\nimport { NavLink } from \"react-router-dom\";\nimport { useMappedState } from \"redux-react-hook\";\nimport PropTypes from \"prop-types\";\n\nimport { isSubMenu } from \"utils/menu\";\n\nimport { SubMenu } from \"./SubMenu\";\n\nconst Redirection = ({ item }) => {\n const MaxNameLength = 60;\n const { menuDirIconEnabled, menuSelectedId } = useMappedState(\n mapStateToProps\n );\n const isSubMenuItem = isSubMenu(item);\n const isRedirectLink = !!item.redirectUrl;\n const isSelected = item.id?.toString() === menuSelectedId?.toString();\n const showSubMenu = isSelected || isSubMenuItem;\n const showDirIcon = isSubMenuItem && menuDirIconEnabled;\n return (\n <>\n {isRedirectLink ? (\n MaxNameLength\n ? item.name\n : undefined\n }\n >\n {showDirIcon && }\n {truncate(item.name, {\n length: MaxNameLength,\n separator: \" \"\n })}\n \n ) : (\n isSelected}\n activeClassName=\"active\"\n target={item.target !== \"_self\" ? item.target : undefined}\n title={\n item && item.name && item.name.length > MaxNameLength\n ? item.name\n : undefined\n }\n replace\n >\n {showDirIcon && }\n {truncate(item.name, {\n length: MaxNameLength,\n separator: \" \"\n })}\n \n )}\n {showSubMenu && item.children && }\n \n );\n};\n\nRedirection.propTypes = {\n item: PropTypes.object.isRequired\n};\n\nconst mapStateToProps = ({ context, menu }) => ({\n menuSelectedId: menu.selectedId,\n menuDirIconEnabled: context.menuDirIconEnabled\n});\n\nexport { Redirection };\n","import React, { useState, useEffect } from \"react\";\nimport { useMappedState } from \"redux-react-hook\";\nimport styled from \"styled-components\";\n\nimport { getLatestArticles } from \"api/articles\";\n\nimport { Separator } from \"./Separator\";\nimport { ListItem } from \"./ListItem\";\nimport { Redirection } from \"./Redirection\";\n\nconst LatestArticles = () => {\n const { isBifTheme, friendlyUrl } = useMappedState(mapStateToProps);\n const [latestArticles, setLatestArticles] = useState([]);\n\n useEffect(() => {\n getLatestArticles(friendlyUrl).then(result => {\n setLatestArticles(result);\n });\n }, [friendlyUrl]);\n\n return (\n <>\n \n {isBifTheme\n ? latestArticles.map((article, index) => (\n \n \n \n ))\n : latestArticles.map((article, index) => (\n \n \n \n ))}\n \n );\n};\n\nconst mapStateToProps = ({ context }) => ({\n isBifTheme: context.siteTheme === \"bif\",\n friendlyUrl: context.contextFriendlyUrl\n});\n\nconst BifListItem = styled(ListItem)`\n margin-left: -100%;\n padding-left: 100%;\n border-bottom: none;\n a {\n border-bottom: none;\n border-left: 6px solid transparent;\n &.active {\n border-left-color: ${({ theme }) => theme.secondaryColor};\n border-right-color: transparent;\n }\n }\n`;\n\nexport { LatestArticles };\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport PropTypes from \"prop-types\";\n\nimport { withTranslate } from \"../../../../translate\";\n\nconst SeparatorH2 = ({ text }) => {\n return (\n \n {text}\n \n );\n};\n\nSeparatorH2.propTypes = {\n text: PropTypes.string.isRequired\n};\n\nconst Text = withTranslate(styled.h2`\n color: ${({ theme }) => theme.menuSeparatorColor || theme.text.primaryColor};\n word-wrap: break-word;\n line-height: 30px;\n text-transform: uppercase;\n font-weight: bold;\n font-size: 14px;\n margin-bottom: 0;\n`);\n\nconst SeparatorListItem = styled.li`\n background: ${({ theme }) =>\n theme.menuSeparatorBackground || theme.defaultBackground};\n position: relative;\n z-index: 2;\n padding: 15px;\n min-height: 60px;\n box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12), 0 2px 3px rgba(0, 0, 0, 0.24);\n cursor: default;\n`;\n\nexport { SeparatorH2 };\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport { isSeparator } from \"utils/menu\";\n\nimport { Separator } from \"./Separator\";\nimport { MenuItem } from \"./MenuItem\";\nimport { SeparatorH2 } from \"./SeparatorH2\";\n\nconst MainMenuItems = props => {\n const { separatorName } = useMappedState(mapStateToProps);\n\n return props.items.map((item, index) => {\n if (isSeparator(item) && index === 0) {\n return ;\n }\n\n if (isSeparator(item) && item.name === \"Inne\") {\n return (\n \n );\n }\n\n if (isSeparator(item)) {\n return ;\n }\n\n return ;\n });\n};\n\nMainMenuItems.propTypes = {\n items: PropTypes.array\n};\n\nMainMenuItems.defaultProps = {\n items: []\n};\n\nconst mapStateToProps = ({ context }) => ({\n separatorName: context.separatorName\n});\n\nexport { MainMenuItems };\n","import React, { useState } from \"react\";\nimport styled from \"styled-components\";\n\nimport { LatestArticles } from \"./components/LatestArticles\";\nimport { MainMenuItems } from \"./components/MainMenuItems\";\nimport { Separator } from \"./components/Separator\";\n\nimport { useMappedState } from \"redux-react-hook\";\n\nconst Menu = () => {\n const {\n lastArticlesEnabled,\n items = [],\n additionalItems = []\n } = useMappedState(mapStateToProps);\n\n const menuItems = [...items, ...additionalItems];\n const [collapsedMobile, setCollapsedMobile] = useState(false);\n\n const toggleCollapsedMobile = () => {\n setCollapsedMobile(!collapsedMobile);\n };\n\n return (\n \n \n \n {lastArticlesEnabled && }\n \n\n \n {items.length > 0 && (\n \n )}\n {!collapsedMobile && (\n <>\n \n {lastArticlesEnabled && }\n \n )}\n \n \n );\n};\n\nconst MenuContainer = styled.nav`\n font-size: 0.875em;\n`;\n\nconst List = styled.ul`\n margin: 0;\n padding: 0;\n list-style-type: none;\n`;\n\nconst DefaultList = styled(List)`\n display: none;\n @media (min-width: 1024px) {\n display: block;\n }\n`;\n\nconst MobileList = styled(List)`\n display: block;\n @media (min-width: 1024px) {\n display: none;\n }\n`;\n\nconst mapStateToProps = ({ context, menu }) => ({\n friendlyUrl: context.contextFriendlyUrl,\n lastArticlesEnabled: context.lastArticlesEnabled,\n items: menu.items,\n additionalItems: menu.additionalItems\n});\n\nexport { Menu };\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport { VisitorsCounter } from \"modules/visitorsCounter/presentation/VisitorsCounter\";\n\nimport { Menu } from \"./components/Menu\";\n\nconst Aside = () => {\n const { isBifTheme, visitorsCounterEnabled } = useMappedState(\n mapStateToProps\n );\n return (\n \n \n {visitorsCounterEnabled && }\n \n );\n};\n\nAside.propTypes = {\n visitorsCounterEnabled: PropTypes.bool,\n isBifTheme: PropTypes.bool\n};\n\nconst Container = styled.div`\n margin-top: -1px;\n background: ${({ theme }) => theme.asideBackground};\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n @media screen and (min-width: 1024px) {\n flex: 0 0 250px;\n min-width: 250px;\n\n position: sticky;\n top: 68px;\n max-height: calc(100vh - 68px);\n overflow-y: auto;\n //W przypadku gdy suwak nie będzie porządany w menu wtedy zastosować poniższy kod\n // max-height: ${({ isBifTheme }) =>\n isBifTheme ? \"initial\" : \"calc(100vh - 68px)\"};\n // overflow-y: ${({ isBifTheme }) => (isBifTheme ? \"inherit\" : \"auto\")};\n }\n\n @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n max-height: none;\n }\n\n @media print {\n display: none;\n }\n`;\n\nconst mapStateToProps = ({ context }) => ({\n visitorsCounterEnabled: context.visitorsCounterEnabled,\n isBifTheme: context.siteTheme === \"bif\"\n});\n\nexport { Aside };\n","/**\n * Created by fkurzawa on 11.06.18.\n */\nimport styled from \"styled-components\";\n\nconst Container = styled.div`\n margin: auto;\n width: auto; // tablets and phones (landscape and portrait)\n padding: 0 1rem;\n\n @media (min-width: 576px) {\n max-width: 540px;\n }\n\n @media (min-width: 768px) {\n max-width: 720px;\n }\n\n @media (min-width: 992px) {\n max-width: 960px;\n }\n\n @media (min-width: 1200px) {\n max-width: 1140px;\n }\n\n @media (min-width: 1440px) {\n // medium desktop\n max-width: 1400px;\n }\n\n @media (min-width: 1680px) {\n // big desktop\n max-width: 1600px;\n }\n`;\n\nexport default Container;\n","import React from \"react\";\nimport { useMappedState } from \"redux-react-hook\";\nimport styled from \"styled-components\";\n\nimport wcagLogoUrl from \"../../../assets/img/wcag_logo.png\";\n\nconst FooterAside = () => {\n const { corporateMarkEnabled, w3cInfoShow } = useMappedState(mapState);\n\n return (\n \n {w3cInfoShow && (\n \"WCAG\n )}\n {corporateMarkEnabled && (\n \n System jest częścią{\" \"}\n \n SIDAS BIP\n \n \n )}\n \n );\n};\n\nconst mapState = ({ context }: any) => ({\n corporateMarkEnabled: context.corporateMarkEnabled,\n w3cInfoShow: context.w3cInfoShow\n});\n\nconst Container = styled.div`\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 0.75rem 0;\n`;\n\nconst Image = styled.img`\n height: 31px;\n width: 88px;\n margin-bottom: 0.25rem;\n filter: ${({ theme }) => theme.imageFilter};\n`;\n\nconst Text = styled.div`\n font-size: 0.75em;\n color: ${({ theme }) => theme.text.primaryColor};\n`;\n\nconst Link = styled.a`\n text-decoration: underline;\n color: ${({ theme }) => theme.text.secondaryColor};\n &:hover {\n text-decoration: none;\n color: ${({ theme }) => theme.secondaryColor};\n }\n`;\n\nexport { FooterAside };\n","export enum Browser {\n Firefox = \"firefox\",\n Chrome = \"chrome\"\n}\n\nexport const checkIfBrowser = (browser: Browser) => {\n return navigator.userAgent.toLocaleLowerCase().indexOf(browser) > -1;\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { Button, ExternalLinkButton, LinkButton } from \"../../buttons\";\nimport Translate from \"../../translate\";\nimport BIP_MODULES from \"../../../constants/bip_modules\";\nimport { IFooterLink } from \"../../../types/IFooterLink\";\nimport { useScrollToTopAccessKey } from \"./useScrollToTopAccessKey\";\nimport { onScrollTop } from \"../../../utils\";\n\ninterface IProps {\n links: IFooterLink[];\n}\n\nconst FooterContent = ({ links = [] }: IProps) => {\n const isExternalLink = (url: string) => /^https?.*/.test(url);\n useScrollToTopAccessKey();\n\n return (\n \n \n {links.map((link, index) => (\n \n {isExternalLink(link.link) ? (\n \n {link.title}\n \n ) : (\n \n {link.title}\n \n )}\n \n ))}\n \n {/*eslint-disable-next-line*/}\n \n Up{\" \"}\n \n \n \n );\n};\n\nconst Container = styled.nav`\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n padding: 0.5rem;\n`;\n\nconst LinksList = styled.ul`\n flex-grow: 1;\n margin: 0;\n padding: 0;\n list-style-type: none;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n\n @media screen and (max-width: 575px) {\n flex-direction: column;\n align-items: flex-start;\n }\n`;\n\nconst LinkListItem = styled.li`\n &:not(:last-child) {\n margin-right: 0.25rem;\n margin-bottom: 0.25rem;\n }\n\n & a {\n color: ${({ theme }) =>\n theme.footerLinkColor ? theme.footerLinkColor : \"\"};\n\n &:hover:not(:disabled) {\n border-color: ${({ theme }) =>\n theme.footerLinkColor ? theme.footerLinkColor : \"\"};\n }\n }\n`;\n\nconst FooterGoUpButton = styled(Button)`\n && {\n color: ${({ theme }) =>\n theme.footerLinkColor ? theme.footerLinkColor : \"\"};\n\n &:hover:not(:disabled) {\n border-color: ${({ theme }) =>\n theme.footerLinkColor ? theme.footerLinkColor : \"\"};\n }\n }\n`;\n\nexport { FooterContent };\n","import { useEffect } from \"react\";\n\nimport { Browser, checkIfBrowser } from \"../../../utils/checkIfBrowser\";\nimport { onScrollTop } from \"../../../utils\";\n\nexport const useScrollToTopAccessKey = () => {\n useEffect(() => {\n const handler = (e: KeyboardEvent) => {\n if (checkIfBrowser(Browser.Firefox)) {\n if (e.altKey && e.shiftKey && (e.key === \"t\" || e.key === \"T\")) {\n onScrollTop();\n }\n } else {\n if (e.altKey && (e.key === \"T\" || e.key === \"t\")) {\n onScrollTop();\n }\n }\n };\n document.addEventListener(\"keyup\", handler, false);\n\n return () => document.removeEventListener(\"keyup\", handler);\n });\n\n return null;\n};\n","/**\n * Created by fkurzawa on 26.01.18.\n */\nimport React from \"react\";\nimport Media from \"react-media\";\n\ninterface IProps {\n footerHtml: string;\n footerHtmlMobile: string;\n}\n\nconst FooterEditable = ({ footerHtml, footerHtmlMobile }: IProps) => (\n \n {matches =>\n matches ? (\n
    \n ) : (\n
    \n )\n }\n \n);\n\nexport { FooterEditable };\n","import React from \"react\";\nimport Media from \"react-media\";\nimport { useMappedState } from \"redux-react-hook\";\nimport styled from \"styled-components\";\n\nimport Container from \"../container\";\nimport { FooterAside } from \"./components/FooterAside\";\nimport { FooterContent } from \"./components/FooterContent\";\nimport { FooterEditable } from \"./components/FooterEditable\";\n\nconst Footer = () => {\n const {\n footerHtml,\n footerHtmlMobile,\n footerLinks,\n isBifTheme\n } = useMappedState(mapState);\n\n return (\n \n \n \n \n {matches =>\n matches && (\n \n \n \n )\n }\n \n \n \n \n \n \n \n \n );\n};\n\nconst mapState = ({ context }: any) => ({\n footerHtml: context.footerHtml,\n footerHtmlMobile: context.footerHtmlMobile,\n footerLinks: context.footerLinks,\n isBifTheme: context.siteTheme === \"bif\"\n});\n\nconst Content = styled(Container.withComponent(\"footer\"))`\n @media print {\n display: none;\n }\n\n background: ${({ theme }) => theme.footerBackground};\n ${({ isBifTheme, theme }) =>\n !isBifTheme &&\n `\n border-top: 3px solid ${\n theme.layoutDividerColor ? theme.layoutDividerColor : theme.secondaryColor\n };\n`};\n`;\n\nconst FooterContainer = styled.div`\n width: 100%;\n ${({ isBifTheme, theme }) =>\n isBifTheme &&\n `\n border-top: 3px solid ${\n theme.layoutDividerColor\n ? theme.layoutDividerColor\n : theme.secondaryColor\n };\n `}\n`;\n\nconst StaticFooterContainer = styled.div`\n display: flex;\n`;\n\nconst AsideContainer = styled.div`\n width: 250px;\n flex-shrink: 0;\n`;\n\nconst FooterContentContainer = styled.div`\n flex-grow: 1;\n background: ${({ theme }) => theme.footerContentBackground};\n`;\n\nexport { Footer };\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport ApiConfig from \"../../../../api/api.config\";\n\nconst EmblemImage = () => {\n const { isContrast, logoFileId, siteTitle, logoDescription } = useMappedState(\n mapStateToProps\n );\n\n const logoAlt = logoDescription || `Portal podmiotu ${siteTitle}`;\n const logoSrc = `${ApiConfig.getEntryPoint()}files/${logoFileId}`;\n\n return <>{isContrast ? siteTitle : {logoAlt}};\n};\n\nconst Image = styled.img`\n max-height: 80px;\n filter: ${({ theme }) => theme.imageFilter};\n`;\n\nconst mapStateToProps = ({ accessibility, context }: any) => ({\n siteTitle: context.siteTitle,\n logoFileId: context.logoFileId,\n isContrast: accessibility.isContrast,\n logoDescription: context.logoDescription\n});\n\nexport { EmblemImage };\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport { EmblemImage } from \"./EmblemImage\";\n\nconst Emblem = () => {\n const { url } = useMappedState(mapStateToProps);\n return (\n
    \n {url ? (\n \n \n \n ) : (\n \n )}\n
    \n );\n};\n\nconst Link = styled.a`\n display: block;\n color: ${({ theme }) => theme.text.primaryColor};\n &:hover {\n color: ${({ theme }) => theme.text.secondaryColor};\n }\n &:focus:not(:active) {\n outline: ${({ theme }) => theme.focusOutline};\n }\n`;\n\nconst mapStateToProps = ({ context }: any) => ({\n url: context.logoHref\n});\n\nexport { Emblem };\n","import React from \"react\";\nimport { useMappedState } from \"redux-react-hook\";\nimport styled from \"styled-components\";\n\nconst HeaderEditable = () => {\n const { headHtml, headHtmlMobile, isBifTheme } = useMappedState(\n mapStateToProps\n );\n return (\n \n \n \n \n );\n};\n\nconst StyledContainer = styled.div`\n a {\n color: ${({ theme }) => theme.text.secondaryColor};\n text-decoration: underline;\n\n &:hover {\n color: ${({ theme }) => theme.secondaryColor};\n text-decoration: none;\n }\n }\n ${({ isBifTheme }) =>\n isBifTheme &&\n `\n color: #bcbcbc;\n text-transform: uppercase;\n`};\n`;\n\nconst mapStateToProps = ({ context }: any) => ({\n headHtml: context.headHtml,\n headHtmlMobile: context.headHtmlMobile,\n isBifTheme: context.siteTheme === \"bif\"\n});\n\nexport { HeaderEditable };\n","import styled from \"styled-components\";\n\nexport const Link = styled.a`\n color: ${({ theme }) => theme.text.primaryColor};\n\n &:focus {\n outline: ${({ theme }) => theme.focusOutline};\n }\n\n &:hover {\n color: ${({ theme }) => theme.text.secondaryColor};\n }\n\n display: inline-block;\n`;\n","import styled from \"styled-components\";\n\nexport const Image = styled.img`\n max-height: 80px;\n filter: ${({ theme }) => theme.imageFilter};\n`;\n","import React from \"react\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport logoUrl from \"../../../../../assets/img/bip_logo.png\";\n\nimport { Link } from \"../Link\";\nimport { Image } from \"../Image\";\n\ninterface IProps {\n logoMainHref: string;\n title?: string;\n}\n\nconst BipLogo = ({\n logoMainHref,\n title = \"Biuletyn Informacji Publicznej\"\n}: IProps) => {\n const { isContrast } = useMappedState(mapStateToProps);\n return (\n \n {isContrast ? title : {`Logo}\n \n );\n};\n\nconst mapStateToProps = ({ accessibility }: any) => ({\n isContrast: accessibility.isContrast\n});\n\nexport { BipLogo };\n","import ApiConfig from \"../../../api/api.config\";\n\nexport const getImageSource = (logoFileId: string) => {\n return `${ApiConfig.getEntryPoint()}files/${logoFileId}`;\n};\n","import React from \"react\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport { getImageSource } from \"../../../utils/getImageSource\";\n\nimport { Link } from \"../Link\";\nimport { Image } from \"../Image\";\n\ninterface IProps {\n logoMainHref: string;\n logoMainFileId: string;\n altImageTitle?: string;\n title?: string;\n}\n\nconst CustomizedLogo = ({\n logoMainHref,\n logoMainFileId,\n altImageTitle = \"Logo Biuletyn Informacji Publicznej\",\n title = \"Biuletyn Informacji Publicznej\"\n}: IProps) => {\n const { isContrast } = useMappedState(mapStateToProps);\n const logoUrl = getImageSource(logoMainFileId);\n return (\n \n {isContrast ? title : {altImageTitle}}\n \n );\n};\n\nconst mapStateToProps = ({ accessibility }: any) => ({\n isContrast: accessibility.isContrast\n});\n\nexport { CustomizedLogo };\n","import React from \"react\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport { BipLogo } from \"./BipLogo\";\nimport { CustomizedLogo } from \"./CustomizedLogo\";\n\nconst CustomizedLogoContainer = () => {\n const { logoMainHref, logoMainFileId, logoMainDescription } = useMappedState(\n mapStateToProps\n );\n\n return (\n <>\n {logoMainFileId ? (\n \n ) : (\n \n )}\n \n );\n};\n\nconst mapStateToProps = ({ context }: any) => ({\n logoMainHref: context.logoMainHref,\n logoMainFileId: context.logoMainFileId,\n logoMainDescription: context.logoMainDescription\n});\n\nexport { CustomizedLogoContainer };\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\nimport { Image } from \"./Image\";\n\nimport localLogoUrl from \"../../../../assets/img/madkom_logo_new.png\";\n\nimport { getImageSource } from \"../../utils/getImageSource\";\n\nimport { Link } from \"./Link\";\n\nconst MadkomLogo = () => {\n const { logoMainHref, logoMainFileId, isContrast } = useMappedState(\n mapStateToProps\n );\n const logoUrl = logoMainFileId\n ? getImageSource(logoMainFileId)\n : localLogoUrl;\n const companyTitle = \"Madkom\";\n const bifTitle = \"Biuletyn informacji firmowej\";\n return (\n \n {!isContrast ? (\n <>\n BIF\n \n \n \n \n ) : (\n <>\n {bifTitle}\n \n {`logo ${companyTitle}`}\n \n \n )}\n \n );\n};\n\nconst MadkomLogoContainer = styled.div`\n display: flex;\n`;\n\nconst StyledBifTitle = styled.span`\n font-size: 3em;\n background-color: #ab0a11;\n color: #fff;\n padding: 0 10px;\n font-family: sans-serif;\n font-weight: 100;\n align-self: flex-end;\n`;\n\nconst StyledImage = styled(Image)`\n margin-left: 10px;\n max-height: 50px;\n align-self: center;\n`;\n\nconst mapStateToProps = ({ context, accessibility }: any) => ({\n isContrast: accessibility.isContrast,\n logoMainHref: context.logoMainHref,\n logoMainFileId: context.logoMainFileId\n});\n\nexport { MadkomLogo };\n","import React from \"react\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport logoUrl from \"../../../../assets/img/pks_logo.png\";\nimport { Image } from \"./Image\";\n\nconst PksLogo = () => {\n const { isContrast } = useMappedState(mapStateToProps);\n const alt = \"Logo Portalu Konsultacji Społecznych\";\n const title = \"Portal Konsultacji Społecznych\";\n return isContrast ? <>{title} : {alt};\n};\n\nconst mapStateToProps = ({ accessibility }: any) => ({\n isContrast: accessibility.isContrast\n});\n\nexport { PksLogo };\n","import React from \"react\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport { CustomizedLogoContainer } from \"./CustomizedLogoContainer\";\nimport { MadkomLogo } from \"./MadkomLogo\";\nimport { PksLogo } from \"./PksLogo\";\n\nconst MainLogo = () => {\n const { siteTheme } = useMappedState(mapStateToProps);\n switch (siteTheme) {\n case \"bif\":\n return ;\n case \"pks\":\n return ;\n default:\n return ;\n }\n};\n\nconst mapStateToProps = ({ context }: any) => ({\n siteTheme: context.siteTheme\n});\n\nexport { MainLogo };\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport Container from \"../container\";\nimport { Emblem } from \"./components/Emblem\";\nimport { HeaderEditable } from \"./components/HeaderEditable\";\nimport { MainLogo } from \"./components/MainLogo\";\n\nconst AppHeader = () => {\n const { isBifTheme, reverseOrder, showEmblem } = useMappedState(\n mapStateToProps\n );\n return (\n \n \n \n
    \n \n
    \n
    \n \n \n \n {showEmblem && !isBifTheme && }\n
    \n
    \n );\n};\n\nconst MainLogoContainer = styled.div`\n display: flex;\n text-align: start;\n @media (max-width: 967px) {\n text-align: center;\n }\n`;\n\nconst Content = styled(Container.withComponent(\"header\"))`\n display: flex;\n align-items: flex-start;\n flex-direction: ${({ reverseOrder }) =>\n reverseOrder ? \"column-reverse\" : \"column\"};\n justify-content: space-between;\n background: ${({ theme }) => theme.headerBackground};\n padding: 0.75rem 1rem 0 1rem;\n ${({ isBifTheme, theme }) =>\n !isBifTheme &&\n `\n padding: 0.75rem 1rem;\n border-bottom: 3px solid ${\n theme.layoutDividerColor ? theme.layoutDividerColor : theme.secondaryColor\n };\n margin-bottom: 1px;\n`};\n\n @media print {\n display: none;\n }\n\n @media (max-width: 967px) {\n align-items: center;\n & > *:not(:last-child) {\n margin-bottom: 1rem;\n }\n }\n\n @media (min-width: 968px) {\n flex-direction: ${({ reverseOrder }) =>\n reverseOrder ? \"row-reverse\" : \"row\"};\n }\n`;\n\nconst HeaderContainer = styled.div`\n ${({ isBifTheme, theme }) =>\n isBifTheme &&\n `\n border-bottom: 3px solid ${\n theme.layoutDividerColor ? theme.layoutDividerColor : theme.secondaryColor\n };\n margin-bottom: 1px;\n`};\n`;\n\nconst HeaderEditableContainer = styled.div`\n flex-grow: 1;\n display: flex;\n justify-content: center;\n`;\n\nconst mapStateToProps = ({ context }: any) => ({\n reverseOrder: context.siteTheme === \"szamotuly\",\n showEmblem: context.logoFileId !== null,\n isBifTheme: context.siteTheme === \"bif\"\n});\n\nexport { AppHeader };\n","import styled from \"styled-components\";\n\nexport const SkipLink = styled.a`\n font-size: 0.875em;\n padding: 0.75rem 1rem;\n background: ${({ theme }) => theme.defaultBackground};\n border: 1px solid ${({ theme }) => theme.dividerColor};\n color: ${({ theme }) => theme.text.primaryColor};\n position: absolute;\n left: -999em;\n\n &:focus {\n left: 0;\n z-index: 999;\n }\n\n &:hover {\n color: ${({ theme }) => theme.secondaryColor};\n text-decoration: none;\n }\n`;\n","import { useMappedState } from \"redux-react-hook\";\n\nexport const useShowDeclarationOfAvailabilitySkipLink = () => {\n const { accessibilityPageEnabled, accessibilityMenuEnabled } = useMappedState(\n mapStateToProps\n );\n\n return (\n (accessibilityPageEnabled && accessibilityMenuEnabled) ||\n (accessibilityPageEnabled && !accessibilityMenuEnabled)\n );\n};\n\nconst mapStateToProps = ({ context }: any) => ({\n accessibilityPageEnabled: context.accessibilityPageEnabled,\n accessibilityMenuEnabled: context.accessibilityMenuEnabled\n});\n","import { useMappedState } from \"redux-react-hook\";\n\nexport const useGetDeclarationOfAvailabilityUrl = () => {\n const { contextFriendlyUrl } = useMappedState(mapStateToProps);\n const domainName = `${window.location.origin}/`;\n\n if (contextFriendlyUrl === \"default\") {\n return domainName + \"e,deklaracja.html\";\n }\n\n return domainName + contextFriendlyUrl + \",e,deklaracja.html\";\n};\n\nconst mapStateToProps = ({ context }: any) => ({\n contextFriendlyUrl: context.contextFriendlyUrl\n});\n","import React from \"react\";\nimport { SkipLink } from \"./SkipLink\";\nimport { useShowDeclarationOfAvailabilitySkipLink } from \"./utils/useShowDeclarationOfAvailabilitySkipLink\";\nimport { useGetDeclarationOfAvailabilityUrl } from \"../../utils/useGetDeclarationOfAvailabilityUrl\";\n\nconst SkipLinks = () => {\n const showDeclarationOfAvailability = useShowDeclarationOfAvailabilitySkipLink();\n const declarationOfAvailabilityUrl = useGetDeclarationOfAvailabilityUrl();\n\n return (\n
      \n
    • \n Przejdź do nawigacji\n
    • \n
    • \n Przejdź do treści\n
    • \n
    • \n {\n document\n .getElementById(\"search-suggestion-input-container_input\")\n ?.focus();\n }}\n >\n Przejdź do wyszukiwarki\n \n
    • \n {showDeclarationOfAvailability && (\n
    • \n \n Przejdź do deklaracji dostępności\n \n
    • \n )}\n
    \n );\n};\n\nexport default SkipLinks;\n","import React, { ReactNode, useEffect, useRef, useState } from \"react\";\n\nimport styled from \"styled-components\";\n\ninterface IProps {\n button: ReactNode;\n children: ReactNode;\n}\n\nconst Dropdown = ({ button, children }: IProps) => {\n const [containerVisible, setContainerVisible] = useState(false);\n const containerRef = useRef(null);\n const buttonRef = useRef(null);\n\n const mouseEventListener = (e: Event) => {\n if (\n // @ts-ignore\n containerRef.current.contains(e.target) ||\n // @ts-ignore\n buttonRef.current.contains(e.target)\n ) {\n return;\n }\n setContainerVisible(prevContainerVisible => {\n return !prevContainerVisible;\n });\n };\n\n useEffect(() => {\n if (containerVisible) {\n document.addEventListener(\"mousedown\", mouseEventListener);\n }\n\n return () => {\n document.removeEventListener(\"mousedown\", mouseEventListener);\n };\n }, [containerVisible]);\n\n const handleClick = () => {\n setContainerVisible(prevContainerVisible => {\n return !prevContainerVisible;\n });\n };\n\n return (\n
    \n
    \n {button}\n
    \n \n {children}\n \n
    \n );\n};\n\nconst ChildrenContainer = styled.div`\n z-index: 2;\n position: absolute;\n background: ${({ theme }) => theme.defaultBackground};\n min-width: 0;\n border-radius: 2px;\n border: solid 1px ${({ theme }) => theme.dividerColor};\n visibility: ${({ containerVisibility }: { containerVisibility: boolean }) =>\n containerVisibility ? \"visible\" : \"hidden\"};\n background: ${({ theme }) => theme.defaultBackground};\n border-color: ${({ theme }) => theme.dividerColor};\n`;\n\nexport { Dropdown };\n","export enum FONT_SIZES {\n DEFAULT = \"0\",\n MEDIUM = \"1\",\n LARGE = \"2\"\n};\n","import React, { useEffect, useRef, useState } from \"react\";\nimport { DropdownList } from \"react-widgets/esm\";\nimport { DropdownProps } from \"react-widgets/DropdownList\";\n\nexport interface IProps extends DropdownProps {\n}\n\nconst AccessibilityDropdown = ({ ...props }: IProps) => {\n const ref = useRef(null);\n const dropdownContainer = ref?.current;\n const [isDropDownOpen, setIsDropDownOpen] = useState(false);\n\n //Walidator w3c rzuca błąd przez aria-owns który odnosi się do listy która jeszcze nie istnieje, bo tworzy się\n //dopiero w momencie kliknięcia w dropdowna\n useEffect(() => {\n // @ts-ignore\n const dropdown = dropdownContainer?.getElementsByClassName(\n \"rw-dropdown-list\"\n )[0];\n dropdown?.removeAttribute(\"aria-owns\");\n }, [dropdownContainer]);\n\n //open dropdown list\n useEffect(() => {\n const handler = (event: KeyboardEvent) => {\n if (\n (event.key === \"Enter\" || event.key === \"ArrowDown\") &&\n !isDropDownOpen\n ) {\n setIsDropDownOpen(prevState => !prevState);\n }\n };\n // @ts-ignore\n const dropdown = dropdownContainer?.getElementsByClassName(\n \"rw-dropdown-list\"\n )[0];\n\n // @ts-ignore\n dropdown?.addEventListener(\"keydown\", handler);\n\n return () => {\n dropdown?.removeEventListener(\"keydown\", handler);\n };\n }, [isDropDownOpen, dropdownContainer]);\n\n //close dropdown list\n useEffect(() => {\n // @ts-ignore\n const dropdown = dropdownContainer?.getElementsByClassName(\n \"rw-dropdown-list\"\n )[0];\n\n const handler = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n setIsDropDownOpen(false);\n }\n };\n\n const handleClickOutside = (event: MouseEvent) => {\n // @ts-ignore\n if (!dropdown?.contains(event.target)) {\n setIsDropDownOpen(false);\n }\n };\n\n // @ts-ignore\n dropdown?.addEventListener(\"keydown\", handler);\n document.addEventListener(\"mousedown\", handleClickOutside);\n\n return () => {\n dropdown?.removeEventListener(\"keydown\", handler);\n dropdown?.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, [isDropDownOpen, dropdownContainer]);\n\n return (\n
    \n {\n setIsDropDownOpen(prevState => !prevState);\n }}\n onChange={(dataItem, metadata) => {\n setIsDropDownOpen(false);\n props && props.onChange && props.onChange(dataItem, metadata);\n }}\n />\n
    \n );\n};\n\nexport { AccessibilityDropdown };\n","import useLocalStorage from \"./useLocalStorage\";\nimport { FONT_SIZES } from \"../constants/font-sizes\";\n\nexport const useFontSize = () => {\n const [fontSizeLocalStorage, setFontSizeLocalStorage] = useLocalStorage<\n FONT_SIZES\n >(\"fontSize\", FONT_SIZES.DEFAULT);\n\n const initFontSizeInDocument = () => {\n setDocumentFontClass(fontSizeLocalStorage);\n };\n\n const setDocumentFontClass = (fontSize: FONT_SIZES) => {\n document?.querySelector(\"#root\")?.classList.add(`size-${fontSize}`);\n };\n\n const setFontSize = (fontSize: FONT_SIZES) => {\n clearFontSizes();\n setFontSizeLocalStorage(fontSize);\n setDocumentFontClass(fontSize);\n };\n\n function clearFontSizes() {\n const classList = document?.querySelector(\"#root\")?.classList;\n classList &&\n Array.from(classList)\n .filter(className => /size-.+/.test(className))\n .forEach(className => {\n classList?.remove(className);\n });\n }\n\n return {\n setFontSize,\n fontSize: fontSizeLocalStorage,\n initFontSizeInDocument\n };\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\ninterface IProps\n extends React.DetailedHTMLProps<\n React.ButtonHTMLAttributes,\n HTMLButtonElement\n > {}\n\nconst DesktopAccessibilityButton = ({ ...props }: IProps) => {\n const { isContrast } = useMappedState(mapStateToProps);\n\n return ;\n};\n\nconst mapStateToProps = ({ accessibility }: any) => ({\n isContrast: accessibility.isContrast\n});\n\nconst StyledButton = styled.button`\n font-weight: bold;\n color: ${({ theme }) => theme.text.primaryColor};\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 36px;\n min-width: 40px;\n font-size: 0.875em;\n transition: border 0.15s ease-in-out, color 0.15s ease-in-out;\n border: solid 1px transparent;\n background-color: transparent;\n\n &:hover {\n border: solid 1px ${({ theme }) => theme.text.primaryColor};\n }\n\n &:-moz-focusring {\n outline: 2px solid ${({ isContrast }) => (isContrast ? \"white\" : \"black\")};\n }\n`;\n\nexport { DesktopAccessibilityButton };\n","import React from \"react\";\n\nimport { useFontSize } from \"utils/useFontSize\";\nimport { FONT_SIZES } from \"constants/font-sizes\";\n\nimport { Tooltip } from \"components/Tooltip\";\n\nimport { DesktopAccessibilityButton } from \"./DesktopAccessibilityButton\";\n\nconst NormalLettersButton = () => {\n const { fontSize, setFontSize } = useFontSize();\n const label = \"Normalna wielkość liter\";\n\n return (\n \n
    \n {/*eslint-disable-next-line*/}\n setFontSize(FONT_SIZES.DEFAULT)}\n >\n A\n \n
    \n
    \n );\n};\n\nexport { NormalLettersButton };\n","import React from \"react\";\n\nimport { useFontSize } from \"utils/useFontSize\";\nimport { FONT_SIZES } from \"constants/font-sizes\";\n\nimport { Tooltip } from \"components/Tooltip\";\n\nimport { DesktopAccessibilityButton } from \"./DesktopAccessibilityButton\";\n\nconst MediumLettersButton = () => {\n const { fontSize, setFontSize } = useFontSize();\n const label = \"Duża wielkość liter\";\n\n return (\n \n setFontSize(FONT_SIZES.MEDIUM)}\n >\n A+\n \n \n );\n};\n\nexport { MediumLettersButton };\n","import React from \"react\";\n\nimport { useFontSize } from \"utils/useFontSize\";\nimport { FONT_SIZES } from \"constants/font-sizes\";\n\nimport { Tooltip } from \"components/Tooltip\";\n\nimport { DesktopAccessibilityButton } from \"./DesktopAccessibilityButton\";\n\nconst BigLettersButton = () => {\n const { fontSize, setFontSize } = useFontSize();\n const label = \"Bardzo duża wielkość liter\";\n\n return (\n \n setFontSize(FONT_SIZES.LARGE)}\n >\n A++\n \n \n );\n};\n\nexport { BigLettersButton };\n","import React from \"react\";\n\nimport { useAccessibilityClass } from \"utils\";\n\nimport { Tooltip } from \"components/Tooltip\";\n\nimport { DesktopAccessibilityButton } from \"./DesktopAccessibilityButton\";\n\nconst ParagraphSpacingButton = () => {\n const {\n isAccessibilityClassActive,\n toggleAccessibilityClass\n } = useAccessibilityClass(\"paragraphsSpacing\", \"paragraphs-spacing\");\n const label = \"Odstęp między akapitami\";\n\n return (\n \n \n \n \n \n );\n};\n\nexport { ParagraphSpacingButton };\n","import React from \"react\";\n\nimport { useAccessibilityClass } from \"utils/index\";\n\nimport { Tooltip } from \"components/Tooltip\";\n\nimport { DesktopAccessibilityButton } from \"./DesktopAccessibilityButton\";\n\nconst LinesSpacingButton = () => {\n const {\n isAccessibilityClassActive,\n toggleAccessibilityClass\n } = useAccessibilityClass(\"linesSpacing\", \"lines-spacing\");\n\n const label = \"Odstęp między wierszami\";\n\n return (\n \n \n {\" \"}\n \n \n \n );\n};\n\nexport { LinesSpacingButton };\n","import React from \"react\";\n\nimport { useAccessibilityClass } from \"utils/index\";\n\nimport { Tooltip } from \"components/Tooltip\";\n\nimport { DesktopAccessibilityButton } from \"./DesktopAccessibilityButton\";\n\nconst WordSpacingButton = () => {\n const {\n isAccessibilityClassActive,\n toggleAccessibilityClass\n } = useAccessibilityClass(\"wordsSpacing\", \"words-spacing\");\n const label = \"Odstęp między słowami\";\n return (\n \n \n {\" \"}\n \n \n \n );\n};\n\nexport { WordSpacingButton };\n","import React from \"react\";\n\nimport { useAccessibilityClass } from \"utils/index\";\n\nimport { Tooltip } from \"components/Tooltip\";\n\nimport { DesktopAccessibilityButton } from \"./DesktopAccessibilityButton\";\n\nconst LettersSpacingButton = () => {\n const {\n isAccessibilityClassActive,\n toggleAccessibilityClass\n } = useAccessibilityClass(\"lettersSpacing\", \"letters-spacing\");\n const label = \"Odstęp między literami\";\n\n return (\n \n \n A\n \n \n );\n};\n\nexport { LettersSpacingButton };\n","import React from \"react\";\nimport { useDispatch, useMappedState } from \"redux-react-hook\";\n\nimport { toggleContrast } from \"redux/modules/accessibility\";\n\nimport { Tooltip } from \"components/Tooltip\";\n\nimport { DesktopAccessibilityButton } from \"./DesktopAccessibilityButton\";\n\nconst ContrastButton = () => {\n const { isContrast } = useMappedState(mapState);\n const dispatch = useDispatch();\n const label = isContrast ? \"Wersja standardowa\" : \"Wersja kontrastowa\";\n\n //@todo: tu tak naprawdę mogłyby być (a nawet powinny) po prostu dwa oddzielne buttony\n return (\n \n dispatch(toggleContrast())}\n aria-label={label}\n id={\n isContrast ? \"contrast-version-button\" : \"non-contrast-version-button\"\n }\n >\n {isContrast ? (\n <>\n {/*eslint-disable-next-line*/}\n \n \n ) : (\n <>\n {/*eslint-disable-next-line*/}\n \n \n )}\n \n \n );\n};\n\nconst mapState = ({ accessibility }: any) => ({\n isContrast: accessibility.isContrast\n});\n\nexport { ContrastButton };\n","import React from \"react\";\n\nimport { IChildrenProp } from \"types/IChildrenProp\";\n\nimport { Button } from \"../../../../../buttons\";\n\ninterface IProps extends IChildrenProp {\n title: string;\n id: string;\n}\n\nconst DropdownButton = ({ title, children, id }: IProps) => {\n return (\n \n );\n};\n\nexport { DropdownButton };\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { Dropdown } from \"../../../../Dropdown\";\nimport { NormalLettersButton } from \"./Buttons/NormalLettersButton\";\nimport { MediumLettersButton } from \"./Buttons/MediumLettersButton\";\nimport { BigLettersButton } from \"./Buttons/BigLettersButton\";\nimport { ParagraphSpacingButton } from \"./Buttons/ParagraphSpacingButton\";\nimport { LinesSpacingButton } from \"./Buttons/LinesSpacingButton\";\nimport { WordSpacingButton } from \"./Buttons/WordSpacingButton\";\nimport { LettersSpacingButton } from \"./Buttons/LettersSpacingButton\";\nimport { ContrastButton } from \"./Buttons/ContrastButton\";\nimport {DropdownButton} from \"./Buttons/DropdownButton\";\n\nconst MobileAccessibilityMenu = () => {\n return (\n \n \n \n }\n >\n \n
    \n \n \n \n \n
    \n
    \n \n \n \n \n
    \n
    \n \n );\n};\n\nconst Container = styled.div`\n padding: 0.75rem 1rem;\n`;\n\nconst Section = styled.section`\n display: flex;\n justify-content: space-around;\n\n &:not(:last-child) {\n padding-bottom: 1rem;\n border-bottom: 1px solid ${({ theme }) => theme.dividerColor};\n margin-bottom: 1rem;\n }\n\n & > *:not(:last-child) {\n margin-right: 0.75rem;\n }\n`;\n\nexport { MobileAccessibilityMenu };\n","import React from \"react\";\nimport { ParagraphSpacingButton } from \"./Buttons/ParagraphSpacingButton\";\nimport { LinesSpacingButton } from \"./Buttons/LinesSpacingButton\";\nimport { WordSpacingButton } from \"./Buttons/WordSpacingButton\";\nimport { LettersSpacingButton } from \"./Buttons/LettersSpacingButton\";\nimport { NormalLettersButton } from \"./Buttons/NormalLettersButton\";\nimport { MediumLettersButton } from \"./Buttons/MediumLettersButton\";\nimport { BigLettersButton } from \"./Buttons/BigLettersButton\";\nimport { ContrastButton } from \"./Buttons/ContrastButton\";\nimport styled from \"styled-components\";\n\nconst AccessibilityMenu = () => {\n const accessibilityButtons = [\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n \n ];\n\n return (\n \n {accessibilityButtons.map(accessibilityButton => (\n
  • {accessibilityButton}
  • \n ))}\n
    \n );\n};\n\nconst StyledAccessibilityMenu = styled.ul`\n display: flex;\n margin: 0 25px 0 0;\n list-style-type: none;\n`;\n\nexport { AccessibilityMenu };\n","/**\n * Created by fkurzawa on 03.07.18.\n */\nimport PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { connect } from \"react-redux\";\nimport { withRouter } from \"react-router-dom\";\nimport { compose, withHandlers, withProps } from \"recompose\";\nimport styled from \"styled-components\";\nimport { Button, LinkButton } from \"./../../../buttons\";\nimport BIP_MODULES from \"./../../../../constants/bip_modules\";\nimport { signOut } from \"./../../../../redux/modules/authentication\";\n\nconst Authentication = ({\n isAuthenticated,\n onSignOut,\n signInUrl,\n signUpUrl,\n userPanelUrl\n}) => (\n \n {isAuthenticated ? (\n \n \n \n \n \n \n \n \n ) : (\n \n \n \n \n \n \n \n \n )}\n \n);\n\nAuthentication.propTypes = {\n isAuthenticated: PropTypes.bool,\n onSignOut: PropTypes.func.isRequired,\n signInUrl: PropTypes.string.isRequired,\n signUpUrl: PropTypes.string.isRequired,\n userPanelUrl: PropTypes.string.isRequired\n};\n\nconst AuthenticationContainer = styled.div`\n & > *:not(:last-child) {\n margin-right: 0.5rem;\n }\n`;\n\nconst mapStateToProps = ({ authentication, context }) => ({\n friendlyUrl: context.contextFriendlyUrl,\n isAuthenticated: authentication.isAuthenticated,\n urlType: context.urlType\n});\n\nconst mapDispatchToProps = dispatch => ({\n onSignOut: () => dispatch(signOut())\n});\n\nconst enhance = compose(\n connect(mapStateToProps, mapDispatchToProps),\n withRouter,\n withProps(({ friendlyUrl, urlType }) => {\n const isFullUrl = urlType === \"full\";\n const context =\n friendlyUrl !== \"default\" ? `${friendlyUrl}${isFullUrl ? \"/\" : \",\"}` : \"\";\n return {\n signInUrl: `/${context}${\n isFullUrl\n ? BIP_MODULES.SIGN_IN.fullUrl\n : BIP_MODULES.SIGN_IN.friendlyUrl\n }`,\n signUpUrl: `/${context}${\n isFullUrl\n ? BIP_MODULES.SIGN_UP.fullUrl\n : BIP_MODULES.SIGN_UP.friendlyUrl\n }`,\n userPanelUrl: `/${context}${\n isFullUrl\n ? BIP_MODULES.USER_PANEL.fullUrl\n : BIP_MODULES.USER_PANEL.friendlyUrl\n }`\n };\n }),\n withHandlers({\n onSignOut: ({ history, onSignOut, signInUrl }) => async () => {\n await onSignOut();\n history.push(signInUrl);\n }\n })\n);\n\nexport default enhance(Authentication);\n","import * as yup from \"yup\";\n\nimport { validationMessages } from \"utils/yup/messages\";\n\nexport const searchBarValidationSchema = yup.object<{ s: string }>().shape({\n s: yup\n .string()\n .max(200, validationMessages.maxTwoHundredSymbols)\n .test(\"s\", validationMessages.minThreeSymbols, function(textField) {\n const textLength = textField.replace(/\\s/g, \"\").length;\n return textLength > 2;\n })\n});\n","import React, { useEffect, useRef } from \"react\";\nimport { ComboboxProps } from \"react-widgets/Combobox\";\nimport { Combobox as ReactWidgetsCombobox } from \"react-widgets/esm\";\nimport \"react-widgets/styles.css\";\n\nexport interface IComboboxProps extends ComboboxProps {}\n\nconst Combobox = ({ ...props }: IComboboxProps) => {\n const ref = useRef(null);\n const suggestionContainer = ref?.current;\n\n //Dodane ze względu na walidator w3c który pluje się do aria-owns jeśli kontener z podpowiedziami jest niewidoczny\n //inicjalnie jest on zamknięty, można to ustawić propsami, ale z kolei wychodzi kolejny błąd\n //związany z tym, że aria odwołuje się do elementu w tym kontenerze z podpowiedziami, który jest na początku pusty i też błąd\n useEffect(() => {\n // @ts-ignore\n const suggestionInput = suggestionContainer?.getElementsByClassName(\n \"rw-combobox-input\"\n )[0];\n suggestionInput?.removeAttribute(\"aria-owns\");\n }, [suggestionContainer]);\n\n return (\n
    \n \n
    \n );\n};\n\nexport { Combobox };\n","import React, { useEffect, useRef, useState } from \"react\";\nimport styled from \"styled-components\";\nimport { ErrorMessage } from \"@hookform/error-message\";\nimport { Controller, useFormContext } from \"react-hook-form\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport { articlesKeys } from \"modules/articles/keys\";\nimport { getSearchSuggestion } from \"../../../../../../../api/search-suggestion\";\nimport { useSearchValueStore } from \"../../../../../../../containers/search/utils/useSearchValueStore\";\n\nimport { Combobox } from \"components/Combobox\";\nimport { useReactQuery } from \"components/RemoteData/useReactQuery\";\nimport { StyledErrorMessage } from \"components/HookForm\";\n\nimport { ISuggestion } from \"../../../../../../../types/ISuggestion\";\nimport { getBackground } from \"../../../../../../buttons/utils\";\n\ninterface IProps {\n onSearch: (model: { s: string }) => void;\n}\n\nconst SuggestionInputField = ({ onSearch }: IProps) => {\n const [isListOpen, setIsListOpen] = useState(false);\n const { isContrast } = useMappedState(mapStateToProps);\n const ref = useRef(null);\n const inputContainer = ref?.current;\n\n const searchStore = useSearchValueStore();\n const storeSearchValue = searchStore(state => state.searchValue);\n\n const {\n errors,\n formState: { isSubmitting },\n setValue,\n getValues\n } = useFormContext();\n const searchFieldValue = getValues(\"s\");\n\n const { data } = useReactQuery(\n [articlesKeys.menuItems, getValues(\"s\")],\n () => getSearchSuggestion(searchFieldValue),\n { suspense: false }\n );\n\n useEffect(() => {\n setValue(\"s\", storeSearchValue || \"\");\n }, [storeSearchValue, setValue]);\n\n //Po to aby była obsługa entera w samym inpucie i po enterze żeby leciał request\n useEffect(() => {\n const handler = (event: KeyboardEvent) => {\n if (event.key === \"Enter\") {\n //wzięcie najaktualniejszej wartości ze względu na to, że stara wartość jest w searchFieldValue\n onSearch({ s: getValues(\"s\") });\n }\n };\n // @ts-ignore\n const input = inputContainer?.getElementsByClassName(\n \"rw-combobox-input\"\n )[0];\n\n // @ts-ignore\n input?.addEventListener(\"keydown\", handler);\n\n return () => {\n input?.removeEventListener(\"keydown\", handler);\n };\n }, [searchFieldValue, getValues, inputContainer, onSearch]);\n\n return (\n \n {\n return (\n // eslint-disable-next-line\n {\n setIsListOpen(isOpen);\n }}\n aria-expanded={isListOpen}\n placeholder=\"Szukaj...\"\n autoSelectMatches={true}\n hideCaret\n hideEmptyPopup={true}\n messages={{ emptyList: \"Brak wyników...\" }}\n accessKey=\"H\"\n readOnly={isSubmitting}\n data={data?.elements}\n onSelect={dataItem => {\n //po to aby po wybraniu opcji i kliknięciu enter od razu wyszukiwało\n //aczkolwiek po tym na chwilę w wyszukiwarce pojawia się wartość z inputa a dopiero potem\n //pojawia się wartość wybrana z selecta\n onSearch({ s: dataItem });\n }}\n {...props}\n />\n );\n }}\n />\n {\n return (\n \n {message}\n \n );\n }}\n />\n \n );\n};\n\nconst InputContainer = styled.div`\n width: 100%;\n\n .rw-combobox {\n :focus-within {\n outline: ${({ theme }) => theme.focusOutline};\n }\n }\n\n .rw-widget-input {\n background-color: ${({ contrast }) => contrast && \"transparent\"};\n border-color: ${({ contrast }) => contrast && getBackground};\n color: ${({ contrast }) => contrast && getBackground};\n }\n\n & > input {\n display: block;\n color: ${({ theme }) => theme.text.primaryColor};\n border: 1px solid ${({ theme }) => theme.dividerColor};\n border-radius: 3px 0 0 3px;\n font-size: 1em;\n padding: 0.25rem 0.5rem;\n height: 24px;\n\n &::-webkit-search-cancel-button {\n -webkit-appearance: searchfield-cancel-button;\n cursor: pointer;\n padding: 0.125em;\n }\n }\n`;\n\nconst mapStateToProps = ({ accessibility }: any) => ({\n isContrast: accessibility.isContrast\n});\n\nexport { SuggestionInputField };\n","import axios from \"axios\";\nimport ApiConfig from \"./api.config\";\nimport { ISuggestion } from \"../types/ISuggestion\";\n\nexport const getSearchSuggestion = (query: string): Promise =>\n axios\n .get(`${ApiConfig.getEntryPoint()}search-suggestion`, {\n params: {\n query\n }\n })\n .then(response => response.data);\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport queryString from \"query-string\";\nimport { useMappedState } from \"redux-react-hook\";\nimport useRouter from \"use-react-router\";\nimport shallow from \"zustand/shallow\";\n\nimport { searchBarValidationSchema } from \"modules/articles/schemas/searchBarValidationSchema\";\nimport { useSearchValueStore } from \"../../../../../../containers/search/utils/useSearchValueStore\";\n\nimport { Form } from \"components/HookForm\";\n\nimport { SuggestionInputField } from \"./components/SuggestionInputField\";\nimport { Button } from \"components/buttons\";\n\nconst SearchBar = () => {\n const { searchUrl } = useMappedState(mapStateToProps);\n const { history } = useRouter();\n\n const searchStore = useSearchValueStore();\n const { setStoreSearchValue, storeSearchValue } = searchStore(\n state => ({\n setStoreSearchValue: state.setSearchValue,\n storeSearchValue: state.searchValue\n }),\n shallow\n );\n\n const onSearch = (model: { s: string }) => {\n setStoreSearchValue(model.s);\n history.push(`/${searchUrl}?${queryString.stringify(model)}`);\n };\n\n return (\n \n \n resetOnSubmit={false}\n defaultValues={{ s: storeSearchValue }}\n onSubmit={onSearch}\n validationSchema={searchBarValidationSchema}\n >\n {() => {\n return (\n \n \n \n \n \n \n );\n }}\n \n \n );\n};\n\nconst SearchFieldGroup = styled.div`\n width: 100%;\n display: flex;\n align-items: center;\n padding-bottom: 2px;\n`;\n\nconst StyledForm = styled.div`\n @media screen and (max-width: 767px) {\n width: 100%;\n }\n\n @media screen and (min-width: 768px) {\n width: 50%;\n }\n\n @media screen and (min-width: 992px) {\n width: 40%;\n }\n\n @media screen and (min-width: 1200px) {\n width: 30%;\n }\n`;\n\nconst mapStateToProps = ({ context }: any) => ({\n searchUrl: context.searchUrl\n});\n\nexport { SearchBar };\n","import React from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { useMappedState } from \"redux-react-hook\";\nimport { useQueryClient } from \"react-query\";\nimport styled from \"styled-components\";\n\nimport { applicationKeys } from \"../../../../../../App/keys\";\nimport { AccessibilityDropdown } from \"components/Dropdown\";\n\nconst AccessibilityLanguageDropdown = () => {\n const queryClient = useQueryClient();\n const history = useHistory();\n\n const { availableLanguages, currentLangCode, isContrast } = useMappedState(\n mapStateToProps\n );\n\n const onChangeLanguage = async (startLink: string) => {\n history.push(`/${startLink}`);\n await queryClient.removeQueries(applicationKeys.application);\n };\n\n if (availableLanguages.length < 2) {\n return null;\n }\n\n return (\n \n \n filter={false}\n value={currentLangCode}\n onChange={async item => {\n await onChangeLanguage(item.startLink);\n }}\n dataKey=\"langCode\"\n textField={item => {\n // @ts-ignore\n const [langCode] = item.langCode.split(\"_\");\n // @ts-ignore\n return langCode.toUpperCase();\n }}\n data={availableLanguages}\n renderListItem={({ item }) => {\n const [langCode, langTitle] = item.langCode.split(\"_\");\n return (\n <>\n {\" \"}\n {langCode.toUpperCase()}\n \n );\n }}\n />\n \n );\n};\n\nconst StyledDropdown = styled.div`\n .rw-widget-input {\n width: 55px;\n }\n\n .rw-dropdown-list {\n :focus-within {\n outline: ${({ theme }) => theme.focusOutline};\n }\n }\n\n .rw-popup-container {\n width: 130px;\n }\n\n .rw-popup {\n width: 100px;\n background-color: ${({ theme, isContrast }) =>\n isContrast ? theme.buttons[\"secondary\"].background : \"white\"};\n color: ${({ isContrast }) => (isContrast ? \"black\" : \"white\")};\n }\n\n .rw-dropdown-list-input {\n padding: 0 0.4em;\n }\n\n .rw-picker-caret {\n width: 15px;\n }\n\n .rw-picker-caret,\n .rw-widget-picker {\n color: ${({ isContrast }) => (isContrast ? \"black\" : \"white\")};\n }\n\n .rw-widget-picker {\n min-height: 35px;\n grid-template: 1fr/1fr 1.2em;\n background-color: ${({ theme }) => theme.buttons[\"secondary\"].background};\n box-shadow: 0 1px 4px rgb(0 0 0 / 60%);\n border: none;\n border-radius: 0;\n }\n`;\n\nconst mapStateToProps = ({ context, language, accessibility }: any) => ({\n availableLanguages: context.availableLanguages,\n currentLangCode: language.langCode,\n isContrast: accessibility.isContrast\n});\n\nexport { AccessibilityLanguageDropdown };\n","import React from \"react\";\nimport useMedia from \"use-media\";\nimport styled from \"styled-components\";\nimport { useMappedState } from \"redux-react-hook\";\n\nimport { getRssUrl } from \"api/contexts\";\n\nimport { ExternalLinkButton } from \"../../../buttons\";\nimport { MobileAccessibilityMenu } from \"./components/MobileAccessibilityMenu\";\nimport { AccessibilityMenu } from \"./components/AccessibilityMenu\";\nimport Authentication from \"../authentication/Authentication\";\nimport { SearchBar } from \"./components/search-bar/SearchBar\";\nimport { AccessibilityLanguageDropdown } from \"./components/Buttons/AccessibilityLanguageDropdown\";\nimport { useIncreaseDecreaseFontSize } from \"./components/useIncreaseDecreaseFontSize\";\n\nconst Tools = () => {\n const isMobile = useMedia({ maxWidth: \"767px\" });\n useIncreaseDecreaseFontSize();\n\n const {\n friendlyUrl,\n deafArticleUrl,\n helpArticleUrl,\n authenticationEnabled\n } = useMappedState(mapStateToProps);\n const rssUrl = getRssUrl(friendlyUrl);\n\n return (\n \n \n \n \n \n {helpArticleUrl && (\n \n \n \n )}\n {deafArticleUrl && (\n \n \n \n )}\n {isMobile && (\n \n \n \n )}\n \n {!isMobile && }\n {authenticationEnabled && }\n \n \n \n );\n};\n\nconst mapStateToProps = ({ context }: any) => ({\n friendlyUrl: context.contextFriendlyUrl,\n helpArticleUrl: context.helpArticleUrl,\n deafArticleUrl: context.deafArticleUrl,\n authenticationEnabled: context.userLogInEnabled\n});\n\nconst StyledLink = styled(ExternalLinkButton)`\n min-width: 35px;\n height: 35px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n`;\n\nconst StyledMobileAccessibilityMenu = styled.div`\n display: flex;\n align-self: flex-start;\n`;\n\nconst AccessibilityAuthenticationContainer = styled.div`\n display: flex;\n margin-left: auto;\n`;\n\nconst Container = styled.div`\n display: flex;\n & > *:not(:last-child) {\n margin-right: 0.5rem;\n }\n`;\n\nexport { Tools };\n","import { useEffect } from \"react\";\n\nimport { Browser, checkIfBrowser } from \"../../../../../utils/checkIfBrowser\";\nimport { FONT_SIZES } from \"../../../../../constants/font-sizes\";\nimport { useFontSize } from \"../../../../../utils/useFontSize\";\n\nexport const useIncreaseDecreaseFontSize = () => {\n const { fontSize, setFontSize } = useFontSize();\n\n useEffect(() => {\n const handler = (e: KeyboardEvent) => {\n if (checkIfBrowser(Browser.Firefox)) {\n if (e.altKey && e.shiftKey && (e.key === \"L\" || e.key === \"l\")) {\n increaseFontSize();\n }\n if (e.altKey && e.shiftKey && (e.key === \"s\" || e.key === \"S\")) {\n decreaseFontSize();\n }\n } else {\n if (e.altKey && (e.key === \"L\" || e.key === \"l\")) {\n increaseFontSize();\n }\n\n if (e.altKey && (e.key === \"s\" || e.key === \"S\")) {\n decreaseFontSize();\n }\n }\n };\n document.addEventListener(\"keyup\", handler, false);\n\n return () => document.removeEventListener(\"keyup\", handler);\n });\n\n const increaseFontSize = () => {\n switch (fontSize) {\n case \"0\":\n setFontSize(FONT_SIZES.MEDIUM);\n break;\n case \"1\":\n setFontSize(FONT_SIZES.LARGE);\n break;\n default:\n return;\n }\n };\n\n const decreaseFontSize = () => {\n switch (fontSize) {\n case \"1\":\n setFontSize(FONT_SIZES.DEFAULT);\n break;\n case \"2\":\n setFontSize(FONT_SIZES.MEDIUM);\n break;\n default:\n return;\n }\n };\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { Tools } from \"./components/tools/Tools\";\n\nconst Toolbar = () => (\n \n \n \n \n \n \n \n \n \n);\n\nconst StickyContainer = styled.div`\n position: sticky;\n top: 0;\n z-index: 100;\n`;\n\nconst StyledTools = styled.div`\n padding: 1rem 1rem 1rem 1rem;\n border-bottom: 1px solid ${({ theme }) => theme.dividerColor};\n background: ${({ theme }) =>\n theme.toolbarBackground || theme.lightPrimaryColor};\n`;\n\nconst ToolbarContainer = styled.div`\n align-items: center;\n display: flex;\n\n @media print {\n display: none;\n }\n`;\n\nconst Content = styled.div`\n display: flex;\n flex-grow: 1;\n height: auto;\n justify-content: space-between;\n flex-direction: column;\n\n &:not(:last-child) {\n @media screen and (max-width: 767px) {\n margin-bottom: 1rem;\n }\n\n @media screen and (min-width: 768px) {\n margin-right: 1rem;\n }\n }\n`;\n\nexport { Toolbar };\n","import React, { Suspense } from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\n\nimport { Aside } from \"../Aside\";\nimport Container from \"./../container\";\nimport { Footer } from \"../Footer\";\nimport { AppHeader } from \"../Header\";\nimport SkipLinks from \"./../skip-links\";\nimport { Toolbar } from \"../toolbar\";\nimport { AppLoader } from \"../../App/AppLoader\";\n\nconst Layout = ({ children }) => {\n return (\n \n \n \n \n \n