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BmH,EAAa,EAAOlL,EAAI,CAAC,WAAY,mBACrG,OAAQ,SAAKsM,EAAA,EAAiB,EAAS,CAAEC,YAAaxI,EAAgByI,KAAM,SAAU7J,GAAY,OAAQ,SAAK,MAAO,EAAS,CAAEO,UAAW,kBAAoB,CAAEP,SAAUA,SAAa,KAAe,CAAEA,UAAU,SAAK,EAAwB,EAAS,KAAOoB,GAAkB,CAC3QsI,gBAAiB,wBACjBnB,EAAY,CAIZkB,IAAKA,GAAQlB,EAAW5L,OAAS,CACjCyM,OAAQ,SAAU5H,GAAS,OAAQ,SAAK,OAAQ,CAAExB,SAAUwB,EAAM9G,MAAQ8G,EAAM7E,MAAQ4L,EAAW5L,YAAS,KAC5G,CAAEqD,UAAU,SAAK8E,EAAA,EAAY,EAAS,CAAEE,OAAQ,KAAO,CAAEhF,SAAUA,SAAa,UAAY,UAAY,MAEhH,EAAS,SAAU3C,GACnB,IAAI2C,EAAW3C,EAAG2C,SAAUtF,EAAQ2C,EAAG3C,MAAO6N,EAAa,EAAOlL,EAAI,CAAC,WAAY,UACnF,OAAQ,SAAK,EAAwB,EAAS,GAAIkL,EAAY,CAAE7N,MAAOA,GAAS,CAAEsF,SAAUA,SAAa","sources":["webpack://ucn/./src/react/components/modules/EvuChildrenList/useEvuChildrenListCollection.ts","webpack://ucn/./src/react/components/modules/EvuChildrenList/EvuChildrenList.tsx","webpack://ucn/./src/react/components/modules/FindEducation/useFindEducationCollection.ts","webpack://ucn/./src/react/components/primitives/ScrollArea/ScrollArea.tsx","webpack://ucn/./src/react/components/ui/Cards/ModuleCard/ModuleCard.tsx","webpack://ucn/./src/react/components/primitives/Collection/CollectionFilters/CollectionFilters.tsx","webpack://ucn/./src/react/components/ui/Collection/Collection.tsx","webpack://ucn/./src/react/components/ui/Cards/getCardTypeByAlias.ts","webpack://ucn/./src/react/components/primitives/Forms/Select/Select.tsx","webpack://ucn/./src/react/components/ui/Forms/Select.tsx"],"sourcesContent":["var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { apiFetcher } from \"@common/fetchers/api-fetcher\";\nimport { ENDPOINTS } from \"@common/constants/endpoints\";\nimport useSWRInfinite from \"swr/infinite\";\nimport { useMemo, useState } from \"react\";\nimport { toListKeyParam } from \"@react-components/modules/FindEducation/useFindEducationCollection\";\nvar PAGE_SIZE_DEFAULT = 50;\nvar useEvuChildrenListCollection = function (startNodeId, locale, pageSize, defaultSorting) {\n var requestOptions = useMemo(function () { return ({\n method: \"GET\",\n }); }, []);\n var _a = __read(useState(defaultSorting), 2), sorting = _a[0], setSorting = _a[1];\n var _b = __read(useState(null), 2), selectedEducationDirections = _b[0], setSelectedEducationDirections = _b[1];\n var clearFilters = function () {\n setSelectedEducationDirections(null);\n };\n var getKey = function (pageIndex, previousPageData) {\n var _a;\n if (previousPageData && !((_a = previousPageData === null || previousPageData === void 0 ? void 0 : previousPageData.collection) === null || _a === void 0 ? void 0 : _a.length)) {\n return null;\n }\n return [\n ENDPOINTS.EVUChildrenList + \"?&pageSize=\" + (pageSize || PAGE_SIZE_DEFAULT) + \"&pageNumber=\" + (pageIndex + 1) + \"&culture=\" + locale + toListKeyParam(startNodeId, \"startNodeId\") + \"&sortingCriterion=\" + sorting + toListKeyParam(selectedEducationDirections, \"educationDirections\"),\n requestOptions,\n ];\n };\n var _c = useSWRInfinite(getKey, apiFetcher), data = _c.data, error = _c.error, isValidating = _c.isValidating, mutate = _c.mutate, size = _c.size, setSize = _c.setSize;\n return {\n listCollection: data,\n isLastPage: !!(data === null || data === void 0 ? void 0 : data.find(function (x) { return !x.hasNextPage; })),\n error: error,\n isValidating: isValidating,\n mutate: mutate,\n size: size,\n setSize: setSize,\n setSelectedEducationDirections: setSelectedEducationDirections,\n selectedEducationDirections: selectedEducationDirections,\n totalResultsCount: data === null || data === void 0 ? void 0 : data[0].totalCount,\n clearFilters: clearFilters,\n sorting: sorting,\n setSorting: setSorting,\n };\n};\nexport { useEvuChildrenListCollection };\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useEffect, useMemo, useState } from \"react\";\nimport \"./styles.scss\";\nimport { CollectionEntries, CollectionLoadMore, CollectionRoot, } from \"@react-components/ui/Collection/Collection\";\nimport { useEvuChildrenListCollection } from \"@react-components/modules/EvuChildrenList/useEvuChildrenListCollection\";\nimport { Select, Option } from \"@react-components/ui/Forms/Select\";\nimport { DictionaryProvider } from \"@contexts/dictionary-context/DictionaryProvider\";\nimport { ENDPOINTS } from \"@common/constants/endpoints\";\nimport { apiFetcher } from \"@common/fetchers/api-fetcher\";\nimport { ModuleCard } from \"@react-components/ui/Cards/ModuleCard/ModuleCard\";\nimport { toListKeyParam } from \"@react-components/modules/FindEducation/useFindEducationCollection\";\nvar EvuChildrenList = function (_a) {\n var dictionary = _a.dictionary, locale = _a.locale, pageSize = _a.pageSize, startNodeId = _a.startNodeId, headline = _a.headline, defaultSorting = _a.defaultSorting;\n var _b = __read(useState(null), 2), filters = _b[0], setFilters = _b[1];\n var evuChildrenListCollection = useEvuChildrenListCollection(startNodeId, locale, pageSize, defaultSorting);\n var setSorting = evuChildrenListCollection.setSorting, sorting = evuChildrenListCollection.sorting, totalResultsCount = evuChildrenListCollection.totalResultsCount, error = evuChildrenListCollection.error, isLastPage = evuChildrenListCollection.isLastPage, isValidating = evuChildrenListCollection.isValidating, setSize = evuChildrenListCollection.setSize, listCollection = evuChildrenListCollection.listCollection, clearFilters = evuChildrenListCollection.clearFilters, setSelectedEducationDirections = evuChildrenListCollection.setSelectedEducationDirections, selectedEducationDirections = evuChildrenListCollection.selectedEducationDirections;\n var educationDirectionsMap = useMemo(function () {\n return filters && filters.educationDirections\n ? filters.educationDirections.reduce(function (prev, curr) {\n prev.push({\n value: curr.value,\n label: curr.name,\n });\n if (curr.children) {\n prev = prev.concat(curr.children.map(function (x) { return ({\n value: x.value,\n label: x.name,\n }); }));\n }\n return prev;\n }, [])\n : null;\n }, [filters]);\n useEffect(function () {\n try {\n (function () { return __awaiter(void 0, void 0, void 0, function () {\n var data;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, apiFetcher(ENDPOINTS.EVUChildrenListFilters + \"?\" + toListKeyParam(startNodeId, \"startNodeId\"))];\n case 1:\n data = _a.sent();\n if (!data)\n return [2 /*return*/];\n setFilters(data);\n return [2 /*return*/];\n }\n });\n }); })();\n }\n catch (error) {\n console.log({ error: error });\n }\n }, [startNodeId]);\n if (error) {\n console.log({ error: error });\n return null;\n }\n return (_jsx(DictionaryProvider, __assign({ dictionary: dictionary }, { children: _jsx(\"div\", __assign({ className: \"evu-children-list\" }, { children: _jsxs(CollectionRoot, { children: [headline && (_jsx(\"h2\", __assign({ className: \"evu-children-list__headline\" }, { children: headline }), void 0)), educationDirectionsMap &&\n educationDirectionsMap.length > 0 && (_jsx(\"div\", __assign({ className: \"space-below\" }, { children: _jsxs(Select, __assign({ label: dictionary.educationDirection, onChange: function (newValue) {\n return newValue === \"clear\"\n ? setSelectedEducationDirections(null)\n : setSelectedEducationDirections([\n newValue,\n ]);\n } }, { children: [_jsx(Option, __assign({ value: \"clear\" }, { children: !selectedEducationDirections ||\n selectedEducationDirections.length ===\n 0 ? (dictionary.educationDirection) : (_jsx(\"span\", __assign({ className: \"text-bold\" }, { children: dictionary.clear }), void 0)) }), \"select-educationDirection-clear\"), educationDirectionsMap === null || educationDirectionsMap === void 0 ? void 0 : educationDirectionsMap.map(function (item) { return (_jsx(Option, __assign({ value: item.value, label: item.label, className: \"select__option\" }, { children: item.label }), \"select-moduleArea-\" + item.value)); })] }), void 0) }), void 0)), _jsx(CollectionEntries, { totalCollectionSize: totalResultsCount, keyPrefix: \"evu-children\", collection: listCollection === null || listCollection === void 0 ? void 0 : listCollection.flatMap(function (x) { return x.collection; }), renderEntryHeader: function () { return (_jsxs(_Fragment, { children: [_jsxs(\"span\", __assign({ className: \"mr-2\" }, { children: [totalResultsCount, \" \", dictionary.totalResultsCount] }), void 0), _jsxs(\"div\", __assign({ className: \"evu-children-list__sorting\" }, { children: [_jsx(\"span\", __assign({ className: \"mr-1\" }, { children: dictionary.sortBy }), void 0), _jsxs(Select, __assign({ label: dictionary.sortBy, useInlineTheme: true, value: sorting, onChange: function (newValue) {\n return setSorting(newValue);\n } }, { children: [_jsx(Option, __assign({ value: \"startDate\" }, { children: dictionary.startDate }), \"select-educationDirection-sortby-startDate\"), _jsx(Option, __assign({ value: \"alphabetically\" }, { children: dictionary.alphabetically }), \"select-educationDirection-sortby-alphabetically\")] }), void 0)] }), void 0)] }, void 0)); }, renderEntry: function (props) { return (_jsx(ModuleCard, __assign({}, props, { locale: locale }), void 0)); } }, void 0), _jsx(CollectionLoadMore, __assign({ disable: isLastPage || isValidating, onClick: function () {\n return !isLastPage && setSize(function (size) { return size + 1; });\n } }, { children: (dictionary === null || dictionary === void 0 ? void 0 : dictionary.loadMore) && (dictionary === null || dictionary === void 0 ? void 0 : dictionary.loadMore) }), void 0)] }, void 0) }), void 0) }), void 0));\n};\nexport { EvuChildrenList };\n","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { apiFetcher } from \"@common/fetchers/api-fetcher\";\nimport { ENDPOINTS } from \"@common/constants/endpoints\";\nimport useSWRInfinite from \"swr/infinite\";\nimport { useMemo, useState } from \"react\";\nvar PAGE_SIZE_DEFAULT = 50;\nvar toListKeyParam = function (values, paramKey) {\n if (!values)\n return \"\";\n return values === null || values === void 0 ? void 0 : values.reduce(function (prev, value) {\n return !value ? prev : \"\" + (prev ? prev + \"&\" : \"&\") + paramKey + \"=\" + value;\n }, \"\");\n};\nvar useFindEducationCollection = function (startNodeId, pageSize, locale, useFilters) {\n var requestOptions = useMemo(function () { return ({\n method: \"GET\",\n }); }, []);\n var _a = __read(useState(null), 2), selectedStartDates = _a[0], setSelectedStartDates = _a[1];\n var _b = __read(useState(null), 2), selectedPlaces = _b[0], setSelectedPlaces = _b[1];\n var _c = __read(useState(null), 2), selectedEducationLanguages = _c[0], setSelectedEducationLanguage = _c[1];\n var _d = __read(useState(null), 2), selectedEducationType = _d[0], setSelectedEducationType = _d[1];\n var _e = __read(useState(null), 2), selectedModuleAreas = _e[0], setSelectedModuleAreas = _e[1];\n var _f = __read(useState(null), 2), selectedAcademicLevel = _f[0], setSelectedAcademicLevel = _f[1];\n var _g = __read(useState(null), 2), selectedAcademicArea = _g[0], setSelectedAcademicArea = _g[1];\n var _h = __read(useState(null), 2), selectedExchangeType = _h[0], setSelectedExchangeType = _h[1];\n var _j = __read(useState(null), 2), selectedStartOfTerm = _j[0], setSelectedStartOfTerm = _j[1];\n var _k = __read(useState(null), 2), selectedTeachingMethods = _k[0], setSelectedTeachingMethods = _k[1];\n var _l = __read(useState(\"\"), 2), search = _l[0], setSearch = _l[1];\n var filtersCount = useMemo(function () {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;\n return ({\n academicArea: (_a = selectedAcademicArea === null || selectedAcademicArea === void 0 ? void 0 : selectedAcademicArea.length) !== null && _a !== void 0 ? _a : 0,\n academicLevel: (_b = selectedAcademicLevel === null || selectedAcademicLevel === void 0 ? void 0 : selectedAcademicLevel.length) !== null && _b !== void 0 ? _b : 0,\n educationBegins: (_c = selectedStartDates === null || selectedStartDates === void 0 ? void 0 : selectedStartDates.length) !== null && _c !== void 0 ? _c : 0,\n educationTypes: (_d = selectedEducationType === null || selectedEducationType === void 0 ? void 0 : selectedEducationType.length) !== null && _d !== void 0 ? _d : 0,\n exchangeType: (_e = selectedExchangeType === null || selectedExchangeType === void 0 ? void 0 : selectedExchangeType.length) !== null && _e !== void 0 ? _e : 0,\n languages: (_f = selectedEducationLanguages === null || selectedEducationLanguages === void 0 ? void 0 : selectedEducationLanguages.length) !== null && _f !== void 0 ? _f : 0,\n moduleAreas: (_g = selectedModuleAreas === null || selectedModuleAreas === void 0 ? void 0 : selectedModuleAreas.length) !== null && _g !== void 0 ? _g : 0,\n places: (_h = selectedPlaces === null || selectedPlaces === void 0 ? void 0 : selectedPlaces.length) !== null && _h !== void 0 ? _h : 0,\n startOfTerm: (_j = selectedStartOfTerm === null || selectedStartOfTerm === void 0 ? void 0 : selectedStartOfTerm.length) !== null && _j !== void 0 ? _j : 0,\n teachingMethods: (_k = selectedTeachingMethods === null || selectedTeachingMethods === void 0 ? void 0 : selectedTeachingMethods.length) !== null && _k !== void 0 ? _k : 0,\n });\n }, [\n selectedStartDates,\n selectedPlaces,\n selectedEducationLanguages,\n selectedEducationType,\n selectedModuleAreas,\n selectedAcademicLevel,\n selectedAcademicArea,\n selectedExchangeType,\n selectedStartOfTerm,\n selectedTeachingMethods,\n ]);\n var clearFilters = function () {\n setSelectedStartDates(null);\n setSelectedPlaces(null);\n setSelectedEducationLanguage(null);\n setSelectedEducationType(null);\n setSelectedModuleAreas(null);\n setSelectedAcademicLevel(null);\n setSelectedAcademicArea(null);\n setSelectedExchangeType(null);\n setSelectedStartOfTerm(null);\n setSelectedTeachingMethods(null);\n };\n var getKey = function (pageIndex, previousPageData) {\n var _a, _b;\n if (previousPageData && !((_a = previousPageData === null || previousPageData === void 0 ? void 0 : previousPageData.collection) === null || _a === void 0 ? void 0 : _a.length))\n return null;\n return [\n ENDPOINTS.findEducation + \"?&search=\" + (search !== null && search !== void 0 ? search : \"\") + toListKeyParam(selectedPlaces, \"place\") + toListKeyParam(selectedEducationType, \"educationType\") + toListKeyParam(selectedModuleAreas, \"moduleArea\") + toListKeyParam(selectedAcademicLevel, \"academicLevel\") + toListKeyParam(selectedAcademicArea, \"academicArea\") + toListKeyParam(selectedExchangeType, \"exchangeType\") + toListKeyParam(selectedTeachingMethods, \"teachingMethod\") + toListKeyParam(selectedStartOfTerm, \"startOfTerm\") + toListKeyParam(selectedEducationLanguages, \"educationLanguage\") + toListKeyParam(selectedStartDates, \"startDate\") + \"&pageSize=\" + (pageSize || PAGE_SIZE_DEFAULT) + \"&pageNumber=\" + (pageIndex + 1) + toListKeyParam(startNodeId, \"startNodeId\") + \"&culture=\" + locale + \"&sortingCriterion=\" + (((_b = useFilters === null || useFilters === void 0 ? void 0 : useFilters.cfuEducation) !== null && _b !== void 0 ? _b : false)\n ? \"startDate\"\n : \"alphabetically\"),\n requestOptions,\n ];\n };\n var _m = useSWRInfinite(getKey, apiFetcher), data = _m.data, error = _m.error, isValidating = _m.isValidating, mutate = _m.mutate, size = _m.size, setSize = _m.setSize;\n return {\n educationCollection: data,\n isLastPage: !!(data === null || data === void 0 ? void 0 : data.find(function (x) { return !x.hasNextPage; })),\n error: error,\n isValidating: isValidating,\n mutate: mutate,\n size: size,\n setSize: setSize,\n setSelectedStartDates: setSelectedStartDates,\n setSelectedPlaces: setSelectedPlaces,\n setSelectedEducationLanguage: setSelectedEducationLanguage,\n setSelectedEducationType: setSelectedEducationType,\n setSelectedModuleAreas: setSelectedModuleAreas,\n setSelectedAcademicLevel: setSelectedAcademicLevel,\n setSelectedAcademicArea: setSelectedAcademicArea,\n setSelectedExchangeType: setSelectedExchangeType,\n setSelectedStartOfTerm: setSelectedStartOfTerm,\n setSelectedTeachingMethods: setSelectedTeachingMethods,\n selectedStartDates: selectedStartDates,\n selectedPlaces: selectedPlaces,\n selectedEducationLanguages: selectedEducationLanguages,\n selectedEducationType: selectedEducationType,\n selectedModuleAreas: selectedModuleAreas,\n selectedAcademicLevel: selectedAcademicLevel,\n selectedAcademicArea: selectedAcademicArea,\n selectedExchangeType: selectedExchangeType,\n selectedStartOfTerm: selectedStartOfTerm,\n selectedTeachingMethods: selectedTeachingMethods,\n search: search,\n setSearch: setSearch,\n totalResultsCount: data === null || data === void 0 ? void 0 : data[0].totalCount,\n clearFilters: clearFilters,\n filtersCount: filtersCount,\n };\n};\nexport { useFindEducationCollection, toListKeyParam };\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useCallback, useLayoutEffect, useState } from \"react\";\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\nimport { throttle } from \"throttle-debounce\";\nimport \"./styles.scss\";\nvar ScrollArea = function (_a) {\n var _b;\n var autoFitToContainer = _a.autoFitToContainer, height = _a.height, children = _a.children, hideScrollbar = _a.hideScrollbar;\n var initialClientWidth = (_b = autoFitToContainer === null || autoFitToContainer === void 0 ? void 0 : autoFitToContainer.current) === null || _b === void 0 ? void 0 : _b.clientWidth;\n var _c = __read(useState(\"auto\"), 2), width = _c[0], setWidth = _c[1];\n var onResize = useCallback(function () {\n var _a;\n if (!initialClientWidth)\n return;\n var containerWidth = (_a = autoFitToContainer === null || autoFitToContainer === void 0 ? void 0 : autoFitToContainer.current) === null || _a === void 0 ? void 0 : _a.clientWidth;\n setWidth(containerWidth ? containerWidth + \"px\" : \"auto\");\n }, [autoFitToContainer, initialClientWidth]);\n useLayoutEffect(function () {\n onResize();\n var resizeHandler = throttle(100, onResize);\n window.addEventListener(\"resize\", resizeHandler);\n return function () { return window.removeEventListener(\"resize\", resizeHandler); };\n }, [onResize]);\n return (_jsxs(ScrollAreaPrimitive.Root, __assign({ className: \"scroll-area\" }, { children: [_jsx(ScrollAreaPrimitive.Viewport, __assign({ className: \"scroll-area__viewport\", style: __assign({ width: \"\" + width }, (height && { maxHeight: height + \"px\" })) }, { children: children }), void 0), !hideScrollbar && (_jsxs(_Fragment, { children: [_jsx(ScrollAreaPrimitive.Scrollbar, __assign({ className: \"scroll-area__scrollbar\", orientation: \"vertical\" }, { children: _jsx(ScrollAreaPrimitive.Thumb, { className: \"scroll-area__thumb\" }, void 0) }), void 0), _jsx(ScrollAreaPrimitive.Scrollbar, __assign({ className: \"scroll-area__scrollbar\", orientation: \"horizontal\" }, { children: _jsx(ScrollAreaPrimitive.Thumb, { className: \"scroll-area__thumb\" }, void 0) }), void 0), _jsx(ScrollAreaPrimitive.Corner, { className: \"scroll-area__corner\" }, void 0)] }, void 0))] }), void 0));\n};\nexport { ScrollArea };\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { FavoriteToggle } from \"@react-components/ui/FavoriteToggle/FavoriteToggle\";\nvar getDate = function (date, locale) {\n return new Date(date).toLocaleDateString(locale, {\n month: \"long\",\n year: \"numeric\",\n day: \"numeric\",\n });\n};\nvar ModuleCard = function (_a) {\n var id = _a.id, heading = _a.heading, registrations = _a.registrations, url = _a.url, educationType = _a.educationType, parentNodeName = _a.parentNodeName, teachingMethods = _a.teachingMethods, places = _a.places, isCourse = _a.isCourse, locale = _a.locale, cardThemeColor = _a.cardThemeColor;\n var placeList = places ? places : [];\n var _b = __read(placeList), firstLocation = _b[0], secondLocation = _b[1], remainingLocations = _b.slice(2);\n var _c = __read(registrations\n ? registrations\n : []), firstRegistration = _c[0], remainingRegistrations = _c.slice(1);\n return (_jsxs(\"div\", __assign({ className: \"card card--module card--\" + cardThemeColor }, { children: [url && (_jsx(\"a\", __assign({ href: url, className: \"card__block-link\" }, { children: heading && (_jsx(\"span\", { className: \"sr-only\", dangerouslySetInnerHTML: { __html: heading } }, void 0)) }), void 0)), id && (_jsx(\"div\", __assign({ className: \"card__favorite-wrap\" }, { children: _jsx(FavoriteToggle, { id: id.toString(), modifierClass: \"favorite-toggle--\" + cardThemeColor + \" favorite-toggle--theme-fill-only\" }, void 0) }), void 0)), _jsxs(\"div\", __assign({ className: \"card__content\" }, { children: [_jsx(\"div\", __assign({ className: \"card__tags\" }, { children: educationType && (_jsx(\"div\", __assign({ className: \"card__tag\" }, { children: educationType }), void 0)) }), void 0), heading && (_jsx(\"h3\", { className: \"card__heading\", dangerouslySetInnerHTML: { __html: heading } }, void 0)), parentNodeName && !isCourse && (_jsx(\"div\", { className: \"card__subheading\", dangerouslySetInnerHTML: { __html: parentNodeName } }, void 0)), firstLocation && (_jsxs(\"div\", __assign({ className: \"card__info-row\" }, { children: [_jsx(\"div\", __assign({ className: \"card__icon-wrap\" }, { children: _jsx(\"div\", { className: \"icon icon--pin\" }, void 0) }), void 0), _jsxs(\"div\", __assign({ className: \"card__info\" }, { children: [_jsxs(\"div\", __assign({ className: \"mb-1 mt-1\" }, { children: [firstLocation, secondLocation ? (_jsx(\"span\", __assign({ className: \"mr-1\" }, { children: \",\" }), void 0)) : (\"\")] }), void 0), secondLocation && (_jsx(\"div\", __assign({ className: \"mb-1 mt-1\" }, { children: secondLocation }), void 0)), (remainingLocations === null || remainingLocations === void 0 ? void 0 : remainingLocations.length) > 0 && (_jsxs(\"div\", __assign({ className: \"card__circle ml-2\" }, { children: [\"+\", remainingLocations.length] }), void 0))] }), void 0)] }), void 0)), firstRegistration && (_jsxs(\"div\", __assign({ className: \"card__info-row\" }, { children: [_jsx(\"div\", __assign({ className: \"card__icon-wrap\" }, { children: _jsx(\"div\", { className: \"icon icon--calendar\" }, void 0) }), void 0), _jsxs(\"div\", __assign({ className: \"card__info\" }, { children: [_jsx(\"div\", __assign({ className: \"mb-1 mt-1\" }, { children: getDate(firstRegistration.dateTimeStart, locale) }), void 0), (remainingRegistrations === null || remainingRegistrations === void 0 ? void 0 : remainingRegistrations.length) > 0 && (_jsxs(\"div\", __assign({ className: \"card__circle ml-2\" }, { children: [\"+\", remainingRegistrations.length] }), void 0))] }), void 0)] }), void 0))] }), void 0)] }), void 0));\n};\nexport { ModuleCard };\n","import { Fragment as _Fragment, jsx as _jsx } from \"react/jsx-runtime\";\nvar CollectionFilters = function (_a) {\n var children = _a.children;\n return _jsx(_Fragment, { children: children }, void 0);\n};\nexport { CollectionFilters };\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport \"./styles.scss\";\nimport { CollectionRoot as Root } from \"@react-components/primitives/Collection/CollectionRoot/CollectionRoot\";\nimport { CollectionEntries as Entries } from \"@react-components/primitives/Collection/CollectionEntries/CollectionEntries\";\nimport { CollectionLoadMore as LoadMore } from \"@react-components/primitives/Collection/CollectionPagination/CollectionLoadMore/CollectionLoadMore\";\nimport { CollectionFilters as Filters } from \"@react-components/primitives/Collection/CollectionFilters/CollectionFilters\";\nimport { CardRenderer } from \"@react-components/ui/Cards/CardRenderer\";\nimport { DotLoader } from \"@react-components/ui/Loaders/DotLoader/DotLoader\";\nimport { getCardTypeByAlias } from \"@react-components/ui/Cards/getCardTypeByAlias\";\nimport { generateColumns, } from \"@react-common/helpers/generate-columns\";\nimport { useDictionaryContext } from \"@contexts/dictionary-context/useDictionaryContext\";\nvar CollectionRoot = function (_a) {\n var _b;\n var children = _a.children, columnSizes = _a.columnSizes;\n return (_jsx(Root, { children: _jsx(\"div\", __assign({ className: \"collection container\" }, { children: _jsx(\"div\", __assign({ className: \"row justify-content-center\" }, { children: _jsx(\"div\", __assign({ className: \"col-12\" }, { children: _jsx(\"div\", __assign({ className: \"collection__bg\" }, { children: _jsx(\"div\", __assign({ className: \"row justify-content-center\" }, { children: _jsx(\"div\", __assign({ className: ((_b = generateColumns(columnSizes)) !== null && _b !== void 0 ? _b : \"col-11 col-md-10\") + \" collection__column\" }, { children: _jsx(\"div\", __assign({ className: \"collection__container\" }, { children: children }), void 0) }), void 0) }), void 0) }), void 0) }), void 0) }), void 0) }), void 0) }, void 0));\n};\nvar CollectionEntries = function (_a) {\n var defaultCardType = _a.defaultCardType, collection = _a.collection, showLoader = _a.showLoader, renderEntry = _a.renderEntry, columnSizes = _a.columnSizes, totalCollectionSize = _a.totalCollectionSize, HeaderComponent = _a.renderEntryHeader, otherProps = __rest(_a, [\"defaultCardType\", \"collection\", \"showLoader\", \"renderEntry\", \"columnSizes\", \"totalCollectionSize\", \"renderEntryHeader\"]);\n var dictionary = useDictionaryContext().dictionary;\n return (_jsxs(\"div\", __assign({ className: \"row\" }, { children: [_jsx(\"div\", __assign({ className: \"col-12\" }, { children: _jsx(\"div\", __assign({ className: \"collection__total\" }, { children: HeaderComponent ? (_jsx(HeaderComponent, {}, void 0)) : (_jsxs(_Fragment, { children: [totalCollectionSize, \" \", dictionary.totalResultsCount] }, void 0)) }), void 0) }), void 0), showLoader ? (_jsx(\"div\", __assign({ className: \"col-12\" }, { children: _jsx(\"div\", __assign({ className: \"row justify-content-center\" }, { children: _jsx(DotLoader, { size: 12 }, void 0) }), void 0) }), void 0)) : (_jsx(Entries, __assign({ collection: collection !== null && collection !== void 0 ? collection : [], renderEntry: function (entry) {\n var _a;\n return (_jsx(\"div\", __assign({ className: ((_a = generateColumns(columnSizes)) !== null && _a !== void 0 ? _a : \"col-12 col-md-6 col-lg-4\") + \" collection__entry-wrap\" }, { children: renderEntry ? (renderEntry(entry)) : (_jsx(CardRenderer, { componentType: defaultCardType !== null && defaultCardType !== void 0 ? defaultCardType : getCardTypeByAlias(entry), imageWidth: [\n 576,\n 250,\n null,\n null,\n 308,\n 367,\n ], imageHeight: [\n 195,\n 195,\n null,\n null,\n 195,\n 195,\n ], useRatio: true, props: entry }, void 0)) }), void 0));\n } }, otherProps), void 0))] }), void 0));\n};\nvar CollectionFilters = function (_a) {\n var children = _a.children;\n return (_jsx(Filters, { children: _jsx(\"div\", __assign({ className: \"filters\" }, { children: _jsx(\"div\", __assign({ className: \"filters__row\" }, { children: React.Children.map(children, function (child) {\n return React.isValidElement(child) && (_jsx(\"div\", __assign({ className: \"filters__col\" }, { children: child }), void 0));\n }) }), void 0) }), void 0) }, void 0));\n};\nvar CollectionLoadMore = function (_a) {\n var isValidating = _a.isValidating, children = _a.children, otherProps = __rest(_a, [\"isValidating\", \"children\"]);\n return (_jsx(\"div\", __assign({ className: \"collection__button-wrap\" }, { children: _jsxs(LoadMore, __assign({}, otherProps, { children: [children, isValidating && (_jsx(\"div\", __assign({ className: \"ml-2\" }, { children: _jsx(DotLoader, {}, void 0) }), void 0))] }), void 0) }), void 0));\n};\nexport { CollectionRoot, CollectionEntries, CollectionLoadMore, CollectionFilters, };\n","import { CardTypes, } from \"@react-components/ui/Cards/card-types\";\nvar getCardTypeByAlias = function (card) {\n switch (card.alias) {\n case \"contentPage\":\n return CardTypes.ContentCard;\n default:\n return null;\n }\n};\nexport { getCardTypeByAlias };\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport { ListboxOption, ListboxList, ListboxPopover, ListboxInput, ListboxButton, } from \"@reach/listbox\";\nimport { Chevron } from \"@react-components/primitives/Icons/Icons\";\nimport { ConditionalWrap } from \"@react-components/primitives/ConditionalWrap/ConditionalWrap\";\nvar SelectButton = function (_a) {\n var button = _a.button, otherProps = __rest(_a, [\"button\"]);\n return (_jsx(ListboxButton, __assign({ className: \"select__button\" }, otherProps, { children: function (_a) {\n var value = _a.value, label = _a.label, isExpanded = _a.isExpanded;\n return (_jsxs(\"div\", __assign({ className: \"select__button-inner \" + (isExpanded ? \"select__button-inner--open\" : \"\") }, { children: [button ? button({ value: value, label: label }) : _jsx(\"span\", { children: label }, void 0), _jsx(Chevron, {}, void 0)] }), void 0));\n } }), void 0));\n};\nvar SelectInput = function (_a) {\n var children = _a.children, otherProps = __rest(_a, [\"children\"]);\n return (_jsx(ListboxInput, __assign({ className: \"select\" }, otherProps, { children: children }), void 0));\n};\nvar SelectPopover = function (_a) {\n var children = _a.children, otherProps = __rest(_a, [\"children\"]);\n return (_jsx(ListboxPopover, __assign({ className: \"select select--popover\" }, otherProps, { children: children }), void 0));\n};\nvar SelectList = function (_a) {\n var children = _a.children, otherProps = __rest(_a, [\"children\"]);\n return (_jsx(ListboxList, __assign({ className: \"select__list\" }, otherProps, { children: children }), void 0));\n};\nvar Select = React.forwardRef(function Select(_a, ref) {\n var button = _a.button, children = _a.children, selectListClass = _a.selectListClass, otherProps = __rest(_a, [\"button\", \"children\", \"selectListClass\"]);\n return (_jsxs(SelectInput, __assign({}, otherProps, { \n /* pretty much impossible to have multiple libs with their own box-primitives, agree on interfaces */\n /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */\n // @ts-ignore\n ref: ref }, { children: [_jsx(SelectButton, __assign({}, (button && { button: button })), void 0), _jsx(SelectPopover, { children: _jsx(ConditionalWrap, __assign({ condition: !!selectListClass, wrap: function (children) { return (_jsx(\"div\", __assign({ className: selectListClass }, { children: children }), void 0)); } }, { children: _jsx(SelectList, { children: children }, void 0) }), void 0) }, void 0)] }), void 0));\n});\nvar Option = function (_a) {\n var children = _a.children, otherProps = __rest(_a, [\"children\"]);\n return (_jsx(ListboxOption, __assign({ className: \"select__option\" }, otherProps, { children: children }), void 0));\n};\nexport { Select, Option };\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport \"./styles.scss\";\nimport * as PrimitiveSelect from \"@react-components/primitives/Forms/Select/Select\";\nimport { ScrollArea } from \"@react-components/primitives/ScrollArea/ScrollArea\";\nimport { ConditionalWrap } from \"@react-components/primitives/ConditionalWrap/ConditionalWrap\";\nvar Select = React.forwardRef(function Select(_a, ref) {\n var children = _a.children, useInlineTheme = _a.useInlineTheme, otherProps = __rest(_a, [\"children\", \"useInlineTheme\"]);\n return (_jsx(ConditionalWrap, __assign({ condition: !!useInlineTheme, wrap: function (children) { return (_jsx(\"div\", __assign({ className: \"select--inline\" }, { children: children }), void 0)); } }, { children: _jsx(PrimitiveSelect.Select, __assign({}, (!!useInlineTheme && {\n selectListClass: \"select__list--inline\",\n }), otherProps, { \n /* pretty much impossible to have multiple libs with their own box-primitives, agree on interfaces */\n /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */\n // @ts-ignore\n ref: ref }, (otherProps.label && {\n button: function (props) { return (_jsx(\"span\", { children: props.value ? props.label : otherProps.label }, void 0)); },\n }), { children: _jsx(ScrollArea, __assign({ height: 400 }, { children: children }), void 0) }), void 0) }), void 0));\n});\nvar Option = function (_a) {\n var children = _a.children, value = _a.value, otherProps = __rest(_a, [\"children\", \"value\"]);\n return (_jsx(PrimitiveSelect.Option, __assign({}, otherProps, { value: value }, { children: children }), void 0));\n};\nexport { Select, Option };\n"],"names":["__read","o","n","m","Symbol","iterator","r","e","i","call","ar","next","done","push","value","error","__assign","Object","assign","t","s","arguments","length","p","prototype","hasOwnProperty","apply","this","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","rejected","result","then","__generator","body","f","y","g","_","label","sent","trys","ops","verb","v","op","TypeError","pop","EvuChildrenList","_a","dictionary","locale","pageSize","startNodeId","headline","defaultSorting","_b","useState","filters","setFilters","evuChildrenListCollection","requestOptions","useMemo","method","sorting","setSorting","selectedEducationDirections","setSelectedEducationDirections","_c","pageIndex","previousPageData","collection","data","isValidating","mutate","size","setSize","listCollection","isLastPage","find","x","hasNextPage","totalResultsCount","totalCount","clearFilters","useEvuChildrenListCollection","educationDirectionsMap","educationDirections","reduce","prev","curr","name","children","concat","map","useEffect","console","log","DictionaryProvider","className","Collection","Select","educationDirection","onChange","newValue","clear","item","totalCollectionSize","keyPrefix","flatMap","renderEntryHeader","sortBy","useInlineTheme","startDate","alphabetically","renderEntry","props","ModuleCard","disable","onClick","loadMore","toListKeyParam","values","paramKey","useFindEducationCollection","useFilters","selectedStartDates","setSelectedStartDates","selectedPlaces","setSelectedPlaces","selectedEducationLanguages","setSelectedEducationLanguage","_d","selectedEducationType","setSelectedEducationType","_e","selectedModuleAreas","setSelectedModuleAreas","_f","selectedAcademicLevel","setSelectedAcademicLevel","_g","selectedAcademicArea","setSelectedAcademicArea","_h","selectedExchangeType","setSelectedExchangeType","_j","selectedStartOfTerm","setSelectedStartOfTerm","_k","selectedTeachingMethods","setSelectedTeachingMethods","_l","search","setSearch","filtersCount","academicArea","academicLevel","educationBegins","educationTypes","exchangeType","languages","moduleAreas","places","startOfTerm","teachingMethods","_m","cfuEducation","educationCollection","ScrollArea","autoFitToContainer","height","hideScrollbar","initialClientWidth","current","clientWidth","width","setWidth","onResize","useCallback","containerWidth","useLayoutEffect","resizeHandler","window","addEventListener","removeEventListener","style","maxHeight","orientation","getDate","date","Date","toLocaleDateString","month","year","day","id","heading","registrations","url","educationType","parentNodeName","isCourse","cardThemeColor","firstLocation","secondLocation","remainingLocations","slice","firstRegistration","remainingRegistrations","href","dangerouslySetInnerHTML","__html","FavoriteToggle","toString","modifierClass","dateTimeStart","CollectionFilters","__rest","indexOf","getOwnPropertySymbols","propertyIsEnumerable","columnSizes","defaultCardType","showLoader","HeaderComponent","otherProps","useDictionaryContext","DotLoader","entry","card","CardRenderer","componentType","alias","imageWidth","imageHeight","useRatio","child","SelectButton","button","isExpanded","SelectInput","SelectPopover","SelectList","ref","selectListClass","ConditionalWrap","condition","wrap","Option"],"sourceRoot":""}