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S4D,EAAAA,EACThE,MAAOwL,EACPuE,IAAK9O,OAAO4C,SAAS+O,kBAQnB,OAAbnG,SAAa,IAAbA,QAAa,EAAbA,GAAepK,QAAS,IACvBuG,EAAAA,EAAAA,MAAA,OAAKvI,UAAWwK,EAAa,UAAUhC,SAAA,EACrCC,EAAAA,EAAAA,KAAC+J,EAAAA,GAAe,CAAC/P,KAAK,2BACtB8F,EAAAA,EAAAA,MAAA,OAAKvI,UAAU,YAAWwI,SAAA,CACvBwC,IACCvC,EAAAA,EAAAA,KAAA,OAAKzI,UAAWwK,EAAa,eAAehC,UAC1CC,EAAAA,EAAAA,KAACvG,EAAAA,EAAWwG,MAAK,CAACtG,KAAK,KAAIoG,SACxBwC,OAKPvC,EAAAA,EAAAA,KAAA,OAAKzI,UAAWwK,EAAa,cAAchC,UACzCC,EAAAA,EAAAA,KAACgK,EAAAA,GAAM,CApYrBC,YAAY,EACZ9J,YAAa,CACX,IAAK,CACH+J,aAAc,GACdC,cAAe,GAEjB,KAAM,CACJD,aAAc,GACdC,cAAe,IAGnBD,aAAc,GACdC,cAAe,EACfC,eAAe,EAuXuBrK,SACrB4D,GAAcxJ,KAAI+N,IACjBlI,EAAAA,EAAAA,KAACqK,EAAAA,GAAU,CAAAtK,UACTC,EAAAA,EAAAA,KAACsK,EAAAA,EAAW,IACNpC,EACJlO,KAAMuQ,EAAAA,GAAaC,OACnBC,UACmB,IAAjBvC,EAAKxG,KAAKJ,GACNgB,EACAD,MAPO0G,EAAAA,EAAAA,wBAmBlB,C","sources":["../node_modules/@dataartdev/uikit/__internal__/src/components/TreeNav/TreeNav.js","common/hooks/useRedirect404.ts","common/utils/socialShareHandler.ts","features/blog/components/BlogSingleForm.tsx","features/blog/pages/BlogSingle.tsx"],"sourcesContent":["import { __assign, __read, __rest } from \"tslib\";\n/* eslint-disable jsx-a11y/no-static-element-interactions */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n// @ts-nocheck\nimport './TreeNav.css';\nimport React, { useEffect, useState } from 'react';\nimport { cn } from '../../utils/bem';\nimport { Button } from '../Button/Button';\nimport { Typography } from '../Typography/Typography';\nexport var cnTreeNav = cn('TreeNav');\nexport var TreeNav = React.forwardRef(function (props, ref) {\n var _a = __read(useState(false), 2), visible = _a[0], setVisible = _a[1];\n var pageRef = props.pageRef, _b = props.items, items = _b === void 0 ? [] : _b, title = props.title, _c = props.getLabel, getLabel = _c === void 0 ? function (item) { return item.title; } : _c, onClick = props.onClick, className = props.className, fixed = props.fixed, otherProps = __rest(props, [\"pageRef\", \"items\", \"title\", \"getLabel\", \"onClick\", \"className\", \"fixed\"]);\n var _d = __read(useState(items), 2), groups = _d[0], setGroups = _d[1];\n var handleScrollTo = function (item) {\n var y = item.el.getBoundingClientRect().top +\n window.pageYOffset -\n (document.querySelector('.Header').offsetHeight + 40);\n window.scrollTo({ top: y, behavior: 'smooth' });\n };\n var handleClick = function (item) {\n if (onClick) {\n onClick(item);\n }\n else {\n handleScrollTo(item);\n }\n };\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(function () {\n if (pageRef === null || pageRef === void 0 ? void 0 : pageRef.current) {\n var hTags = pageRef.current.querySelectorAll('h2, h3');\n var arr_1 = [];\n hTags.forEach(function (hTag) {\n var tagContent = hTag.innerText;\n arr_1.push({\n title: tagContent,\n el: hTag,\n tagName: hTag.tagName\n });\n setGroups(arr_1);\n });\n }\n }, [pageRef]);\n useEffect(function () {\n if (fixed) {\n setVisible(true);\n setTimeout(function () {\n setVisible(false);\n }, 2000);\n }\n }, [fixed]);\n if (items.length === 0 && !(pageRef === null || pageRef === void 0 ? void 0 : pageRef.current)) {\n return null;\n }\n if (groups.length === 0) {\n return null;\n }\n var openDialog = function () {\n setVisible(true);\n };\n var closeDialog = function () {\n setVisible(false);\n };\n return (React.createElement(\"div\", __assign({ className: cnTreeNav({ fixed: fixed, visible: visible }, [className]) }, otherProps, { ref: ref, onClick: openDialog }),\n React.createElement(\"div\", { className: cnTreeNav('Head') },\n title && (React.createElement(Typography.Text, { className: cnTreeNav('Head-Title'), size: \"xs\", weight: \"bold\", transform: \"uppercase\", as: \"h2\" }, title)),\n fixed && (React.createElement(Button, { view: \"ghost\", className: cnTreeNav('Toggle'), onClick: function (e) {\n e.stopPropagation();\n closeDialog();\n } }))),\n groups.length > 0 &&\n groups.map(function (item, index) {\n if (groups.length >= 10 && item.tagName === 'H3')\n return null;\n return (React.createElement(\"div\", { key: index, className: cnTreeNav('Item', {\n hide: groups.length >= 10 && item.tagName === 'H3',\n tag: item.tagName ? item.tagName : null\n }), onClick: function () { return handleClick(item); } },\n React.createElement(Typography.Text, { size: \"s\" }, getLabel(item))));\n })));\n});\n","import { useEffect } from 'react';\r\nimport { redirect404 } from '../../router';\r\nimport { AxiosError } from 'axios';\r\nimport { History } from 'history';\r\n\r\ntype TF = (error: AxiosError | null, history: History) => void;\r\n\r\nexport const useRedirect404: TF = (error, history) => {\r\n useEffect(() => {\r\n if (error && error.response && error.response.status === 404) {\r\n redirect404(history);\r\n }\r\n\r\n if (error && error.response && error.response.status === 400) {\r\n history.replace({ ...history.location, state: { is400: true } });\r\n }\r\n }, [error, history]);\r\n};\r\n","import TagManager from 'react-gtm-module';\r\n\r\nexport const onSocialShareHandler = (social: string): void => {\r\n TagManager.dataLayer({\r\n dataLayer: {\r\n event: 'social_share_click',\r\n social_name: social,\r\n },\r\n });\r\n};\r\n","import './BlogSingleForm.scss';\r\n\r\nimport React, { useRef, useState } from 'react';\r\nimport * as yup from 'yup';\r\nimport { Typography } from '@dataartdev/uikit/Typography';\r\nimport { cn } from 'ui/utils/bem';\r\nimport { useSelector } from 'react-redux';\r\nimport { dictionariesSelector } from 'store';\r\nimport { TextField } from '@dataartdev/uikit/TextField';\r\nimport { Button } from '@dataartdev/uikit/Button';\r\nimport { Checkbox } from '@dataartdev/uikit/Checkbox';\r\nimport { Grid, GridItem } from '@dataartdev/uikit/Grid';\r\nimport { mutationBlogSingleForm } from 'network';\r\nimport { IconArrowRight } from '@dataartdev/uikit/IconArrowRight';\r\nimport TagManager from 'react-gtm-module';\r\nimport { recaptchaKey, recaptchaFormKey } from 'common/constants';\r\nimport ReCAPTCHA from 'react-google-recaptcha';\r\nimport { usePagePath } from '../../../common/hooks/usePagePath';\r\nimport { Message } from 'yup/lib/types';\r\nimport { useFormik } from 'formik';\r\nimport { useCameFrom } from '../../../common/hooks/useCameFrom';\r\n\r\ninterface Props {\r\n pageId: number | undefined;\r\n tags: string | undefined;\r\n}\r\n\r\nconst cnBlogSingleForm = cn('BlogSingleForm');\r\n\r\nconst validationSchema = (\r\n emailError: Message = 'Invalid email address',\r\n requiredError: Message = 'Field is required'\r\n) =>\r\n yup.object().shape({\r\n email: yup\r\n .string()\r\n // .email(companySiteBlogPostFormSubscribeEventEmailError)\r\n .email(emailError)\r\n .required(requiredError)\r\n .nullable(),\r\n name: yup\r\n .string()\r\n .min(3)\r\n .required(requiredError)\r\n .nullable(),\r\n privacyAgreement: yup\r\n .boolean()\r\n .oneOf([true], 'on')\r\n .required(),\r\n });\r\n\r\ninterface InitValues {\r\n name: string;\r\n email: string;\r\n privacyAgreement: boolean;\r\n}\r\n\r\nconst initialValues: InitValues = {\r\n email: '',\r\n name: '',\r\n privacyAgreement: false,\r\n};\r\n\r\nexport const BlogSingleForm: React.FC = ({ pageId, tags }) => {\r\n const { companySiteBlogPost } = useSelector(dictionariesSelector) || {};\r\n const {\r\n companySiteBlogPostForm: {\r\n companySiteBlogPostFormSubscribeEvent: {\r\n companySiteBlogPostFormRequiredField = 'Required Field',\r\n companySiteBlogPostFormSubscribeEventSuccessText = '',\r\n companySiteBlogPostFormSubscribeEventTrackingID = '',\r\n companySiteBlogPostFormSubscribeEventTitle = '',\r\n companySiteBlogPostFormSubscribeEventSubscribePolicy = '',\r\n companySiteBlogPostFormSubscribeEventSuccessTitle = '',\r\n companySiteBlogPostFormSubscribeEventEmail: {\r\n companySiteBlogPostFormSubscribeEventEmailError = '',\r\n } = {},\r\n companySiteBlogPostFormSubscribeEventName = '',\r\n } = {},\r\n } = {},\r\n } = companySiteBlogPost || {};\r\n\r\n const [successForm, setSuccessForm] = useState(false);\r\n const reCaptchaRef = useRef(null);\r\n const pagePath = usePagePath();\r\n const { cameFrom } = useCameFrom();\r\n const submitID = companySiteBlogPostFormSubscribeEventTrackingID;\r\n\r\n const {\r\n handleSubmit,\r\n handleChange,\r\n handleBlur,\r\n values,\r\n touched,\r\n errors,\r\n isValid,\r\n dirty,\r\n isSubmitting,\r\n } = useFormik({\r\n initialValues: initialValues,\r\n validationSchema: validationSchema(\r\n companySiteBlogPostFormSubscribeEventEmailError,\r\n companySiteBlogPostFormRequiredField\r\n ),\r\n onSubmit: async (values, actions) => {\r\n const token = await reCaptchaRef.current?.executeAsync();\r\n try {\r\n await mutationBlogSingleForm({\r\n body: {\r\n ...values,\r\n pageId,\r\n [`${recaptchaFormKey}`]: token,\r\n cameFrom: cameFrom,\r\n trackingId: submitID,\r\n },\r\n });\r\n setSuccessForm(true);\r\n actions.resetForm();\r\n TagManager.dataLayer({\r\n dataLayer: {\r\n event: 'send_form',\r\n form_name: 'newsletter_form',\r\n page_path: pagePath,\r\n label: values.email,\r\n tags: tags,\r\n },\r\n });\r\n } catch (error) {\r\n error instanceof Error\r\n ? console.error(error.message)\r\n : console.error(error);\r\n }\r\n },\r\n });\r\n\r\n return (\r\n
\r\n \r\n {companySiteBlogPostFormSubscribeEventTitle}\r\n \r\n
\r\n \r\n \r\n handleChange(e)}\r\n onBlur={handleBlur}\r\n caption={touched.name && errors.name ? errors.name : undefined}\r\n status={touched.name && !!errors.name ? 'alert' : undefined}\r\n />\r\n \r\n \r\n handleChange(e)}\r\n onBlur={handleBlur}\r\n value={values.email}\r\n label=\"E-mail\"\r\n view=\"outline\"\r\n width=\"full\"\r\n required\r\n caption={touched.email && errors.email ? errors.email : undefined}\r\n status={touched.email && !!errors.email ? 'alert' : undefined}\r\n />\r\n \r\n \r\n handleChange(e)}\r\n onBlur={handleBlur}\r\n name=\"privacyAgreement\"\r\n checked={values.privacyAgreement}\r\n />\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n {successForm && (\r\n
\r\n {companySiteBlogPostFormSubscribeEventSuccessTitle && (\r\n \r\n {companySiteBlogPostFormSubscribeEventSuccessTitle}\r\n \r\n )}\r\n {companySiteBlogPostFormSubscribeEventSuccessText && (\r\n \r\n {companySiteBlogPostFormSubscribeEventSuccessText}\r\n \r\n )}\r\n
\r\n )}\r\n
\r\n );\r\n};\r\n","import './BlogSingle.scss';\r\n\r\nimport React, { useMemo, useEffect, useRef } from 'react';\r\nimport { generatePath, RouteComponentProps } from 'react-router-dom';\r\nimport { useSelector } from 'react-redux';\r\nimport { dictionariesSelector } from 'store';\r\nimport TagManager from 'react-gtm-module';\r\nimport { useDataQuery, useGTMDataSend } from 'common/hooks';\r\nimport { queryBlogPost, mutationFileForm } from 'network';\r\nimport { EssenceCard } from '../../../common/components/EssenceCard/EssenceCard';\r\nimport { Grid, GridItem } from '@dataartdev/uikit/Grid';\r\nimport { cn } from 'ui/utils/bem';\r\nimport { Typography } from '@dataartdev/uikit/Typography';\r\nimport { Breadcrumbs } from '@dataartdev/uikit/Breadcrumbs';\r\nimport { PATH, RouteParams } from 'router';\r\nimport { Tag } from '@dataartdev/uikit/Tag';\r\nimport { TagGroup } from '@dataartdev/uikit/TagGroup';\r\nimport { Picture } from '@dataartdev/uikit/Picture';\r\nimport { Article } from '../../../common/components/Article/Article';\r\nimport { User } from '@dataartdev/uikit/User';\r\nimport { SocialsShare } from '@dataartdev/uikit/SocialsShare';\r\nimport { Mq } from '@dataartdev/uikit/Mq';\r\nimport { Slider, SliderItem } from '@dataartdev/uikit/Slider';\r\nimport { CollapseGroup } from '@dataartdev/uikit/CollapseGroup';\r\nimport { TreeNav } from '@dataartdev/uikit/TreeNav';\r\nimport { BackgroundDecor } from '@dataartdev/uikit/BackgroundDecor';\r\nimport { BlogSingleForm } from '../components/BlogSingleForm';\r\nimport { CtaScrollerBtn } from '../../../common/components/CtaScrollerBtn';\r\nimport { recaptchaKey, recaptchaFormKey } from 'common/constants';\r\nimport { FileCard } from '../../../common/components';\r\nimport { usePagePath } from '../../../common/hooks/usePagePath';\r\nimport { useIntl } from 'react-intl';\r\nimport { Loader } from '@dataartdev/uikit/Loader';\r\nimport { SiteBlock } from '../../../common/components/SiteBlock/SiteBlock';\r\nimport { nanoid } from '@reduxjs/toolkit';\r\nimport { onSocialShareHandler } from '../../../common/utils/socialShareHandler';\r\nimport { BodyType } from '../../../common/components/ContentBuilder/ContentBuilder';\r\nimport { Document } from '@features/blog/pages/blog_single_models';\r\nimport { IMember, IPost } from '@commonTypes/common';\r\nimport { useRedirect404 } from '../../../common/hooks/useRedirect404';\r\nimport { CardPropView } from '../../../common/components/EssenceCard/models';\r\nimport { useCameFrom } from '../../../common/hooks/useCameFrom';\r\n\r\ntype Props = RouteComponentProps;\r\n\r\nexport const cnBlogSingle = cn('BlogSingle');\r\n\r\nconst BlogSingle: React.FC = ({ match, history }) => {\r\n const { companySiteBlogPost, companySiteTableOfContent, companySiteForm } =\r\n useSelector(dictionariesSelector) || {};\r\n\r\n const {\r\n companySiteBlogPostSimilarPostsTitle,\r\n // companySiteBlogPostForm,\r\n companySiteBlogPostSimilarVideoTitle,\r\n companySiteBlogPostRelatedContentTitle,\r\n companySiteBlogPostTimeRead,\r\n companySiteBlogPostAuthorTitle,\r\n companySiteBlogPostShare,\r\n } = companySiteBlogPost || {};\r\n\r\n const { locale } = useIntl();\r\n const lang = locale === 'en' ? undefined : locale;\r\n\r\n const { data, loading, error } = useDataQuery(queryBlogPost, {\r\n locale,\r\n slug:\r\n match.params.slug === 'static-content'\r\n ? 'test-1-why-every-company-needs-a-data-governance-strategy'\r\n : match.params.slug,\r\n });\r\n\r\n const {\r\n breadcrumbs,\r\n postDate,\r\n readingTime,\r\n title,\r\n tags,\r\n picture,\r\n text,\r\n description,\r\n similarPosts = [],\r\n realatedItems = [],\r\n faq = [],\r\n members = [],\r\n contentPosts,\r\n sideItems,\r\n metaTitle,\r\n document,\r\n subscribeFormOn,\r\n contentPostsShortCode,\r\n } = data || {};\r\n\r\n const stringTags = tags\r\n ?.map(i => i.title)\r\n .join(', ')\r\n .trim();\r\n\r\n const pagePath = usePagePath();\r\n\r\n const formatNames = (arr: IMember[]) => {\r\n return arr\r\n .map(item => {\r\n const { firstName, lastName } = item;\r\n if (firstName && lastName) {\r\n return `${firstName} ${lastName}`;\r\n }\r\n return '';\r\n })\r\n .filter(Boolean)\r\n .join(', ');\r\n };\r\n let dataLayerMembers: string = '';\r\n if (members) {\r\n dataLayerMembers = formatNames(members);\r\n }\r\n\r\n useEffect(() => {\r\n if (stringTags) {\r\n TagManager.dataLayer({\r\n dataLayer: {\r\n event: 'blog_tag_visit',\r\n page_path: pagePath,\r\n page_title: metaTitle || 'Blog',\r\n tags: stringTags,\r\n label: dataLayerMembers || 'not set',\r\n },\r\n });\r\n }\r\n }, [tags, metaTitle, pagePath, stringTags, members]);\r\n\r\n const dataLayerTags = tags?.map(tag => tag.title).join(', ');\r\n const sliderConfig = {\r\n navigation: true,\r\n breakpoints: {\r\n 767: {\r\n spaceBetween: 16,\r\n slidesPerView: 2,\r\n },\r\n 1200: {\r\n spaceBetween: 24,\r\n slidesPerView: 3,\r\n },\r\n },\r\n spaceBetween: 16,\r\n slidesPerView: 1,\r\n watchOverflow: true,\r\n };\r\n\r\n useRedirect404(error, history);\r\n useGTMDataSend(metaTitle, tags);\r\n\r\n const tagsRender = useMemo(\r\n () => (\r\n \r\n {tags && (\r\n
\r\n {\r\n return {\r\n ...tag,\r\n onClick: () =>\r\n history.push(\r\n generatePath(`${PATH.SEARCH_PAGE}?tags=${tag.id}`, {\r\n lang,\r\n })\r\n ),\r\n };\r\n })}\r\n />\r\n
\r\n )}\r\n
\r\n ),\r\n [tags, history, lang]\r\n );\r\n\r\n const authorsRender = useMemo(\r\n () => (\r\n \r\n {members?.length > 0 && (\r\n
\r\n
\r\n {companySiteBlogPostAuthorTitle && (\r\n \r\n {companySiteBlogPostAuthorTitle}\r\n \r\n )}\r\n
\r\n
\r\n {members.map(author => (\r\n \r\n ))}\r\n
\r\n
\r\n )}\r\n
\r\n ),\r\n [members, companySiteBlogPost, locale]\r\n );\r\n\r\n const pageRef = useRef(null);\r\n\r\n let splitContent = [];\r\n if (text?.includes('fileSplitter')) {\r\n splitContent = text.split('fileSplitter');\r\n } else {\r\n splitContent = [text];\r\n }\r\n\r\n let documents: Document[] = [];\r\n if (Array.isArray(document)) {\r\n documents = document;\r\n } else if (document) {\r\n documents.push(document);\r\n }\r\n\r\n const { cameFrom } = useCameFrom();\r\n const submitButtonID =\r\n companySiteForm?.companySiteFormDownloadFile\r\n ?.companySiteFormDownloadFileTrackingID || 'file_download';\r\n\r\n const onSubmitFileForm = (body: BodyType) => {\r\n mutationFileForm({\r\n body: {\r\n ...body,\r\n pageId: data?.id,\r\n [`${recaptchaFormKey}`]: body.token,\r\n cameFrom: cameFrom,\r\n trackingId: submitButtonID,\r\n },\r\n }).then(() => {\r\n TagManager.dataLayer({\r\n dataLayer: {\r\n event: 'send_form',\r\n form_name: submitButtonID,\r\n label: body.email,\r\n tags: stringTags || '',\r\n },\r\n });\r\n });\r\n };\r\n\r\n return (\r\n \r\n {loading && (\r\n \r\n \r\n \r\n )}\r\n {!loading && (\r\n
\r\n \r\n \r\n \r\n {data && (\r\n
\r\n
\r\n {breadcrumbs && breadcrumbs.length > 0 && (\r\n page.text}\r\n getLink={page => page.url}\r\n history={history}\r\n pages={data.breadcrumbs}\r\n />\r\n )}\r\n
\r\n
\r\n {postDate && (\r\n
\r\n \r\n {postDate}\r\n \r\n
\r\n )}\r\n {readingTime &&\r\n +readingTime !== 0 &&\r\n companySiteBlogPostTimeRead && (\r\n
\r\n \r\n
\r\n )}\r\n {title && (\r\n
\r\n \r\n {title}\r\n \r\n
\r\n )}\r\n
\r\n
\r\n \r\n \r\n {tagsRender}\r\n {description && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n {picture && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n {authorsRender}\r\n\r\n {text && (\r\n
\r\n {splitContent?.map((item, index) => {\r\n return (\r\n match.params.slug !== 'static-content' && (\r\n
\r\n \r\n post?.slug\r\n ? generatePath(PATH.BLOG_SINGLE, {\r\n slug: post.slug,\r\n lang:\r\n locale === 'en'\r\n ? undefined\r\n : locale,\r\n })\r\n : undefined,\r\n }}\r\n references={{\r\n path: PATH,\r\n items: sideItems,\r\n lang: lang,\r\n }}\r\n />\r\n {documents?.[index] && (\r\n \r\n onSubmitFileForm({\r\n ...body,\r\n filePath: documents?.[index].file?.url,\r\n })\r\n }\r\n recaptchaKey={recaptchaKey}\r\n />\r\n )}\r\n
\r\n )\r\n );\r\n })}\r\n {faq?.length > 0 && (\r\n
\r\n \r\n faq\r\n \r\n item.title}\r\n getItemContent={item => {\r\n return (\r\n <>\r\n
\r\n {item.button && (\r\n
\r\n \r\n
\r\n )}\r\n \r\n );\r\n }}\r\n />\r\n
\r\n )}\r\n
\r\n )}\r\n \r\n \r\n {similarPosts?.length > 0 || members?.length > 0 ? (\r\n
\r\n {authorsRender}\r\n {subscribeFormOn && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n {similarPosts?.length > 0 && (\r\n
\r\n {companySiteBlogPostSimilarPostsTitle && (\r\n \r\n \r\n {companySiteBlogPostSimilarPostsTitle}\r\n \r\n
\r\n )}\r\n
\r\n {similarPosts.map(post => (\r\n \r\n {post.title}\r\n \r\n ))}\r\n
\r\n
\r\n )}\r\n
\r\n ) : null}\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n {tagsRender}\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n )}\r\n\r\n {realatedItems?.length > 0 && (\r\n
\r\n \r\n
\r\n {companySiteBlogPostRelatedContentTitle && (\r\n
\r\n \r\n {companySiteBlogPostRelatedContentTitle}\r\n \r\n
\r\n )}\r\n\r\n
\r\n \r\n {realatedItems.map(post => (\r\n \r\n \r\n \r\n ))}\r\n \r\n
\r\n
\r\n
\r\n )}\r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default BlogSingle;\r\n"],"names":["cnTreeNav","cn","TreeNav","React","props","ref","_a","__read","useState","visible","setVisible","pageRef","_b","items","title","_c","getLabel","item","onClick","className","fixed","otherProps","__rest","_d","groups","setGroups","handleClick","y","el","getBoundingClientRect","top","window","pageYOffset","document","querySelector","offsetHeight","scrollTo","behavior","handleScrollTo","useEffect","current","hTags","querySelectorAll","arr_1","forEach","hTag","tagContent","innerText","push","tagName","setTimeout","length","__assign","Typography","Text","size","weight","transform","as","Button","view","e","stopPropagation","map","index","key","hide","tag","useRedirect404","error","history","response","status","redirect404","replace","location","state","is400","onSocialShareHandler","social","TagManager","dataLayer","event","social_name","cnBlogSingleForm","validationSchema","emailError","arguments","undefined","requiredError","yup","shape","email","required","nullable","name","min","privacyAgreement","oneOf","initialValues","BlogSingleForm","_ref","pageId","tags","companySiteBlogPost","useSelector","dictionariesSelector","companySiteBlogPostForm","companySiteBlogPostFormSubscribeEvent","companySiteBlogPostFormRequiredField","companySiteBlogPostFormSubscribeEventSuccessText","companySiteBlogPostFormSubscribeEventTrackingID","companySiteBlogPostFormSubscribeEventTitle","companySiteBlogPostFormSubscribeEventSubscribePolicy","companySiteBlogPostFormSubscribeEventSuccessTitle","companySiteBlogPostFormSubscribeEventEmail","companySiteBlogPostFormSubscribeEventEmailError","companySiteBlogPostFormSubscribeEventName","successForm","setSuccessForm","reCaptchaRef","useRef","pagePath","usePagePath","cameFrom","useCameFrom","submitID","handleSubmit","handleChange","handleBlur","values","touched","errors","isValid","dirty","isSubmitting","useFormik","onSubmit","async","actions","_reCaptchaRef$current","token","executeAsync","mutationBlogSingleForm","body","recaptchaFormKey","trackingId","resetForm","form_name","page_path","label","Error","console","message","_jsxs","children","_jsx","Title","Grid","breakpoints","desktop","cols","gap","tablet","mobile","GridItem","col","TextField","value","width","onChange","_ref2","onBlur","caption","_ref3","Checkbox","_ref4","checked","id","iconRight","IconArrowRight","disabled","type","ReCAPTCHA","sitekey","recaptchaKey","success","cnBlogSingle","_companySiteForm$comp","_splitContent","match","companySiteTableOfContent","companySiteForm","companySiteBlogPostSimilarPostsTitle","companySiteBlogPostSimilarVideoTitle","companySiteBlogPostRelatedContentTitle","companySiteBlogPostTimeRead","companySiteBlogPostAuthorTitle","companySiteBlogPostShare","locale","useIntl","lang","data","loading","useDataQuery","queryBlogPost","slug","params","breadcrumbs","postDate","readingTime","picture","text","description","similarPosts","realatedItems","faq","members","contentPosts","sideItems","metaTitle","subscribeFormOn","contentPostsShortCode","stringTags","i","join","trim","dataLayerMembers","firstName","lastName","filter","Boolean","page_title","dataLayerTags","useGTMDataSend","tagsRender","useMemo","TagGroup","generatePath","PATH","SEARCH_PAGE","authorsRender","author","_author$photo","User","avatarUrl","photo","desktop2x","info","link","isHiddenPage","TEAM_MEMBER","splitContent","includes","split","documents","Array","isArray","submitButtonID","companySiteFormDownloadFile","companySiteFormDownloadFileTrackingID","SiteBlock","topGap","Loader","Mq","query","Breadcrumbs","page","getLink","url","pages","Tag","mode","dangerouslySetInnerHTML","__html","Picture","_documents","_documents2","_documents3","_documents4","_documents4$index$fil","_documents5","Article","content","code","path","post","BLOG_SINGLE","references","FileCard","file","extension","date","_documents6","_documents6$index$fil","mutationFileForm","then","onSubmitFileForm","filePath","nanoid","CollapseGroup","hoverEffect","getItemLabel","getItemContent","_item$button","_item$button2","_Fragment","button","CtaScrollerBtn","isPopup","colStart","to","yAlign","SocialsShare","href","BackgroundDecor","Slider","navigation","spaceBetween","slidesPerView","watchOverflow","SliderItem","EssenceCard","CardPropView","FILLED","linkTitle"],"sourceRoot":""}