/** * SSR Attribute Names */ const SSR_VNODE_ID = 'ssrv'; const SSR_CHILD_ID = 'ssrc'; /** * Default style mode id */ const DEFAULT_STYLE_MODE = '$'; /** * Reusable empty obj/array * Don't add values to these!! */ const EMPTY_OBJ = {}; /** * Key Name to Key Code Map */ const KEY_CODE_MAP = { 'enter': 13, 'escape': 27, 'space': 32, 'tab': 9, 'left': 37, 'up': 38, 'right': 39, 'down': 40 }; function getScopeId(cmpMeta, mode) { return 'sc-' + cmpMeta.tagNameMeta + (mode && mode !== DEFAULT_STYLE_MODE ? '-' + mode : ''); } function getElementScopeId(scopeId, isHostElement) { return scopeId + (isHostElement ? '-h' : '-s'); } function initStyleTemplate(domApi, cmpMeta, encapsulation, style, styleMode, perf) { if (style) { false; // we got a style mode for this component, let's create an id for this style const styleModeId = cmpMeta.tagNameMeta + (styleMode || DEFAULT_STYLE_MODE); if (!cmpMeta[styleModeId]) { false; { // use