1
1
import { logError } from '../../common/Error' ;
2
2
import { absoluteURL , safeHref } from '../../common/helpers/UrlParser' ;
3
3
import IPlainObject from '../../interfaces/IPlainObject' ;
4
- import WidgetConfig from './WidgetConfig' ;
5
4
import CoverImageConfig from './CoverImageConfig' ;
6
5
import TrainersConfig from './TrainersConfig' ;
6
+ import WidgetConfig from './WidgetConfig' ;
7
+ import { ForwardSearchParamsSettingType , WithPassSearchParamsSetting } from './ForwardSearchParamsSetting' ;
7
8
8
9
/**
9
10
* Contains @EventPageConfig widget configuration options
10
11
*/
11
- export default class EventPageConfig extends WidgetConfig {
12
+ export default class EventPageConfig extends WidgetConfig implements WithPassSearchParamsSetting {
12
13
13
14
/**
14
15
* Returns the config if the options are correct
@@ -86,6 +87,8 @@ export default class EventPageConfig extends WidgetConfig {
86
87
*/
87
88
readonly showAdditionalButton : boolean ;
88
89
90
+ readonly forwardSearchParams : ForwardSearchParamsSettingType ;
91
+
89
92
protected constructor ( options : IPlainObject ) {
90
93
super ( options ) ;
91
94
this . trainers = new TrainersConfig ( options . trainers ) ;
@@ -100,6 +103,7 @@ export default class EventPageConfig extends WidgetConfig {
100
103
options . coverImage . width , options . coverImage . height ) : new CoverImageConfig ( ) ;
101
104
this . eventPageUrl = safeHref ( ) ;
102
105
this . showAdditionalButton = options . showAdditionalButton !== undefined ? options . showAdditionalButton : false ;
106
+ this . forwardSearchParams = options . forwardSearchParams ;
103
107
}
104
108
105
109
}
0 commit comments