{"version":3,"file":"daffodil-design-sidebar.mjs","names":["getAnimationState","getAnimationState"],"sources":["../../../libs/design/sidebar/src/sidebar/is-opening.ts","../../../libs/design/sidebar/src/animation/sidebar-animation.ts","../../../libs/design/sidebar/src/animation/sidebar-animation-state.ts","../../../libs/design/sidebar/src/animation/sidebar-animation-width.ts","../../../libs/design/sidebar/src/sidebar/sidebar.component.ts","../../../libs/design/sidebar/src/sidebar/sidebar.component.html","../../../libs/design/sidebar/src/sidebar-footer/sidebar-footer.component.ts","../../../libs/design/sidebar/src/sidebar-header/sidebar-header-title/sidebar-header-title.directive.ts","../../../libs/design/sidebar/src/sidebar-header/sidebar-header.component.ts","../../../libs/design/sidebar/src/sidebar-header/sidebar-header.component.html","../../../libs/design/sidebar/src/sidebar-viewport/helper/has-parent-viewport.ts","../../../libs/design/sidebar/src/sidebar-viewport/nav-placement.ts","../../../libs/design/sidebar/src/sidebar-viewport/scroll-token/scroll.token.ts","../../../libs/design/sidebar/src/sidebar-viewport/utils/backdrop-interactable.ts","../../../libs/design/sidebar/src/sidebar-viewport/utils/content-pad.ts","../../../libs/design/sidebar/src/sidebar-viewport/utils/content-shift.ts","../../../libs/design/sidebar/src/animation/sidebar-viewport-animation-state.ts","../../../libs/design/sidebar/src/sidebar-viewport-backdrop/animation/backdrop-animation.ts","../../../libs/design/sidebar/src/sidebar-viewport-backdrop/animation/backdrop-animation-state.ts","../../../libs/design/sidebar/src/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.ts","../../../libs/design/sidebar/src/sidebar-viewport/sidebar-viewport.component.ts","../../../libs/design/sidebar/src/sidebar-viewport/sidebar-viewport.component.html","../../../libs/design/sidebar/src/sidebar.module.ts","../../../libs/design/sidebar/src/service/sidebar.service.ts","../../../libs/design/sidebar/src/helper/is-docked-mode.ts","../../../libs/design/sidebar/src/helper/is-floating-mode.ts","../../../libs/design/sidebar/src/sidebar.ts"],"sourcesContent":["import { DaffSidebarAnimationState } from '../animation/sidebar-animation-state';\n\n/**\n * Determine whether or animation states are going to an open state from a non-open state.\n */\nexport const isOpening = (fromState: DaffSidebarAnimationState, toState: DaffSidebarAnimationState): boolean => {\n  if(fromState === 'under-open' && toState === 'open' || fromState === 'open' && toState === 'under-open') {\n    return false;\n  }\n\n  if(toState === 'under-open' || toState === 'open') {\n    return true;\n  }\n  return false;\n};\n","import {\n  animate,\n  state,\n  style,\n  transition,\n  trigger,\n  AnimationTriggerMetadata,\n} from '@angular/animations';\n\nconst duration = '200ms';\nconst sidebarAnimateInTransition = 'cubic-bezier(0.0, 0.0, 0.2, 1)';\nconst sidebarAnimateOutTransition = 'cubic-bezier(0.4, 0.0, 1, 1)';\n\nexport const daffSidebarAnimations: {\n  readonly transformSidebar: AnimationTriggerMetadata;\n  readonly transformContent: AnimationTriggerMetadata;\n  readonly backdropTrigger: AnimationTriggerMetadata;\n} = {\n  transformSidebar: trigger('transformSidebar', [\n    // We remove the `transform` here completely, rather than setting it to zero, because\n    // 3d transforms causes text to appear blurry on IE and Edge.\n    state('open', style({\n      transform: 'none',\n    })),\n    state('closed', style({\n      transform: 'translateX({{width}})',\n    }), { params: { width: '-240px' }}),\n    transition('open => closed', animate(duration + ' ' + sidebarAnimateOutTransition)),\n    transition('closed => open', animate(duration + ' ' + sidebarAnimateInTransition)),\n  ]),\n  transformContent: trigger('transformContent', [\n    // We remove the `transform` here completely, rather than setting it to zero, because\n    // 3d transforms causes text to appear blurry on IE and Edge.\n    state('closed', style({\n      transform: 'none',\n    })),\n    state('open', style({\n      transform: 'translateX({{shift}})',\n    }), { params: { shift: '-240px' }}),\n    transition('open => closed', animate(duration + ' ' + sidebarAnimateInTransition)),\n    transition('closed => open', animate(duration + ' ' + sidebarAnimateOutTransition)),\n  ]),\n  backdropTrigger: trigger('backdropTrigger', [\n    state('open', style({\n      opacity: 1,\n    })),\n    state('closed', style({\n      opacity: 0,\n    })),\n    transition('open => closed', animate(duration + ' ' + sidebarAnimateOutTransition)),\n    transition('closed => open', animate(duration + ' ' + sidebarAnimateInTransition)),\n  ]),\n};\n\nexport enum DaffSidebarAnimationStates {\n  OPEN = 'open',\n  CLOSED = 'closed',\n  UNDEROPEN = 'under-open',\n  UNDERCLOSED = 'under-closed',\n  SIDEFIXEDOPEN = 'side-fixed-open',\n  SIDEFIXEDCLOSED = 'side-fixed-closed',\n  NONE = 'none'\n}\n","import { DaffSidebarMode } from '../helper/sidebar-mode';\n\nexport type DaffSidebarAnimationState =\n'open' | 'closed' | 'under-open' | 'under-closed' | 'side-fixed-open' | 'side-fixed-closed' | 'none';\n\nexport const getAnimationState = (open: boolean, mode: DaffSidebarMode): DaffSidebarAnimationState => {\n  if(mode === 'side') {\n    return 'none';\n  }\n\n  if(mode === 'side-fixed' && open) {\n    return 'side-fixed-open';\n  }\n\n  if(mode === 'side-fixed' && !open) {\n    return 'side-fixed-closed';\n  }\n\n  if(open && mode === 'under') {\n    return 'under-open';\n  }\n\n  if(!open && mode === 'under') {\n    return 'under-closed';\n  }\n\n  if(open) {\n    return 'open';\n  } else {\n    return 'closed';\n  }\n};\n","import { DaffSidebarSide } from '../helper/sidebar-side';\n\nexport const getSidebarAnimationWidth =\n  (side: DaffSidebarSide, width: number): string => side === 'left' ? -1 * width + 'px' : width + 'px';\n","/* eslint-disable quote-props */\nimport { AnimationEvent } from '@angular/animations';\nimport {\n  ConfigurableFocusTrap,\n  ConfigurableFocusTrapFactory,\n} from '@angular/cdk/a11y';\nimport {\n  Component,\n  NgZone,\n  ElementRef,\n  Output,\n  EventEmitter,\n  HostBinding,\n  ChangeDetectionStrategy,\n  Input,\n  HostListener,\n  Inject,\n  DOCUMENT,\n} from '@angular/core';\nimport { fromEvent } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport {\n  daffFocusableElementsSelector,\n  DaffFocusStackService,\n  DaffOpenable,\n  DaffOpenableDirective,\n} from '@daffodil/design';\n\nimport { isOpening } from './is-opening';\nimport { daffSidebarAnimations } from '../animation/sidebar-animation';\nimport {\n  DaffSidebarAnimationState,\n  getAnimationState,\n} from '../animation/sidebar-animation-state';\nimport { getSidebarAnimationWidth } from '../animation/sidebar-animation-width';\nimport { DaffSidebarMode } from '../helper/sidebar-mode';\nimport { DaffSidebarSide } from '../helper/sidebar-side';\n\n/**\n * DaffSidebarComponent is heavily based upon the work done by the `@angular/components`\n * team on `mat-drawer` and `mat-sidenav`. It's intended to be a simplified version\n * (with a different design) of `mat-drawer`.\n *\n * ```html\n * <daff-sidebar></daff-sidebar>\n * ```\n */\n@Component({\n  selector: 'daff-sidebar',\n  templateUrl: './sidebar.component.html',\n  styleUrls: ['./sidebar.component.scss'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  hostDirectives: [{\n    directive: DaffOpenableDirective,\n    inputs: ['open'],\n    outputs: ['toggled'],\n  }],\n  host: {\n    'class': 'daff-sidebar',\n    '[class.side]': 'mode === \"side\"',\n    '[class.over]': 'mode === \"over\"',\n    '[class.under]': 'mode === \"under\"',\n    '[class.side-fixed]': 'mode === \"side-fixed\"',\n    '[class.left]': 'side === \"left\"',\n    '[class.right]': 'side === \"right\"',\n  },\n  animations: [\n    daffSidebarAnimations.transformSidebar,\n  ],\n})\nexport class DaffSidebarComponent implements DaffOpenable {\n  /**\n   * @docs-private\n   *\n   * The animation state of the sidebar.\n   */\n  @HostBinding('@transformSidebar') get transformSidebar() {\n    return {\n      value: getAnimationState(this.openDirective.open(), this.mode),\n      params: { width: getSidebarAnimationWidth(this.side, this.width) },\n    };\n  }\n\n  /**\n   * Event fired when `ESC` key is pressed when the sidebar has focus.\n   */\n  @Output() escapePressed: EventEmitter<void> = new EventEmitter<void>();\n\n  /**\n   * What side of the viewport to show the sidebar on.\n   */\n  @Input() side: DaffSidebarSide = 'left';\n\n  /**\n   * The mode of the sidebar.\n   */\n  @Input() mode: DaffSidebarMode = 'side';\n\n  /**\n   * @docs-private\n   *\n   * The width of the sidebar.\n   */\n  get width() {\n    return this._elementRef.nativeElement.offsetWidth;\n  }\n\n  /**\n   * @docs-private\n   */\n  get open() {\n    return this.openDirective.open;\n  }\n\n  constructor(\n    private _elementRef: ElementRef<HTMLElement>,\n    private _ngZone: NgZone,\n    private _focusTrapFactory: ConfigurableFocusTrapFactory,\n    private _focusStack: DaffFocusStackService,\n    private openDirective: DaffOpenableDirective,\n    @Inject(DOCUMENT) private _doc: any,\n  ) {\n    /**\n     * Listen to `keydown` events outside the zone so that change detection is not run every\n     * time a key is pressed. Instead we re-enter the zone only if the `ESC` key is pressed.\n     *\n     */\n    this._ngZone.runOutsideAngular(() => {\n      fromEvent<KeyboardEvent>(this._elementRef.nativeElement, 'keydown').pipe(\n        filter(event => event.key === 'Escape'),\n      ).subscribe(event => this._ngZone.run(() => {\n        this.escapePressed.emit();\n        event.stopPropagation();\n      }));\n    });\n  }\n\n  private _focusTrap: ConfigurableFocusTrap;\n\n  /**\n   * @docs-private\n   *\n   * Animation event that can be used to hook into when the transformSidebar\n   * animation begins. This is used in sidebar to determine when to show the\n   * visibility of the sidebar so that the animation does not jump as the element is shown.\n   */\n  @HostListener('@transformSidebar.start', ['$event']) onAnimationStart(e: AnimationEvent) {\n    if (e.toState === 'open' || e.toState === 'under-open' || e.toState === 'side-fixed-open') {\n      this._elementRef.nativeElement.style.visibility = 'visible';\n    }\n  }\n\n  /**\n   * @docs-private\n   *\n   * Animation event that can be used to hook into when the\n   * transformSidebar animation is complete.\n   */\n  @HostListener('@transformSidebar.done', ['$event']) onAnimationComplete(e: AnimationEvent) {\n    if(isOpening(<DaffSidebarAnimationState>e.fromState, <DaffSidebarAnimationState>e.toState)) {\n      this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);\n\n      const focusableChild = (<HTMLElement>this._elementRef.nativeElement.querySelector(daffFocusableElementsSelector));\n\n      this._focusStack.push(this._doc.activeElement);\n\n      if(focusableChild) {\n        focusableChild.focus();\n      } else {\n        this._elementRef.nativeElement.tabIndex = 0;\n        (<HTMLElement>this._elementRef.nativeElement).focus();\n      }\n    } else {\n      if(this._focusTrap) {\n        this._focusTrap.destroy();\n        this._focusTrap = undefined;\n        this._focusStack.pop();\n      }\n    }\n\n    /**\n     * @docs-private\n     *\n     * This is used in sidebar to determine when to hide the visibility\n     * of the sidebar so that the animation does not jump as the element is hidden.\n     */\n    if (e.toState === 'closed' || e.toState === 'under-closed' || e.toState === 'side-fixed-closed') {\n      this._elementRef.nativeElement.style.visibility = 'hidden';\n    } else {\n      this._elementRef.nativeElement.style.visibility = null;\n    }\n  }\n\n  /**\n   * Reveal the contents of the sidebar.\n   */\n  reveal() {\n    this.openDirective.reveal();\n  }\n\n  /**\n   * Hide the contents of the sidebar.\n   */\n  hide() {\n    this.openDirective.hide();\n  }\n\n  /**\n   * Toggle the visibility of the sidebar.\n   */\n  toggle() {\n    this.openDirective.toggle();\n  }\n}\n","<ng-content select=\"daff-sidebar-header\"></ng-content>\n<div class=\"daff-sidebar__body\">\n\t<ng-content></ng-content>\n</div>\n<ng-content select=\"daff-sidebar-footer\"></ng-content>","/* eslint-disable quote-props */\nimport {\n  Component,\n  ChangeDetectionStrategy,\n} from '@angular/core';\n\n/**\n * Sidebar footer is a child component of the sidebar that is used to display a\n * footer container, positioned at the bottom of a sidebar.\n *\n * ```html\n * <daff-sidebar-footer></daff-sidebar-footer>\n * ```\n */\n@Component({\n  selector: 'daff-sidebar-footer',\n  template: '<ng-content></ng-content>',\n  styleUrls: ['./sidebar-footer.component.scss'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  host: {\n    'class': 'daff-sidebar-footer',\n  },\n})\nexport class DaffSidebarFooterComponent {\n}\n","import {\n  Directive,\n  HostBinding,\n} from '@angular/core';\n\n/**\n * Sidebar header title is a child directive of `DaffSidebarHeaderComponent`\n * that can be used to provide a title for the sidebar.\n *\n * ```html\n * <div daffSidebarHeaderTitle>Title</div>\n * ```\n */\n@Directive({\n  selector: '[daffSidebarHeaderTitle]',\n})\nexport class DaffSidebarHeaderTitleDirective {\n  /**\n   * @docs-private\n   */\n  @HostBinding('class.daff-sidebar-header__title') class = true;\n}\n","/* eslint-disable quote-props */\nimport {\n  Component,\n  ChangeDetectionStrategy,\n  ViewEncapsulation,\n  Input,\n  Output,\n  EventEmitter,\n} from '@angular/core';\nimport { FaIconComponent } from '@fortawesome/angular-fontawesome';\nimport { faTimes } from '@fortawesome/free-solid-svg-icons';\n\n/**\n * Sidebar header is a child component of the sidebar that is used to display a header container,\n * positioned at the top of a sidebar. It includes an optional title (`[daffSidebarHeaderTitle]`)\n * slot and a slot to render any custom content.\n *\n * ```html\n * <daff-sidebar-header></daff-sidebar-header>\n * ```\n */\n@Component({\n  selector: 'daff-sidebar-header',\n  templateUrl: './sidebar-header.component.html',\n  styleUrls: ['./sidebar-header.component.scss'],\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  host: {\n    'class': 'daff-sidebar-header',\n    '[class.dismissible]': 'dismissible',\n  },\n  imports: [\n    FaIconComponent,\n  ],\n})\nexport class DaffSidebarHeaderComponent {\n  /**\n   * @docs-private\n   */\n  faTimes = faTimes;\n\n  /** Whether or not a sidebar header should display the close icon. */\n  @Input() dismissible = false;\n\n  /**\n   * Output event triggered when the close icon is clicked.\n   */\n  @Output() closeSidebar: EventEmitter<void> = new EventEmitter();\n\n  /**\n   * @docs-private\n   */\n  onCloseSidebar(event: Event) {\n    this.closeSidebar.emit();\n  }\n}\n","@if (dismissible) {\n  <button class=\"daff-sidebar-header__close-icon\" aria-label=\"Close Sidebar\" (click)=\"onCloseSidebar($event)\">\n    <fa-icon [icon]=\"faTimes\" [fixedWidth]=\"true\" size=\"lg\"></fa-icon>\n  </button>\n}\n<div class=\"daff-sidebar-header__content\">\n  <ng-content></ng-content>\n</div>","/**\n * Fallback function for determining whether or not a viewport has a parent viewport.\n * This is really only used in the Daffodil docs when the injector heirarchy\n * doesn't act as anticipated as a result of custom elements.\n */\nexport const hasParentViewport = (element: HTMLElement) => {\n  let currentElement = element.parentElement;\n\n  while (currentElement !== null) {\n    if (currentElement.tagName === 'DAFF-SIDEBAR-VIEWPORT') {\n      return true;\n    }\n    currentElement = currentElement.parentElement;\n  }\n\n  return false;\n};\n","/**\n * The placement of the nav in relation to the sidebar.\n * See {@link DaffNavPlacementEnum }\n */\nexport type DaffNavPlacement = 'above' | 'beside';\n\n/**\n * The placement of the nav in relation to the sidebar.\n * See {@link DaffNavPlacement }\n */\nexport enum DaffNavPlacementEnum {\n  ABOVE = 'above',\n  BESIDE = 'beside',\n}\n","\nimport {\n  ElementRef,\n  inject,\n  DOCUMENT,\n} from '@angular/core';\n\nimport { createSingleInjectionToken } from '@daffodil/core';\n\n/**\n * An interface that enables a user to enable or disable scrolling on sidebars.\n *\n * See {@link DAFF_SIDEBAR_SCROLL_TOKEN}\n */\nexport interface DaffSidebarScroll {\n  enable(): void;\n  disable(): void;\n}\n\nexport const {\n  /**\n   * An injection token that can be used within a sidebar to determine\n   * what to do enabling and disabling scrolling. By default, the body\n   * is the element where scrolling is controlled.\n   */\n  token: DAFF_SIDEBAR_SCROLL_TOKEN,\n  /**\n   * Provider function for {@link DAFF_SIDEBAR_SCROLL_TOKEN}.\n   */\n  provider: provideDaffSidebarScrollToken,\n} = createSingleInjectionToken<DaffSidebarScroll>(\n  'DAFF_SIDEBAR_SCROLL_TOKEN',\n  {\n    providedIn: 'root',\n    factory: () => {\n      const document = inject(DOCUMENT);\n      return {\n        enable: () => {\n          document.body.style.overflow = null;\n        },\n        disable: () => {\n          document.body.style.overflow = 'hidden';\n        },\n      };\n    },\n  },\n);\n\n\n/**\n * A factory function that return a DaffSidebarScroll\n * for the current sidebar viewport.\n *\n * See the providers of {@link DaffSidebarViewportComponent}\n */\nexport const daffSidebarViewportScrollFactory = (): DaffSidebarScroll => {\n  const element = inject(ElementRef).nativeElement;\n  return {\n    enable: () => {\n      element.style.overflow = null;\n    },\n    disable: () => {\n      element.style.overflow = 'hidden';\n    },\n  };\n};\n","import { QueryList } from '@angular/core';\n\nimport { DaffSidebarComponent } from '../../sidebar/sidebar.component';\n\n/**\n * Determines, given a list of sidebars, whether or not the backdrop is interactable (typically clickable).\n */\nexport const sidebarViewportBackdropInteractable = (sidebars: QueryList<DaffSidebarComponent>): boolean => sidebars.reduce(\n  (acc: boolean, sidebar) => ((sidebar.mode === 'over' || sidebar.mode === 'under') && sidebar.open()) || acc,\n  false);\n","import { QueryList } from '@angular/core';\n\nimport { DaffSidebarModeEnum } from '../../helper/sidebar-mode';\nimport { DaffSidebarSide } from '../../helper/sidebar-side';\nimport { DaffSidebarComponent } from '../../sidebar/sidebar.component';\n\n/**\n * Given a list of sidebars, compute the whether or not the content is padded.\n */\nexport const isSidebarViewportContentPadded = (sidebars: QueryList<DaffSidebarComponent>, side: DaffSidebarSide): boolean =>\n  sidebars.reduce((acc: boolean, sidebar) => {\n    if(!(sidebar.mode === DaffSidebarModeEnum.SideFixed && sidebar.open())) {\n      return acc || false;\n    }\n\n    if(sidebar.side === side){\n      return true;\n    } else {\n      // This component is \"stateless\", its possible to have two open \"under\" sidebars.\n      // As such, we defer to \"left\" being open by default.\n      return acc;\n    }\n  }, false);\n\n","import { QueryList } from '@angular/core';\n\nimport { DaffSidebarMode } from '../../helper/sidebar-mode';\nimport { DaffSidebarComponent } from '../../sidebar/sidebar.component';\n\nexport const isViewportContentShifted = (mode: DaffSidebarMode, open: boolean): boolean => (mode === 'under' && open);\n\n/**\n * Given a list of sidebars, compute the associated content shift.\n */\nexport const sidebarViewportContentShift = (sidebars: QueryList<DaffSidebarComponent>): number =>\n  sidebars.reduce((acc: number, sidebar) => {\n    if(!isViewportContentShifted(sidebar.mode, sidebar.open())) {\n      return acc;\n    }\n\n    if(sidebar.side === 'left'){\n      return sidebar.width;\n    } else if (sidebar.side === 'right' && acc === 0) {\n      return -1 * sidebar.width;\n    } else {\n      // This component is \"stateless\", its possible to have two open \"under\" sidebars.\n      // As such, we defer to \"left\" being open by default.\n      return acc;\n    }\n  }, 0);\n\n\n","import { AnimationStateWithParams } from '@daffodil/design';\n\nimport { DaffSidebarAnimationStates } from './sidebar-animation';\n\nexport type DaffSidebarViewportAnimationState = DaffSidebarAnimationStates.OPEN | DaffSidebarAnimationStates.CLOSED;\n\n\nexport interface DaffSidebarAnimationStateParams {\n  shift: string;\n};\n\nexport type DaffSidebarViewportAnimationStateWithParams = AnimationStateWithParams<DaffSidebarViewportAnimationState, DaffSidebarAnimationStateParams>;\n\n\nexport const getSidebarViewportAnimationState = (open: boolean): DaffSidebarViewportAnimationState =>\n  open ? DaffSidebarAnimationStates.OPEN : DaffSidebarAnimationStates.CLOSED;\n","import {\n  animate,\n  state,\n  style,\n  transition,\n  trigger,\n  AnimationTriggerMetadata,\n} from '@angular/animations';\n\nconst animationDuration = '350ms';\nconst backdropTransitionOut = 'cubic-bezier(0.4, 0.0, 1, 1)';\nconst backdropTransitionIn = 'cubic-bezier(0.0, 0.0, 0.2, 1)';\n\nexport const daffSidebarViewportBackdropAnimations: {\n  readonly fadeBackdrop: AnimationTriggerMetadata;\n} = {\n  fadeBackdrop: trigger('fadeBackdrop', [\n    state('interactable', style({ opacity: 1 })),\n    state('non-interactable', style({ opacity: 0 })),\n    transition('interactable => non-interactable', animate(animationDuration + ' ' + backdropTransitionOut)),\n    transition('non-interactable => interactable', animate(animationDuration + ' ' + backdropTransitionIn)),\n    transition(':enter', [\n      style({ opacity: 0 }),\n      animate(animationDuration + ' ' + backdropTransitionIn, style({ opacity: 1 })),\n    ]),\n    transition(':leave', [\n      animate(animationDuration + ' ' + backdropTransitionOut, style({ opacity: 0 })),\n    ]),\n  ]),\n};\n","export type DaffSidebarViewportBackdropAnimationState = 'interactable' | 'non-interactable';\nexport const getAnimationState = (interactable: boolean): DaffSidebarViewportBackdropAnimationState=> interactable ? 'interactable' : 'non-interactable';\n","import { AnimationEvent } from '@angular/animations';\nimport {\n  Component,\n  Output,\n  EventEmitter,\n  Input,\n  ChangeDetectionStrategy,\n  HostListener,\n  HostBinding,\n  OnInit,\n} from '@angular/core';\n\nimport { daffSidebarViewportBackdropAnimations } from './animation/backdrop-animation';\nimport { getAnimationState } from './animation/backdrop-animation-state';\n\n@Component({\n  selector: 'daff-sidebar-viewport-backdrop',\n  template: '<ng-content></ng-content>',\n  styleUrls: ['./sidebar-viewport-backdrop.component.scss'],\n  animations: [\n    daffSidebarViewportBackdropAnimations.fadeBackdrop,\n  ],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DaffSidebarViewportBackdropComponent implements OnInit {\n\n  /**\n   * @docs-private\n   */\n  @HostBinding('class.interactable') interactableClass = true;\n\n  /**\n   * Determines whether or not the backdrop is transparent.\n   */\n  @Input() @HostBinding('class.transparent') transparent = false;\n\n  /**\n   * Determines whether or not the backdrop is interactable.\n   */\n  @Input() interactable = true;\n\n  /**\n   * Boolean property that determines whether or not the\n   * backdrop should fill up its containing window.\n   */\n  @Input() @HostBinding('class.fullscreen') fullscreen = false;\n\n  /**\n   * Output event triggered when the backdrop is clicked.\n   */\n  @Output() backdropClicked: EventEmitter<void> = new EventEmitter<void>();\n\n  /**\n   * @docs-private\n   */\n  ngOnInit(): void {\n    this.interactableClass = this.interactable;\n  }\n\n  /**\n   * @docs-private\n   *\n   * Animation hook for that controls the backdrops\n   * entrance and fade animations.\n   */\n  @HostBinding('@fadeBackdrop') get fadeBackdropTrigger() {\n    return getAnimationState(this.interactable);\n  }\n\n  /**\n   * @docs-private\n   */\n  @HostListener('@fadeBackdrop.done', ['$event'])\n  animationDone(e: AnimationEvent) {\n    this.interactableClass = !(e.toState === ':leave' || e.toState === 'non-interactable');\n  }\n\n  /**\n   * @docs-private\n   */\n  @HostListener('@fadeBackdrop.start', ['$event'])\n  animationStart(e: AnimationEvent) {\n    if(e.toState === ':enter' || e.toState === 'interactable'){\n      this.interactableClass = true;\n    }\n  }\n\n  /**\n   * @docs-private\n   */\n  @HostListener('click')\n  onBackdropClicked(): void {\n    this.backdropClicked.emit();\n  }\n}\n","/* eslint-disable quote-props */\nimport { AnimationEvent } from '@angular/animations';\nimport {\n  Component,\n  Output,\n  EventEmitter,\n  ChangeDetectionStrategy,\n  ChangeDetectorRef,\n  ContentChildren,\n  QueryList,\n  AfterContentChecked,\n  ElementRef,\n  Input,\n  Inject,\n  SkipSelf,\n  Optional,\n  OnDestroy,\n} from '@angular/core';\n\nimport { hasParentViewport } from './helper/has-parent-viewport';\nimport {\n  DaffNavPlacement,\n  DaffNavPlacementEnum,\n} from './nav-placement';\nimport {\n  DAFF_SIDEBAR_SCROLL_TOKEN,\n  DaffSidebarScroll,\n  daffSidebarViewportScrollFactory,\n} from './scroll-token/scroll.token';\nimport { sidebarViewportBackdropInteractable } from './utils/backdrop-interactable';\nimport { isSidebarViewportContentPadded } from './utils/content-pad';\nimport {\n  isViewportContentShifted,\n  sidebarViewportContentShift,\n} from './utils/content-shift';\nimport {\n  DaffSidebarAnimationStates,\n  daffSidebarAnimations,\n} from '../animation/sidebar-animation';\nimport {\n  DaffSidebarViewportAnimationStateWithParams,\n  getSidebarViewportAnimationState,\n} from '../animation/sidebar-viewport-animation-state';\nimport { DaffSidebarComponent } from '../sidebar/sidebar.component';\nimport { DaffSidebarViewportBackdropComponent } from '../sidebar-viewport-backdrop/sidebar-viewport-backdrop.component';\n\n/**\n * DaffSidebarViewportComponent serves as the container for managing sidebars across an entire application.\n * Because it's a functional component, it supports multiple simultaneously open sidebar and is designed to\n * handle these scenarios gracefully.\n *\n * > However, there is one key contraint: only one sidebar per **mode** is allowed\n * on each **side** (e.g., left or right) at any given time.\n *\n * If this constraint is violated, the component will throw an exception to prevent unintended behavior.\n *\n * ```html\n * <daff-sidebar-viewport>\n *    <daff-sidebar></daff-sidebar>\n *    <div>Site content</div>\n * </daff-sidebar-viewport>\n * ```\n */\n@Component({\n  selector: 'daff-sidebar-viewport',\n  templateUrl: './sidebar-viewport.component.html',\n  styleUrls: ['./sidebar-viewport.component.scss'],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  animations: [\n    daffSidebarAnimations.transformContent,\n  ],\n  providers: [\n    {\n      provide: DAFF_SIDEBAR_SCROLL_TOKEN,\n      useFactory: daffSidebarViewportScrollFactory,\n    },\n  ],\n  host: {\n    'class': 'daff-sidebar-viewport',\n    '[class.beside]': 'navPlacement === \"beside\"',\n    '[class.above]': 'navPlacement === \"above\"',\n    '[class.pad-left]': '_isPaddedLeft',\n    '[class.pad-right]': '_isPaddedRight',\n  },\n  imports: [\n    DaffSidebarViewportBackdropComponent,\n  ],\n})\nexport class DaffSidebarViewportComponent implements AfterContentChecked, OnDestroy {\n  /**\n   * @docs-private\n   */\n  onContentAnimationStart(e: AnimationEvent) {\n    if(e.toState === 'open') {\n      this._elementRef.nativeElement.style.overflow = 'clip';\n    }\n  }\n\n  /**\n   * @docs-private\n   */\n  onContentAnimationDone(e: AnimationEvent) {\n    if(e.toState === 'closed') {\n      this._elementRef.nativeElement.style.overflow = null;\n    }\n  }\n\n  /**\n   * The placement of the nav in relation to the sidebar. Note that this is really only available when there is a `side-fixed` sidebar.\n   */\n  @Input() navPlacement: DaffNavPlacement = DaffNavPlacementEnum.ABOVE;\n\n  constructor(\n    private cdRef: ChangeDetectorRef,\n    private _elementRef: ElementRef<HTMLElement>,\n    @Inject(DAFF_SIDEBAR_SCROLL_TOKEN) @SkipSelf() private bodyScroll: DaffSidebarScroll,\n    @Inject(DaffSidebarViewportComponent) @SkipSelf() @Optional() private parentViewport,\n    @Inject(DAFF_SIDEBAR_SCROLL_TOKEN) private scroll: DaffSidebarScroll,\n  ) { }\n\n  /**\n   * The list of sidebars in the viewport.\n   *\n   * @docs-private\n   */\n  @ContentChildren(DaffSidebarComponent, { descendants: false }) private sidebars: QueryList<DaffSidebarComponent>;\n\n  /**\n   * The number of pixels that the main content of the page should be shifted to\n   * right when there are child sidebars.\n   */\n  private _shift = '0px';\n\n  /**\n   * @docs-private\n   */\n  _isPaddedLeft = false;\n\n  /**\n   * @docs-private\n   */\n  _isPaddedRight = false;\n\n  /**\n   * @docs-private\n   *\n   * Whether or not the backdrop is interactable\n   */\n  _backdropInteractable = false;\n\n  /**\n   * @docs-private\n   *\n   * The animation state\n   */\n  _animationState: DaffSidebarViewportAnimationStateWithParams = { value: DaffSidebarAnimationStates.CLOSED, params: { shift: '0px' }};\n\n  /**\n   * Event fired when the backdrop is clicked. This is often used to close the sidebar.\n   */\n  @Output() backdropClicked: EventEmitter<void> = new EventEmitter<void>();\n\n  /**\n   * @docs-private\n   */\n  ngAfterContentChecked() {\n    const nextShift = sidebarViewportContentShift(this.sidebars) + 'px';\n    if (this._shift !== nextShift) {\n      this._shift = nextShift;\n\n      this.updateAnimationState();\n      this.cdRef.markForCheck();\n    }\n    const nextBackdropInteractable = sidebarViewportBackdropInteractable(this.sidebars);\n    if (this._backdropInteractable !== nextBackdropInteractable) {\n      this._backdropInteractable = nextBackdropInteractable;\n      this.updateAnimationState();\n      this.cdRef.markForCheck();\n      if(nextBackdropInteractable) {\n        if(!this.parentViewport && !hasParentViewport(this._elementRef.nativeElement)) {\n          this.bodyScroll.disable();\n        } else {\n          this.scroll.disable();\n        }\n      } else { //if we are hiding the sidebars\n        if(!this.parentViewport && !hasParentViewport(this._elementRef.nativeElement)) {\n          this.bodyScroll.enable();\n        } else {\n          this.scroll.enable();\n        }\n      }\n    };\n\n    this._isPaddedLeft = isSidebarViewportContentPadded(this.sidebars, 'left');\n    this._isPaddedRight = isSidebarViewportContentPadded(this.sidebars, 'right');\n  }\n\n  /**\n   * @docs-private\n   */\n  ngOnDestroy() {\n    if(!this.parentViewport && !hasParentViewport(this._elementRef.nativeElement)) {\n      this.bodyScroll.enable();\n    } else {\n      this.scroll.enable();\n    }\n  }\n\n  /**\n   * @docs-private\n   *\n   * Updates the animation state of the viewport depending upon the state\n   * of all sidebars within the viewport.\n   */\n  private updateAnimationState() {\n    this._animationState = {\n      value: getSidebarViewportAnimationState(\n        this.sidebars.reduce((acc: boolean, sidebar) => acc || isViewportContentShifted(sidebar.mode, sidebar.open()), false),\n      ),\n      params: { shift: this._shift },\n    };\n  }\n\n  /**\n   * @docs-private\n   *\n   * Called when the backdrop of the viewport is clicked upon.\n   */\n  _backdropClicked(): void {\n    this.backdropClicked.emit();\n  }\n}\n","<daff-sidebar-viewport-backdrop\n  [@transformContent]=\"_animationState\"\n  [interactable]=\"_backdropInteractable\"\n  (backdropClicked)=\"_backdropClicked()\">\n</daff-sidebar-viewport-backdrop>\n\n<div class=\"daff-sidebar-viewport__nav\"\n  [@transformContent]=\"_animationState\">\n    <ng-content select=\"[daff-sidebar-viewport-nav]\"></ng-content>\n</div>\n\n<ng-content select=\"daff-sidebar:not([side=right])\"></ng-content>\n\n<div class=\"daff-sidebar-viewport__content\"\n  [@transformContent]=\"_animationState\"\n  (@transformContent.start)=\"onContentAnimationStart($event)\"\n  (@transformContent.done)=\"onContentAnimationDone($event)\">\n  <div class=\"daff-sidebar-viewport__inner\">\n      <ng-content></ng-content>\n      <div class=\"daff-sidebar-viewport__footer\">\n        <ng-content select=\"[daff-sidebar-viewport-footer]\"></ng-content>\n      </div>\n  </div>\n</div>\n\n<ng-content select=\"daff-sidebar[side=right]\"></ng-content>\n","import { A11yModule } from '@angular/cdk/a11y';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { DaffSidebarComponent } from './sidebar/sidebar.component';\nimport { DaffSidebarFooterComponent } from './sidebar-footer/sidebar-footer.component';\nimport { DaffSidebarHeaderTitleDirective } from './sidebar-header/sidebar-header-title/sidebar-header-title.directive';\nimport { DaffSidebarHeaderComponent } from './sidebar-header/sidebar-header.component';\nimport { DaffSidebarViewportComponent } from './sidebar-viewport/sidebar-viewport.component';\n\n/**\n * @deprecated in favor of {@link DAFF_SIDEBAR_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.\n */\n@NgModule({\n  imports: [\n    CommonModule,\n    A11yModule,\n    DaffSidebarComponent,\n    DaffSidebarViewportComponent,\n    DaffSidebarHeaderComponent,\n    DaffSidebarFooterComponent,\n    DaffSidebarHeaderTitleDirective,\n  ],\n  exports: [\n    DaffSidebarComponent,\n    DaffSidebarViewportComponent,\n    DaffSidebarHeaderComponent,\n    DaffSidebarFooterComponent,\n    DaffSidebarHeaderTitleDirective,\n  ],\n})\nexport class DaffSidebarModule { }\n","import {\n  Signal,\n  signal,\n} from '@angular/core';\nimport {\n  BehaviorSubject,\n  Observable,\n} from 'rxjs';\n\nimport { DaffSidebarRegistration } from './registration.type';\n\n/**\n * A service that stores the open state and ID of the currently opened sidebar.\n *\n * A default sidebar ID can be passed to the constructor that will be the initial value of `$id`.\n */\nexport abstract class DaffSidebarService {\n  protected _id$: BehaviorSubject<DaffSidebarRegistration['id']>;\n  protected _open = signal(false);\n\n  readonly id$: Observable<DaffSidebarRegistration['id']>;\n\n  get isOpen(): Signal<boolean> {\n    return this._open.asReadonly();\n  }\n\n  constructor(\n    defaultId: DaffSidebarRegistration['id'] = null,\n  ) {\n    this._id$ = new BehaviorSubject<DaffSidebarRegistration['id']>(defaultId);\n\n    this.id$ = this._id$.asObservable();\n  }\n\n  /**\n   * Opens the specified sidebar.\n   *\n   * @param id The optional sidebar ID. If omitted the most recently passed opened sidebar ID will persist (or the default if none was passed).\n   */\n  open(id?: DaffSidebarRegistration['id']) {\n    if (id) {\n      this._id$.next(id);\n    }\n    this._open.set(true);\n  };\n\n  /**\n   * Closes the sidebar. Does not clear the ID.\n   */\n  close() {\n    this._open.set(false);\n  }\n}\n","import { DaffSidebarModeEnum } from './sidebar-mode';\n\nconst DOCKED_MODES = [\n  DaffSidebarModeEnum.Side,\n  DaffSidebarModeEnum.SideFixed,\n];\n\n/**\n * Returns whether the passed mode is a docked mode, i.e. side or side-fixed.\n */\nexport const daffSidebarIsDockedMode = (mode: DaffSidebarModeEnum): boolean => DOCKED_MODES.includes(mode);\n","import { DaffSidebarModeEnum } from './sidebar-mode';\n\nconst FLOATING_MODES = [\n  DaffSidebarModeEnum.Under,\n  DaffSidebarModeEnum.Over,\n];\n\n/**\n * Returns whether the passed mode is a floating mode, i.e. under or over.\n */\nexport const daffSidebarIsFloatingMode = (mode: DaffSidebarModeEnum): boolean => FLOATING_MODES.includes(mode);\n","import { DaffSidebarComponent } from './sidebar/sidebar.component';\nimport { DaffSidebarFooterComponent } from './sidebar-footer/sidebar-footer.component';\nimport { DaffSidebarHeaderTitleDirective } from './sidebar-header/sidebar-header-title/sidebar-header-title.directive';\nimport { DaffSidebarHeaderComponent } from './sidebar-header/sidebar-header.component';\nimport { DaffSidebarViewportComponent } from './sidebar-viewport/sidebar-viewport.component';\n\n/**\n * @docs-private\n */\nexport const DAFF_SIDEBAR_COMPONENTS = <const> [\n  DaffSidebarComponent,\n  DaffSidebarViewportComponent,\n  DaffSidebarHeaderComponent,\n  DaffSidebarFooterComponent,\n  DaffSidebarHeaderTitleDirective,\n];\n"],"mappings":";;;;;;;;;;;;;AAKA,MAAa,aAAa,WAAsC,YAA+C;CAC7G,IAAG,cAAc,gBAAgB,YAAY,UAAU,cAAc,UAAU,YAAY,cACzF,OAAO;CAGT,IAAG,YAAY,gBAAgB,YAAY,QACzC,OAAO;CAET,OAAO;AACT;ACJA,MAAM,6BAA6B;AAGnC,MAAa,wBAIT;CACF,kBAAkB,QAAQ,oBAAoB;EAG5C,MAAM,QAAQ,MAAM,EAClB,WAAW,OACZ,CAAA,CAAC;EACF,MAAM,UAAU,MAAM,EACpB,WAAW,wBACZ,CAAA,GAAG,EAAE,QAAQ,EAAE,OAAO,SAAQ,EAAE,CAAC;EAClC,WAAW,kBAAkB,QAAQ,oCAA4C,CAAC;EAClF,WAAW,kBAAkB,QAAQ,WAAiB,0BAA0B,CAAC;CAClF,CAAA;CACD,kBAAkB,QAAQ,oBAAoB;EAG5C,MAAM,UAAU,MAAM,EACpB,WAAW,OACZ,CAAA,CAAC;EACF,MAAM,QAAQ,MAAM,EAClB,WAAW,wBACZ,CAAA,GAAG,EAAE,QAAQ,EAAE,OAAO,SAAQ,EAAE,CAAC;EAClC,WAAW,kBAAkB,QAAQ,WAAiB,0BAA0B,CAAC;EACjF,WAAW,kBAAkB,QAAQ,oCAA4C,CAAC;CACnF,CAAA;CACD,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