{"version":3,"file":"types-8roXR0of.mjs","names":[],"sources":["../src/components/composable/route/types.ts"],"sourcesContent":["export interface RouteProps {\n    pr?: number;\n    ps?: number;\n    routeQuery?: string;\n    routeMonetisable?: string;\n    routeIab?: number;\n    routeSort?: string;\n    routeIncludeHidden?: string;\n    routeFrom?: string;\n    routeTo?: string;\n    routeValidity?: string;\n    routeOnlyVideo?: string;\n    routeOrga?: string;\n    routeRubriques?: string;\n    /** The filter on beneficiaries defined on the route props */\n    routeBeneficiaries?: string[];\n    /** The filter on emission groups defined on the route props */\n    routeEmissionGroups?: number[];\n}\n\ntype DateStr = string;\n\nexport interface RouteParams {\n    /** The organisation for which we display the emissions/episodes */\n    productor?: string;\n}\n\nexport interface AdvancedRouteParams extends RouteParams {\n    /** If true, only show episodes with video */\n    v?: 'true';\n    /** When set, display data from this date */\n    from?: DateStr;\n    /** When set, display data up to this date */\n    to?: DateStr;\n    /** When set, filter on beneficiaries */\n    b?: string[];\n    /** When set, filter on topics */\n    r?: string;\n    q?: string;\n    /** When set, filter on groups */\n    gp?: number[];\n}\n\ntype RouteParamEnum =\n    'Beneficiaries' |\n    'Query' |\n    'EmissionGroups'\n    ;\n\n/** Utility to access route params by constants instead of undefined value */\nexport const ROUTE_PARAMS: Record<RouteParamEnum, keyof AdvancedRouteParams> = {\n    Beneficiaries: 'b',\n    Query: 'q',\n    EmissionGroups: 'gp'\n};\n"],"mappings":";;AAkDA,IAAa,eAAkE;CAC3E,eAAe;CACf,OAAO;CACP,gBAAgB;AACpB"}