+ };
+ case aaiActionTypes.EXTENSIBLE_VIEW_NETWORK_CALLBACK_RESPONSE_RECEIVED:
+ let obj = {...state};
+ obj['extensibleViewNetworkCallbackData'] = {};
+ obj['extensibleViewNetworkCallbackData'][action.data.paramName] = action.data.viewData;
+ // If there are some current viewData that need to be kept:
+ for(var vData in action.data.curViewData) {
+ obj['extensibleViewNetworkCallbackData'][vData] = action.data.curViewData[vData];
+ }
+ return obj;
+ case aaiActionTypes.EXTENSIBLE_VIEW_NETWORK_CALLBACK_CLEAR_DATA:
+ return {
+ ...state,
+ extensibleViewNetworkCallbackData : {}
+ };
+ case globalAutoCompleteSearchBarActionTypes.SEARCH_WARNING_EVENT:
+ return {
+ ...state,
+ extensibleViewNetworkCallbackData: {clearView: true}
+ };
+ case contextHandlerActionTypes.SINGLE_SUGGESTION_FOUND:
+ return {
+ ...state,
+ externalRequestFound: action.data
+ };
+
+ case aaiActionTypes.SET_SECONDARY_TITLE:
+ return {
+ ...state,
+ secondaryTitle: action.data
+ };
+ case contextHandlerActionTypes.SUBSCRIPTION_PAYLOAD_FOUND:
+ return {
+ ...state,
+ subscriptionPayload: action.data.subscriptionDetails,
+ subscriptionEnabled: true
+ };
+ case contextHandlerActionTypes.SUBSCRIPTION_PAYLOAD_EMPTY:
+ return {
+ ...state,
+ subscriptionEnabled: false
+ };
+ case personalizationActionTypes.PERSONALIZATION_PAYLOAD_FOUND:
+ return {
+ ...state,
+ aaiTopLeftPersonalizedHeader: action.data.topLeftHeader,
+ aaiPersonalizedHtmlDocumentTitle: action.data.htmlDocumentTitle
+ };