@@ -309,51 +309,6 @@ export const mvtIdIsAuxiaAudienceShare = (mvtId: number): boolean => {
309309 return mvtId > 0 && mvtId <= 350_000 ;
310310} ;
311311
312- export const decideGateTypeNoneOrDismissible = ( gateDismissCount : number ) : GateType => {
313- // -----------------------------------------------------------------------
314- // First we enforce the GU policy of not showing the gate if the user has dismissed it more than 5 times.
315- // (We do not want users to have to dismiss the gate 6 times)
316-
317- if ( gateDismissCount > 5 ) {
318- return 'None' ;
319- }
320-
321- // -----------------------------------------------------------------------
322- // We are now clear to show the default (dismissible) gu gate.
323-
324- return 'GuDismissible' ;
325- } ;
326-
327- export const decideGuGateTypeNonConsentedIreland = (
328- dailyArticleCount : number ,
329- gateDisplayCount : number ,
330- ) : GateType => {
331- // -----------------------------------------------------------------------
332- // If we reach this point, we are in Ireland
333-
334- if ( dailyArticleCount < 3 ) {
335- return 'AuxiaAnalyticsThenNone' ;
336- }
337-
338- // gateDisplayCount was introduced to enrich the behavior of the default gate.
339- // That number represents the number of times the gate has been displayed, excluding the
340- // current rendering. Therefore the first time the number is 0.
341-
342- // At the time these lines are written we want the experience for non consented users
343- // in Ireland to be that the gates, as they display are (first line) corresponding
344- // to values of gateDisplayCount (second line)
345- // -------------------------------------------------------------------------
346- // | dismissible | dismissible | dismissible | mandatory (remains mandatory) |
347- // | 0 | 1 | 2 | 3 etc |
348- // -------------------------------------------------------------------------
349-
350- if ( gateDisplayCount >= 3 ) {
351- return 'AuxiaAnalyticsThenGuMandatory' ;
352- }
353-
354- return 'AuxiaAnalyticsThenGuDismissible' ;
355- } ;
356-
357312export const isAuxiaAudienceShare = ( payload : GetTreatmentsRequestPayload ) : boolean => {
358313 return mvtIdIsAuxiaAudienceShare ( payload . mvtId ) ;
359314} ;
0 commit comments