license const cssClasses = { ANCHOR : 'mdc-menu-surface--anchor' , ANIMATING_CLOSED : 'mdc-menu-surface--animating-closed' , ANIMATING_OPEN : 'mdc-menu-surface--animating-open' , FIXED : 'mdc-menu-surface--fixed' , IS_OPEN_BELOW : 'mdc-menu-surface--is-open-below' , OPEN : 'mdc-menu-surface--open' , ROOT : 'mdc-menu-surface' , } ; const strings = { CLOSED_EVENT : 'MDCMenuSurface:closed' , CLOSING_EVENT : 'MDCMenuSurface:closing' , OPENED_EVENT : 'MDCMenuSurface:opened' , FOCUSABLE_ELEMENTS : [ 'button:not(:disabled)' , '[href]:not([aria-disabled="true"])' , 'input:not(:disabled)' , 'select:not(:disabled)' , 'textarea:not(:disabled)' , '[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])' , ] . join ( ', ' ) , } ; const numbers = { /** Total duration of menu-surface open animation. */ TRANSITION_OPEN_DURATION : 120 , /** Total duration of menu-surface close animation. */ TRANSITION_CLOSE_DURATION : 75 , /**
     * Margin left to the edge of the viewport when menu-surface is at maximum
     * possible height. Also used as a viewport margin.
     */ MARGIN_TO_EDGE : 32 , /**
     * Ratio of anchor width to menu-surface width for switching from corner
     * positioning to center positioning.
     */ ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO : 0.67 , /**
     * Amount of time to wait before restoring focus when closing the menu
     * surface. This is important because if a touch event triggered the menu
     * close, and the subsequent mouse event occurs after focus is restored, then
     * the restored focus would be lost.
     */ TOUCH_EVENT_WAIT_MS : 30 , } ; /**
 * Enum for bits in the {@see Corner) bitmap.
 */ enum CornerBit { BOTTOM = 1 , CENTER = 2 , RIGHT = 4 , FLIP_RTL = 8 } /**
 * Enum for representing an element corner for positioning the menu-surface.
 *
 * The START constants map to LEFT if element directionality is left
 * to right and RIGHT if the directionality is right to left.
 * Likewise END maps to RIGHT or LEFT depending on the directionality.
 */ enum Corner { TOP_LEFT = 0 , TOP_RIGHT = CornerBit . RIGHT , BOTTOM_LEFT = CornerBit . BOTTOM , BOTTOM_RIGHT = CornerBit . BOTTOM | CornerBit . RIGHT , TOP_START = CornerBit . FLIP_RTL , TOP_END = CornerBit . FLIP_RTL | CornerBit . RIGHT , BOTTOM_START = CornerBit . BOTTOM | CornerBit . FLIP_RTL , BOTTOM_END = CornerBit . BOTTOM | CornerBit . RIGHT | CornerBit . FLIP_RTL } export { cssClasses , strings , numbers , CornerBit , Corner } ;