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AQ,kBAAmB,YACxCyO,EAAAA,EAAAA,IAAoB,IAAI,IAC5BsD,EAAAA,EAAAA,IAAYnG,EAAKoG,OAAQ,YACxB,QAEThB,EAAG,GACF,EAAG,CAAC,UAET,IE7EMpE,EAAc,EAEpB,G","sources":["webpack://@sazka/web/./js/app/help-center/composables/use-hc-search.ts","webpack://@sazka/web/./js/app/help-center/composables/useHcAnalytics.ts","webpack://@sazka/web/./js/app/shared/utils/analytics/analytics-search.ts","webpack://@sazka/web/../../libs/design-system/src/loader/loader.ts","webpack://@sazka/web/../../libs/utils/document-ready.ts","webpack://@sazka/web/../../libs/utils/sazka-alert.ts","webpack://@sazka/web/./js/app/help-center/hc-api/hc-api.ts","webpack://@sazka/web/./js/app/help-center/model/category.ts","webpack://@sazka/web/./js/app/help-center/composables/useHcState.ts","webpack://@sazka/web/./js/app/help-center/components/hc-category.vue?9af8","webpack://@sazka/web/./js/app/help-center/components/hc-category.vue","webpack://@sazka/web/./js/app/help-center/components/hc-category.vue?0fee","webpack://@sazka/web/./js/app/help-center/components/hc-navigation.vue?aeaa","webpack://@sazka/web/./js/app/help-center/components/hc-navigation.vue","webpack://@sazka/web/./js/app/help-center/components/hc-navigation.vue?ae30","webpack://@sazka/web/./js/app/help-center/components/hc-accordeon.vue?b141","webpack://@sazka/web/./js/app/help-center/components/hc-accordeon.vue","webpack://@sazka/web/./js/app/help-center/components/hc-accordeon.vue?c0f5","webpack://@sazka/web/./js/app/help-center/components/hc-default-questions.vue?623c","webpack://@sazka/web/./js/app/help-center/components/hc-default-questions.vue","webpack://@sazka/web/./js/app/help-center/components/hc-level.vue?0f62","webpack://@sazka/web/./js/app/help-center/components/hc-level.vue","webpack://@sazka/web/./js/app/help-center/components/hc-level.vue?fe9c","webpack://@sazka/web/./js/app/help-center/components/hc-subcategories.vue?28d1","webpack://@sazka/web/./js/app/help-center/components/hc-subcategories.vue","webpack://@sazka/web/./js/app/help-center/components/hc-subcategories.vue?9f96","webpack://@sazka/web/./js/app/help-center/components/hc-questions.vue?5696","webpack://@sazka/web/./js/app/help-center/components/hc-questions.vue","webpack://@sazka/web/./js/app/help-center/components/hc-questions.vue?a0d0","webpack://@sazka/web/./js/app/help-center/components/hc-search-results.vue?1dcf","webpack://@sazka/web/./js/app/help-center/components/hc-search-results.vue","webpack://@sazka/web/./js/app/help-center/components/hc-search-results.vue?4bce","webpack://@sazka/web/./js/app/help-center/_help-center.vue?86b1","webpack://@sazka/web/./js/app/help-center/_help-center.vue","webpack://@sazka/web/./js/app/help-center/_help-center.vue?f986","webpack://@sazka/web/../../libs/design-system/src/floor/ds-floor.vue?926e","webpack://@sazka/web/../../libs/design-system/src/floor/ds-floor.vue","webpack://@sazka/web/../../libs/design-system/src/typography/typography-headline.vue?9cee","webpack://@sazka/web/../../libs/design-system/src/typography/typography-headline.vue","webpack://@sazka/web/../../libs/design-system/src/typography/typography-headline.vue?d045"],"sourcesContent":["import { ref } from \"vue\";\r\nimport { ArticlePreviewDto } from \"../model/article\";\r\nimport { SearchAnalytics } from \"@/shared/utils/analytics/analytics-search\";\r\nimport { httpClient } from \"@sazka/utils/http-clients/http-client\";\r\n\r\nconst searchResultList = ref<ArticlePreviewDto[]>([]);\r\nconst searchText = ref(\"\");\r\nconst areSearchResultsVisible = ref(false);\r\n\r\nconst hideSearchResults = () => {\r\n    searchResultList.value = [];\r\n};\r\n\r\nconst fetch = async (searchText: string, topn = 10) => {\r\n    try {\r\n        const response = await httpClient.get<ArticlePreviewDto[]>(\r\n            `/api/help-center/search?searchText=${searchText}&topn=${topn}`\r\n        );\r\n        return response.data;\r\n    } catch (e) {\r\n        return [];\r\n    }\r\n};\r\n\r\nconst fetchAutocomplete = async (text: string) => {\r\n    return fetch(text);\r\n};\r\n\r\nconst fetchResults = async (text: string) => {\r\n    searchText.value = text;\r\n    if (!text) {\r\n        searchResultList.value = [];\r\n        areSearchResultsVisible.value = false;\r\n    } else {\r\n        searchResultList.value = await fetch(text, 20);\r\n        areSearchResultsVisible.value = true;\r\n    }\r\n    SearchAnalytics.pushSearchResults(\"help center\", text, searchResultList.value.length);\r\n};\r\n\r\nexport const useHcSearch = () => ({\r\n    searchText,\r\n    searchResultList,\r\n    areSearchResultsVisible,\r\n    fetchResults,\r\n    fetchAutocomplete,\r\n    hideSearchResults,\r\n});\r\n","export default function useHcAnalytics() {\r\n    const openAnalyticsChat = () => {\r\n        window.dataLayer.push({\r\n            event: \"action.openChat.helpcenter\",\r\n        });\r\n    };\r\n\r\n    const selectAnalyticsTopic = (topicName: string) => {\r\n        window.dataLayer.push({\r\n            event: \"action.selectTopic.helpcenter\",\r\n            action: {\r\n                selectTopic: {\r\n                    label: topicName,\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    const selectAnalyticsCategory = (topicName: string, categoryName: string) => {\r\n        window.dataLayer.push({\r\n            event: \"action.selectCategory.helpcenter\",\r\n            action: {\r\n                selectCategory: {\r\n                    label: topicName,\r\n                    eventProperty1: categoryName,\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    const selectAnalyticsQuestion = (topicName: string, categoryName: string, question: string) => {\r\n        window.dataLayer.push({\r\n            event: \"action.selectQuestion.helpcenter\",\r\n            action: {\r\n                selectQuestion: {\r\n                    label: topicName,\r\n                    eventProperty1: categoryName,\r\n                    eventProperty2: question,\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    return {\r\n        openAnalyticsChat,\r\n        selectAnalyticsTopic,\r\n        selectAnalyticsCategory,\r\n        selectAnalyticsQuestion,\r\n    };\r\n}\r\n","export namespace SearchAnalytics {\r\n    export const pushSearchSuggester = (type: \"main\" | \"help center\", term: string, resultsCount: number) => {\r\n        dataLayer.push({\r\n            page: {\r\n                type: \"list.searchresults\",\r\n                kind: \"whisperer\",\r\n                list: {\r\n                    searchresults: {\r\n                        type: `${type} search`,\r\n                        term: term,\r\n                        resultCount: resultsCount,\r\n                    },\r\n                    pageNumber: 1,\r\n                },\r\n            },\r\n            event: \"page\",\r\n        });\r\n    };\r\n\r\n    export const pushSearchResults = (type: \"main\" | \"help center\", term: string, resultsCount: number) => {\r\n        dataLayer.push({\r\n            page: {\r\n                type: \"list.searchresults\",\r\n                kind: \"searchresults\",\r\n                list: {\r\n                    searchresults: {\r\n                        type: `${type} search`,\r\n                        term: term,\r\n                        resultCount: resultsCount,\r\n                    },\r\n                    pageNumber: 1,\r\n                },\r\n            },\r\n            event: \"pageReady\",\r\n        });\r\n    };\r\n\r\n    export const pushSuggesterClick = (category: string, name: string) => {\r\n        dataLayer.push({\r\n            event: \"action.click.search\",\r\n            action: {\r\n                click: {\r\n                    category: category,\r\n                    name: name,\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    export const pushResultsClick = (category: string, name: string) => {\r\n        dataLayer.push({\r\n            event: \"action.click.search\",\r\n            action: {\r\n                click: {\r\n                    category: category,\r\n                    name: name,\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    export const getVerticalByCategory = (category: string) => {\r\n        switch (category) {\r\n            case \"lottery\":\r\n                return \"loterie\";\r\n            case \"ticket\":\r\n                return \"losy\";\r\n            case \"kasino\":\r\n                return \"elosy\";\r\n            case \"game\":\r\n                return \"hry\";\r\n        }\r\n    };\r\n\r\n    export const getVerticalByUrl = (url: string) => {\r\n        if (url.startsWith(\"/loterie\")) {\r\n            return \"loterie\";\r\n        } else if (url.startsWith(\"/losy/stiraci-losy\")) {\r\n            return \"losy\";\r\n        } else if (url.startsWith(\"/losy\")) {\r\n            return \"elosy\";\r\n        } else if (url.startsWith(\"/hry\")) {\r\n            return \"hry\";\r\n        }\r\n\r\n        return \"\";\r\n    };\r\n}\r\n","import { documentReady } from \"@sazka/utils/document-ready\";\r\n\r\ndeclare const environment: any;\r\ntype ColorVariant = \"yellow\" | \"blue\";\r\n\r\n/**\r\n * Loader tells user, he has to wait for some ajax operation\r\n */\r\nexport class Loader {\r\n    private static showTimeout: number;\r\n    private static hideTimeout: number;\r\n    private static lockNumber = 0;\r\n    public static get isShown() {\r\n        return this.lockNumber > 0;\r\n    }\r\n\r\n    static {\r\n        // loader from backend\r\n        if (document.body) {\r\n            this.showLoaderFromBackend();\r\n        } else {\r\n            documentReady(() => {\r\n                this.showLoaderFromBackend();\r\n            });\r\n        }\r\n    }\r\n\r\n    static showLoaderFromBackend() {\r\n        if (document.body.classList.contains(\"loader\")) {\r\n            this.lockNumber++;\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Shows loader after some time in miliseconds\r\n     * This is to reduce flickering when ajax actions are super-fast\r\n     *\r\n     * @param showLoaderIn Time in miliseconds, after which, loaded will be shown\r\n     * @param text Title (waiting message) displayed in loader\r\n     */\r\n    static show(showLoaderIn = 30, text?: string, aboveAll = false, color: ColorVariant = \"yellow\") {\r\n        this.clearTimeout();\r\n        this.lockNumber++;\r\n\r\n        this.showTimeout = window.setTimeout(() => {\r\n            this.showNow(text, aboveAll, true, color);\r\n        }, showLoaderIn);\r\n    }\r\n\r\n    /**\r\n     * Shows loader right away\r\n     * @param text Title (waiting message) displayed in loader\r\n     */\r\n    static showNow(text?: string, aboveAll = false, counted = false, color: ColorVariant = \"yellow\") {\r\n        if (!counted) {\r\n            this.lockNumber++;\r\n        }\r\n\r\n        if (!environment.isEditMode) {\r\n            const loader = document.getElementById(\"loader\");\r\n\r\n            if (!loader) return;\r\n\r\n            if (aboveAll) {\r\n                loader.classList.add(\"loader--above-all\");\r\n            } else {\r\n                loader.classList.remove(\"loader--above-all\");\r\n            }\r\n            if (text) {\r\n                loader.querySelector(\".loader__text\").textContent = text;\r\n                loader.classList.add(\"loader--with-text\");\r\n            } else {\r\n                loader.querySelector(\".loader__text\").textContent = \"\";\r\n                loader.classList.remove(\"loader--with-text\");\r\n            }\r\n\r\n            if (color === \"blue\") {\r\n                loader.classList.add(\"loader--blue\");\r\n            }\r\n\r\n            document.body.classList.add(\"loader\", \"loader--fade-in\");\r\n            this.clearTimeout();\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Shows loader after delay with z-index of 9999\r\n     * @param text Title (waiting message) displayed in loader\r\n     */\r\n    static showAboveAll(showLoaderIn = 30, text?: string) {\r\n        this.show(showLoaderIn, text, true);\r\n    }\r\n\r\n    /**\r\n     * Shows loader right away with z-index of 9999\r\n     * @param text Title (waiting message) displayed in loader\r\n     */\r\n    static showNowAboveAll(text?: string) {\r\n        this.showNow(text, true);\r\n    }\r\n\r\n    /**\r\n     * Hides loader\r\n     */\r\n    static hide() {\r\n        this.lockNumber--;\r\n        if (this.lockNumber > 0) return;\r\n\r\n        this.clearTimeout();\r\n        document.body.classList.remove(\"loader--fade-in\");\r\n        this.hideTimeout = window.setTimeout(() => {\r\n            document.body.classList.remove(\"loader\");\r\n            const loader = document.getElementById(\"loader\");\r\n            loader.querySelector(\".loader__text\").textContent = \"\";\r\n            loader.classList.remove(\"loader--with-text\");\r\n        }, 150);\r\n    }\r\n\r\n    private static clearTimeout() {\r\n        if (this.showTimeout) {\r\n            clearTimeout(this.showTimeout);\r\n            this.showTimeout = null;\r\n        }\r\n        if (this.hideTimeout) {\r\n            clearTimeout(this.hideTimeout);\r\n            this.hideTimeout = null;\r\n        }\r\n    }\r\n}\r\n","/**\r\n * Vanila JS variant to jQuery $(() => {}).\r\n * @param {callback} callback\r\n * @example - documentReady(() => {}).\r\n * This function is binding to document.ready\r\n * */\r\nexport function documentReady(callback: () => void) {\r\n    if (document.readyState !== \"loading\") {\r\n        return callback();\r\n    } else {\r\n        document.addEventListener(\"DOMContentLoaded\", callback);\r\n    }\r\n}\r\n","/**\r\n * @deprecated Use showAlert a DS component\r\n */\r\nexport const sazkaAlert = (\r\n    title: string,\r\n    text: string = null,\r\n    linkText: string = null,\r\n    link: string = null,\r\n    buttonText = \"OK\",\r\n    customHtml = \"\",\r\n    hasExtraButton = true,\r\n    errorCode?: number\r\n): Promise<boolean> => {\r\n    return new Promise((resolve) => {\r\n        const heading = $(\r\n            `<h2 class=\"sazka-alert__title\" style=\"visibility:hidden; display:inline-block;\">${title}</h2>`\r\n        );\r\n        $(\"body\").append(heading);\r\n        const maxWidth = Math.max(heading.width(), 300);\r\n        heading.remove();\r\n\r\n        const template = `\r\n        <div class=\"modal fade sazka-alert\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">\r\n            <div class=\"modal-dialog modal-dialog-centered\">\r\n                <div class=\"modal-content modal-content--without-close\">\r\n                    ${errorCode ? `<span class='sazka-alert__ecode'>ecode: ${errorCode}</span>` : \"\"}\r\n                    <h2 class=\"sazka-alert__title\">${title}</h2>\r\n                    ${text ? `<p class=\"sazka-alert__text\" style=\"max-width: ${maxWidth}px;\">${text}</p>` : \"\"}\r\n                    <div class=\"sazka-alert__button-group\">\r\n                        ${linkText ? `<a class=\"btn btn-primary sazka-alert--btn\" href=\"${link}\">${linkText}</a>` : \"\"}\r\n                        ${\r\n                            hasExtraButton\r\n                                ? `<button type=\"button\" class=\"btn ${\r\n                                      linkText ? \"btn-outline-primary\" : \"btn-primary\"\r\n                                  }\" data-dismiss=\"modal\">${buttonText}</button>`\r\n                                : \"\"\r\n                        }\r\n                    </div>\r\n                    ${customHtml}\r\n                </div>\r\n            </div>\r\n        </div>`;\r\n\r\n        const $modal = $(template);\r\n        $(\"body\").append($modal);\r\n        $modal.modal(\"show\");\r\n        $modal.find(\".sazka-alert--btn\").on(\"click\", () => {\r\n            resolve(false);\r\n            $modal.modal(\"hide\");\r\n        });\r\n        $modal.on(\"hidden.bs.modal\", () => {\r\n            $modal.modal(\"dispose\").remove();\r\n            if ($(\".modal:visible\").length) {\r\n                $(\"body\").addClass(\"modal-open\");\r\n            }\r\n            resolve(true);\r\n        });\r\n    });\r\n};\r\n","import { Loader } from \"@sazka/design-system/src/loader/loader\";\r\nimport { sazkaAlert } from \"@sazka/utils/sazka-alert\";\r\nimport { ArticlePreviewDto } from \"../model/article\";\r\nimport { CategoryDto } from \"../model/category\";\r\nimport { httpClient } from \"@sazka/utils/http-clients/http-client\";\r\n\r\nconst alertInfo = \"Nastal problém\";\r\nconst alertMessage = \"Omlouváme se, ale došlo k problému. Zkuste prosím stránku přenačíst.\";\r\n\r\ninterface ServiceResponse {\r\n    articles: ArticlePreviewDto[];\r\n    categories: CategoryDto[];\r\n}\r\n\r\ninterface ArticlesResponse {\r\n    articles: ArticlePreviewDto[];\r\n}\r\n\r\nexport async function loadSubcategories(nodeAliasPath: string): Promise<ServiceResponse> {\r\n    if (!nodeAliasPath) {\r\n        return;\r\n    }\r\n\r\n    Loader.show(200);\r\n\r\n    try {\r\n        const data = await httpClient.post(\"/api/help-center/subcategories\", {\r\n            nodeAliasPath: nodeAliasPath,\r\n            exactPath: true,\r\n        });\r\n        return data.data as ServiceResponse;\r\n    } catch (e) {\r\n        sazkaAlert(alertInfo, alertMessage);\r\n    } finally {\r\n        Loader.hide();\r\n    }\r\n}\r\n\r\nexport async function loadArticles(nodeAliasPath: string, toLoad: number): Promise<ArticlesResponse> {\r\n    Loader.show(200);\r\n\r\n    try {\r\n        const data = await httpClient.post(\"/api/help-center/articles\", {\r\n            nodeAliasPaths: [nodeAliasPath],\r\n            topN: toLoad,\r\n        });\r\n        return data.data as ArticlesResponse;\r\n    } catch (e) {\r\n        sazkaAlert(alertInfo, alertMessage);\r\n    } finally {\r\n        Loader.hide();\r\n    }\r\n}\r\n","import { ArticlePreviewDto } from \"./article\";\r\nimport { PageUrl } from \"@/shared/model/page-url\";\r\n\r\nexport interface CategoryDto {\r\n    name: string;\r\n    imgUrl?: string;\r\n    path: string;\r\n    nodeLevel: number;\r\n    pageUrl: PageUrl;\r\n}\r\n\r\nexport type Subcategory = null | [CategoryDto, Array<Subcategory>, Array<ArticlePreviewDto>];\r\n\r\nexport enum NodeValue {\r\n    category,\r\n    subcategories,\r\n    articles,\r\n}\r\n","import { Ref, ref, readonly } from \"vue\";\r\nimport type { DeepReadonly } from \"vue\";\r\nimport { ArticlePreviewDto } from \"../model/article\";\r\nimport { CategoryDto, Subcategory, NodeValue } from \"../model/category\";\r\nimport { loadSubcategories } from \"../hc-api/hc-api\";\r\nimport { PageUrl } from \"@/shared/model/page-url\";\r\n\r\nconst mainCategory: CategoryDto = {\r\n    name: \"Nejčastější a&nbsp;aktuální\",\r\n    imgUrl: \"/frontend/web/img/help-center/star.svg\",\r\n    path: \"\",\r\n    nodeLevel: 2,\r\n    pageUrl: { relative: \"/centrum-podpory\", absolute: \"\" },\r\n};\r\n\r\nconst mainSubcategories: Array<CategoryDto> = [\r\n    {\r\n        name: \"Nejčastější\",\r\n        path: \"\",\r\n        nodeLevel: 3,\r\n        pageUrl: { relative: \"/centrum-podpory\", absolute: \"\" },\r\n    },\r\n    {\r\n        name: \"Aktuální\",\r\n        path: \"\",\r\n        nodeLevel: 3,\r\n        pageUrl: { relative: \"/centrum-podpory\", absolute: \"\" },\r\n    },\r\n];\r\n\r\nexport const MAIN_ID = 0;\r\nexport const FIRST_LEVEL = 2;\r\nexport const MOST_OFTEN_IDS = readonly([0, 0]);\r\nexport const ACTUAL_IDS = readonly([0, 1]);\r\nexport const NOT_SELECTED = -1;\r\n\r\nconst categoriesLevels: Ref<Subcategory[]> = ref([]);\r\nconst selectedCategoryLevels = ref<number[]>([MAIN_ID, NOT_SELECTED, NOT_SELECTED]);\r\n\r\nexport default function useHcState() {\r\n    const toSubcategories = (categories: Array<CategoryDto>): Array<Subcategory> => {\r\n        const subcategories: Array<Subcategory> = [];\r\n        categories.forEach((category) => {\r\n            subcategories.push([category, [], []]);\r\n        });\r\n        return subcategories;\r\n    };\r\n\r\n    const fromSubcategories = (subcategories: Array<Subcategory>): Array<CategoryDto> => {\r\n        const categories: Array<CategoryDto> = [];\r\n        subcategories.forEach((subcategory) => {\r\n            if (subcategory !== null) {\r\n                categories.push(subcategory[NodeValue.category]);\r\n            }\r\n        });\r\n        return categories;\r\n    };\r\n\r\n    const getNode = (ids: DeepReadonly<Array<number>>): Subcategory => {\r\n        let node: Subcategory = null;\r\n        ids.forEach((id) => {\r\n            if (node === null) {\r\n                node = categoriesLevels.value[id];\r\n            } else {\r\n                node = node[NodeValue.subcategories][id];\r\n            }\r\n        });\r\n        return node;\r\n    };\r\n\r\n    const setSelectedCategoryLevels = (nodeLevel: number, id: number): void => {\r\n        selectedCategoryLevels.value[nodeLevel - FIRST_LEVEL] = id;\r\n        // When setting higher level unselect all lower levels\r\n        for (let index = nodeLevel - FIRST_LEVEL + 1; index < selectedCategoryLevels.value.length; index++) {\r\n            selectedCategoryLevels.value[index] = NOT_SELECTED;\r\n        }\r\n    };\r\n\r\n    const getSelectedCategoryLevels = (nodeLevel: number): DeepReadonly<Array<number>> => {\r\n        return readonly(selectedCategoryLevels.value.slice(0, nodeLevel - 1));\r\n    };\r\n\r\n    const getTopLevel = (): DeepReadonly<Array<CategoryDto>> => {\r\n        return readonly(fromSubcategories(categoriesLevels.value));\r\n    };\r\n\r\n    const getCategories = (ids: DeepReadonly<Array<number>>): DeepReadonly<Array<CategoryDto>> => {\r\n        const node = getNode(ids);\r\n        if (node === null) {\r\n            return [];\r\n        }\r\n        return readonly(fromSubcategories(node[NodeValue.subcategories] as Array<Subcategory>));\r\n    };\r\n\r\n    const getArticles = (ids: DeepReadonly<Array<number>>): DeepReadonly<Array<ArticlePreviewDto>> => {\r\n        const node = getNode(ids);\r\n        if (node === null) {\r\n            return [];\r\n        }\r\n        return readonly(node[NodeValue.articles]);\r\n    };\r\n\r\n    const setCategories = (ids: DeepReadonly<Array<number>>, categories: Array<CategoryDto>) => {\r\n        const node = getNode(ids);\r\n        if (node !== null) {\r\n            node[NodeValue.subcategories] = toSubcategories(categories);\r\n        }\r\n    };\r\n\r\n    const setArticles = (ids: DeepReadonly<Array<number>>, articles: Array<ArticlePreviewDto>) => {\r\n        const node = getNode(ids);\r\n        if (node !== null) {\r\n            node[NodeValue.articles] = articles;\r\n        }\r\n    };\r\n\r\n    const initCategoriesMapping = (\r\n        categories: Array<CategoryDto>,\r\n        mostOften: Array<ArticlePreviewDto>,\r\n        actual: Array<ArticlePreviewDto>\r\n    ) => {\r\n        categories.unshift(mainCategory);\r\n        categoriesLevels.value = toSubcategories(categories);\r\n        setCategories([MAIN_ID], mainSubcategories);\r\n        setArticles(MOST_OFTEN_IDS, mostOften);\r\n        setArticles(ACTUAL_IDS, actual);\r\n    };\r\n\r\n    const handleLoadSubcategories = async (\r\n        nodeLevel: number,\r\n        path: string,\r\n        id: number,\r\n        pageUrl?: PageUrl\r\n    ): Promise<void> => {\r\n        // Unselecting subcategory\r\n        if (id === getSelectedCategoryLevels(nodeLevel).slice(-1)[0]) {\r\n            setSelectedCategoryLevels(nodeLevel, NOT_SELECTED);\r\n            // Selecting subcategory and loading its subcategories and articles\r\n        } else {\r\n            setSelectedCategoryLevels(nodeLevel, id);\r\n            if (pageUrl) {\r\n                history.replaceState({}, \"\", pageUrl?.relative?.toLowerCase());\r\n            }\r\n            const data = await loadSubcategories(path);\r\n\r\n            setArticles(getSelectedCategoryLevels(nodeLevel), data.articles);\r\n            setCategories(getSelectedCategoryLevels(nodeLevel), data.categories);\r\n        }\r\n    };\r\n\r\n    const matchRelativeUrl = (el: CategoryDto, relativeUrl: string) =>\r\n        el.pageUrl.relative.toLowerCase() === relativeUrl;\r\n\r\n    const getIdBasedOnPath = (nodeLevel: number, catPath: string): [number, CategoryDto | undefined] => {\r\n        let categoryIndex = -1;\r\n        let categories = null;\r\n        if (nodeLevel === FIRST_LEVEL) {\r\n            categories = getTopLevel();\r\n            categoryIndex = categories.findIndex((el) => matchRelativeUrl(el, catPath));\r\n        } else {\r\n            const selectedLevels = getSelectedCategoryLevels(nodeLevel - 1);\r\n            categories = getCategories(selectedLevels);\r\n            categoryIndex = categories.findIndex((el) => matchRelativeUrl(el, catPath));\r\n        }\r\n        if (categoryIndex == -1) {\r\n            return [categoryIndex, undefined];\r\n        }\r\n        return [categoryIndex, categories[categoryIndex]];\r\n    };\r\n\r\n    const setLevelsBasedOnPath = async (path: string): Promise<void> => {\r\n        const toSelect = path.split(\"/\");\r\n        if (toSelect.length <= 1) return;\r\n\r\n        for (let nodeLevel = FIRST_LEVEL; nodeLevel < toSelect.length; nodeLevel++) {\r\n            const catPath = toSelect.slice(0, nodeLevel + 1).join(\"/\");\r\n            const [catIndex, category] = getIdBasedOnPath(nodeLevel, catPath);\r\n            if (catIndex === -1) return;\r\n\r\n            await handleLoadSubcategories(nodeLevel, category.path, catIndex, category.pageUrl);\r\n        }\r\n    };\r\n\r\n    return {\r\n        setSelectedCategoryLevels,\r\n        getSelectedCategoryLevels,\r\n        getCategories,\r\n        setCategories,\r\n        getTopLevel,\r\n        initCategoriesMapping,\r\n        getArticles,\r\n        setArticles,\r\n        handleLoadSubcategories,\r\n        setLevelsBasedOnPath,\r\n    };\r\n}\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = [\"innerHTML\"]\n\nimport { computed } from \"vue\";\r\nimport { CategoryDto } from \"../model/category\";\r\nimport { loadSubcategories } from \"../hc-api/hc-api\";\r\nimport useHcState from \"../composables/useHcState\";\r\nimport useHcAnalytics from \"../composables/useHcAnalytics\";\r\nimport WebpImage from \"@sazka/design-system/src/image/webp-image.vue\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'hc-category',\n  props: {\n    category: {},\n    id: {}\n  },\n  setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst { setSelectedCategoryLevels, setCategories, getSelectedCategoryLevels } = useHcState();\r\nconst { selectAnalyticsTopic } = useHcAnalytics();\r\n\r\nconst selected = computed(() => getSelectedCategoryLevels(props.category.nodeLevel).slice(-1)[0]);\r\n\r\nconst selectCategory = async () => {\r\n    setSelectedCategoryLevels(props.category.nodeLevel, props.id);\r\n\r\n    selectAnalyticsTopic(props.category.name);\r\n\r\n    // Main category has no path\r\n    if (props.category.path) {\r\n        const data = await loadSubcategories(props.category.path);\r\n        setCategories([props.id], data.categories);\r\n    }\r\n    history.replaceState({}, \"\", props.category.pageUrl.relative.toLowerCase());\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", {\n    class: _normalizeClass([\"hc-nav__category\", { 'hc-nav__category--main': selected.value === _ctx.id }]),\n    style: _normalizeStyle([_ctx.id === selected.value - 1 ? { 'border-right': 'none' } : {}]),\n    onClick: selectCategory\n  }, [\n    _createVNode(WebpImage, {\n      src: _ctx.category.imgUrl ? _ctx.category.imgUrl : '',\n      alt: '',\n      cssClass: ['hc-nav__icon']\n    }, null, 8, [\"src\"]),\n    _createElementVNode(\"span\", {\n      class: \"hc-nav__label\",\n      innerHTML: _ctx.category.name\n    }, null, 8, _hoisted_1)\n  ], 6))\n}\n}\n\n})","<template>\r\n    <div\r\n        class=\"hc-nav__category\"\r\n        :class=\"{ 'hc-nav__category--main': selected === id }\"\r\n        v-bind:style=\"[id === selected - 1 ? { 'border-right': 'none' } : {}]\"\r\n        @click=\"selectCategory\"\r\n    >\r\n        <WebpImage :src=\"category.imgUrl ? category.imgUrl : ''\" :alt=\"''\" :cssClass=\"['hc-nav__icon']\" />\r\n        <span class=\"hc-nav__label\" v-html=\"category.name\"></span>\r\n    </div>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed } from \"vue\";\r\nimport { CategoryDto } from \"../model/category\";\r\nimport { loadSubcategories } from \"../hc-api/hc-api\";\r\nimport useHcState from \"../composables/useHcState\";\r\nimport useHcAnalytics from \"../composables/useHcAnalytics\";\r\nimport WebpImage from \"@sazka/design-system/src/image/webp-image.vue\";\r\n\r\nconst props = defineProps<{\r\n    category: CategoryDto;\r\n    id: number;\r\n}>();\r\n\r\nconst { setSelectedCategoryLevels, setCategories, getSelectedCategoryLevels } = useHcState();\r\nconst { selectAnalyticsTopic } = useHcAnalytics();\r\n\r\nconst selected = computed(() => getSelectedCategoryLevels(props.category.nodeLevel).slice(-1)[0]);\r\n\r\nconst selectCategory = async () => {\r\n    setSelectedCategoryLevels(props.category.nodeLevel, props.id);\r\n\r\n    selectAnalyticsTopic(props.category.name);\r\n\r\n    // Main category has no path\r\n    if (props.category.path) {\r\n        const data = await loadSubcategories(props.category.path);\r\n        setCategories([props.id], data.categories);\r\n    }\r\n    history.replaceState({}, \"\", props.category.pageUrl.relative.toLowerCase());\r\n};\r\n</script>\r\n","import script from \"./hc-category.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./hc-category.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"hc-nav\" }\nconst _hoisted_2 = { class: \"hc-nav__categories\" }\n\nimport HcCategory from \"./hc-category.vue\";\r\nimport useHcState from \"../composables/useHcState\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'hc-navigation',\n  setup(__props) {\n\r\nconst { getTopLevel } = useHcState();\r\n\r\nconst categories = getTopLevel();\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"section\", _hoisted_1, [\n    _cache[0] || (_cache[0] = _createElementVNode(\"h2\", { class: \"hc-nav__heading\" }, \"Vyberte si téma\", -1)),\n    _createElementVNode(\"div\", _hoisted_2, [\n      (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(categories), (category, index) => {\n        return (_openBlock(), _createBlock(HcCategory, {\n          key: index,\n          category: category,\n          id: index\n        }, null, 8, [\"category\", \"id\"]))\n      }), 128))\n    ])\n  ]))\n}\n}\n\n})","<template>\r\n    <section class=\"hc-nav\">\r\n        <h2 class=\"hc-nav__heading\">Vyberte si téma</h2>\r\n        <div class=\"hc-nav__categories\">\r\n            <HcCategory v-for=\"(category, index) in categories\" :key=\"index\" :category=\"category\" :id=\"index\" />\r\n        </div>\r\n    </section>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport HcCategory from \"./hc-category.vue\";\r\nimport useHcState from \"../composables/useHcState\";\r\n\r\nconst { getTopLevel } = useHcState();\r\n\r\nconst categories = getTopLevel();\r\n</script>\r\n","import script from \"./hc-navigation.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./hc-navigation.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, createVNode as _createVNode, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = [\"href\"]\nconst _hoisted_2 = { class: \"hc-accordeon__left\" }\nconst _hoisted_3 = { class: \"card__body\" }\nconst _hoisted_4 = [\"for\"]\nconst _hoisted_5 = [\"name\", \"id\", \"value\", \"checked\"]\nconst _hoisted_6 = { class: \"ds-radio-old__text card__body\" }\n\nimport { computed } from \"vue\";\r\nimport WebpImage from \"@sazka/design-system/src/image/webp-image.vue\";\r\nimport DsIcon from \"@sazka/design-system/src/icon/ds-icon.vue\";\r\nimport useHcState, { MAIN_ID } from \"../composables/useHcState\";\r\nimport useHcAnalytics from \"../composables/useHcAnalytics\";\r\nimport { PageUrl } from \"@/shared/model/page-url\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'hc-accordeon',\n  props: {\n    name: {},\n    link: {},\n    nodeLevel: {},\n    id: {},\n    selected: { type: Boolean },\n    isArticle: { type: Boolean },\n    isRadio: { type: Boolean },\n    path: {},\n    adjustDisplayLevel: {},\n    isMostOften: { type: Boolean },\n    pageUrl: {}\n  },\n  setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst displayNodeLevel = computed(() => props.nodeLevel + props.adjustDisplayLevel);\r\n\r\nconst { handleLoadSubcategories, getSelectedCategoryLevels, getTopLevel, getCategories } = useHcState();\r\nconst { selectAnalyticsCategory, selectAnalyticsQuestion } = useHcAnalytics();\r\n\r\nconst handleClick = async (nodeLevel: number, path: string, id: number, pageUrl: PageUrl) => {\r\n    const selectedLevels = getSelectedCategoryLevels(nodeLevel);\r\n    const topicId = selectedLevels[0];\r\n    const topicName = getTopLevel()[topicId].name;\r\n    if (props.isArticle) {\r\n        let categoryName = \"\";\r\n        if (topicId === MAIN_ID) {\r\n            categoryName = props.isMostOften ? \"Nejčastěji\" : \"Aktuální\";\r\n        } else {\r\n            // We are only taking category from topLevel\r\n            const categoryId = selectedLevels.slice(-1)[0];\r\n            categoryName = getCategories(selectedLevels.slice(0, -1))[categoryId]?.name;\r\n        }\r\n        selectAnalyticsQuestion(topicName, categoryName, props.name);\r\n    } else {\r\n        selectAnalyticsCategory(topicName, props.name);\r\n        handleLoadSubcategories(nodeLevel, path, id, pageUrl);\r\n    }\r\n};\r\n\r\nconst mainImg = computed(() => {\r\n    if (props.isArticle) {\r\n        return \"chevron-right\";\r\n    }\r\n\r\n    if (props.selected) {\r\n        return \"minus\";\r\n    }\r\n    return \"plus\";\r\n});\r\n\r\nconst isWhiteIcon = computed(() => {\r\n    return props.selected && displayNodeLevel.value === 3 && props.adjustDisplayLevel === 0;\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (!_ctx.isRadio)\n    ? (_openBlock(), _createElementBlock(\"a\", {\n        key: 0,\n        class: _normalizeClass([\"hc-accordeon\", {\r\n            'hc-accordeon--default': displayNodeLevel.value === 0,\r\n            'hc-accordeon--level-3-mobile': displayNodeLevel.value === 3 && _ctx.adjustDisplayLevel === 0,\r\n            'hc-accordeon--level-3-mobile-active': _ctx.selected && displayNodeLevel.value === 3 && _ctx.adjustDisplayLevel === 0,\r\n            'hc-accordeon--level-3-desktop-active': _ctx.selected && displayNodeLevel.value === 3 && _ctx.adjustDisplayLevel === -1,\r\n            'hc-accordeon--level-active': _ctx.selected && displayNodeLevel.value >= 4,\r\n        }]),\n        href: _ctx.link,\n        onClick: _cache[0] || (_cache[0] = () => handleClick(_ctx.nodeLevel, _ctx.path, _ctx.id, _ctx.pageUrl))\n      }, [\n        _createElementVNode(\"div\", _hoisted_2, [\n          (displayNodeLevel.value > 3)\n            ? (_openBlock(), _createBlock(WebpImage, {\n                key: 0,\n                src: '/frontend/web/img/help-center/sub-level.svg',\n                alt: 'plus',\n                cssClass: ['hc-accordeon__img-first', `hc-accordeon__img-first--level-${displayNodeLevel.value}`]\n              }, null, 8, [\"cssClass\"]))\n            : _createCommentVNode(\"\", true),\n          _createElementVNode(\"span\", _hoisted_3, _toDisplayString(_ctx.name), 1)\n        ]),\n        _createVNode(DsIcon, {\n          name: mainImg.value,\n          class: _normalizeClass(['hc-accordeon__img', isWhiteIcon.value ? 'is-white' : ''])\n        }, null, 8, [\"name\", \"class\"])\n      ], 10, _hoisted_1))\n    : (_openBlock(), _createElementBlock(\"label\", {\n        key: 1,\n        class: _normalizeClass([\"ds-radio-old hc-accordeon hc-accordeon--radio\", {\r\n            'hc-accordeon--radio-active': _ctx.selected,\r\n        }]),\n        for: `rb-${_ctx.name}-${_ctx.id}`\n      }, [\n        _createElementVNode(\"input\", {\n          name: `${_ctx.name}-${_ctx.id}`,\n          id: `rb-${_ctx.name}-${_ctx.id}`,\n          value: `${_ctx.id}`,\n          checked: _ctx.selected,\n          onClick: _cache[1] || (_cache[1] = ($event: any) => (handleClick(_ctx.nodeLevel, _ctx.path, _ctx.id, _ctx.pageUrl))),\n          type: \"radio\",\n          class: \"disable-default\"\n        }, null, 8, _hoisted_5),\n        _createElementVNode(\"span\", _hoisted_6, _toDisplayString(_ctx.name), 1)\n      ], 10, _hoisted_4))\n}\n}\n\n})","<template>\r\n    <a\r\n        v-if=\"!isRadio\"\r\n        class=\"hc-accordeon\"\r\n        :class=\"{\r\n            'hc-accordeon--default': displayNodeLevel === 0,\r\n            'hc-accordeon--level-3-mobile': displayNodeLevel === 3 && adjustDisplayLevel === 0,\r\n            'hc-accordeon--level-3-mobile-active': selected && displayNodeLevel === 3 && adjustDisplayLevel === 0,\r\n            'hc-accordeon--level-3-desktop-active': selected && displayNodeLevel === 3 && adjustDisplayLevel === -1,\r\n            'hc-accordeon--level-active': selected && displayNodeLevel >= 4,\r\n        }\"\r\n        :href=\"link\"\r\n        @click=\"() => handleClick(nodeLevel, path, id, pageUrl)\"\r\n    >\r\n        <div class=\"hc-accordeon__left\">\r\n            <WebpImage\r\n                v-if=\"displayNodeLevel > 3\"\r\n                :src=\"'/frontend/web/img/help-center/sub-level.svg'\"\r\n                :alt=\"'plus'\"\r\n                :cssClass=\"['hc-accordeon__img-first', `hc-accordeon__img-first--level-${displayNodeLevel}`]\"\r\n            />\r\n            <span class=\"card__body\">{{ name }}</span>\r\n        </div>\r\n        <DsIcon :name=\"mainImg\" :class=\"['hc-accordeon__img', isWhiteIcon ? 'is-white' : '']\" />\r\n    </a>\r\n    <label\r\n        v-else\r\n        class=\"ds-radio-old hc-accordeon hc-accordeon--radio\"\r\n        :class=\"{\r\n            'hc-accordeon--radio-active': selected,\r\n        }\"\r\n        :for=\"`rb-${name}-${id}`\"\r\n    >\r\n        <input\r\n            :name=\"`${name}-${id}`\"\r\n            :id=\"`rb-${name}-${id}`\"\r\n            :value=\"`${id}`\"\r\n            :checked=\"selected\"\r\n            @click=\"handleClick(nodeLevel, path, id, pageUrl)\"\r\n            type=\"radio\"\r\n            class=\"disable-default\"\r\n        />\r\n\r\n        <span class=\"ds-radio-old__text card__body\">{{ name }}</span>\r\n    </label>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed } from \"vue\";\r\nimport WebpImage from \"@sazka/design-system/src/image/webp-image.vue\";\r\nimport DsIcon from \"@sazka/design-system/src/icon/ds-icon.vue\";\r\nimport useHcState, { MAIN_ID } from \"../composables/useHcState\";\r\nimport useHcAnalytics from \"../composables/useHcAnalytics\";\r\nimport { PageUrl } from \"@/shared/model/page-url\";\r\n\r\nconst props = defineProps<{\r\n    name: string;\r\n    link: string;\r\n    nodeLevel: number;\r\n    id?: number;\r\n    selected: boolean;\r\n    isArticle: boolean;\r\n    isRadio?: boolean;\r\n    path?: string;\r\n    adjustDisplayLevel: number;\r\n    isMostOften: boolean;\r\n    pageUrl: PageUrl;\r\n}>();\r\n\r\nconst displayNodeLevel = computed(() => props.nodeLevel + props.adjustDisplayLevel);\r\n\r\nconst { handleLoadSubcategories, getSelectedCategoryLevels, getTopLevel, getCategories } = useHcState();\r\nconst { selectAnalyticsCategory, selectAnalyticsQuestion } = useHcAnalytics();\r\n\r\nconst handleClick = async (nodeLevel: number, path: string, id: number, pageUrl: PageUrl) => {\r\n    const selectedLevels = getSelectedCategoryLevels(nodeLevel);\r\n    const topicId = selectedLevels[0];\r\n    const topicName = getTopLevel()[topicId].name;\r\n    if (props.isArticle) {\r\n        let categoryName = \"\";\r\n        if (topicId === MAIN_ID) {\r\n            categoryName = props.isMostOften ? \"Nejčastěji\" : \"Aktuální\";\r\n        } else {\r\n            // We are only taking category from topLevel\r\n            const categoryId = selectedLevels.slice(-1)[0];\r\n            categoryName = getCategories(selectedLevels.slice(0, -1))[categoryId]?.name;\r\n        }\r\n        selectAnalyticsQuestion(topicName, categoryName, props.name);\r\n    } else {\r\n        selectAnalyticsCategory(topicName, props.name);\r\n        handleLoadSubcategories(nodeLevel, path, id, pageUrl);\r\n    }\r\n};\r\n\r\nconst mainImg = computed(() => {\r\n    if (props.isArticle) {\r\n        return \"chevron-right\";\r\n    }\r\n\r\n    if (props.selected) {\r\n        return \"minus\";\r\n    }\r\n    return \"plus\";\r\n});\r\n\r\nconst isWhiteIcon = computed(() => {\r\n    return props.selected && displayNodeLevel.value === 3 && props.adjustDisplayLevel === 0;\r\n});\r\n</script>\r\n","import script from \"./hc-accordeon.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./hc-accordeon.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"hc-default__container\" }\nconst _hoisted_2 = { class: \"hc-default__heading\" }\nconst _hoisted_3 = { class: \"hc-default__img-wrap\" }\nconst _hoisted_4 = { class: \"hc-default__wrap\" }\n\nimport type { DeepReadonly } from \"vue\";\r\nimport HcAccordeon from \"./hc-accordeon.vue\";\r\nimport DsIcon from \"@sazka/design-system/src/icon/ds-icon.vue\";\r\nimport { SvgIcons } from \"@sazka/design-system/src/icon/types\";\r\nimport { ArticlePreviewDto } from \"../model/article\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'hc-default-questions',\n  props: {\n    heading: {},\n    headingIcon: {},\n    isMostOften: { type: Boolean },\n    articles: {}\n  },\n  setup(__props: any) {\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n    _createElementVNode(\"div\", _hoisted_2, [\n      _createElementVNode(\"div\", _hoisted_3, [\n        _createVNode(DsIcon, {\n          name: _ctx.headingIcon,\n          class: \"hc-default__img\"\n        }, null, 8, [\"name\"])\n      ]),\n      _createElementVNode(\"h3\", null, _toDisplayString(_ctx.heading), 1)\n    ]),\n    _createElementVNode(\"div\", _hoisted_4, [\n      (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.articles, (article, index) => {\n        return (_openBlock(), _createBlock(HcAccordeon, {\n          name: article.name,\n          link: article.pageUrl.absolute,\n          key: index,\n          nodeLevel: 0,\n          isArticle: true,\n          selected: true,\n          adjustDisplayLevel: 0,\n          isMostOften: _ctx.isMostOften,\n          \"page-url\": undefined\n        }, null, 8, [\"name\", \"link\", \"isMostOften\"]))\n      }), 128))\n    ])\n  ]))\n}\n}\n\n})","import script from \"./hc-default-questions.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./hc-default-questions.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createBlock as _createBlock } from \"vue\"\n\nimport { computed } from \"vue\";\r\nimport HcAccordeon from \"./hc-accordeon.vue\";\r\nimport useHcState from \"../composables/useHcState\";\r\nimport { CategoryDto } from \"../model/category\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'hc-level',\n  props: {\r\n    parent: Object as () => CategoryDto,\r\n    id: Number,\r\n    adjustDisplayLevel: Number,\r\n},\n  setup(__props) {\n\r\nconst props = __props;\r\n\r\nconst { getSelectedCategoryLevels, getCategories, getArticles } = useHcState();\r\n\r\nconst selected = computed(() => getSelectedCategoryLevels(props.parent.nodeLevel).slice(-1)[0] === props.id);\r\n\r\nconst selectedLevels = computed(() => getSelectedCategoryLevels(props.parent.nodeLevel));\r\n\r\nconst categoriesLevelNth = computed(() => {\r\n    if (selectedLevels.value.slice(-1)[0] === props.id) {\r\n        return getCategories(selectedLevels.value);\r\n    }\r\n    return [];\r\n});\r\n\r\nconst articles = computed(() => {\r\n    if (selectedLevels.value.slice(-1)[0] === props.id) {\r\n        return getArticles(selectedLevels.value);\r\n    }\r\n    return [];\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  const _component_HcLevel = _resolveComponent(\"HcLevel\", true)!\n\n  return (_openBlock(), _createElementBlock(_Fragment, null, [\n    _createVNode(HcAccordeon, {\n      name: __props.parent.name,\n      id: __props.id,\n      link: undefined,\n      \"node-level\": __props.parent.nodeLevel,\n      selected: selected.value,\n      \"is-article\": false,\n      path: __props.parent.path,\n      \"adjust-display-level\": __props.adjustDisplayLevel,\n      \"page-url\": __props.parent.pageUrl\n    }, null, 8, [\"name\", \"id\", \"node-level\", \"selected\", \"path\", \"adjust-display-level\", \"page-url\"]),\n    (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(categoriesLevelNth.value, (category, index) => {\n      return (_openBlock(), _createBlock(_component_HcLevel, {\n        parent: category,\n        key: index,\n        id: index,\n        \"parent-level\": category.nodeLevel,\n        \"adjust-display-level\": __props.adjustDisplayLevel\n      }, null, 8, [\"parent\", \"id\", \"parent-level\", \"adjust-display-level\"]))\n    }), 128)),\n    (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(articles.value, (article, index) => {\n      return (_openBlock(), _createBlock(HcAccordeon, {\n        name: article.name,\n        link: article.pageUrl.absolute,\n        key: index,\n        id: index,\n        \"node-level\": __props.parent.nodeLevel + 1,\n        \"is-article\": true,\n        path: article.path,\n        \"adjust-display-level\": __props.adjustDisplayLevel,\n        \"page-url\": undefined\n      }, null, 8, [\"name\", \"link\", \"id\", \"node-level\", \"path\", \"adjust-display-level\"]))\n    }), 128))\n  ], 64))\n}\n}\n\n})","<template>\r\n    <HcAccordeon\r\n        :name=\"parent.name\"\r\n        :id=\"id\"\r\n        :link=\"undefined\"\r\n        :node-level=\"parent.nodeLevel\"\r\n        :selected=\"selected\"\r\n        :is-article=\"false\"\r\n        :path=\"parent.path\"\r\n        :adjust-display-level=\"adjustDisplayLevel\"\r\n        :page-url=\"parent.pageUrl\"\r\n    />\r\n    <HcLevel\r\n        v-for=\"(category, index) in categoriesLevelNth\"\r\n        :parent=\"category\"\r\n        :key=\"index\"\r\n        :id=\"index\"\r\n        :parent-level=\"category.nodeLevel\"\r\n        :adjust-display-level=\"adjustDisplayLevel\"\r\n    />\r\n    <HcAccordeon\r\n        v-for=\"(article, index) in articles\"\r\n        :name=\"article.name\"\r\n        :link=\"article.pageUrl.absolute\"\r\n        :key=\"index\"\r\n        :id=\"index\"\r\n        :node-level=\"parent.nodeLevel + 1\"\r\n        :is-article=\"true\"\r\n        :path=\"article.path\"\r\n        :adjust-display-level=\"adjustDisplayLevel\"\r\n        :page-url=\"undefined\"\r\n    />\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed } from \"vue\";\r\nimport HcAccordeon from \"./hc-accordeon.vue\";\r\nimport useHcState from \"../composables/useHcState\";\r\nimport { CategoryDto } from \"../model/category\";\r\n\r\nconst props = defineProps({\r\n    parent: Object as () => CategoryDto,\r\n    id: Number,\r\n    adjustDisplayLevel: Number,\r\n});\r\n\r\nconst { getSelectedCategoryLevels, getCategories, getArticles } = useHcState();\r\n\r\nconst selected = computed(() => getSelectedCategoryLevels(props.parent.nodeLevel).slice(-1)[0] === props.id);\r\n\r\nconst selectedLevels = computed(() => getSelectedCategoryLevels(props.parent.nodeLevel));\r\n\r\nconst categoriesLevelNth = computed(() => {\r\n    if (selectedLevels.value.slice(-1)[0] === props.id) {\r\n        return getCategories(selectedLevels.value);\r\n    }\r\n    return [];\r\n});\r\n\r\nconst articles = computed(() => {\r\n    if (selectedLevels.value.slice(-1)[0] === props.id) {\r\n        return getArticles(selectedLevels.value);\r\n    }\r\n    return [];\r\n});\r\n</script>\r\n","import script from \"./hc-level.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./hc-level.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, unref as _unref } from \"vue\"\n\nconst _hoisted_1 = { class: \"hc-subcategories\" }\nconst _hoisted_2 = {\n  key: 0,\n  class: \"hc-subcategories__container\"\n}\nconst _hoisted_3 = {\n  key: 1,\n  class: \"hc-subcategories__desktop\"\n}\nconst _hoisted_4 = { class: \"hc-subcategories__container hc-subcategories__container--sidebar\" }\nconst _hoisted_5 = { class: \"hc-subcategories__container hc-subcategories__container--right-content\" }\n\nimport { computed, onMounted, onUnmounted, ref } from \"vue\";\r\nimport HcLevel from \"./hc-level.vue\";\r\nimport HcAccordeon from \"./hc-accordeon.vue\";\r\nimport useHcState, { FIRST_LEVEL, NOT_SELECTED } from \"../composables/useHcState\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'hc-subcategories',\n  setup(__props) {\n\r\nconst { getSelectedCategoryLevels, getCategories, getArticles } = useHcState();\r\nconst isDesktop = ref(false);\r\n\r\nconst selectedThirdLevels = computed(() => getSelectedCategoryLevels(FIRST_LEVEL + 1));\r\nconst selectedThirdId = computed(() => selectedThirdLevels.value.slice(-1)[0]);\r\n\r\nconst categoriesNodeLevelThree = computed(() => {\r\n    return getCategories(getSelectedCategoryLevels(FIRST_LEVEL));\r\n});\r\n\r\nconst categoriesNodeLevelFour = computed(() => {\r\n    if (selectedThirdId.value !== NOT_SELECTED) {\r\n        return getCategories(selectedThirdLevels.value);\r\n    }\r\n    return [];\r\n});\r\n\r\nconst articlesNodeLevelFour = computed(() => {\r\n    if (selectedThirdId.value !== NOT_SELECTED) {\r\n        return getArticles(selectedThirdLevels.value);\r\n    }\r\n    return [];\r\n});\r\n\r\nconst handleResize = () => {\r\n    isDesktop.value = window.matchMedia(\"(min-width: 960px)\").matches;\r\n};\r\n\r\nonMounted(() => {\r\n    handleResize();\r\n    window.addEventListener(\"resize\", handleResize);\r\n});\r\n\r\nonUnmounted(() => {\r\n    window.removeEventListener(\"resize\", handleResize);\r\n});\r\n\r\nconst firstLevel = FIRST_LEVEL;\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n    _cache[0] || (_cache[0] = _createElementVNode(\"h3\", { class: \"hc-subcategories__heading\" }, \"Registrace a hraní\", -1)),\n    (!isDesktop.value)\n      ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n          (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(categoriesNodeLevelThree.value, (category, index) => {\n            return (_openBlock(), _createBlock(HcLevel, {\n              parent: category,\n              key: index,\n              id: index,\n              \"adjust-display-level\": 0\n            }, null, 8, [\"parent\", \"id\"]))\n          }), 128))\n        ]))\n      : (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n          _createElementVNode(\"div\", _hoisted_4, [\n            (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(categoriesNodeLevelThree.value, (category, index) => {\n              return (_openBlock(), _createBlock(HcAccordeon, {\n                name: category.name,\n                key: index,\n                id: index,\n                link: undefined,\n                \"node-level\": category.nodeLevel,\n                path: category.path,\n                selected: selectedThirdId.value === index,\n                \"is-article\": false,\n                isRadio: true,\n                \"page-url\": category.pageUrl\n              }, null, 8, [\"name\", \"id\", \"node-level\", \"path\", \"selected\", \"page-url\"]))\n            }), 128))\n          ]),\n          _createElementVNode(\"div\", _hoisted_5, [\n            (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(categoriesNodeLevelFour.value, (category, index) => {\n              return (_openBlock(), _createBlock(HcLevel, {\n                parent: category,\n                key: index,\n                id: index,\n                \"adjust-display-level\": -1\n              }, null, 8, [\"parent\", \"id\"]))\n            }), 128)),\n            (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(articlesNodeLevelFour.value, (article, index) => {\n              return (_openBlock(), _createBlock(HcAccordeon, {\n                name: article.name,\n                link: article.pageUrl.absolute,\n                key: index,\n                id: index,\n                \"node-level\": _unref(firstLevel) + 1,\n                \"is-article\": true,\n                path: article.path,\n                \"adjust-display-level\": -1\n              }, null, 8, [\"name\", \"link\", \"id\", \"node-level\", \"path\"]))\n            }), 128))\n          ])\n        ]))\n  ]))\n}\n}\n\n})","<template>\r\n    <div class=\"hc-subcategories\">\r\n        <h3 class=\"hc-subcategories__heading\">Registrace a hraní</h3>\r\n        <div v-if=\"!isDesktop\" class=\"hc-subcategories__container\">\r\n            <HcLevel\r\n                v-for=\"(category, index) in categoriesNodeLevelThree\"\r\n                :parent=\"category\"\r\n                :key=\"index\"\r\n                :id=\"index\"\r\n                :adjust-display-level=\"0\"\r\n            />\r\n        </div>\r\n        <div v-else class=\"hc-subcategories__desktop\">\r\n            <div class=\"hc-subcategories__container hc-subcategories__container--sidebar\">\r\n                <HcAccordeon\r\n                    v-for=\"(category, index) in categoriesNodeLevelThree\"\r\n                    :name=\"category.name\"\r\n                    :key=\"index\"\r\n                    :id=\"index\"\r\n                    :link=\"undefined\"\r\n                    :node-level=\"category.nodeLevel\"\r\n                    :path=\"category.path\"\r\n                    :selected=\"selectedThirdId === index\"\r\n                    :is-article=\"false\"\r\n                    :isRadio=\"true\"\r\n                    :page-url=\"category.pageUrl\"\r\n                />\r\n            </div>\r\n            <div class=\"hc-subcategories__container hc-subcategories__container--right-content\">\r\n                <HcLevel\r\n                    v-for=\"(category, index) in categoriesNodeLevelFour\"\r\n                    :parent=\"category\"\r\n                    :key=\"index\"\r\n                    :id=\"index\"\r\n                    :adjust-display-level=\"-1\"\r\n                />\r\n\r\n                <HcAccordeon\r\n                    v-for=\"(article, index) in articlesNodeLevelFour\"\r\n                    :name=\"article.name\"\r\n                    :link=\"article.pageUrl.absolute\"\r\n                    :key=\"index\"\r\n                    :id=\"index\"\r\n                    :node-level=\"firstLevel + 1\"\r\n                    :is-article=\"true\"\r\n                    :path=\"article.path\"\r\n                    :adjust-display-level=\"-1\"\r\n                />\r\n            </div>\r\n        </div>\r\n    </div>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed, onMounted, onUnmounted, ref } from \"vue\";\r\nimport HcLevel from \"./hc-level.vue\";\r\nimport HcAccordeon from \"./hc-accordeon.vue\";\r\nimport useHcState, { FIRST_LEVEL, NOT_SELECTED } from \"../composables/useHcState\";\r\n\r\nconst { getSelectedCategoryLevels, getCategories, getArticles } = useHcState();\r\nconst isDesktop = ref(false);\r\n\r\nconst selectedThirdLevels = computed(() => getSelectedCategoryLevels(FIRST_LEVEL + 1));\r\nconst selectedThirdId = computed(() => selectedThirdLevels.value.slice(-1)[0]);\r\n\r\nconst categoriesNodeLevelThree = computed(() => {\r\n    return getCategories(getSelectedCategoryLevels(FIRST_LEVEL));\r\n});\r\n\r\nconst categoriesNodeLevelFour = computed(() => {\r\n    if (selectedThirdId.value !== NOT_SELECTED) {\r\n        return getCategories(selectedThirdLevels.value);\r\n    }\r\n    return [];\r\n});\r\n\r\nconst articlesNodeLevelFour = computed(() => {\r\n    if (selectedThirdId.value !== NOT_SELECTED) {\r\n        return getArticles(selectedThirdLevels.value);\r\n    }\r\n    return [];\r\n});\r\n\r\nconst handleResize = () => {\r\n    isDesktop.value = window.matchMedia(\"(min-width: 960px)\").matches;\r\n};\r\n\r\nonMounted(() => {\r\n    handleResize();\r\n    window.addEventListener(\"resize\", handleResize);\r\n});\r\n\r\nonUnmounted(() => {\r\n    window.removeEventListener(\"resize\", handleResize);\r\n});\r\n\r\nconst firstLevel = FIRST_LEVEL;\r\n</script>\r\n","import script from \"./hc-subcategories.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./hc-subcategories.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"hc-questions\" }\nconst _hoisted_2 = {\n  key: 0,\n  class: \"hc-questions__default-wrap\"\n}\nconst _hoisted_3 = { class: \"hc-default\" }\nconst _hoisted_4 = { key: 1 }\n\nimport { computed } from \"vue\";\r\nimport HcDefaultQuestions from \"./hc-default-questions.vue\";\r\nimport HcSubcategories from \"./hc-subcategories.vue\";\r\nimport useHcState, { MOST_OFTEN_IDS, ACTUAL_IDS, FIRST_LEVEL } from \"../composables/useHcState\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'hc-questions',\n  setup(__props) {\n\r\nconst { getSelectedCategoryLevels, getArticles } = useHcState();\r\n\r\nconst mostOftenArticles = computed(() => getArticles(MOST_OFTEN_IDS));\r\nconst actualArticles = computed(() => getArticles(ACTUAL_IDS));\r\nconst firstLevel = FIRST_LEVEL;\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"section\", _hoisted_1, [\n    (_unref(getSelectedCategoryLevels)(_unref(firstLevel)).slice(-1)[0] === 0)\n      ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n          _createElementVNode(\"div\", _hoisted_3, [\n            _createVNode(HcDefaultQuestions, {\n              heading: 'Aktuální témata',\n              headingIcon: \"recent\",\n              headingIconAlt: 'aktuality',\n              isMostOften: false,\n              articles: actualArticles.value\n            }, null, 8, [\"articles\"]),\n            _createVNode(HcDefaultQuestions, {\n              heading: 'Nejčastěji se ptáte',\n              headingIcon: \"star\",\n              isMostOften: true,\n              articles: mostOftenArticles.value\n            }, null, 8, [\"articles\"])\n          ])\n        ]))\n      : (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n          _createVNode(HcSubcategories)\n        ]))\n  ]))\n}\n}\n\n})","<template>\r\n    <section class=\"hc-questions\">\r\n        <div v-if=\"getSelectedCategoryLevels(firstLevel).slice(-1)[0] === 0\" class=\"hc-questions__default-wrap\">\r\n            <div class=\"hc-default\">\r\n                <HcDefaultQuestions\r\n                    :heading=\"'Aktuální témata'\"\r\n                    headingIcon=\"recent\"\r\n                    :headingIconAlt=\"'aktuality'\"\r\n                    :isMostOften=\"false\"\r\n                    :articles=\"actualArticles\"\r\n                />\r\n                <HcDefaultQuestions\r\n                    :heading=\"'Nejčastěji se ptáte'\"\r\n                    headingIcon=\"star\"\r\n                    :isMostOften=\"true\"\r\n                    :articles=\"mostOftenArticles\"\r\n                />\r\n            </div>\r\n        </div>\r\n        <div v-else>\r\n            <HcSubcategories />\r\n        </div>\r\n    </section>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed } from \"vue\";\r\nimport HcDefaultQuestions from \"./hc-default-questions.vue\";\r\nimport HcSubcategories from \"./hc-subcategories.vue\";\r\nimport useHcState, { MOST_OFTEN_IDS, ACTUAL_IDS, FIRST_LEVEL } from \"../composables/useHcState\";\r\n\r\nconst { getSelectedCategoryLevels, getArticles } = useHcState();\r\n\r\nconst mostOftenArticles = computed(() => getArticles(MOST_OFTEN_IDS));\r\nconst actualArticles = computed(() => getArticles(ACTUAL_IDS));\r\nconst firstLevel = FIRST_LEVEL;\r\n</script>\r\n","import script from \"./hc-questions.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./hc-questions.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"hc-search-results\" }\n\nimport HcAccordeon from \"./hc-accordeon.vue\";\r\nimport HeadlineSection from \"@sazka/design-system/src/typography/typography-headline.vue\";\r\nimport { useHcSearch } from \"../composables/use-hc-search\";\r\nimport { computed } from \"vue\";\r\nimport { ArticlePreviewDto } from \"../model/article\";\r\nimport { SearchAnalytics } from \"@/shared/utils/analytics/analytics-search\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'hc-search-results',\n  setup(__props) {\n\r\nconst { searchResultList, searchText } = useHcSearch();\r\n\r\nconst resultText = computed(() => {\r\n    const l = searchResultList.value.length;\r\n    let subText = \"\";\r\n    switch (l) {\r\n        case 0:\r\n            return \"Bohužel jsme nenašli žádný odpovídající výsledek\";\r\n        case 1:\r\n            subText = `${l} výsledek`;\r\n            break;\r\n        case 2:\r\n        case 3:\r\n        case 4:\r\n            subText = `${l} výsledky`;\r\n            break;\r\n        default:\r\n            subText = `${l} výsledků`;\r\n    }\r\n    return `${subText} hledání výrazu “${searchText.value}”`;\r\n});\r\n\r\nconst analyticsItemClick = (result: ArticlePreviewDto) => {\r\n    SearchAnalytics.pushResultsClick(\"centrum podpory\", result.name);\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n    _createVNode(HeadlineSection, { style: {\"color\":\"#006\"} }, {\n      default: _withCtx(() => [\n        _createTextVNode(_toDisplayString(resultText.value), 1)\n      ]),\n      _: 1\n    }),\n    (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(searchResultList), (result, index) => {\n      return (_openBlock(), _createBlock(HcAccordeon, {\n        key: index,\n        name: result.name,\n        link: result.pageUrl.absolute,\n        \"is-article\": true,\n        onClick: ($event: any) => (analyticsItemClick(result))\n      }, null, 8, [\"name\", \"link\", \"onClick\"]))\n    }), 128))\n  ]))\n}\n}\n\n})","<template>\r\n    <div class=\"hc-search-results\">\r\n        <HeadlineSection style=\"color: #006\">{{ resultText }}</HeadlineSection>\r\n        <HcAccordeon\r\n            v-for=\"(result, index) in searchResultList\"\r\n            :key=\"index\"\r\n            :name=\"result.name\"\r\n            :link=\"result.pageUrl.absolute\"\r\n            :is-article=\"true\"\r\n            @click=\"analyticsItemClick(result)\"\r\n        />\r\n    </div>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport HcAccordeon from \"./hc-accordeon.vue\";\r\nimport HeadlineSection from \"@sazka/design-system/src/typography/typography-headline.vue\";\r\nimport { useHcSearch } from \"../composables/use-hc-search\";\r\nimport { computed } from \"vue\";\r\nimport { ArticlePreviewDto } from \"../model/article\";\r\nimport { SearchAnalytics } from \"@/shared/utils/analytics/analytics-search\";\r\n\r\nconst { searchResultList, searchText } = useHcSearch();\r\n\r\nconst resultText = computed(() => {\r\n    const l = searchResultList.value.length;\r\n    let subText = \"\";\r\n    switch (l) {\r\n        case 0:\r\n            return \"Bohužel jsme nenašli žádný odpovídající výsledek\";\r\n        case 1:\r\n            subText = `${l} výsledek`;\r\n            break;\r\n        case 2:\r\n        case 3:\r\n        case 4:\r\n            subText = `${l} výsledky`;\r\n            break;\r\n        default:\r\n            subText = `${l} výsledků`;\r\n    }\r\n    return `${subText} hledání výrazu “${searchText.value}”`;\r\n});\r\n\r\nconst analyticsItemClick = (result: ArticlePreviewDto) => {\r\n    SearchAnalytics.pushResultsClick(\"centrum podpory\", result.name);\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.hc-search-results {\r\n    width: 100%;\r\n    display: flex;\r\n    flex-direction: column;\r\n    gap: var(--sp-stack-inside-element);\r\n}\r\n</style>\r\n","import script from \"./hc-search-results.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./hc-search-results.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./hc-search-results.vue?vue&type=style&index=0&id=543e1a7f&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { class: \"hc-main\" }\nconst _hoisted_2 = { class: \"bs-container\" }\nconst _hoisted_3 = { class: \"bs-row\" }\nconst _hoisted_4 = {\n  key: 0,\n  class: \"c-12 c-lg2-10 mx-auto\"\n}\nconst _hoisted_5 = { class: \"hc-wizard\" }\nconst _hoisted_6 = {\n  key: 1,\n  class: \"c-12 c-sm2-8 mx-auto hc-default__wrap\"\n}\n\nimport HcNavigation from \"./components/hc-navigation.vue\";\r\nimport HcQuestions from \"./components/hc-questions.vue\";\r\nimport HcSearchResults from \"./components/hc-search-results.vue\";\r\nimport { CategoryDto } from \"./model/category\";\r\nimport useHcState from \"./composables/useHcState\";\r\nimport { ArticlePreviewDto } from \"./model/article\";\r\nimport { Loader } from \"@sazka/design-system/src/loader/loader\";\r\nimport { useHcSearch } from \"./composables/use-hc-search\";\r\nimport DsFloor from \"@sazka/design-system/src/floor/ds-floor.vue\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: '_help-center',\n  props: {\r\n    jsonCategories: String,\r\n    jsonMostOften: String,\r\n    jsonActual: String,\r\n},\n  setup(__props) {\n\r\nconst props = __props;\r\n\r\nconst categories: Array<CategoryDto> = JSON.parse(props.jsonCategories);\r\nconst mostOften: Array<ArticlePreviewDto> = JSON.parse(props.jsonMostOften);\r\nconst actual: Array<ArticlePreviewDto> = JSON.parse(props.jsonActual);\r\nconst { initCategoriesMapping, setLevelsBasedOnPath } = useHcState();\r\nconst { areSearchResultsVisible } = useHcSearch();\r\ninitCategoriesMapping(categories, mostOften, actual);\r\n\r\nsetLevelsBasedOnPath(window.location.pathname);\r\n\r\nLoader.hide();\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n    _createElementVNode(\"div\", _hoisted_2, [\n      _createElementVNode(\"div\", _hoisted_3, [\n        (!_unref(areSearchResultsVisible))\n          ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n              _createElementVNode(\"div\", _hoisted_5, [\n                _createVNode(HcNavigation),\n                _createVNode(HcQuestions)\n              ])\n            ]))\n          : (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n              _createVNode(DsFloor, null, {\n                default: _withCtx(() => [\n                  _createVNode(HcSearchResults)\n                ]),\n                _: 1\n              })\n            ]))\n      ])\n    ])\n  ]))\n}\n}\n\n})","<template>\r\n    <div class=\"hc-main\">\r\n        <div class=\"bs-container\">\r\n            <div class=\"bs-row\">\r\n                <div class=\"c-12 c-lg2-10 mx-auto\" v-if=\"!areSearchResultsVisible\">\r\n                    <div class=\"hc-wizard\">\r\n                        <HcNavigation />\r\n                        <HcQuestions />\r\n                    </div>\r\n                </div>\r\n                <div class=\"c-12 c-sm2-8 mx-auto hc-default__wrap\" v-else>\r\n                    <DsFloor>\r\n                        <HcSearchResults />\r\n                    </DsFloor>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport HcNavigation from \"./components/hc-navigation.vue\";\r\nimport HcQuestions from \"./components/hc-questions.vue\";\r\nimport HcSearchResults from \"./components/hc-search-results.vue\";\r\nimport { CategoryDto } from \"./model/category\";\r\nimport useHcState from \"./composables/useHcState\";\r\nimport { ArticlePreviewDto } from \"./model/article\";\r\nimport { Loader } from \"@sazka/design-system/src/loader/loader\";\r\nimport { useHcSearch } from \"./composables/use-hc-search\";\r\nimport DsFloor from \"@sazka/design-system/src/floor/ds-floor.vue\";\r\n\r\nconst props = defineProps({\r\n    jsonCategories: String,\r\n    jsonMostOften: String,\r\n    jsonActual: String,\r\n});\r\n\r\nconst categories: Array<CategoryDto> = JSON.parse(props.jsonCategories);\r\nconst mostOften: Array<ArticlePreviewDto> = JSON.parse(props.jsonMostOften);\r\nconst actual: Array<ArticlePreviewDto> = JSON.parse(props.jsonActual);\r\nconst { initCategoriesMapping, setLevelsBasedOnPath } = useHcState();\r\nconst { areSearchResultsVisible } = useHcSearch();\r\ninitCategoriesMapping(categories, mostOften, actual);\r\n\r\nsetLevelsBasedOnPath(window.location.pathname);\r\n\r\nLoader.hide();\r\n</script>\r\n","import script from \"./_help-center.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./_help-center.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'ds-floor',\n  props: {\n    isFirst: { type: Boolean, default: false },\n    isLast: { type: Boolean, default: false }\n  },\n  setup(__props: any) {\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", {\n    class: _normalizeClass([\"floor\", { 'floor--first': _ctx.isFirst, 'floor--last': _ctx.isLast }])\n  }, [\n    _renderSlot(_ctx.$slots, \"default\")\n  ], 2))\n}\n}\n\n})","import script from \"./ds-floor.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ds-floor.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, createVNode as _createVNode, createElementBlock as _createElementBlock, Fragment as _Fragment, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = [\"href\", \"target\", \"rel\"]\n\nimport { computed } from \"vue\";\r\nimport DsIcon from \"../icon/ds-icon.vue\";\r\nimport { SvgIcons } from \"../icon/types\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'typography-headline',\n  props: {\n    type: { default: \"floor\" },\n    tagName: { default: \"h3\" },\n    icon: {},\n    href: {},\n    isExternal: { type: Boolean, default: false },\n    theme: { default: \"light\" },\n    textPosition: { default: \"left\" },\n    isStorybook: { type: Boolean, default: false }\n  },\n  setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst baseClassName = computed(() => `headline-${props.type}`);\r\nconst classList = computed(() => {\r\n    const list = [baseClassName.value];\r\n    if (props.icon) list.push(`${baseClassName.value}--icon`);\r\n    if (props.theme === \"dark\") list.push(`${baseClassName.value}--dark`);\r\n    if (props.textPosition === \"left\") {\r\n        list.push(`${baseClassName.value}--left`);\r\n    } else if (props.textPosition === \"center\") {\r\n        list.push(`${baseClassName.value}--center`);\r\n    } else if (props.textPosition === \"right\") {\r\n        list.push(`${baseClassName.value}--right`);\r\n    }\r\n    return list;\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tagName), {\n    class: _normalizeClass(classList.value)\n  }, {\n    default: _withCtx(() => [\n      (_ctx.href)\n        ? (_openBlock(), _createElementBlock(\"a\", {\n            key: 0,\n            class: _normalizeClass(`${baseClassName.value}__link`),\n            href: _ctx.href,\n            target: _ctx.isExternal ? '_blank' : undefined,\n            rel: _ctx.isExternal ? 'noopener noreferrer' : undefined\n          }, [\n            (_ctx.icon)\n              ? (_openBlock(), _createBlock(DsIcon, {\n                  key: 0,\n                  name: _ctx.icon,\n                  \"is-in-storybook\": props.isStorybook,\n                  class: _normalizeClass(`${baseClassName.value}__icon`)\n                }, null, 8, [\"name\", \"is-in-storybook\", \"class\"]))\n              : _createCommentVNode(\"\", true),\n            _renderSlot(_ctx.$slots, \"default\"),\n            _createVNode(DsIcon, { name: \"chevron-right\" })\n          ], 10, _hoisted_1))\n        : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n            (_ctx.icon)\n              ? (_openBlock(), _createBlock(DsIcon, {\n                  key: 0,\n                  name: _ctx.icon,\n                  \"is-in-storybook\": props.isStorybook,\n                  class: _normalizeClass(`${baseClassName.value}__icon`)\n                }, null, 8, [\"name\", \"is-in-storybook\", \"class\"]))\n              : _createCommentVNode(\"\", true),\n            _renderSlot(_ctx.$slots, \"default\")\n          ], 64))\n    ]),\n    _: 3\n  }, 8, [\"class\"]))\n}\n}\n\n})","<template>\r\n    <component :is=\"tagName\" :class=\"classList\">\r\n        <a\r\n            v-if=\"href\"\r\n            :class=\"`${baseClassName}__link`\"\r\n            :href=\"href\"\r\n            :target=\"isExternal ? '_blank' : undefined\"\r\n            :rel=\"isExternal ? 'noopener noreferrer' : undefined\"\r\n        >\r\n            <DsIcon v-if=\"icon\" :name=\"icon\" :is-in-storybook=\"props.isStorybook\" :class=\"`${baseClassName}__icon`\" />\r\n            <slot></slot>\r\n            <DsIcon name=\"chevron-right\" />\r\n        </a>\r\n        <template v-else>\r\n            <DsIcon v-if=\"icon\" :name=\"icon\" :is-in-storybook=\"props.isStorybook\" :class=\"`${baseClassName}__icon`\" />\r\n            <slot></slot>\r\n        </template>\r\n    </component>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed } from \"vue\";\r\nimport DsIcon from \"../icon/ds-icon.vue\";\r\nimport { SvgIcons } from \"../icon/types\";\r\n\r\nconst props = withDefaults(\r\n    defineProps<{\r\n        type?: \"floor\" | \"section\";\r\n        /**\r\n         * Actually rendered tag\r\n         */\r\n        tagName?: keyof HTMLElementTagNameMap;\r\n        /**\r\n         * Icon to show\r\n         */\r\n        icon?: SvgIcons;\r\n        /**\r\n         * Whole headline will be rendered as anchor if not empty\r\n         */\r\n        href?: string;\r\n        /**\r\n         * Adds target=\"_blank\" and rel=\"noreferrer noopener\"\r\n         */\r\n        isExternal?: boolean;\r\n        /**\r\n         * Set theme\r\n         */\r\n        theme?: \"light\" | \"dark\";\r\n        /**\r\n         * Define postion of text\r\n         */\r\n        textPosition?: \"left\" | \"center\" | \"right\";\r\n        /**\r\n         * Use different image path for storybook\r\n         */\r\n        isStorybook?: boolean;\r\n    }>(),\r\n    {\r\n        type: \"floor\",\r\n        tagName: \"h3\",\r\n        isExternal: false,\r\n        theme: \"light\",\r\n        textPosition: \"left\",\r\n        isStorybook: false,\r\n    }\r\n);\r\n\r\nconst baseClassName = computed(() => `headline-${props.type}`);\r\nconst classList = computed(() => {\r\n    const list = [baseClassName.value];\r\n    if (props.icon) list.push(`${baseClassName.value}--icon`);\r\n    if (props.theme === \"dark\") list.push(`${baseClassName.value}--dark`);\r\n    if (props.textPosition === \"left\") {\r\n        list.push(`${baseClassName.value}--left`);\r\n    } else if (props.textPosition === \"center\") {\r\n        list.push(`${baseClassName.value}--center`);\r\n    } else if (props.textPosition === \"right\") {\r\n        list.push(`${baseClassName.value}--right`);\r\n    }\r\n    return list;\r\n});\r\n</script>\r\n","import script from \"./typography-headline.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./typography-headline.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["searchResultList","ref","searchText","areSearchResultsVisible","hideSearchResults","value","fetch","async","topn","response","httpClient","get","data","e","fetchAutocomplete","text","fetchResults","SearchAnalytics","pushSearchResults","length","useHcSearch","useHcAnalytics","openAnalyticsChat","window","dataLayer","push","event","selectAnalyticsTopic","topicName","action","selectTopic","label","selectAnalyticsCategory","categoryName","selectCategory","eventProperty1","selectAnalyticsQuestion","question","selectQuestion","eventProperty2","pushSearchSuggester","type","term","resultsCount","page","kind","list","searchresults","resultCount","pageNumber","pushSuggesterClick","category","name","click","pushResultsClick","getVerticalByCategory","getVerticalByUrl","url","startsWith","Loader","isShown","this","lockNumber","showLoaderFromBackend","document","body","classList","contains","show","showLoaderIn","aboveAll","color","clearTimeout","showTimeout","setTimeout","showNow","counted","environment","isEditMode","loader","getElementById","add","remove","querySelector","textContent","showAboveAll","showNowAboveAll","hide","hideTimeout","_defineProperty","_Loader","documentReady","callback","readyState","addEventListener","sazkaAlert","title","linkText","link","buttonText","customHtml","hasExtraButton","errorCode","Promise","resolve","heading","$","append","maxWidth","Math","max","width","template","$modal","modal","find","on","addClass","alertInfo","alertMessage","loadSubcategories","nodeAliasPath","post","exactPath","NodeValue","mainCategory","imgUrl","path","nodeLevel","pageUrl","relative","absolute","mainSubcategories","MAIN_ID","FIRST_LEVEL","MOST_OFTEN_IDS","readonly","ACTUAL_IDS","NOT_SELECTED","categoriesLevels","selectedCategoryLevels","useHcState","toSubcategories","categories","subcategories","forEach","fromSubcategories","subcategory","getNode","ids","node","id","setSelectedCategoryLevels","index","getSelectedCategoryLevels","slice","getTopLevel","getCategories","getArticles","articles","setCategories","setArticles","initCategoriesMapping","mostOften","actual","unshift","handleLoadSubcategories","_pageUrl$relative","history","replaceState","toLowerCase","matchRelativeUrl","el","relativeUrl","getIdBasedOnPath","catPath","categoryIndex","findIndex","selectedLevels","undefined","setLevelsBasedOnPath","toSelect","split","join","catIndex","_hoisted_1","_defineComponent","__name","props","setup","__props","selected","computed","_ctx","_cache","_openBlock","_createElementBlock","class","_normalizeClass","style","_normalizeStyle","onClick","_createVNode","WebpImage","src","alt","cssClass","_createElementVNode","innerHTML","__exports__","_hoisted_2","_Fragment","_renderList","_unref","_createBlock","HcCategory","key","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","Boolean","isArticle","isRadio","adjustDisplayLevel","isMostOften","displayNodeLevel","handleClick","topicId","_getCategories$catego","categoryId","mainImg","isWhiteIcon","for","checked","$event","_toDisplayString","href","_createCommentVNode","DsIcon","headingIcon","article","HcAccordeon","parent","Object","Number","categoriesLevelNth","_component_HcLevel","_resolveComponent","isDesktop","selectedThirdLevels","selectedThirdId","categoriesNodeLevelThree","categoriesNodeLevelFour","articlesNodeLevelFour","handleResize","matchMedia","matches","onMounted","onUnmounted","removeEventListener","firstLevel","HcLevel","mostOftenArticles","actualArticles","HcDefaultQuestions","headingIconAlt","HcSubcategories","resultText","l","subText","analyticsItemClick","result","HeadlineSection","default","_withCtx","_createTextVNode","_","jsonCategories","String","jsonMostOften","jsonActual","JSON","parse","location","pathname","DsFloor","HcSearchResults","HcNavigation","HcQuestions","isFirst","isLast","_renderSlot","$slots","tagName","icon","isExternal","theme","textPosition","isStorybook","baseClassName","_resolveDynamicComponent","target","rel"],"sourceRoot":""}