{"version":3,"file":"Constants-D1bwBjXg.js","sources":["../../../Frontend/vue/services/EducationOverviewService.ts","../../../Frontend/vue/components/EducationOverview/quickResults.vue","../../../Frontend/vue/components/EducationOverview/searchHeader.vue","../../../Frontend/vue/constants/Constants.ts"],"sourcesContent":["import axios, { AxiosResponse } from \"axios\";\r\nimport {IFilter} from \"@/view-models/IFilter\";\r\nimport {IResponseLink} from \"@/view-models/IResponseLink\";\r\nimport {IResponseImage} from \"@/view-models/IResponseModels\";\r\n\r\nconst educationOverviewInstance = axios.create({\r\n baseURL: '/umbraco/api/EducationOverview/search',\r\n});\r\n\r\nexport interface IEducationOverviewResponse {\r\n filters: IFilter[];\r\n total: number;\r\n items: IEducationOverviewResponseItem[];\r\n}\r\n\r\nexport interface IEducationOverviewResponseItem {\r\n id: number;\r\n title: string;\r\n description: string;\r\n hasMultipleLinks: boolean;\r\n enrollLinkUrl: string;\r\n enrollLinkIsExternal: boolean;\r\n link: IResponseLink;\r\n tagLink1: IResponseLink;\r\n tagLink2: IResponseLink;\r\n image: IResponseImage;\r\n}\r\n\r\nexport interface IEducationOverviewBody {\r\n skip: number;\r\n take: number;\r\n query: string;\r\n filters: IFilter[];\r\n orderAlphabetically: boolean;\r\n}\r\n\r\nexport class EducationOverviewService {\r\n Search(body: IEducationOverviewBody): Promise> {\r\n body.query = body.query.replace(\"/\", \" \"); // Quickfix; to prevent error on the server\r\n return educationOverviewInstance.post('', body);\r\n }\r\n}\r\n\r\nexport default new EducationOverviewService();\r\n","\r\n\r\n","\r\n\r\n","export class Constants {\r\n // Search Header\r\n static QuickResultItems = 10;\r\n \r\n // Education Overview\r\n static QueryKey = \"query\";\r\n}"],"names":["highlightedQuickResults"],"mappings":";;;;;AAKA,MAAM,4BAA4B,MAAM,OAAO;AAAA,EAC7C,SAAS;AACX,CAAC;AA6BM,MAAM,yBAAyB;AAAA,EACpC,OAAO,MAAkF;AACvF,SAAK,QAAQ,KAAK,MAAM,QAAQ,KAAK,GAAG;AACjC,WAA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