onMediaQueryChange() {
        return this.changeWindowWidth$
            .pipe(rxjs_operators.startWith(undefined), rxjs_operators.pairwise(), rxjs_operators.map(([prevWidth, width]) => {
            return [
                this.breakpointService.getByWidth(prevWidth),
                this.breakpointService.getByWidth(width),
            ];
        }), rxjs_operators.filter(([prevPoint, point]) => {
            return prevPoint.name !== point.name;
        }), rxjs_operators.distinctUntilChanged(null, params => params[0].name + params[1].name), rxjs_operators.share());
    }
/**
     * Triggers media query breakpoint change
     * Returns a pair where the first item is previous media breakpoint and the second item is current breakpoit.
     * ```ts
     *  [{ name: 'xs', width: 0 }, { name: 'md', width: 768 }] // change from `xs` to `md`
     * ```
     * @returns {Observable<[NbMediaBreakpoint, NbMediaBreakpoint]>}
     */
Triggers media query breakpoint change
Returns a pair where the first item is previous media breakpoint and the second item is current breakpoit.
Triggers media query breakpoint change Returns a pair where the first item is previous media breakpoint and the second item is current breakpoit .
onMediaQueryChange() {
        return this.changeWindowWidth$
            .pipe(rxjs_operators.startWith(undefined), rxjs_operators.pairwise(), rxjs_operators.map(([prevWidth, width]) => {
            return [
                this.breakpointService.getByWidth(prevWidth),
                this.breakpointService.getByWidth(width),
            ];
        }), rxjs_operators.filter(([prevPoint, point]) => {
            return prevPoint.name !== point.name;
        }), rxjs_operators.distinctUntilChanged(null, params => params[0].name + params[1].name), rxjs_operators.share());
    }
onMediaQueryChange ( ) { return this . changeWindowWidth$ . pipe ( rxjs_operators . startWith ( undefined ) , rxjs_operators . pairwise ( ) , rxjs_operators . map ( ( [ prevWidth , width ] ) => { return [ this . breakpointService . getByWidth ( prevWidth ) , this . breakpointService . getByWidth ( width ) , ] ; } ) , rxjs_operators . filter ( ( [ prevPoint , point ] ) => { return prevPoint . name !== point . name ; } ) , rxjs_operators . distinctUntilChanged ( null , params => params [ 0 ] . name + params [ 1 ] . name ) , rxjs_operators . share ( ) ) ; }
Triggers media query breakpoint change
 Returns a pair where the first item is previous media breakpoint and the second item is current breakpoit.
Triggers media query breakpoint change Returns a pair where the first item is previous media breakpoint and the second item is current breakpoit .