diff --git a/app/assets/javascripts/camaleon_cms/admin/admin-manifest.js b/app/assets/javascripts/camaleon_cms/admin/admin-manifest.js index d38eee67..74bc1fff 100644 --- a/app/assets/javascripts/camaleon_cms/admin/admin-manifest.js +++ b/app/assets/javascripts/camaleon_cms/admin/admin-manifest.js @@ -30,7 +30,7 @@ //= require camaleon_cms/admin/_libraries //= require camaleon_cms/admin/_actions -//= require camaleon_cms/admin/introjs/_intro.min +//= require camaleon_cms/admin/introjs/intro.min // uploader //= require camaleon_cms/admin/uploader/uploader_manifest diff --git a/app/assets/javascripts/camaleon_cms/admin/introjs/_intro.min.js b/app/assets/javascripts/camaleon_cms/admin/introjs/intro.min.js similarity index 100% rename from app/assets/javascripts/camaleon_cms/admin/introjs/_intro.min.js rename to app/assets/javascripts/camaleon_cms/admin/introjs/intro.min.js diff --git a/app/assets/javascripts/camaleon_cms/admin/introjs/intro.min.js.map b/app/assets/javascripts/camaleon_cms/admin/introjs/intro.min.js.map new file mode 100644 index 00000000..4756f027 --- /dev/null +++ b/app/assets/javascripts/camaleon_cms/admin/introjs/intro.min.js.map @@ -0,0 +1 @@ +{"version":3,"file":"intro.min.js","sources":["../../src/util/cookie.ts","../../src/core/dontShowAgain.ts","../../src/util/stamp.ts","../../src/core/DOMEvent.ts","../../src/util/isFunction.ts","../../src/util/addClass.ts","../../src/util/getPropValue.ts","../../src/util/setShowElement.ts","../../src/util/scrollParentToElement.ts","../../src/util/getScrollParent.ts","../../src/util/getWindowSize.ts","../../src/util/scrollTo.ts","../../src/util/elementInViewport.ts","../../src/util/setAnchorAsButton.ts","../../src/util/isFixed.ts","../../src/util/getOffset.ts","../../src/util/removeClass.ts","../../src/util/setStyle.ts","../../src/core/setHelperLayerPosition.ts","../../src/util/checkRight.ts","../../src/util/checkLeft.ts","../../src/util/removeEntry.ts","../../src/core/placeTooltip.ts","../../src/core/removeShowElement.ts","../../src/util/createElement.ts","../../src/util/appendChild.ts","../../src/core/showElement.ts","../../src/core/steps.ts","../../src/core/onKeyDown.ts","../../src/util/cloneObject.ts","../../src/util/debounce.ts","../../src/core/hint.ts","../../src/core/fetchIntroSteps.ts","../../src/core/refresh.ts","../../src/core/onResize.ts","../../src/util/removeChild.ts","../../src/core/exitIntro.ts","../../src/core/addOverlayLayer.ts","../../src/core/introForElement.ts","../../src/option.ts","../../src/intro.ts","../../src/index.ts"],"sourcesContent":["export function setCookie(name: string, value: string, days?: number) {\n const cookie: {\n [name: string]: string | undefined;\n path: string;\n expires: string | undefined;\n } = { [name]: value, path: \"/\", expires: undefined };\n\n if (days) {\n let date = new Date();\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n cookie.expires = date.toUTCString();\n }\n\n let arr = [];\n for (let key in cookie) {\n arr.push(`${key}=${cookie[key]}`);\n }\n\n document.cookie = arr.join(\"; \");\n\n return getCookie(name);\n}\n\nexport function getAllCookies() {\n let cookie: { [name: string]: string } = {};\n\n document.cookie.split(\";\").forEach((el) => {\n let [k, v] = el.split(\"=\");\n cookie[k.trim()] = v;\n });\n\n return cookie;\n}\n\nexport function getCookie(name: string) {\n return getAllCookies()[name];\n}\n\nexport function deleteCookie(name: string) {\n setCookie(name, \"\", -1);\n}\n","import { IntroJs } from \"../intro\";\nimport { deleteCookie, getCookie, setCookie } from \"../util/cookie\";\n\nconst dontShowAgainCookieValue = \"true\";\n\n/**\n * Set the \"Don't show again\" state\n *\n * @api private\n */\nexport function setDontShowAgain(intro: IntroJs, dontShowAgain: boolean) {\n if (dontShowAgain) {\n setCookie(\n intro._options.dontShowAgainCookie,\n dontShowAgainCookieValue,\n intro._options.dontShowAgainCookieDays\n );\n } else {\n deleteCookie(intro._options.dontShowAgainCookie);\n }\n}\n\n/**\n * Get the \"Don't show again\" state from cookies\n *\n * @api private\n */\nexport function getDontShowAgain(intro: IntroJs): boolean {\n const dontShowCookie = getCookie(intro._options.dontShowAgainCookie);\n return dontShowCookie !== \"\" && dontShowCookie === dontShowAgainCookieValue;\n}\n","/**\n * Mark any object with an incrementing number\n * used for keeping track of objects\n *\n * @param Object obj Any object or DOM Element\n * @param String key\n * @return Object\n */\nconst stamp = (() => {\n const keys: {\n [key: string]: number;\n } = {};\n return function stamp(obj: T, key = \"introjs-stamp\"): number {\n // each group increments from 0\n keys[key] = keys[key] || 0;\n\n // stamp only once per object\n // @ts-ignore\n if (obj[key] === undefined) {\n // increment key for each new object\n // @ts-ignore\n obj[key] = keys[key]++;\n }\n\n // @ts-ignore\n return obj[key];\n };\n})();\n\nexport default stamp;\n","import { IntroJs } from \"../intro\";\nimport stamp from \"../util/stamp\";\n\n/**\n * DOMEvent Handles all DOM events\n *\n * methods:\n *\n * on - add event handler\n * off - remove event\n */\n\nclass DOMEvent {\n private readonly events_key: string = \"introjs_event\";\n\n /**\n * Gets a unique ID for an event listener\n */\n private _id(type: string, listener: Function, context: IntroJs) {\n return type + stamp(listener) + (context ? `_${stamp(context)}` : \"\");\n }\n\n /**\n * Adds event listener\n */\n public on(\n obj: EventTarget,\n type: string,\n listener: (\n context: IntroJs | EventTarget,\n e: Event\n ) => void | undefined | string | Promise,\n context: IntroJs,\n useCapture: boolean\n ) {\n const id = this._id(type, listener, context);\n const handler = (e: Event) => listener(context || obj, e || window.event);\n\n if (\"addEventListener\" in obj) {\n obj.addEventListener(type, handler, useCapture);\n } else if (\"attachEvent\" in obj) {\n // @ts-ignore\n obj.attachEvent(`on${type}`, handler);\n }\n\n // @ts-ignore\n obj[this.events_key] = obj[this.events_key] || {};\n // @ts-ignore\n obj[this.events_key][id] = handler;\n }\n\n /**\n * Removes event listener\n */\n public off(\n obj: EventTarget,\n type: string,\n listener: (\n context: IntroJs | EventTarget,\n e: Event\n ) => void | undefined | string | Promise,\n context: IntroJs,\n useCapture: boolean\n ) {\n const id = this._id(type, listener, context);\n // @ts-ignore\n const handler = obj[this.events_key] && obj[this.events_key][id];\n\n if (!handler) {\n return;\n }\n\n if (\"removeEventListener\" in obj) {\n obj.removeEventListener(type, handler, useCapture);\n } else if (\"detachEvent\" in obj) {\n // @ts-ignore\n obj.detachEvent(`on${type}`, handler);\n }\n\n // @ts-ignore\n obj[this.events_key][id] = null;\n }\n}\n\nexport default new DOMEvent();\n","// Returns true if the given parameter is a function\nexport default (x: any): x is Function => typeof x === \"function\";\n","/**\n * Append a class to an element\n * @api private\n */\nexport default function addClass(element: HTMLElement, className: string) {\n if (element instanceof SVGElement) {\n // svg\n const pre = element.getAttribute(\"class\") || \"\";\n\n if (!pre.match(className)) {\n // check if element doesn't already have className\n element.setAttribute(\"class\", `${pre} ${className}`);\n }\n } else {\n if (element.classList !== undefined) {\n // check for modern classList property\n const classes = className.split(\" \");\n for (const cls of classes) {\n element.classList.add(cls);\n }\n } else if (!element.className.match(className)) {\n // check if element doesn't already have className\n element.className += ` ${className}`;\n }\n }\n}\n","/**\n * Get an element CSS property on the page\n * Thanks to JavaScript Kit: http://www.javascriptkit.com/dhtmltutors/dhtmlcascade4.shtml\n *\n * @api private\n * @returns string property value\n */\nexport default function getPropValue(\n element: HTMLElement,\n propName: string\n): string {\n let propValue = \"\";\n if (\"currentStyle\" in element) {\n //IE\n // @ts-ignore\n propValue = element.currentStyle[propName];\n } else if (document.defaultView && document.defaultView.getComputedStyle) {\n //Others\n propValue = document.defaultView\n .getComputedStyle(element, null)\n .getPropertyValue(propName);\n }\n\n //Prevent exception in IE\n if (propValue && propValue.toLowerCase) {\n return propValue.toLowerCase();\n } else {\n return propValue;\n }\n}\n","import addClass from \"./addClass\";\nimport getPropValue from \"./getPropValue\";\n\n/**\n * To set the show element\n * This function set a relative (in most cases) position and changes the z-index\n *\n * @api private\n */\nexport default function setShowElement(targetElement: HTMLElement) {\n addClass(targetElement, \"introjs-showElement\");\n\n const currentElementPosition = getPropValue(targetElement, \"position\");\n if (\n currentElementPosition !== \"absolute\" &&\n currentElementPosition !== \"relative\" &&\n currentElementPosition !== \"sticky\" &&\n currentElementPosition !== \"fixed\"\n ) {\n //change to new intro item\n addClass(targetElement, \"introjs-relativePosition\");\n }\n}\n","import getScrollParent from \"./getScrollParent\";\n\n/**\n * scroll a scrollable element to a child element\n */\nexport default function scrollParentToElement(\n scrollToElement: boolean,\n targetElement: HTMLElement\n) {\n if (!scrollToElement) return;\n\n const parent = getScrollParent(targetElement);\n\n if (parent === document.body) return;\n\n parent.scrollTop = targetElement.offsetTop - parent.offsetTop;\n}\n","/**\n * Find the nearest scrollable parent\n * copied from https://stackoverflow.com/questions/35939886/find-first-scrollable-parent\n */\nexport default function getScrollParent(element: HTMLElement): HTMLElement {\n let style = window.getComputedStyle(element);\n const excludeStaticParent = style.position === \"absolute\";\n const overflowRegex = /(auto|scroll)/;\n\n if (style.position === \"fixed\") return document.body;\n\n for (\n let parent: HTMLElement | null = element;\n (parent = parent.parentElement);\n\n ) {\n style = window.getComputedStyle(parent);\n if (excludeStaticParent && style.position === \"static\") {\n continue;\n }\n if (overflowRegex.test(style.overflow + style.overflowY + style.overflowX))\n return parent;\n }\n\n return document.body;\n}\n","/**\n * Provides a cross-browser way to get the screen dimensions\n * via: http://stackoverflow.com/questions/5864467/internet-explorer-innerheight\n *\n * @api private\n */\nexport default function getWinSize(): { width: number; height: number } {\n if (window.innerWidth !== undefined) {\n return { width: window.innerWidth, height: window.innerHeight };\n } else {\n const D = document.documentElement;\n return { width: D.clientWidth, height: D.clientHeight };\n }\n}\n","import elementInViewport from \"./elementInViewport\";\nimport getWindowSize from \"./getWindowSize\";\nimport { ScrollTo } from \"../core/steps\";\n\n/**\n * To change the scroll of `window` after highlighting an element\n *\n * @api private\n */\nexport default function scrollTo(\n scrollToElement: boolean,\n scrollTo: ScrollTo,\n scrollPadding: number,\n targetElement: HTMLElement,\n tooltipLayer: HTMLElement\n) {\n if (scrollTo === \"off\") return;\n let rect: DOMRect;\n\n if (!scrollToElement) return;\n\n if (scrollTo === \"tooltip\") {\n rect = tooltipLayer.getBoundingClientRect();\n } else {\n rect = targetElement.getBoundingClientRect();\n }\n\n if (!elementInViewport(targetElement)) {\n const winHeight = getWindowSize().height;\n const top = rect.bottom - (rect.bottom - rect.top);\n\n // TODO (afshinm): do we need scroll padding now?\n // I have changed the scroll option and now it scrolls the window to\n // the center of the target element or tooltip.\n\n if (top < 0 || targetElement.clientHeight > winHeight) {\n window.scrollBy(\n 0,\n rect.top - (winHeight / 2 - rect.height / 2) - scrollPadding\n ); // 30px padding from edge to look nice\n\n //Scroll down\n } else {\n window.scrollBy(\n 0,\n rect.top - (winHeight / 2 - rect.height / 2) + scrollPadding\n ); // 30px padding from edge to look nice\n }\n }\n}\n","/**\n * Check to see if the element is in the viewport or not\n * http://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport\n *\n * @api private\n */\nexport default function elementInViewport(el: HTMLElement): boolean {\n const rect = el.getBoundingClientRect();\n\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom + 80 <= window.innerHeight && // add 80 to get the text right\n rect.right <= window.innerWidth\n );\n}\n","/**\n * Setting anchors to behave like buttons\n *\n * @api private\n */\nexport default function setAnchorAsButton(anchor: HTMLElement) {\n anchor.setAttribute(\"role\", \"button\");\n anchor.tabIndex = 0;\n}\n","import getPropValue from \"./getPropValue\";\n\n/**\n * Checks to see if target element (or parents) position is fixed or not\n *\n * @api private\n */\nexport default function isFixed(element: HTMLElement): boolean {\n const parent = element.parentElement;\n\n if (!parent || parent.nodeName === \"HTML\") {\n return false;\n }\n\n if (getPropValue(element, \"position\") === \"fixed\") {\n return true;\n }\n\n return isFixed(parent);\n}\n","import getPropValue from \"./getPropValue\";\nimport isFixed from \"./isFixed\";\n\n/**\n * Get an element position on the page relative to another element (or body)\n * Thanks to `meouw`: http://stackoverflow.com/a/442474/375966\n *\n * @api private\n * @returns Element's position info\n */\nexport default function getOffset(\n element: HTMLElement,\n relativeEl?: HTMLElement\n): { width: number; height: number; left: number; top: number } {\n const body = document.body;\n const docEl = document.documentElement;\n const scrollTop = window.pageYOffset || docEl.scrollTop || body.scrollTop;\n const scrollLeft = window.pageXOffset || docEl.scrollLeft || body.scrollLeft;\n\n relativeEl = relativeEl || body;\n\n const x = element.getBoundingClientRect();\n const xr = relativeEl.getBoundingClientRect();\n const relativeElPosition = getPropValue(relativeEl, \"position\");\n\n let obj = {\n width: x.width,\n height: x.height,\n };\n\n if (\n (relativeEl.tagName.toLowerCase() !== \"body\" &&\n relativeElPosition === \"relative\") ||\n relativeElPosition === \"sticky\"\n ) {\n // when the container of our target element is _not_ body and has either \"relative\" or \"sticky\" position, we should not\n // consider the scroll position but we need to include the relative x/y of the container element\n return Object.assign(obj, {\n top: x.top - xr.top,\n left: x.left - xr.left,\n });\n } else {\n if (isFixed(element)) {\n return Object.assign(obj, {\n top: x.top,\n left: x.left,\n });\n } else {\n return Object.assign(obj, {\n top: x.top + scrollTop,\n left: x.left + scrollLeft,\n });\n }\n }\n}\n","/**\n * Remove a class from an element\n *\n * @api private\n */\nexport default function removeClass(\n element: HTMLElement,\n classNameRegex: RegExp | string\n) {\n if (element instanceof SVGElement) {\n const pre = element.getAttribute(\"class\") || \"\";\n\n element.setAttribute(\n \"class\",\n pre.replace(classNameRegex, \"\").replace(/^\\s+|\\s+$/g, \"\")\n );\n } else {\n element.className = element.className\n .replace(classNameRegex, \"\")\n .replace(/^\\s+|\\s+$/g, \"\");\n }\n}\n","/**\n * Sets the style of an DOM element\n */\nexport default function setStyle(\n element: HTMLElement,\n style: string | { [key: string]: string | number }\n) {\n let cssText = \"\";\n\n if (element.style.cssText) {\n cssText += element.style.cssText;\n }\n\n if (typeof style === \"string\") {\n cssText += style;\n } else {\n for (const rule in style) {\n cssText += `${rule}:${style[rule]};`;\n }\n }\n\n element.style.cssText = cssText;\n}\n","import getOffset from \"../util/getOffset\";\nimport isFixed from \"../util/isFixed\";\nimport addClass from \"../util/addClass\";\nimport removeClass from \"../util/removeClass\";\nimport setStyle from \"../util/setStyle\";\nimport { IntroJs } from \"../intro\";\nimport { HintStep, IntroStep } from \"./steps\";\n\n/**\n * Update the position of the helper layer on the screen\n *\n * @api private\n */\nexport default function setHelperLayerPosition(\n intro: IntroJs,\n step: IntroStep | HintStep,\n helperLayer: HTMLElement\n) {\n if (!helperLayer || !step) return;\n\n const elementPosition = getOffset(\n step.element as HTMLElement,\n intro._targetElement\n );\n let widthHeightPadding = intro._options.helperElementPadding;\n\n // If the target element is fixed, the tooltip should be fixed as well.\n // Otherwise, remove a fixed class that may be left over from the previous\n // step.\n if (step.element instanceof Element && isFixed(step.element)) {\n addClass(helperLayer, \"introjs-fixedTooltip\");\n } else {\n removeClass(helperLayer, \"introjs-fixedTooltip\");\n }\n\n if (step.position === \"floating\") {\n widthHeightPadding = 0;\n }\n\n //set new position to helper layer\n setStyle(helperLayer, {\n width: `${elementPosition.width + widthHeightPadding}px`,\n height: `${elementPosition.height + widthHeightPadding}px`,\n top: `${elementPosition.top - widthHeightPadding / 2}px`,\n left: `${elementPosition.left - widthHeightPadding / 2}px`,\n });\n}\n","/**\n * Set tooltip left so it doesn't go off the right side of the window\n *\n * @return boolean true, if tooltipLayerStyleLeft is ok. false, otherwise.\n */\nexport default function checkRight(\n targetOffset: {\n top: number;\n left: number;\n width: number;\n height: number;\n },\n tooltipLayerStyleLeft: number,\n tooltipOffset: {\n top: number;\n left: number;\n width: number;\n height: number;\n },\n windowSize: {\n width: number;\n height: number;\n },\n tooltipLayer: HTMLElement\n): boolean {\n if (\n targetOffset.left + tooltipLayerStyleLeft + tooltipOffset.width >\n windowSize.width\n ) {\n // off the right side of the window\n tooltipLayer.style.left = `${\n windowSize.width - tooltipOffset.width - targetOffset.left\n }px`;\n\n return false;\n }\n\n tooltipLayer.style.left = `${tooltipLayerStyleLeft}px`;\n return true;\n}\n","/**\n * Set tooltip right so it doesn't go off the left side of the window\n *\n * @return boolean true, if tooltipLayerStyleRight is ok. false, otherwise.\n */\nexport default function checkLeft(\n targetOffset: {\n top: number;\n left: number;\n width: number;\n height: number;\n },\n tooltipLayerStyleRight: number,\n tooltipOffset: {\n top: number;\n left: number;\n width: number;\n height: number;\n },\n tooltipLayer: HTMLElement\n): boolean {\n if (\n targetOffset.left +\n targetOffset.width -\n tooltipLayerStyleRight -\n tooltipOffset.width <\n 0\n ) {\n // off the left side of the window\n tooltipLayer.style.left = `${-targetOffset.left}px`;\n return false;\n }\n tooltipLayer.style.right = `${tooltipLayerStyleRight}px`;\n return true;\n}\n","/**\n * Remove an entry from a string array if it's there, does nothing if it isn't there.\n */\nexport default function removeEntry(stringArray: K[], stringToRemove: K) {\n if (stringArray.includes(stringToRemove)) {\n stringArray.splice(stringArray.indexOf(stringToRemove), 1);\n }\n}\n","import getOffset from \"../util/getOffset\";\nimport getWindowSize from \"../util/getWindowSize\";\nimport addClass from \"../util/addClass\";\nimport checkRight from \"../util/checkRight\";\nimport checkLeft from \"../util/checkLeft\";\nimport removeEntry from \"../util/removeEntry\";\nimport { HintStep, IntroStep, TooltipPosition } from \"./steps\";\nimport { IntroJs } from \"../intro\";\n\n/**\n * auto-determine alignment\n */\nfunction _determineAutoAlignment(\n offsetLeft: number,\n tooltipWidth: number,\n windowWidth: number,\n desiredAlignment: TooltipPosition[]\n): TooltipPosition | null {\n const halfTooltipWidth = tooltipWidth / 2;\n const winWidth = Math.min(windowWidth, window.screen.width);\n\n // valid left must be at least a tooltipWidth\n // away from right side\n if (winWidth - offsetLeft < tooltipWidth) {\n removeEntry(desiredAlignment, \"top-left-aligned\");\n removeEntry(desiredAlignment, \"bottom-left-aligned\");\n }\n\n // valid middle must be at least half\n // width away from both sides\n if (\n offsetLeft < halfTooltipWidth ||\n winWidth - offsetLeft < halfTooltipWidth\n ) {\n removeEntry(desiredAlignment, \"top-middle-aligned\");\n removeEntry(desiredAlignment, \"bottom-middle-aligned\");\n }\n\n // valid right must be at least a tooltipWidth\n // width away from left side\n if (offsetLeft < tooltipWidth) {\n removeEntry(desiredAlignment, \"top-right-aligned\");\n removeEntry(desiredAlignment, \"bottom-right-aligned\");\n }\n\n if (desiredAlignment.length) {\n return desiredAlignment[0];\n }\n\n return null;\n}\n\n/**\n * Determines the position of the tooltip based on the position precedence and availability\n * of screen space.\n */\nfunction _determineAutoPosition(\n positionPrecedence: TooltipPosition[],\n targetElement: HTMLElement,\n tooltipLayer: HTMLElement,\n desiredTooltipPosition: TooltipPosition\n): TooltipPosition {\n // Take a clone of position precedence. These will be the available\n const possiblePositions = positionPrecedence.slice();\n\n const windowSize = getWindowSize();\n const tooltipHeight = getOffset(tooltipLayer).height + 10;\n const tooltipWidth = getOffset(tooltipLayer).width + 20;\n const targetElementRect = targetElement.getBoundingClientRect();\n\n // If we check all the possible areas, and there are no valid places for the tooltip, the element\n // must take up most of the screen real estate. Show the tooltip floating in the middle of the screen.\n let calculatedPosition: TooltipPosition = \"floating\";\n\n /*\n * auto determine position\n */\n\n // Check for space below\n if (targetElementRect.bottom + tooltipHeight > windowSize.height) {\n removeEntry(possiblePositions, \"bottom\");\n }\n\n // Check for space above\n if (targetElementRect.top - tooltipHeight < 0) {\n removeEntry(possiblePositions, \"top\");\n }\n\n // Check for space to the right\n if (targetElementRect.right + tooltipWidth > windowSize.width) {\n removeEntry(possiblePositions, \"right\");\n }\n\n // Check for space to the left\n if (targetElementRect.left - tooltipWidth < 0) {\n removeEntry(possiblePositions, \"left\");\n }\n\n // strip alignment from position\n if (desiredTooltipPosition) {\n // ex: \"bottom-right-aligned\"\n // should return 'bottom'\n desiredTooltipPosition = desiredTooltipPosition.split(\n \"-\"\n )[0] as TooltipPosition;\n }\n\n if (possiblePositions.length) {\n // Pick the first valid position, in order\n calculatedPosition = possiblePositions[0];\n\n if (possiblePositions.includes(desiredTooltipPosition)) {\n // If the requested position is in the list, choose that\n calculatedPosition = desiredTooltipPosition;\n }\n }\n\n // only \"top\" and \"bottom\" positions have optional alignments\n if (calculatedPosition === \"top\" || calculatedPosition === \"bottom\") {\n let defaultAlignment: TooltipPosition;\n let desiredAlignment: TooltipPosition[] = [];\n\n if (calculatedPosition === \"top\") {\n // if screen width is too small\n // for ANY alignment, middle is\n // probably the best for visibility\n defaultAlignment = \"top-middle-aligned\";\n\n desiredAlignment = [\n \"top-left-aligned\",\n \"top-middle-aligned\",\n \"top-right-aligned\",\n ];\n } else {\n defaultAlignment = \"bottom-middle-aligned\";\n\n desiredAlignment = [\n \"bottom-left-aligned\",\n \"bottom-middle-aligned\",\n \"bottom-right-aligned\",\n ];\n }\n\n calculatedPosition =\n _determineAutoAlignment(\n targetElementRect.left,\n tooltipWidth,\n windowSize.width,\n desiredAlignment\n ) || defaultAlignment;\n }\n\n return calculatedPosition;\n}\n\n/**\n * Render tooltip box in the page\n *\n * @api private\n */\nexport default function placeTooltip(\n intro: IntroJs,\n currentStep: IntroStep | HintStep,\n tooltipLayer: HTMLElement,\n arrowLayer: HTMLElement,\n hintMode: boolean = false\n) {\n if (!currentStep) return;\n\n let tooltipCssClass = \"\";\n let tooltipOffset: {\n top: number;\n left: number;\n width: number;\n height: number;\n };\n let targetOffset: {\n top: number;\n left: number;\n width: number;\n height: number;\n };\n let windowSize: { width: number; height: number };\n let currentTooltipPosition: TooltipPosition;\n\n //reset the old style\n tooltipLayer.style.top = \"\";\n tooltipLayer.style.right = \"\";\n tooltipLayer.style.bottom = \"\";\n tooltipLayer.style.left = \"\";\n tooltipLayer.style.marginLeft = \"\";\n tooltipLayer.style.marginTop = \"\";\n\n arrowLayer.style.display = \"inherit\";\n\n //if we have a custom css class for each step\n if (typeof currentStep.tooltipClass === \"string\") {\n tooltipCssClass = currentStep.tooltipClass;\n } else {\n tooltipCssClass = intro._options.tooltipClass;\n }\n\n tooltipLayer.className = [\"introjs-tooltip\", tooltipCssClass]\n .filter(Boolean)\n .join(\" \");\n\n tooltipLayer.setAttribute(\"role\", \"dialog\");\n\n currentTooltipPosition = currentStep.position;\n\n // Floating is always valid, no point in calculating\n if (currentTooltipPosition !== \"floating\" && intro._options.autoPosition) {\n currentTooltipPosition = _determineAutoPosition(\n intro._options.positionPrecedence,\n currentStep.element as HTMLElement,\n tooltipLayer,\n currentTooltipPosition\n );\n }\n\n let tooltipLayerStyleLeft: number;\n targetOffset = getOffset(currentStep.element as HTMLElement);\n tooltipOffset = getOffset(tooltipLayer);\n windowSize = getWindowSize();\n\n addClass(tooltipLayer, `introjs-${currentTooltipPosition}`);\n\n let tooltipLayerStyleLeftRight =\n targetOffset.width / 2 - tooltipOffset.width / 2;\n\n switch (currentTooltipPosition) {\n case \"top-right-aligned\":\n arrowLayer.className = \"introjs-arrow bottom-right\";\n\n let tooltipLayerStyleRight = 0;\n checkLeft(\n targetOffset,\n tooltipLayerStyleRight,\n tooltipOffset,\n tooltipLayer\n );\n tooltipLayer.style.bottom = `${targetOffset.height + 20}px`;\n break;\n\n case \"top-middle-aligned\":\n arrowLayer.className = \"introjs-arrow bottom-middle\";\n\n // a fix for middle aligned hints\n if (hintMode) {\n tooltipLayerStyleLeftRight += 5;\n }\n\n if (\n checkLeft(\n targetOffset,\n tooltipLayerStyleLeftRight,\n tooltipOffset,\n tooltipLayer\n )\n ) {\n tooltipLayer.style.right = \"\";\n checkRight(\n targetOffset,\n tooltipLayerStyleLeftRight,\n tooltipOffset,\n windowSize,\n tooltipLayer\n );\n }\n tooltipLayer.style.bottom = `${targetOffset.height + 20}px`;\n break;\n\n case \"top-left-aligned\":\n // top-left-aligned is the same as the default top\n case \"top\":\n arrowLayer.className = \"introjs-arrow bottom\";\n\n tooltipLayerStyleLeft = hintMode ? 0 : 15;\n\n checkRight(\n targetOffset,\n tooltipLayerStyleLeft,\n tooltipOffset,\n windowSize,\n tooltipLayer\n );\n tooltipLayer.style.bottom = `${targetOffset.height + 20}px`;\n break;\n case \"right\":\n tooltipLayer.style.left = `${targetOffset.width + 20}px`;\n if (targetOffset.top + tooltipOffset.height > windowSize.height) {\n // In this case, right would have fallen below the bottom of the screen.\n // Modify so that the bottom of the tooltip connects with the target\n arrowLayer.className = \"introjs-arrow left-bottom\";\n tooltipLayer.style.top = `-${\n tooltipOffset.height - targetOffset.height - 20\n }px`;\n } else {\n arrowLayer.className = \"introjs-arrow left\";\n }\n break;\n case \"left\":\n if (!hintMode && intro._options.showStepNumbers === true) {\n tooltipLayer.style.top = \"15px\";\n }\n\n if (targetOffset.top + tooltipOffset.height > windowSize.height) {\n // In this case, left would have fallen below the bottom of the screen.\n // Modify so that the bottom of the tooltip connects with the target\n tooltipLayer.style.top = `-${\n tooltipOffset.height - targetOffset.height - 20\n }px`;\n arrowLayer.className = \"introjs-arrow right-bottom\";\n } else {\n arrowLayer.className = \"introjs-arrow right\";\n }\n tooltipLayer.style.right = `${targetOffset.width + 20}px`;\n\n break;\n case \"floating\":\n arrowLayer.style.display = \"none\";\n\n //we have to adjust the top and left of layer manually for intro items without element\n tooltipLayer.style.left = \"50%\";\n tooltipLayer.style.top = \"50%\";\n tooltipLayer.style.marginLeft = `-${tooltipOffset.width / 2}px`;\n tooltipLayer.style.marginTop = `-${tooltipOffset.height / 2}px`;\n\n break;\n case \"bottom-right-aligned\":\n arrowLayer.className = \"introjs-arrow top-right\";\n\n tooltipLayerStyleRight = 0;\n checkLeft(\n targetOffset,\n tooltipLayerStyleRight,\n tooltipOffset,\n tooltipLayer\n );\n tooltipLayer.style.top = `${targetOffset.height + 20}px`;\n break;\n\n case \"bottom-middle-aligned\":\n arrowLayer.className = \"introjs-arrow top-middle\";\n\n // a fix for middle aligned hints\n if (hintMode) {\n tooltipLayerStyleLeftRight += 5;\n }\n\n if (\n checkLeft(\n targetOffset,\n tooltipLayerStyleLeftRight,\n tooltipOffset,\n tooltipLayer\n )\n ) {\n tooltipLayer.style.right = \"\";\n checkRight(\n targetOffset,\n tooltipLayerStyleLeftRight,\n tooltipOffset,\n windowSize,\n tooltipLayer\n );\n }\n tooltipLayer.style.top = `${targetOffset.height + 20}px`;\n break;\n\n // case 'bottom-left-aligned':\n // Bottom-left-aligned is the same as the default bottom\n // case 'bottom':\n // Bottom going to follow the default behavior\n default:\n arrowLayer.className = \"introjs-arrow top\";\n\n tooltipLayerStyleLeft = 0;\n checkRight(\n targetOffset,\n tooltipLayerStyleLeft,\n tooltipOffset,\n windowSize,\n tooltipLayer\n );\n tooltipLayer.style.top = `${targetOffset.height + 20}px`;\n }\n}\n","import removeClass from \"../util/removeClass\";\n\n/**\n * To remove all show element(s)\n *\n * @api private\n */\nexport default function removeShowElement() {\n const elms = Array.from(\n document.querySelectorAll(\".introjs-showElement\")\n );\n\n for (const elm of elms) {\n removeClass(elm, /introjs-[a-zA-Z]+/g);\n }\n}\n","import setStyle from \"./setStyle\";\n\n/**\n * Create a DOM element with various attributes\n */\nexport default function _createElement(\n tagName: K,\n attrs?: { [key: string]: string | Function }\n): HTMLElementTagNameMap[K] {\n let element = document.createElement(tagName);\n\n attrs = attrs || {};\n\n // regex for matching attributes that need to be set with setAttribute\n const setAttRegex = /^(?:role|data-|aria-)/;\n\n for (const k in attrs) {\n let v = attrs[k];\n\n if (k === \"style\" && typeof v !== \"function\") {\n setStyle(element, v);\n } else if (typeof v === \"string\" && k.match(setAttRegex)) {\n element.setAttribute(k, v);\n } else {\n // @ts-ignore\n element[k] = v;\n }\n }\n\n return element;\n}\n","import setStyle from \"./setStyle\";\n\n/**\n * Appends `element` to `parentElement`\n */\nexport default function appendChild(\n parentElement: HTMLElement,\n element: HTMLElement,\n animate: boolean = false\n) {\n if (animate) {\n const existingOpacity = element.style.opacity || \"1\";\n\n setStyle(element, {\n opacity: \"0\",\n });\n\n window.setTimeout(() => {\n setStyle(element, {\n opacity: existingOpacity,\n });\n }, 10);\n }\n\n parentElement.appendChild(element);\n}\n","import setShowElement from \"../util/setShowElement\";\nimport scrollParentToElement from \"../util/scrollParentToElement\";\nimport addClass from \"../util/addClass\";\nimport scrollTo from \"../util/scrollTo\";\nimport exitIntro from \"./exitIntro\";\nimport setAnchorAsButton from \"../util/setAnchorAsButton\";\nimport { IntroStep, nextStep, previousStep } from \"./steps\";\nimport setHelperLayerPosition from \"./setHelperLayerPosition\";\nimport placeTooltip from \"./placeTooltip\";\nimport removeShowElement from \"./removeShowElement\";\nimport createElement from \"../util/createElement\";\nimport setStyle from \"../util/setStyle\";\nimport appendChild from \"../util/appendChild\";\nimport { IntroJs } from \"../intro\";\nimport isFunction from \"../util/isFunction\";\n\n/**\n * Gets the current progress percentage\n *\n * @api private\n * @returns current progress percentage\n */\nfunction _getProgress(currentStep: number, introItemsLength: number) {\n // Steps are 0 indexed\n return ((currentStep + 1) / introItemsLength) * 100;\n}\n\n/**\n * Add disableinteraction layer and adjust the size and position of the layer\n *\n * @api private\n */\nfunction _disableInteraction(intro: IntroJs, step: IntroStep) {\n let disableInteractionLayer = document.querySelector(\n \".introjs-disableInteraction\"\n );\n\n if (disableInteractionLayer === null) {\n disableInteractionLayer = createElement(\"div\", {\n className: \"introjs-disableInteraction\",\n });\n\n intro._targetElement.appendChild(disableInteractionLayer);\n }\n\n setHelperLayerPosition(intro, step, disableInteractionLayer);\n}\n\n/**\n * Creates the bullets layer\n * @private\n */\nfunction _createBullets(intro: IntroJs, targetElement: IntroStep): HTMLElement {\n const bulletsLayer = createElement(\"div\", {\n className: \"introjs-bullets\",\n });\n\n if (intro._options.showBullets === false) {\n bulletsLayer.style.display = \"none\";\n }\n\n const ulContainer = createElement(\"ul\");\n ulContainer.setAttribute(\"role\", \"tablist\");\n\n const anchorClick = function (this: HTMLElement) {\n const stepNumber = this.getAttribute(\"data-step-number\");\n if (stepNumber == null) return;\n\n intro.goToStep(parseInt(stepNumber, 10));\n };\n\n for (let i = 0; i < intro._introItems.length; i++) {\n const { step } = intro._introItems[i];\n\n const innerLi = createElement(\"li\");\n const anchorLink = createElement(\"a\");\n\n innerLi.setAttribute(\"role\", \"presentation\");\n anchorLink.setAttribute(\"role\", \"tab\");\n\n anchorLink.onclick = anchorClick;\n\n if (i === targetElement.step - 1) {\n anchorLink.className = \"active\";\n }\n\n setAnchorAsButton(anchorLink);\n anchorLink.innerHTML = \" \";\n anchorLink.setAttribute(\"data-step-number\", step.toString());\n\n innerLi.appendChild(anchorLink);\n ulContainer.appendChild(innerLi);\n }\n\n bulletsLayer.appendChild(ulContainer);\n\n return bulletsLayer;\n}\n\n/**\n * Deletes and recreates the bullets layer\n * @private\n */\nexport function _recreateBullets(intro: IntroJs, targetElement: IntroStep) {\n if (intro._options.showBullets) {\n const existing = document.querySelector(\".introjs-bullets\");\n\n if (existing && existing.parentNode) {\n existing.parentNode.replaceChild(\n _createBullets(intro, targetElement),\n existing\n );\n }\n }\n}\n\n/**\n * Updates the bullets\n */\nfunction _updateBullets(\n showBullets: boolean,\n oldReferenceLayer: HTMLElement,\n targetElement: IntroStep\n) {\n if (showBullets) {\n const oldRefActiveBullet = oldReferenceLayer.querySelector(\n \".introjs-bullets li > a.active\"\n );\n\n const oldRefBulletStepNumber = oldReferenceLayer.querySelector(\n `.introjs-bullets li > a[data-step-number=\"${targetElement.step}\"]`\n );\n\n if (oldRefActiveBullet && oldRefBulletStepNumber) {\n oldRefActiveBullet.className = \"\";\n oldRefBulletStepNumber.className = \"active\";\n }\n }\n}\n\n/**\n * Creates the progress-bar layer and elements\n * @private\n */\nfunction _createProgressBar(intro: IntroJs) {\n const progressLayer = createElement(\"div\");\n\n progressLayer.className = \"introjs-progress\";\n\n if (intro._options.showProgress === false) {\n progressLayer.style.display = \"none\";\n }\n\n const progressBar = createElement(\"div\", {\n className: \"introjs-progressbar\",\n });\n\n if (intro._options.progressBarAdditionalClass) {\n progressBar.className += \" \" + intro._options.progressBarAdditionalClass;\n }\n\n const progress = _getProgress(intro._currentStep, intro._introItems.length);\n progressBar.setAttribute(\"role\", \"progress\");\n progressBar.setAttribute(\"aria-valuemin\", \"0\");\n progressBar.setAttribute(\"aria-valuemax\", \"100\");\n progressBar.setAttribute(\"aria-valuenow\", progress.toString());\n progressBar.style.cssText = `width:${progress}%;`;\n\n progressLayer.appendChild(progressBar);\n\n return progressLayer;\n}\n\n/**\n * Updates an existing progress bar variables\n * @private\n */\nexport function _updateProgressBar(\n oldReferenceLayer: HTMLElement,\n currentStep: number,\n introItemsLength: number\n) {\n const progressBar = oldReferenceLayer.querySelector(\n \".introjs-progress .introjs-progressbar\"\n );\n\n if (!progressBar) return;\n\n const progress = _getProgress(currentStep, introItemsLength);\n\n progressBar.style.cssText = `width:${progress}%;`;\n progressBar.setAttribute(\"aria-valuenow\", progress.toString());\n}\n\n/**\n * Show an element on the page\n *\n * @api private\n */\nexport default async function _showElement(\n intro: IntroJs,\n targetElement: IntroStep\n) {\n if (isFunction(intro._introChangeCallback)) {\n await intro._introChangeCallback.call(intro, targetElement.element);\n }\n\n const oldHelperLayer = document.querySelector(\n \".introjs-helperLayer\"\n );\n const oldReferenceLayer = document.querySelector(\n \".introjs-tooltipReferenceLayer\"\n );\n let highlightClass = \"introjs-helperLayer\";\n let nextTooltipButton: HTMLElement;\n let prevTooltipButton: HTMLElement;\n let skipTooltipButton: HTMLElement;\n\n //check for a current step highlight class\n if (typeof targetElement.highlightClass === \"string\") {\n highlightClass += ` ${targetElement.highlightClass}`;\n }\n //check for options highlight class\n if (typeof intro._options.highlightClass === \"string\") {\n highlightClass += ` ${intro._options.highlightClass}`;\n }\n\n if (oldHelperLayer !== null && oldReferenceLayer !== null) {\n const oldHelperNumberLayer = oldReferenceLayer.querySelector(\n \".introjs-helperNumberLayer\"\n );\n const oldTooltipLayer = oldReferenceLayer.querySelector(\n \".introjs-tooltiptext\"\n ) as HTMLElement;\n const oldTooltipTitleLayer = oldReferenceLayer.querySelector(\n \".introjs-tooltip-title\"\n ) as HTMLElement;\n const oldArrowLayer = oldReferenceLayer.querySelector(\n \".introjs-arrow\"\n ) as HTMLElement;\n const oldTooltipContainer = oldReferenceLayer.querySelector(\n \".introjs-tooltip\"\n ) as HTMLElement;\n\n skipTooltipButton = oldReferenceLayer.querySelector(\n \".introjs-skipbutton\"\n ) as HTMLElement;\n prevTooltipButton = oldReferenceLayer.querySelector(\n \".introjs-prevbutton\"\n ) as HTMLElement;\n nextTooltipButton = oldReferenceLayer.querySelector(\n \".introjs-nextbutton\"\n ) as HTMLElement;\n\n //update or reset the helper highlight class\n oldHelperLayer.className = highlightClass;\n //hide the tooltip\n oldTooltipContainer.style.opacity = \"0\";\n oldTooltipContainer.style.display = \"none\";\n\n // if the target element is within a scrollable element\n scrollParentToElement(\n intro._options.scrollToElement,\n targetElement.element as HTMLElement\n );\n\n // set new position to helper layer\n setHelperLayerPosition(intro, targetElement, oldHelperLayer);\n setHelperLayerPosition(intro, targetElement, oldReferenceLayer);\n\n //remove old classes if the element still exist\n removeShowElement();\n\n //we should wait until the CSS3 transition is competed (it's 0.3 sec) to prevent incorrect `height` and `width` calculation\n if (intro._lastShowElementTimer) {\n window.clearTimeout(intro._lastShowElementTimer);\n }\n\n intro._lastShowElementTimer = window.setTimeout(() => {\n // set current step to the label\n if (oldHelperNumberLayer !== null) {\n oldHelperNumberLayer.innerHTML = `${targetElement.step} ${intro._options.stepNumbersOfLabel} ${intro._introItems.length}`;\n }\n\n // set current tooltip text\n oldTooltipLayer.innerHTML = targetElement.intro || \"\";\n\n // set current tooltip title\n oldTooltipTitleLayer.innerHTML = targetElement.title || \"\";\n\n //set the tooltip position\n oldTooltipContainer.style.display = \"block\";\n placeTooltip(intro, targetElement, oldTooltipContainer, oldArrowLayer);\n\n //change active bullet\n _updateBullets(\n intro._options.showBullets,\n oldReferenceLayer,\n targetElement\n );\n\n _updateProgressBar(\n oldReferenceLayer,\n intro._currentStep,\n intro._introItems.length\n );\n\n //show the tooltip\n oldTooltipContainer.style.opacity = \"1\";\n\n //reset button focus\n if (\n typeof nextTooltipButton !== \"undefined\" &&\n nextTooltipButton !== null &&\n /introjs-donebutton/gi.test(nextTooltipButton.className)\n ) {\n // skip button is now \"done\" button\n nextTooltipButton.focus();\n } else if (\n typeof nextTooltipButton !== \"undefined\" &&\n nextTooltipButton !== null\n ) {\n //still in the tour, focus on next\n nextTooltipButton.focus();\n }\n\n // change the scroll of the window, if needed\n scrollTo(\n intro._options.scrollToElement,\n targetElement.scrollTo,\n intro._options.scrollPadding,\n targetElement.element as HTMLElement,\n oldTooltipLayer\n );\n }, 350);\n\n // end of old element if-else condition\n } else {\n const helperLayer = createElement(\"div\", {\n className: highlightClass,\n });\n const referenceLayer = createElement(\"div\", {\n className: \"introjs-tooltipReferenceLayer\",\n });\n const arrowLayer = createElement(\"div\", {\n className: \"introjs-arrow\",\n });\n const tooltipLayer = createElement(\"div\", {\n className: \"introjs-tooltip\",\n });\n const tooltipTextLayer = createElement(\"div\", {\n className: \"introjs-tooltiptext\",\n });\n const tooltipHeaderLayer = createElement(\"div\", {\n className: \"introjs-tooltip-header\",\n });\n const tooltipTitleLayer = createElement(\"h1\", {\n className: \"introjs-tooltip-title\",\n });\n\n const buttonsLayer = createElement(\"div\");\n\n setStyle(helperLayer, {\n \"box-shadow\": `0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ${intro._options.overlayOpacity.toString()}) 0 0 0 5000px`,\n });\n\n // target is within a scrollable element\n scrollParentToElement(\n intro._options.scrollToElement,\n targetElement.element as HTMLElement\n );\n\n //set new position to helper layer\n setHelperLayerPosition(intro, targetElement, helperLayer);\n setHelperLayerPosition(intro, targetElement, referenceLayer);\n\n //add helper layer to target element\n appendChild(intro._targetElement, helperLayer, true);\n appendChild(intro._targetElement, referenceLayer);\n\n tooltipTextLayer.innerHTML = targetElement.intro;\n tooltipTitleLayer.innerHTML = targetElement.title;\n\n buttonsLayer.className = \"introjs-tooltipbuttons\";\n if (intro._options.showButtons === false) {\n buttonsLayer.style.display = \"none\";\n }\n\n tooltipHeaderLayer.appendChild(tooltipTitleLayer);\n tooltipLayer.appendChild(tooltipHeaderLayer);\n tooltipLayer.appendChild(tooltipTextLayer);\n\n // \"Do not show again\" checkbox\n if (intro._options.dontShowAgain) {\n const dontShowAgainWrapper = createElement(\"div\", {\n className: \"introjs-dontShowAgain\",\n });\n const dontShowAgainCheckbox = createElement(\"input\", {\n type: \"checkbox\",\n id: \"introjs-dontShowAgain\",\n name: \"introjs-dontShowAgain\",\n });\n dontShowAgainCheckbox.onchange = (e) => {\n intro.setDontShowAgain((e.target).checked);\n };\n const dontShowAgainCheckboxLabel = createElement(\"label\", {\n htmlFor: \"introjs-dontShowAgain\",\n });\n dontShowAgainCheckboxLabel.innerText = intro._options.dontShowAgainLabel;\n dontShowAgainWrapper.appendChild(dontShowAgainCheckbox);\n dontShowAgainWrapper.appendChild(dontShowAgainCheckboxLabel);\n\n tooltipLayer.appendChild(dontShowAgainWrapper);\n }\n\n tooltipLayer.appendChild(_createBullets(intro, targetElement));\n tooltipLayer.appendChild(_createProgressBar(intro));\n\n // add helper layer number\n const helperNumberLayer = createElement(\"div\");\n\n if (intro._options.showStepNumbers === true) {\n helperNumberLayer.className = \"introjs-helperNumberLayer\";\n helperNumberLayer.innerHTML = `${targetElement.step} ${intro._options.stepNumbersOfLabel} ${intro._introItems.length}`;\n tooltipLayer.appendChild(helperNumberLayer);\n }\n\n tooltipLayer.appendChild(arrowLayer);\n referenceLayer.appendChild(tooltipLayer);\n\n //next button\n nextTooltipButton = createElement(\"a\");\n\n nextTooltipButton.onclick = async () => {\n if (intro._introItems.length - 1 !== intro._currentStep) {\n await nextStep(intro);\n } else if (/introjs-donebutton/gi.test(nextTooltipButton.className)) {\n if (isFunction(intro._introCompleteCallback)) {\n await intro._introCompleteCallback.call(\n intro,\n intro._currentStep,\n \"done\"\n );\n }\n\n await exitIntro(intro, intro._targetElement);\n }\n };\n\n setAnchorAsButton(nextTooltipButton);\n nextTooltipButton.innerHTML = intro._options.nextLabel;\n\n //previous button\n prevTooltipButton = createElement(\"a\");\n\n prevTooltipButton.onclick = async () => {\n if (intro._currentStep > 0) {\n await previousStep(intro);\n }\n };\n\n setAnchorAsButton(prevTooltipButton);\n prevTooltipButton.innerHTML = intro._options.prevLabel;\n\n //skip button\n skipTooltipButton = createElement(\"a\", {\n className: \"introjs-skipbutton\",\n });\n\n setAnchorAsButton(skipTooltipButton);\n skipTooltipButton.innerHTML = intro._options.skipLabel;\n\n skipTooltipButton.onclick = async () => {\n if (\n intro._introItems.length - 1 === intro._currentStep &&\n isFunction(intro._introCompleteCallback)\n ) {\n await intro._introCompleteCallback.call(\n intro,\n intro._currentStep,\n \"skip\"\n );\n }\n\n if (isFunction(intro._introSkipCallback)) {\n await intro._introSkipCallback.call(intro, intro._currentStep);\n }\n\n await exitIntro(intro, intro._targetElement);\n };\n\n tooltipHeaderLayer.appendChild(skipTooltipButton);\n\n // in order to prevent displaying previous button always\n if (intro._introItems.length > 1) {\n buttonsLayer.appendChild(prevTooltipButton);\n }\n\n // we always need the next button because this\n // button changes to \"Done\" in the last step of the tour\n buttonsLayer.appendChild(nextTooltipButton);\n tooltipLayer.appendChild(buttonsLayer);\n\n // set proper position\n placeTooltip(intro, targetElement, tooltipLayer, arrowLayer);\n\n // change the scroll of the window, if needed\n scrollTo(\n intro._options.scrollToElement,\n targetElement.scrollTo,\n intro._options.scrollPadding,\n targetElement.element as HTMLElement,\n tooltipLayer\n );\n\n //end of new element if-else condition\n }\n\n // removing previous disable interaction layer\n const disableInteractionLayer = intro._targetElement.querySelector(\n \".introjs-disableInteraction\"\n );\n if (disableInteractionLayer && disableInteractionLayer.parentNode) {\n disableInteractionLayer.parentNode.removeChild(disableInteractionLayer);\n }\n\n //disable interaction\n if (targetElement.disableInteraction) {\n _disableInteraction(intro, targetElement);\n }\n\n // when it's the first step of tour\n if (intro._currentStep === 0 && intro._introItems.length > 1) {\n if (\n typeof nextTooltipButton !== \"undefined\" &&\n nextTooltipButton !== null\n ) {\n nextTooltipButton.className = `${intro._options.buttonClass} introjs-nextbutton`;\n nextTooltipButton.innerHTML = intro._options.nextLabel;\n }\n\n if (intro._options.hidePrev === true) {\n if (\n typeof prevTooltipButton !== \"undefined\" &&\n prevTooltipButton !== null\n ) {\n prevTooltipButton.className = `${intro._options.buttonClass} introjs-prevbutton introjs-hidden`;\n }\n if (\n typeof nextTooltipButton !== \"undefined\" &&\n nextTooltipButton !== null\n ) {\n addClass(nextTooltipButton, \"introjs-fullbutton\");\n }\n } else {\n if (\n typeof prevTooltipButton !== \"undefined\" &&\n prevTooltipButton !== null\n ) {\n prevTooltipButton.className = `${intro._options.buttonClass} introjs-prevbutton introjs-disabled`;\n }\n }\n } else if (\n intro._introItems.length - 1 === intro._currentStep ||\n intro._introItems.length === 1\n ) {\n // last step of tour\n if (\n typeof prevTooltipButton !== \"undefined\" &&\n prevTooltipButton !== null\n ) {\n prevTooltipButton.className = `${intro._options.buttonClass} introjs-prevbutton`;\n }\n\n if (intro._options.hideNext === true) {\n if (\n typeof nextTooltipButton !== \"undefined\" &&\n nextTooltipButton !== null\n ) {\n nextTooltipButton.className = `${intro._options.buttonClass} introjs-nextbutton introjs-hidden`;\n }\n if (\n typeof prevTooltipButton !== \"undefined\" &&\n prevTooltipButton !== null\n ) {\n addClass(prevTooltipButton, \"introjs-fullbutton\");\n }\n } else {\n if (\n typeof nextTooltipButton !== \"undefined\" &&\n nextTooltipButton !== null\n ) {\n if (intro._options.nextToDone === true) {\n nextTooltipButton.innerHTML = intro._options.doneLabel;\n addClass(\n nextTooltipButton,\n `${intro._options.buttonClass} introjs-nextbutton introjs-donebutton`\n );\n } else {\n nextTooltipButton.className = `${intro._options.buttonClass} introjs-nextbutton introjs-disabled`;\n }\n }\n }\n } else {\n // steps between start and end\n if (\n typeof prevTooltipButton !== \"undefined\" &&\n prevTooltipButton !== null\n ) {\n prevTooltipButton.className = `${intro._options.buttonClass} introjs-prevbutton`;\n }\n if (\n typeof nextTooltipButton !== \"undefined\" &&\n nextTooltipButton !== null\n ) {\n nextTooltipButton.className = `${intro._options.buttonClass} introjs-nextbutton`;\n nextTooltipButton.innerHTML = intro._options.nextLabel;\n }\n }\n\n if (typeof prevTooltipButton !== \"undefined\" && prevTooltipButton !== null) {\n prevTooltipButton.setAttribute(\"role\", \"button\");\n }\n if (typeof nextTooltipButton !== \"undefined\" && nextTooltipButton !== null) {\n nextTooltipButton.setAttribute(\"role\", \"button\");\n }\n if (typeof skipTooltipButton !== \"undefined\" && skipTooltipButton !== null) {\n skipTooltipButton.setAttribute(\"role\", \"button\");\n }\n\n //Set focus on \"next\" button, so that hitting Enter always moves you onto the next step\n if (typeof nextTooltipButton !== \"undefined\" && nextTooltipButton !== null) {\n nextTooltipButton.focus();\n }\n\n setShowElement(targetElement.element as HTMLElement);\n\n if (isFunction(intro._introAfterChangeCallback)) {\n await intro._introAfterChangeCallback.call(intro, targetElement.element);\n }\n}\n","import isFunction from \"../util/isFunction\";\nimport exitIntro from \"./exitIntro\";\nimport showElement from \"./showElement\";\nimport { IntroJs } from \"../intro\";\n\nexport type ScrollTo = \"off\" | \"element\" | \"tooltip\";\n\nexport type TooltipPosition =\n | \"floating\"\n | \"top\"\n | \"bottom\"\n | \"left\"\n | \"right\"\n | \"top-right-aligned\"\n | \"top-left-aligned\"\n | \"top-middle-aligned\"\n | \"bottom-right-aligned\"\n | \"bottom-left-aligned\"\n | \"bottom-middle-aligned\";\n\nexport type HintPosition =\n | \"top-left\"\n | \"top-right\"\n | \"top-middle\"\n | \"bottom-left\"\n | \"bottom-right\"\n | \"bottom-middle\"\n | \"middle-left\"\n | \"middle-right\"\n | \"middle-middle\";\n\nexport type IntroStep = {\n step: number;\n title: string;\n intro: string;\n tooltipClass?: string;\n highlightClass?: string;\n element?: HTMLElement | string | null;\n position: TooltipPosition;\n scrollTo: ScrollTo;\n disableInteraction?: boolean;\n};\n\nexport type HintStep = {\n element?: HTMLElement | string | null;\n tooltipClass?: string;\n position: TooltipPosition;\n hint?: string;\n hintTargetElement?: HTMLElement;\n hintAnimation?: boolean;\n hintPosition: HintPosition;\n};\n\n/**\n * Go to specific step of introduction\n *\n * @api private\n */\nexport async function goToStep(intro: IntroJs, step: number) {\n //because steps starts with zero\n intro._currentStep = step - 2;\n if (typeof intro._introItems !== \"undefined\") {\n await nextStep(intro);\n }\n}\n\n/**\n * Go to the specific step of introduction with the explicit [data-step] number\n *\n * @api private\n */\nexport async function goToStepNumber(intro: IntroJs, step: number) {\n intro._currentStepNumber = step;\n if (typeof intro._introItems !== \"undefined\") {\n await nextStep(intro);\n }\n}\n\n/**\n * Go to next step on intro\n *\n * @api private\n */\nexport async function nextStep(intro: IntroJs) {\n intro._direction = \"forward\";\n\n if (typeof intro._currentStepNumber !== \"undefined\") {\n for (let i = 0; i < intro._introItems.length; i++) {\n const item = intro._introItems[i];\n if (item.step === intro._currentStepNumber) {\n intro._currentStep = i - 1;\n intro._currentStepNumber = undefined;\n }\n }\n }\n\n if (intro._currentStep === -1) {\n intro._currentStep = 0;\n } else {\n ++intro._currentStep;\n }\n\n const nextStep = intro._introItems[intro._currentStep];\n let continueStep = true;\n\n if (isFunction(intro._introBeforeChangeCallback)) {\n continueStep = await intro._introBeforeChangeCallback.call(\n intro,\n nextStep && (nextStep.element as HTMLElement),\n intro._currentStep,\n intro._direction\n );\n }\n\n // if `onbeforechange` returned `false`, stop displaying the element\n if (continueStep === false) {\n --intro._currentStep;\n return false;\n }\n\n if (intro._introItems.length <= intro._currentStep) {\n // end of the intro\n // check if any callback is defined\n if (isFunction(intro._introCompleteCallback)) {\n await intro._introCompleteCallback.call(intro, intro._currentStep, \"end\");\n }\n\n await exitIntro(intro, intro._targetElement);\n\n return false;\n }\n\n await showElement(intro, nextStep);\n\n return true;\n}\n\n/**\n * Go to previous step on intro\n *\n * @api private\n */\nexport async function previousStep(intro: IntroJs) {\n intro._direction = \"backward\";\n\n if (intro._currentStep <= 0) {\n return false;\n }\n\n --intro._currentStep;\n\n const nextStep = intro._introItems[intro._currentStep];\n let continueStep = true;\n\n if (isFunction(intro._introBeforeChangeCallback)) {\n continueStep = await intro._introBeforeChangeCallback.call(\n intro,\n nextStep && (nextStep.element as HTMLElement),\n intro._currentStep,\n intro._direction\n );\n }\n\n // if `onbeforechange` returned `false`, stop displaying the element\n if (continueStep === false) {\n ++intro._currentStep;\n return false;\n }\n\n await showElement(intro, nextStep);\n\n return true;\n}\n","import { nextStep, previousStep } from \"./steps\";\nimport exitIntro from \"./exitIntro\";\nimport { IntroJs } from \"../intro\";\nimport isFunction from \"../util/isFunction\";\n\n/**\n * on keyCode:\n * https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode\n * This feature has been removed from the Web standards.\n * Though some browsers may still support it, it is in\n * the process of being dropped.\n * Instead, you should use KeyboardEvent.code,\n * if it's implemented.\n *\n * jQuery's approach is to test for\n * (1) e.which, then\n * (2) e.charCode, then\n * (3) e.keyCode\n * https://github.com/jquery/jquery/blob/a6b0705294d336ae2f63f7276de0da1195495363/src/event.js#L638\n */\nexport default async function onKeyDown(intro: IntroJs, e: KeyboardEvent) {\n let code = e.code === undefined ? e.which : e.code;\n\n // if e.which is null\n if (code === null) {\n code = e.charCode === null ? e.keyCode : e.charCode;\n }\n\n if ((code === \"Escape\" || code === 27) && intro._options.exitOnEsc === true) {\n //escape key pressed, exit the intro\n //check if exit callback is defined\n await exitIntro(intro, intro._targetElement);\n } else if (code === \"ArrowLeft\" || code === 37) {\n //left arrow\n await previousStep(intro);\n } else if (code === \"ArrowRight\" || code === 39) {\n //right arrow\n await nextStep(intro);\n } else if (code === \"Enter\" || code === \"NumpadEnter\" || code === 13) {\n //srcElement === ie\n const target = (e.target || e.srcElement) as HTMLElement;\n if (target && target.className.match(\"introjs-prevbutton\")) {\n //user hit enter while focusing on previous button\n await previousStep(intro);\n } else if (target && target.className.match(\"introjs-skipbutton\")) {\n //user hit enter while focusing on skip button\n if (\n intro._introItems.length - 1 === intro._currentStep &&\n isFunction(intro._introCompleteCallback)\n ) {\n await intro._introCompleteCallback.call(\n intro,\n intro._currentStep,\n \"skip\"\n );\n }\n\n await exitIntro(intro, intro._targetElement);\n } else if (target && target.getAttribute(\"data-step-number\")) {\n // user hit enter while focusing on step bullet\n target.click();\n } else {\n //default behavior for responding to enter\n await nextStep(intro);\n }\n\n //prevent default behaviour on hitting Enter, to prevent steps being skipped in some browsers\n if (e.preventDefault) {\n e.preventDefault();\n } else {\n e.returnValue = false;\n }\n }\n}\n","/**\n * Makes a copy of an object\n * @api private\n */\nexport default function cloneObject(source: T): T {\n if (source === null || typeof source !== \"object\" || \"nodeType\" in source) {\n return source;\n }\n\n const temp = {} as T;\n\n for (const key in source) {\n // @ts-ignore:next-line\n if (\"jQuery\" in window && source[key] instanceof window.jQuery) {\n temp[key] = source[key];\n } else {\n temp[key] = cloneObject(source[key]);\n }\n }\n return temp;\n}\n","export default function debounce(\n func: Function,\n timeout: number\n): (...args: any) => void {\n let timer: number;\n\n return (...args) => {\n window.clearTimeout(timer);\n\n timer = window.setTimeout(() => {\n func(args);\n }, timeout);\n };\n}\n","import addClass from \"../util/addClass\";\nimport removeClass from \"../util/removeClass\";\nimport isFixed from \"../util/isFixed\";\nimport getOffset from \"../util/getOffset\";\nimport cloneObject from \"../util/cloneObject\";\nimport DOMEvent from \"./DOMEvent\";\nimport setAnchorAsButton from \"../util/setAnchorAsButton\";\nimport setHelperLayerPosition from \"./setHelperLayerPosition\";\nimport placeTooltip from \"./placeTooltip\";\nimport createElement from \"../util/createElement\";\nimport debounce from \"../util/debounce\";\nimport { HintPosition, HintStep, TooltipPosition } from \"./steps\";\nimport { IntroJs } from \"../intro\";\nimport isFunction from \"../util/isFunction\";\n\n/**\n * Get a queryselector within the hint wrapper\n */\nexport function hintQuerySelectorAll(selector: string): HTMLElement[] {\n const hintsWrapper = document.querySelector(\".introjs-hints\");\n return hintsWrapper\n ? Array.from(hintsWrapper.querySelectorAll(selector))\n : [];\n}\n\n/**\n * Hide a hint\n *\n * @api private\n */\nexport async function hideHint(intro: IntroJs, stepId: number) {\n const hint = hintQuerySelectorAll(`.introjs-hint[data-step=\"${stepId}\"]`)[0];\n\n removeHintTooltip();\n\n if (hint) {\n addClass(hint, \"introjs-hidehint\");\n }\n\n // call the callback function (if any)\n if (isFunction(intro._hintCloseCallback)) {\n await intro._hintCloseCallback.call(intro, stepId);\n }\n}\n\n/**\n * Hide all hints\n *\n * @api private\n */\nexport async function hideHints(intro: IntroJs) {\n const hints = hintQuerySelectorAll(\".introjs-hint\");\n\n for (const hint of hints) {\n const step = hint.getAttribute(\"data-step\");\n if (!step) continue;\n\n await hideHint(intro, parseInt(step, 10));\n }\n}\n\n/**\n * Show all hints\n *\n * @api private\n */\nexport async function showHints(intro: IntroJs) {\n const hints = hintQuerySelectorAll(\".introjs-hint\");\n\n if (hints && hints.length) {\n for (const hint of hints) {\n const step = hint.getAttribute(\"data-step\");\n if (!step) continue;\n\n showHint(parseInt(step, 10));\n }\n } else {\n await populateHints(intro, intro._targetElement);\n }\n}\n\n/**\n * Show a hint\n *\n * @api private\n */\nexport function showHint(stepId: number) {\n const hint = hintQuerySelectorAll(`.introjs-hint[data-step=\"${stepId}\"]`)[0];\n\n if (hint) {\n removeClass(hint, /introjs-hidehint/g);\n }\n}\n\n/**\n * Removes all hint elements on the page\n * Useful when you want to destroy the elements and add them again (e.g. a modal or popup)\n *\n * @api private\n */\nexport function removeHints(intro: IntroJs) {\n const hints = hintQuerySelectorAll(\".introjs-hint\");\n\n for (const hint of hints) {\n const step = hint.getAttribute(\"data-step\");\n if (!step) continue;\n\n removeHint(parseInt(step, 10));\n }\n\n DOMEvent.off(document, \"click\", removeHintTooltip, intro, false);\n DOMEvent.off(window, \"resize\", reAlignHints, intro, true);\n\n if (intro._hintsAutoRefreshFunction) {\n DOMEvent.off(\n window,\n \"scroll\",\n intro._hintsAutoRefreshFunction,\n intro,\n true\n );\n }\n}\n\n/**\n * Remove one single hint element from the page\n * Useful when you want to destroy the element and add them again (e.g. a modal or popup)\n * Use removeHints if you want to remove all elements.\n *\n * @api private\n */\nexport function removeHint(stepId: number) {\n const hint = hintQuerySelectorAll(`.introjs-hint[data-step=\"${stepId}\"]`)[0];\n\n if (hint && hint.parentNode) {\n hint.parentNode.removeChild(hint);\n }\n}\n\n/**\n * Add all available hints to the page\n *\n * @api private\n */\nexport async function addHints(intro: IntroJs) {\n let hintsWrapper = document.querySelector(\".introjs-hints\");\n\n if (hintsWrapper === null) {\n hintsWrapper = createElement(\"div\", {\n className: \"introjs-hints\",\n });\n }\n\n /**\n * Returns an event handler unique to the hint iteration\n */\n const getHintClick = (i: number) => (e: Event) => {\n const evt = e ? e : window.event;\n\n if (evt && evt.stopPropagation) {\n evt.stopPropagation();\n }\n\n if (evt && evt.cancelBubble !== null) {\n evt.cancelBubble = true;\n }\n\n showHintDialog(intro, i);\n };\n\n for (let i = 0; i < intro._hintItems.length; i++) {\n const item = intro._hintItems[i];\n\n // avoid append a hint twice\n if (document.querySelector(`.introjs-hint[data-step=\"${i}\"]`)) {\n return;\n }\n\n const hint = createElement(\"a\", {\n className: \"introjs-hint\",\n });\n setAnchorAsButton(hint);\n\n hint.onclick = getHintClick(i);\n\n if (!item.hintAnimation) {\n addClass(hint, \"introjs-hint-no-anim\");\n }\n\n // hint's position should be fixed if the target element's position is fixed\n if (isFixed(item.element as HTMLElement)) {\n addClass(hint, \"introjs-fixedhint\");\n }\n\n const hintDot = createElement(\"div\", {\n className: \"introjs-hint-dot\",\n });\n\n const hintPulse = createElement(\"div\", {\n className: \"introjs-hint-pulse\",\n });\n\n hint.appendChild(hintDot);\n hint.appendChild(hintPulse);\n hint.setAttribute(\"data-step\", i.toString());\n\n // we swap the hint element with target element\n // because _setHelperLayerPosition uses `element` property\n item.hintTargetElement = item.element as HTMLElement;\n item.element = hint;\n\n // align the hint position\n alignHintPosition(\n item.hintPosition,\n hint,\n item.hintTargetElement as HTMLElement\n );\n\n hintsWrapper.appendChild(hint);\n }\n\n // adding the hints wrapper\n document.body.appendChild(hintsWrapper);\n\n // call the callback function (if any)\n if (isFunction(intro._hintsAddedCallback)) {\n await intro._hintsAddedCallback.call(intro);\n }\n\n if (intro._options.hintAutoRefreshInterval >= 0) {\n intro._hintsAutoRefreshFunction = debounce(\n () => reAlignHints(intro),\n intro._options.hintAutoRefreshInterval\n );\n DOMEvent.on(window, \"scroll\", intro._hintsAutoRefreshFunction, intro, true);\n }\n}\n\n/**\n * Aligns hint position\n *\n * @api private\n */\nexport function alignHintPosition(\n position: HintPosition,\n hintElement: HTMLElement,\n targetElement?: HTMLElement\n) {\n if (typeof targetElement === \"undefined\") {\n return;\n }\n\n // get/calculate offset of target element\n const offset = getOffset(targetElement);\n const iconWidth = 20;\n const iconHeight = 20;\n\n // align the hint element\n switch (position) {\n default:\n case \"top-left\":\n hintElement.style.left = `${offset.left}px`;\n hintElement.style.top = `${offset.top}px`;\n break;\n case \"top-right\":\n hintElement.style.left = `${offset.left + offset.width - iconWidth}px`;\n hintElement.style.top = `${offset.top}px`;\n break;\n case \"bottom-left\":\n hintElement.style.left = `${offset.left}px`;\n hintElement.style.top = `${offset.top + offset.height - iconHeight}px`;\n break;\n case \"bottom-right\":\n hintElement.style.left = `${offset.left + offset.width - iconWidth}px`;\n hintElement.style.top = `${offset.top + offset.height - iconHeight}px`;\n break;\n case \"middle-left\":\n hintElement.style.left = `${offset.left}px`;\n hintElement.style.top = `${\n offset.top + (offset.height - iconHeight) / 2\n }px`;\n break;\n case \"middle-right\":\n hintElement.style.left = `${offset.left + offset.width - iconWidth}px`;\n hintElement.style.top = `${\n offset.top + (offset.height - iconHeight) / 2\n }px`;\n break;\n case \"middle-middle\":\n hintElement.style.left = `${\n offset.left + (offset.width - iconWidth) / 2\n }px`;\n hintElement.style.top = `${\n offset.top + (offset.height - iconHeight) / 2\n }px`;\n break;\n case \"bottom-middle\":\n hintElement.style.left = `${\n offset.left + (offset.width - iconWidth) / 2\n }px`;\n hintElement.style.top = `${offset.top + offset.height - iconHeight}px`;\n break;\n case \"top-middle\":\n hintElement.style.left = `${\n offset.left + (offset.width - iconWidth) / 2\n }px`;\n hintElement.style.top = `${offset.top}px`;\n break;\n }\n}\n\n/**\n * Triggers when user clicks on the hint element\n *\n * @api private\n */\nexport async function showHintDialog(intro: IntroJs, stepId: number) {\n const hintElement = document.querySelector(\n `.introjs-hint[data-step=\"${stepId}\"]`\n ) as HTMLElement;\n const item = intro._hintItems[stepId];\n\n // call the callback function (if any)\n if (isFunction(intro._hintClickCallback)) {\n await intro._hintClickCallback.call(intro, hintElement, item, stepId);\n }\n\n // remove all open tooltips\n const removedStep = removeHintTooltip();\n\n // to toggle the tooltip\n if (removedStep !== undefined && parseInt(removedStep, 10) === stepId) {\n return;\n }\n\n const tooltipLayer = createElement(\"div\", {\n className: \"introjs-tooltip\",\n });\n const tooltipTextLayer = createElement(\"div\");\n const arrowLayer = createElement(\"div\");\n const referenceLayer = createElement(\"div\");\n\n tooltipLayer.onclick = (e: Event) => {\n //IE9 & Other Browsers\n if (e.stopPropagation) {\n e.stopPropagation();\n }\n //IE8 and Lower\n else {\n e.cancelBubble = true;\n }\n };\n\n tooltipTextLayer.className = \"introjs-tooltiptext\";\n\n const tooltipWrapper = createElement(\"p\");\n tooltipWrapper.innerHTML = item.hint || \"\";\n tooltipTextLayer.appendChild(tooltipWrapper);\n\n if (intro._options.hintShowButton) {\n const closeButton = createElement(\"a\");\n closeButton.className = intro._options.buttonClass;\n closeButton.setAttribute(\"role\", \"button\");\n closeButton.innerHTML = intro._options.hintButtonLabel;\n closeButton.onclick = () => hideHint(intro, stepId);\n tooltipTextLayer.appendChild(closeButton);\n }\n\n arrowLayer.className = \"introjs-arrow\";\n tooltipLayer.appendChild(arrowLayer);\n\n tooltipLayer.appendChild(tooltipTextLayer);\n\n const step = hintElement.getAttribute(\"data-step\") || \"\";\n\n // set current step for _placeTooltip function\n intro._currentStep = parseInt(step, 10);\n const currentStep = intro._hintItems[intro._currentStep];\n\n // align reference layer position\n referenceLayer.className =\n \"introjs-tooltipReferenceLayer introjs-hintReference\";\n referenceLayer.setAttribute(\"data-step\", step);\n setHelperLayerPosition(intro, currentStep, referenceLayer);\n\n referenceLayer.appendChild(tooltipLayer);\n document.body.appendChild(referenceLayer);\n\n // set proper position\n placeTooltip(intro, currentStep, tooltipLayer, arrowLayer, true);\n}\n\n/**\n * Removes open hint (tooltip hint)\n *\n * @api private\n */\nexport function removeHintTooltip(): string | undefined {\n const tooltip = document.querySelector(\".introjs-hintReference\");\n\n if (tooltip && tooltip.parentNode) {\n const step = tooltip.getAttribute(\"data-step\");\n if (!step) return undefined;\n\n tooltip.parentNode.removeChild(tooltip);\n\n return step;\n }\n\n return undefined;\n}\n\n/**\n * Start parsing hint items\n *\n * @api private\n */\nexport async function populateHints(\n intro: IntroJs,\n targetElm: HTMLElement\n): Promise {\n intro._hintItems = [];\n\n if (intro._options.hints && intro._options.hints.length > 0) {\n for (const hint of intro._options.hints) {\n const currentItem = cloneObject(hint);\n\n if (typeof currentItem.element === \"string\") {\n //grab the element with given selector from the page\n currentItem.element = document.querySelector(\n currentItem.element\n ) as HTMLElement;\n }\n\n currentItem.hintPosition =\n currentItem.hintPosition || intro._options.hintPosition;\n currentItem.hintAnimation =\n currentItem.hintAnimation || intro._options.hintAnimation;\n\n if (currentItem.element !== null) {\n intro._hintItems.push(currentItem as HintStep);\n }\n }\n } else {\n const hints = Array.from(\n targetElm.querySelectorAll(\"*[data-hint]\")\n );\n\n if (!hints || !hints.length) {\n return false;\n }\n\n //first add intro items with data-step\n for (const currentElement of hints) {\n // hint animation\n let hintAnimationAttr = currentElement.getAttribute(\n \"data-hint-animation\"\n );\n\n let hintAnimation: boolean = intro._options.hintAnimation;\n if (hintAnimationAttr) {\n hintAnimation = hintAnimationAttr === \"true\";\n }\n\n intro._hintItems.push({\n element: currentElement,\n hint: currentElement.getAttribute(\"data-hint\") || \"\",\n hintPosition: (currentElement.getAttribute(\"data-hint-position\") ||\n intro._options.hintPosition) as HintPosition,\n hintAnimation,\n tooltipClass:\n currentElement.getAttribute(\"data-tooltip-class\") || undefined,\n position: (currentElement.getAttribute(\"data-position\") ||\n intro._options.tooltipPosition) as TooltipPosition,\n });\n }\n }\n\n await addHints(intro);\n\n DOMEvent.on(document, \"click\", removeHintTooltip, intro, false);\n DOMEvent.on(window, \"resize\", reAlignHints, intro, true);\n\n return true;\n}\n\n/**\n * Re-aligns all hint elements\n *\n * @api private\n */\nexport function reAlignHints(intro: IntroJs) {\n for (const { hintTargetElement, hintPosition, element } of intro._hintItems) {\n alignHintPosition(hintPosition, element as HTMLElement, hintTargetElement);\n }\n}\n","import { IntroJs } from \"../intro\";\nimport cloneObject from \"../util/cloneObject\";\nimport createElement from \"../util/createElement\";\nimport { IntroStep, ScrollTo, TooltipPosition } from \"./steps\";\n\n/**\n * Finds all Intro steps from the data-* attributes and the options.steps array\n *\n * @api private\n */\nexport default function fetchIntroSteps(\n intro: IntroJs,\n targetElm: HTMLElement\n) {\n const allIntroSteps: HTMLElement[] = Array.from(\n targetElm.querySelectorAll(\"*[data-intro]\")\n );\n let introItems: IntroStep[] = [];\n\n if (intro._options.steps && intro._options.steps.length) {\n //use steps passed programmatically\n for (const step of intro._options.steps) {\n const currentItem = cloneObject(step);\n\n //set the step\n currentItem.step = introItems.length + 1;\n\n currentItem.title = currentItem.title || \"\";\n\n //use querySelector function only when developer used CSS selector\n if (typeof currentItem.element === \"string\") {\n //grab the element with given selector from the page\n currentItem.element =\n document.querySelector(currentItem.element) || undefined;\n }\n\n //intro without element\n if (\n typeof currentItem.element === \"undefined\" ||\n currentItem.element === null\n ) {\n let floatingElementQuery = document.querySelector(\n \".introjsFloatingElement\"\n );\n\n if (floatingElementQuery === null) {\n floatingElementQuery = createElement(\"div\", {\n className: \"introjsFloatingElement\",\n });\n\n document.body.appendChild(floatingElementQuery);\n }\n\n currentItem.element = floatingElementQuery;\n currentItem.position = \"floating\";\n }\n\n currentItem.position =\n currentItem.position ||\n (intro._options.tooltipPosition as TooltipPosition);\n currentItem.scrollTo = currentItem.scrollTo || intro._options.scrollTo;\n\n if (typeof currentItem.disableInteraction === \"undefined\") {\n currentItem.disableInteraction = intro._options.disableInteraction;\n }\n\n if (currentItem.element !== null) {\n introItems.push(currentItem as IntroStep);\n }\n }\n } else {\n //use steps from data-* annotations\n const elmsLength = allIntroSteps.length;\n let disableInteraction: boolean;\n\n //if there's no element to intro\n if (elmsLength < 1) {\n return [];\n }\n\n for (const currentElement of allIntroSteps) {\n // start intro for groups of elements\n if (\n intro._options.group &&\n currentElement.getAttribute(\"data-intro-group\") !== intro._options.group\n ) {\n continue;\n }\n\n // skip hidden elements\n if (currentElement.style.display === \"none\") {\n continue;\n }\n\n const step = parseInt(currentElement.getAttribute(\"data-step\") || \"\", 10);\n\n disableInteraction = intro._options.disableInteraction;\n if (currentElement.hasAttribute(\"data-disable-interaction\")) {\n disableInteraction = !!currentElement.getAttribute(\n \"data-disable-interaction\"\n );\n }\n\n if (step > 0) {\n introItems[step - 1] = {\n step: step,\n element: currentElement,\n title: currentElement.getAttribute(\"data-title\") || \"\",\n intro: currentElement.getAttribute(\"data-intro\") || \"\",\n tooltipClass:\n currentElement.getAttribute(\"data-tooltip-class\") || undefined,\n highlightClass:\n currentElement.getAttribute(\"data-highlight-class\") || undefined,\n position: (currentElement.getAttribute(\"data-position\") ||\n intro._options.tooltipPosition) as TooltipPosition,\n scrollTo:\n (currentElement.getAttribute(\"data-scroll-to\") as ScrollTo) ||\n intro._options.scrollTo,\n disableInteraction,\n };\n }\n }\n\n //next add intro items without data-step\n //todo: we need a cleanup here, two loops are redundant\n let nextStep = 0;\n\n for (const currentElement of allIntroSteps) {\n // start intro for groups of elements\n if (\n intro._options.group &&\n currentElement.getAttribute(\"data-intro-group\") !== intro._options.group\n ) {\n continue;\n }\n\n if (currentElement.getAttribute(\"data-step\") === null) {\n while (true) {\n if (typeof introItems[nextStep] === \"undefined\") {\n break;\n } else {\n nextStep++;\n }\n }\n\n if (currentElement.hasAttribute(\"data-disable-interaction\")) {\n disableInteraction = !!currentElement.getAttribute(\n \"data-disable-interaction\"\n );\n } else {\n disableInteraction = intro._options.disableInteraction;\n }\n\n introItems[nextStep] = {\n element: currentElement,\n title: currentElement.getAttribute(\"data-title\") || \"\",\n intro: currentElement.getAttribute(\"data-intro\") || \"\",\n step: nextStep + 1,\n tooltipClass:\n currentElement.getAttribute(\"data-tooltip-class\") || undefined,\n highlightClass:\n currentElement.getAttribute(\"data-highlight-class\") || undefined,\n position: (currentElement.getAttribute(\"data-position\") ||\n intro._options.tooltipPosition) as TooltipPosition,\n scrollTo:\n (currentElement.getAttribute(\"data-scroll-to\") as ScrollTo) ||\n intro._options.scrollTo,\n disableInteraction,\n };\n }\n }\n }\n\n //removing undefined/null elements\n const tempIntroItems = [];\n for (let z = 0; z < introItems.length; z++) {\n if (introItems[z]) {\n // copy non-falsy values to the end of the array\n tempIntroItems.push(introItems[z]);\n }\n }\n\n introItems = tempIntroItems;\n\n //Ok, sort all items with given steps\n introItems.sort((a, b) => a.step - b.step);\n\n return introItems;\n}\n","import { reAlignHints } from \"./hint\";\nimport setHelperLayerPosition from \"./setHelperLayerPosition\";\nimport placeTooltip from \"./placeTooltip\";\nimport fetchIntroSteps from \"./fetchIntroSteps\";\nimport { _recreateBullets, _updateProgressBar } from \"./showElement\";\nimport { IntroJs } from \"../intro\";\n\n/**\n * Update placement of the intro objects on the screen\n * @api private\n */\nexport default function refresh(intro: IntroJs, refreshSteps?: boolean) {\n const currentStep = intro._currentStep;\n\n if (currentStep === undefined || currentStep === null || currentStep == -1)\n return;\n\n const step = intro._introItems[currentStep];\n\n const referenceLayer = document.querySelector(\n \".introjs-tooltipReferenceLayer\"\n ) as HTMLElement;\n const helperLayer = document.querySelector(\n \".introjs-helperLayer\"\n ) as HTMLElement;\n const disableInteractionLayer = document.querySelector(\n \".introjs-disableInteraction\"\n ) as HTMLElement;\n\n // re-align intros\n setHelperLayerPosition(intro, step, helperLayer);\n setHelperLayerPosition(intro, step, referenceLayer);\n setHelperLayerPosition(intro, step, disableInteractionLayer);\n\n if (refreshSteps) {\n intro._introItems = fetchIntroSteps(intro, intro._targetElement);\n _recreateBullets(intro, step);\n _updateProgressBar(referenceLayer, currentStep, intro._introItems.length);\n }\n\n // re-align tooltip\n const oldArrowLayer = document.querySelector(\".introjs-arrow\");\n const oldTooltipContainer =\n document.querySelector(\".introjs-tooltip\");\n\n if (oldTooltipContainer && oldArrowLayer) {\n placeTooltip(\n intro,\n intro._introItems[currentStep],\n oldTooltipContainer,\n oldArrowLayer\n );\n }\n\n //re-align hints\n reAlignHints(intro);\n\n return intro;\n}\n","import { IntroJs } from \"../intro\";\nimport refresh from \"./refresh\";\n\nexport default function onResize(intro: IntroJs) {\n refresh(intro);\n}\n","import setStyle from \"./setStyle\";\n\n/**\n * Removes `element` from `parentElement`\n */\nexport default function removeChild(\n element: HTMLElement | null,\n animate = false\n) {\n if (!element || !element.parentElement) return;\n\n const parentElement = element.parentElement;\n\n if (animate) {\n setStyle(element, {\n opacity: \"0\",\n });\n\n window.setTimeout(() => {\n try {\n // removeChild(..) throws an exception if the child has already been removed (https://developer.mozilla.org/en-US/docs/Web/API/Node/removeChild)\n // this try-catch is added to make sure this function doesn't throw an exception if the child has been removed\n // this scenario can happen when start()/exit() is called multiple times and the helperLayer is removed by the\n // previous exit() call (note: this is a timeout)\n parentElement.removeChild(element);\n } catch (e) {}\n }, 500);\n } else {\n parentElement.removeChild(element);\n }\n}\n","import DOMEvent from \"./DOMEvent\";\nimport onKeyDown from \"./onKeyDown\";\nimport onResize from \"./onResize\";\nimport removeShowElement from \"./removeShowElement\";\nimport removeChild from \"../util/removeChild\";\nimport { IntroJs } from \"../intro\";\nimport isFunction from \"../util/isFunction\";\n\n/**\n * Exit from intro\n *\n * @api private\n * @param {Boolean} force - Setting to `true` will skip the result of beforeExit callback\n */\nexport default async function exitIntro(\n intro: IntroJs,\n targetElement: HTMLElement,\n force: boolean = false\n) {\n let continueExit = true;\n\n // calling onbeforeexit callback\n //\n // If this callback return `false`, it would halt the process\n if (intro._introBeforeExitCallback !== undefined) {\n continueExit = await intro._introBeforeExitCallback.call(\n intro,\n targetElement\n );\n }\n\n // skip this check if `force` parameter is `true`\n // otherwise, if `onbeforeexit` returned `false`, don't exit the intro\n if (!force && continueExit === false) return;\n\n // remove overlay layers from the page\n const overlayLayers = Array.from(\n targetElement.querySelectorAll(\".introjs-overlay\")\n );\n\n if (overlayLayers && overlayLayers.length) {\n for (const overlayLayer of overlayLayers) {\n removeChild(overlayLayer);\n }\n }\n\n //remove all helper layers\n const helperLayer = targetElement.querySelector(\n \".introjs-helperLayer\"\n );\n removeChild(helperLayer, true);\n\n const referenceLayer = targetElement.querySelector(\n \".introjs-tooltipReferenceLayer\"\n );\n removeChild(referenceLayer);\n\n //remove disableInteractionLayer\n const disableInteractionLayer = targetElement.querySelector(\n \".introjs-disableInteraction\"\n );\n removeChild(disableInteractionLayer);\n\n //remove intro floating element\n const floatingElement = document.querySelector(\n \".introjsFloatingElement\"\n );\n removeChild(floatingElement);\n\n removeShowElement();\n\n //clean listeners\n DOMEvent.off(window, \"keydown\", onKeyDown, intro, true);\n DOMEvent.off(window, \"resize\", onResize, intro, true);\n\n //check if any callback is defined\n if (isFunction(intro._introExitCallback)) {\n await intro._introExitCallback.call(intro);\n }\n\n // set the step to default\n intro._currentStep = -1;\n}\n","import exitIntro from \"./exitIntro\";\nimport createElement from \"../util/createElement\";\nimport setStyle from \"../util/setStyle\";\nimport { IntroJs } from \"../intro\";\n\n/**\n * Add overlay layer to the page\n *\n * @api private\n */\nexport default function addOverlayLayer(\n intro: IntroJs,\n targetElm: HTMLElement\n) {\n const overlayLayer = createElement(\"div\", {\n className: \"introjs-overlay\",\n });\n\n setStyle(overlayLayer, {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n position: \"fixed\",\n });\n\n targetElm.appendChild(overlayLayer);\n\n if (intro._options.exitOnOverlayClick === true) {\n setStyle(overlayLayer, {\n cursor: \"pointer\",\n });\n\n overlayLayer.onclick = async () => {\n await exitIntro(intro, targetElm);\n };\n }\n\n return true;\n}\n","import addOverlayLayer from \"./addOverlayLayer\";\nimport DOMEvent from \"./DOMEvent\";\nimport { nextStep } from \"./steps\";\nimport onKeyDown from \"./onKeyDown\";\nimport onResize from \"./onResize\";\nimport fetchIntroSteps from \"./fetchIntroSteps\";\nimport { IntroJs } from \"../intro\";\nimport isFunction from \"../util/isFunction\";\n\n/**\n * Initiate a new introduction/guide from an element in the page\n *\n * @api private\n */\nexport default async function introForElement(\n intro: IntroJs,\n targetElm: HTMLElement\n): Promise {\n // don't start the tour if the instance is not active\n if (!intro.isActive()) return false;\n\n if (isFunction(intro._introStartCallback)) {\n await intro._introStartCallback.call(intro, targetElm);\n }\n\n //set it to the introJs object\n const steps = fetchIntroSteps(intro, targetElm);\n\n if (steps.length === 0) {\n return false;\n }\n\n intro._introItems = steps;\n\n //add overlay layer to the page\n if (addOverlayLayer(intro, targetElm)) {\n //then, start the show\n await nextStep(intro);\n\n targetElm.addEventListener;\n if (intro._options.keyboardNavigation) {\n DOMEvent.on(window, \"keydown\", onKeyDown, intro, true);\n }\n\n //for window resize\n DOMEvent.on(window, \"resize\", onResize, intro, true);\n }\n\n return false;\n}\n","import {\n HintPosition,\n HintStep,\n IntroStep,\n ScrollTo,\n TooltipPosition,\n} from \"./core/steps\";\n\nexport interface Options {\n steps: Partial[];\n hints: Partial[];\n /* Is this tour instance active? Don't show the tour again if this flag is set to false */\n isActive: boolean;\n /* Next button label in tooltip box */\n nextLabel: string;\n /* Previous button label in tooltip box */\n prevLabel: string;\n /* Skip button label in tooltip box */\n skipLabel: string;\n /* Done button label in tooltip box */\n doneLabel: string;\n /* Hide previous button in the first step? Otherwise, it will be disabled button. */\n hidePrev: boolean;\n /* Hide next button in the last step? Otherwise, it will be disabled button (note: this will also hide the \"Done\" button) */\n hideNext: boolean;\n /* Change the Next button to Done in the last step of the intro? otherwise, it will render a disabled button */\n nextToDone: boolean;\n /* Default tooltip box position */\n tooltipPosition: string;\n /* Next CSS class for tooltip boxes */\n tooltipClass: string;\n /* Start intro for a group of elements */\n group: string;\n /* CSS class that is added to the helperLayer */\n highlightClass: string;\n /* Close introduction when pressing Escape button? */\n exitOnEsc: boolean;\n /* Close introduction when clicking on overlay layer? */\n exitOnOverlayClick: boolean;\n /* Display the pagination detail */\n showStepNumbers: boolean;\n /* Pagination \"of\" label */\n stepNumbersOfLabel: string;\n /* Let user use keyboard to navigate the tour? */\n keyboardNavigation: boolean;\n /* Show tour control buttons? */\n showButtons: boolean;\n /* Show tour bullets? */\n showBullets: boolean;\n /* Show tour progress? */\n showProgress: boolean;\n /* Scroll to highlighted element? */\n scrollToElement: boolean;\n /*\n * Should we scroll the tooltip or target element?\n * Options are: 'element', 'tooltip' or 'off'\n */\n scrollTo: ScrollTo;\n /* Padding to add after scrolling when element is not in the viewport (in pixels) */\n scrollPadding: number;\n /* Set the overlay opacity */\n overlayOpacity: number;\n /* To determine the tooltip position automatically based on the window.width/height */\n autoPosition: boolean;\n /* Precedence of positions, when auto is enabled */\n positionPrecedence: TooltipPosition[];\n /* Disable an interaction with element? */\n disableInteraction: boolean;\n /* To display the \"Don't show again\" checkbox in the tour */\n dontShowAgain: boolean;\n dontShowAgainLabel: string;\n /* \"Don't show again\" cookie name and expiry (in days) */\n dontShowAgainCookie: string;\n dontShowAgainCookieDays: number;\n /* Set how much padding to be used around helper element */\n helperElementPadding: number;\n /* Default hint position */\n hintPosition: HintPosition;\n /* Hint button label */\n hintButtonLabel: string;\n /* Display the \"Got it\" button? */\n hintShowButton: boolean;\n /* Hints auto-refresh interval in ms (set to -1 to disable) */\n hintAutoRefreshInterval: number;\n /* Adding animation to hints? */\n hintAnimation: boolean;\n /* additional classes to put on the buttons */\n buttonClass: string;\n /* additional classes to put on progress bar */\n progressBarAdditionalClass: boolean;\n}\n\nexport function getDefaultOptions(): Options {\n return {\n steps: [],\n hints: [],\n isActive: true,\n nextLabel: \"Next\",\n prevLabel: \"Back\",\n skipLabel: \"×\",\n doneLabel: \"Done\",\n hidePrev: false,\n hideNext: false,\n nextToDone: true,\n tooltipPosition: \"bottom\",\n tooltipClass: \"\",\n group: \"\",\n highlightClass: \"\",\n exitOnEsc: true,\n exitOnOverlayClick: true,\n showStepNumbers: false,\n stepNumbersOfLabel: \"of\",\n keyboardNavigation: true,\n showButtons: true,\n showBullets: true,\n showProgress: false,\n scrollToElement: true,\n scrollTo: \"element\",\n scrollPadding: 30,\n overlayOpacity: 0.5,\n autoPosition: true,\n positionPrecedence: [\"bottom\", \"top\", \"right\", \"left\"],\n disableInteraction: false,\n\n dontShowAgain: false,\n dontShowAgainLabel: \"Don't show this again\",\n dontShowAgainCookie: \"introjs-dontShowAgain\",\n dontShowAgainCookieDays: 365,\n helperElementPadding: 10,\n\n hintPosition: \"top-middle\",\n hintButtonLabel: \"Got it\",\n hintShowButton: true,\n hintAutoRefreshInterval: 10,\n hintAnimation: true,\n buttonClass: \"introjs-button\",\n progressBarAdditionalClass: false,\n };\n}\n\nexport function setOption(\n options: Options,\n key: K,\n value: Options[K]\n): Options {\n options[key] = value;\n return options;\n}\n\nexport function setOptions(\n options: Options,\n partialOptions: Partial\n): Options {\n for (const [key, value] of Object.entries(partialOptions)) {\n options = setOption(options, key as keyof Options, value);\n }\n return options;\n}\n","import { getDontShowAgain, setDontShowAgain } from \"./core/dontShowAgain\";\nimport exitIntro from \"./core/exitIntro\";\nimport {\n hideHint,\n hideHints,\n populateHints,\n removeHint,\n removeHints,\n showHint,\n showHintDialog,\n showHints,\n} from \"./core/hint\";\nimport introForElement from \"./core/introForElement\";\nimport refresh from \"./core/refresh\";\nimport {\n HintStep,\n IntroStep,\n goToStep,\n goToStepNumber,\n nextStep,\n previousStep,\n} from \"./core/steps\";\nimport { Options, getDefaultOptions, setOption, setOptions } from \"./option\";\nimport isFunction from \"./util/isFunction\";\n\ntype introBeforeChangeCallback = (\n this: IntroJs,\n targetElement: HTMLElement,\n currentStep: number,\n direction: \"backward\" | \"forward\"\n) => Promise | boolean;\ntype introChangeCallback = (\n this: IntroJs,\n targetElement: HTMLElement\n) => void | Promise;\ntype introAfterChangeCallback = (\n this: IntroJs,\n targetElement: HTMLElement\n) => void | Promise;\ntype introCompleteCallback = (\n this: IntroJs,\n currentStep: number,\n reason: \"skip\" | \"end\" | \"done\"\n) => void | Promise;\ntype introStartCallback = (\n this: IntroJs,\n targetElement: HTMLElement\n) => void | Promise;\ntype introExitCallback = (this: IntroJs) => void | Promise;\ntype introSkipCallback = (\n this: IntroJs,\n currentStep: number\n) => void | Promise;\ntype introBeforeExitCallback = (\n this: IntroJs,\n targetElement: HTMLElement\n) => boolean | Promise;\ntype hintsAddedCallback = (this: IntroJs) => void | Promise;\ntype hintClickCallback = (\n this: IntroJs,\n hintElement: HTMLElement,\n item: HintStep,\n stepId: number\n) => void | Promise;\ntype hintCloseCallback = (\n this: IntroJs,\n stepId: number\n) => void | Promise;\n\nexport class IntroJs {\n public _currentStep: number = -1;\n public _currentStepNumber: number | undefined;\n public _direction: \"forward\" | \"backward\";\n public _targetElement: HTMLElement;\n public _introItems: IntroStep[] = [];\n public _hintItems: HintStep[] = [];\n public _options: Options;\n public _introBeforeChangeCallback?: introBeforeChangeCallback;\n public _introChangeCallback?: introChangeCallback;\n public _introAfterChangeCallback?: introAfterChangeCallback;\n public _introCompleteCallback?: introCompleteCallback;\n public _introStartCallback?: introStartCallback;\n public _introExitCallback?: introExitCallback;\n public _introSkipCallback?: introSkipCallback;\n public _introBeforeExitCallback?: introBeforeExitCallback;\n\n public _hintsAddedCallback?: hintsAddedCallback;\n public _hintClickCallback?: hintClickCallback;\n public _hintCloseCallback?: hintCloseCallback;\n\n public _lastShowElementTimer: number;\n public _hintsAutoRefreshFunction: (...args: any[]) => void;\n\n public constructor(targetElement: HTMLElement) {\n this._targetElement = targetElement;\n this._options = getDefaultOptions();\n }\n\n isActive() {\n if (this._options.dontShowAgain && getDontShowAgain(this)) {\n return false;\n }\n\n return this._options.isActive;\n }\n\n clone() {\n return new IntroJs(this._targetElement);\n }\n\n setOption(key: K, value: Options[K]) {\n this._options = setOption(this._options, key, value);\n return this;\n }\n\n setOptions(partialOptions: Partial) {\n this._options = setOptions(this._options, partialOptions);\n return this;\n }\n\n async start() {\n await introForElement(this, this._targetElement);\n return this;\n }\n\n async goToStep(step: number) {\n await goToStep(this, step);\n return this;\n }\n\n addStep(step: Partial) {\n if (!this._options.steps) {\n this._options.steps = [];\n }\n\n this._options.steps.push(step);\n\n return this;\n }\n\n addSteps(steps: Partial[]) {\n if (!steps.length) return this;\n\n for (let index = 0; index < steps.length; index++) {\n this.addStep(steps[index]);\n }\n\n return this;\n }\n\n async goToStepNumber(step: number) {\n await goToStepNumber(this, step);\n return this;\n }\n\n async nextStep() {\n await nextStep(this);\n return this;\n }\n\n async previousStep() {\n await previousStep(this);\n return this;\n }\n\n currentStep() {\n return this._currentStep;\n }\n\n async exit(force: boolean) {\n await exitIntro(this, this._targetElement, force);\n return this;\n }\n\n refresh(refreshSteps?: boolean) {\n refresh(this, refreshSteps);\n return this;\n }\n\n setDontShowAgain(dontShowAgain: boolean) {\n setDontShowAgain(this, dontShowAgain);\n return this;\n }\n\n onbeforechange(providedCallback: introBeforeChangeCallback) {\n if (isFunction(providedCallback)) {\n this._introBeforeChangeCallback = providedCallback;\n } else {\n throw new Error(\n \"Provided callback for onbeforechange was not a function\"\n );\n }\n return this;\n }\n\n onchange(providedCallback: introChangeCallback) {\n if (isFunction(providedCallback)) {\n this._introChangeCallback = providedCallback;\n } else {\n throw new Error(\"Provided callback for onchange was not a function.\");\n }\n return this;\n }\n\n onafterchange(providedCallback: introAfterChangeCallback) {\n if (isFunction(providedCallback)) {\n this._introAfterChangeCallback = providedCallback;\n } else {\n throw new Error(\"Provided callback for onafterchange was not a function\");\n }\n return this;\n }\n\n oncomplete(providedCallback: introCompleteCallback) {\n if (isFunction(providedCallback)) {\n this._introCompleteCallback = providedCallback;\n } else {\n throw new Error(\"Provided callback for oncomplete was not a function.\");\n }\n return this;\n }\n\n onhintsadded(providedCallback: hintsAddedCallback) {\n if (isFunction(providedCallback)) {\n this._hintsAddedCallback = providedCallback;\n } else {\n throw new Error(\"Provided callback for onhintsadded was not a function.\");\n }\n return this;\n }\n\n onhintclick(providedCallback: hintClickCallback) {\n if (isFunction(providedCallback)) {\n this._hintClickCallback = providedCallback;\n } else {\n throw new Error(\"Provided callback for onhintclick was not a function.\");\n }\n return this;\n }\n\n onhintclose(providedCallback: hintCloseCallback) {\n if (isFunction(providedCallback)) {\n this._hintCloseCallback = providedCallback;\n } else {\n throw new Error(\"Provided callback for onhintclose was not a function.\");\n }\n return this;\n }\n\n onstart(providedCallback: introStartCallback) {\n if (isFunction(providedCallback)) {\n this._introStartCallback = providedCallback;\n } else {\n throw new Error(\"Provided callback for onstart was not a function.\");\n }\n return this;\n }\n\n onexit(providedCallback: introExitCallback) {\n if (isFunction(providedCallback)) {\n this._introExitCallback = providedCallback;\n } else {\n throw new Error(\"Provided callback for onexit was not a function.\");\n }\n return this;\n }\n\n onskip(providedCallback: introSkipCallback) {\n if (isFunction(providedCallback)) {\n this._introSkipCallback = providedCallback;\n } else {\n throw new Error(\"Provided callback for onskip was not a function.\");\n }\n return this;\n }\n\n onbeforeexit(providedCallback: introBeforeExitCallback) {\n if (isFunction(providedCallback)) {\n this._introBeforeExitCallback = providedCallback;\n } else {\n throw new Error(\"Provided callback for onbeforeexit was not a function.\");\n }\n return this;\n }\n\n async addHints() {\n await populateHints(this, this._targetElement);\n return this;\n }\n\n async hideHint(stepId: number) {\n await hideHint(this, stepId);\n return this;\n }\n\n async hideHints() {\n await hideHints(this);\n return this;\n }\n\n showHint(stepId: number) {\n showHint(stepId);\n return this;\n }\n\n async showHints() {\n await showHints(this);\n return this;\n }\n\n removeHints() {\n removeHints(this);\n return this;\n }\n\n removeHint(stepId: number) {\n removeHint(stepId);\n return this;\n }\n\n async showHintDialog(stepId: number) {\n await showHintDialog(this, stepId);\n return this;\n }\n}\n","import { version } from \"../package.json\";\nimport { IntroJs } from \"./intro\";\nimport stamp from \"./util/stamp\";\n\n/**\n * Create a new IntroJS instance\n *\n * @param targetElm Optional target element to start the tour/hint on\n * @returns\n */\nconst introJs = (targetElm?: string | HTMLElement) => {\n let instance: IntroJs;\n\n if (typeof targetElm === \"object\") {\n instance = new IntroJs(targetElm);\n } else if (typeof targetElm === \"string\") {\n //select the target element with query selector\n const targetElement = document.querySelector(targetElm);\n\n if (targetElement) {\n instance = new IntroJs(targetElement);\n } else {\n throw new Error(\"There is no element with given selector.\");\n }\n } else {\n instance = new IntroJs(document.body);\n }\n // add instance to list of _instances\n // passing group to stamp to increment\n // from 0 onward somewhat reliably\n introJs.instances[stamp(instance, \"introjs-instance\")] = instance;\n\n return instance;\n};\n\n/**\n * Current IntroJs version\n *\n * @property version\n * @type String\n */\nintroJs.version = version;\n\n/**\n * key-val object helper for introJs instances\n *\n * @property instances\n * @type Object\n */\nintroJs.instances = {} as { [key: number]: IntroJs };\n\nexport default introJs;\n"],"names":["setCookie","name","value","days","_cookie","cookie","_defineProperty","undefined","date","Date","setTime","getTime","expires","toUTCString","arr","key","push","concat","document","join","getCookie","split","forEach","el","_el$split2","_slicedToArray","k","v","trim","dontShowAgainCookieValue","setDontShowAgain","intro","dontShowAgain","_options","dontShowAgainCookie","dontShowAgainCookieDays","keys","stamp","obj","arguments","length","DOMEvent$1","DOMEvent","_classCallCheck","_createClass","type","listener","context","useCapture","id","this","_id","handler","e","window","event","addEventListener","attachEvent","events_key","removeEventListener","detachEvent","isFunction","x","addClass","element","className","SVGElement","pre","getAttribute","match","setAttribute","classList","_step","_iterator","_createForOfIteratorHelper","s","n","done","cls","add","err","f","getPropValue","propName","propValue","currentStyle","defaultView","getComputedStyle","getPropertyValue","toLowerCase","setShowElement","targetElement","currentElementPosition","scrollParentToElement","scrollToElement","parent","style","excludeStaticParent","position","overflowRegex","body","parentElement","test","overflow","overflowY","overflowX","getScrollParent","scrollTop","offsetTop","getWinSize","innerWidth","width","height","innerHeight","D","documentElement","clientWidth","clientHeight","scrollTo","scrollPadding","tooltipLayer","rect","getBoundingClientRect","top","left","bottom","right","elementInViewport","winHeight","getWindowSize","scrollBy","setAnchorAsButton","anchor","tabIndex","isFixed","nodeName","getOffset","relativeEl","docEl","pageYOffset","scrollLeft","pageXOffset","xr","relativeElPosition","tagName","Object","assign","removeClass","classNameRegex","replace","setStyle","cssText","rule","setHelperLayerPosition","step","helperLayer","elementPosition","_targetElement","widthHeightPadding","helperElementPadding","Element","checkRight","targetOffset","tooltipLayerStyleLeft","tooltipOffset","windowSize","checkLeft","tooltipLayerStyleRight","removeEntry","stringArray","stringToRemove","includes","splice","indexOf","_determineAutoPosition","positionPrecedence","desiredTooltipPosition","possiblePositions","slice","tooltipHeight","tooltipWidth","targetElementRect","calculatedPosition","defaultAlignment","desiredAlignment","offsetLeft","windowWidth","halfTooltipWidth","winWidth","Math","min","screen","_determineAutoAlignment","placeTooltip","currentStep","arrowLayer","hintMode","currentTooltipPosition","tooltipCssClass","marginLeft","marginTop","display","tooltipClass","filter","Boolean","autoPosition","tooltipLayerStyleLeftRight","showStepNumbers","removeShowElement","_i","_elms","Array","from","querySelectorAll","_createElement","attrs","createElement","setAttRegex","appendChild","animate","existingOpacity","opacity","setTimeout","_getProgress","introItemsLength","_disableInteraction","disableInteractionLayer","querySelector","_createBullets","bulletsLayer","showBullets","ulContainer","anchorClick","stepNumber","goToStep","parseInt","i","_introItems","innerLi","anchorLink","onclick","innerHTML","toString","_updateBullets","oldReferenceLayer","oldRefActiveBullet","oldRefBulletStepNumber","_createProgressBar","progressLayer","showProgress","progressBar","progressBarAdditionalClass","progress","_currentStep","_updateProgressBar","_showElement","_x","_x2","_showElement2","apply","_asyncToGenerator","_regeneratorRuntime","mark","_callee4","oldHelperLayer","highlightClass","nextTooltipButton","prevTooltipButton","skipTooltipButton","oldHelperNumberLayer","oldTooltipLayer","oldTooltipTitleLayer","oldArrowLayer","oldTooltipContainer","referenceLayer","tooltipTextLayer","tooltipHeaderLayer","tooltipTitleLayer","buttonsLayer","dontShowAgainWrapper","dontShowAgainCheckbox","dontShowAgainCheckboxLabel","helperNumberLayer","wrap","_context4","prev","next","_introChangeCallback","call","_lastShowElementTimer","clearTimeout","stepNumbersOfLabel","title","focus","overlayOpacity","showButtons","onchange","target","checked","htmlFor","innerText","dontShowAgainLabel","_callee","_context","nextStep","_introCompleteCallback","exitIntro","stop","nextLabel","_callee2","_context2","previousStep","prevLabel","skipLabel","_callee3","_context3","_introSkipCallback","parentNode","removeChild","disableInteraction","buttonClass","hidePrev","hideNext","nextToDone","doneLabel","_introAfterChangeCallback","_goToStep","goToStepNumber","_x3","_x4","_goToStepNumber","_currentStepNumber","_x5","_nextStep","continueStep","_direction","_introBeforeChangeCallback","sent","abrupt","showElement","_x6","_previousStep","onKeyDown","_onKeyDown","code","which","charCode","keyCode","exitOnEsc","srcElement","click","preventDefault","returnValue","cloneObject","source","_typeof","temp","jQuery","debounce","func","timeout","timer","_len","args","_key","hintQuerySelectorAll","selector","hintsWrapper","hideHint","_hideHint","stepId","hint","removeHintTooltip","_hintCloseCallback","hideHints","_hideHints","hints","_iterator3","_step3","t0","finish","showHints","_showHints","_iterator4","_step4","showHint","populateHints","removeHint","addHints","_addHints","getHintClick","item","hintDot","hintPulse","evt","stopPropagation","cancelBubble","showHintDialog","_hintItems","hintAnimation","hintTargetElement","alignHintPosition","hintPosition","_hintsAddedCallback","hintAutoRefreshInterval","_hintsAutoRefreshFunction","reAlignHints","on","hintElement","offset","iconWidth","iconHeight","_x7","_showHintDialog","_callee5","removedStep","tooltipWrapper","closeButton","_context5","_hintClickCallback","hintShowButton","hintButtonLabel","tooltip","_x8","_x9","_populateHints","_callee6","targetElm","_iterator5","_step5","currentItem","_hints","currentElement","hintAnimationAttr","_context6","tooltipPosition","_step2","_iterator2","_step2$value","fetchIntroSteps","allIntroSteps","introItems","steps","floatingElementQuery","group","hasAttribute","tempIntroItems","z","sort","a","b","refresh","refreshSteps","existing","replaceChild","_recreateBullets","onResize","_exitIntro","force","continueExit","overlayLayers","_args","_introBeforeExitCallback","off","_introExitCallback","addOverlayLayer","overlayLayer","exitOnOverlayClick","cursor","introForElement","_introForElement","isActive","_introStartCallback","keyboardNavigation","setOption","options","IntroJs","_showHintDialog2","_showHints2","_hideHints2","_hideHint2","_exit","_previousStep2","_nextStep2","_goToStepNumber2","_goToStep2","_start","dontShowCookie","partialOptions","_Object$entries","entries","_Object$entries$_i","setOptions","index","addStep","providedCallback","Error","_callee7","_context7","_callee8","_context8","_callee9","_context9","_callee10","_context10","removeHints","_callee11","_context11","introJs","instance","instances","version"],"mappings":";;;;;;;;;spTAAO,SAASA,EAAUC,E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AAMsX,2BACR3W,EAASqa,IACPzZ,OACA,SACAvB,EAAMsX,0BACNtX,GACA,EAGN,CS6LI0d,CAAYvc,MACLA,IACT,GAAC,CAAAnC,IAAA,aAAAb,MAED,SAAWgX,GAET,OADAiB,GAAWjB,GACJhU,IACT,GAAC,CAAAnC,IAAA,iBAAAb,OAAA2d,EAAAzN,EAAAC,IAAAC,MAED,SAAAoP,EAAqBxI,GAAc,OAAA7G,IAAAsB,MAAA,SAAAgO,GAAA,cAAAA,EAAA9N,KAAA8N,EAAA7N,MAAA,KAAA,EAAA,OAAA6N,EAAA7N,KAAA,EAC3B+G,GAAe3V,KAAMgU,GAAO,KAAA,EAAA,OAAAyI,EAAAzK,OAAA,SAC3BhS,MAAI,KAAA,EAAA,IAAA,MAAA,OAAAyc,EAAAxM,OAAA,GAAAuM,EAAAxc,KACZ,KAAA,SAAA0R,GAAA,OAAAiJ,EAAA1N,MAAAjN,KAAAX,UAAA,MAAAqb,CAAA,CA9PiB,GC3DdgC,GAAU,SAAVA,EAAWjF,GACf,IAAIkF,EAEJ,GAAyB,WAArB1J,EAAOwE,GACTkF,EAAW,IAAIjC,GAAQjD,QAClB,GAAyB,iBAAdA,EAAwB,CAExC,IAAMhV,EAAgBzE,SAASiN,cAA2BwM,GAE1D,IAAIhV,EAGF,MAAM,IAAIqZ,MAAM,4CAFhBa,EAAW,IAAIjC,GAAQjY,EAI3B,MACEka,EAAW,IAAIjC,GAAQ1c,SAASkF,MAOlC,OAFAwZ,EAAQE,UAAUzd,EAAMwd,EAAU,qBAAuBA,EAElDA,CACT,SAQAD,GAAQG,gBAQRH,GAAQE,UAAY,CAAgC"} \ No newline at end of file diff --git a/app/assets/stylesheets/camaleon_cms/admin/admin-manifest.css b/app/assets/stylesheets/camaleon_cms/admin/admin-manifest.css index f9cf0878..6de3ef25 100644 --- a/app/assets/stylesheets/camaleon_cms/admin/admin-manifest.css +++ b/app/assets/stylesheets/camaleon_cms/admin/admin-manifest.css @@ -16,7 +16,7 @@ *= require ./_custom_admin *= require ./_bootstrap-datepicker - *= require ./introjs/_introjs.min + *= require ./introjs/introjs.min *= require ./tageditor/_jquery.tag-editor *= require ./uploader/uploader_manifest diff --git a/app/assets/stylesheets/camaleon_cms/admin/introjs/_introjs.min.css b/app/assets/stylesheets/camaleon_cms/admin/introjs/introjs.min.css similarity index 100% rename from app/assets/stylesheets/camaleon_cms/admin/introjs/_introjs.min.css rename to app/assets/stylesheets/camaleon_cms/admin/introjs/introjs.min.css diff --git a/app/assets/stylesheets/camaleon_cms/admin/introjs/introjs.min.css.map b/app/assets/stylesheets/camaleon_cms/admin/introjs/introjs.min.css.map new file mode 100644 index 00000000..dff255c3 --- /dev/null +++ b/app/assets/stylesheets/camaleon_cms/admin/introjs/introjs.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["%3Cinput%20css%202%3E"],"names":[],"mappings":"AAAA,iBAAiB,iBAAiB,CAAC,sBAAsB,CAAC,cAAc,CAAC,SAAS,CAAC,2BAA2B,CAAC,qBAAqB,yBAAyB,CAAC,0BAA0B,yBAAyB,CAAC,iBAAiB,CAAC,0BAA0B,yBAAyB,CAAC,iBAAiB,CAAC,4BAA4B,0BAA0B,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,SAAS,CAAC,0BAA0B,iBAAiB,CAAC,qBAAqB,sBAAsB,CAAC,iBAAiB,CAAC,eAAe,CAAC,iBAAiB,CAAC,2BAA2B,CAAC,uBAAuB,sBAAsB,CAAC,6BAA6B,sBAAsB,CAAC,4BAA4B,sBAAsB,CAAC,+BAA+B,+FAA+F,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,4BAA4B,CAAC,2BAA2B,CAAC,iCAAiC,+FAA+F,CAAC,2BAA2B,+FAA+F,CAAC,aAAa,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,eAAe,4BAA4B,CAAC,UAAU,CAAC,iBAAiB,CAAC,mBAAmB,SAAS,CAAC,S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B,CAAC,oBAAoB,CAAC,cAAc,CAAC,8DAA8D,UAAU,CAAC,eAAe,CAAC,oBAAoB,CAAC,SAAS,CAAC,gCAAgC,UAAU,CAAC,eAAe,CAAC,kBAAkB,sBAAsB,CAAC,eAAe,CAAC,WAAW,CAAC,WAAW,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,qBAAqB,sBAAsB,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,cAAc,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,wBAAwB,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,sBAAsB,cAAc,CAAC,cAAc,sBAAsB,CAAC,iBAAiB,CAAC,cAAc,CAAC,UAAU,CAAC,WAAW,CAAC,cAAc,CAAC,oBAAoB,QAAQ,CAAC,SAAS,CAAC,wCAAwC,mCAAmC,CAAC,kBAAkB,YAAY,CAAC,mBAAmB,cAAc,CAAC,wBAAwB,GAAG,oBAAoB,CAAC,iCAAiC,CAAC,IAAI,kBAAkB,CAAC,iCAAiC,CAAC,KAAK,oBAAoB,CAAC,8BAA8B,CAAC,CAAC,oBAAoB,sBAAsB,CAAC,UAAU,CAAC,WAAW,CAAC,kBAAkB,CAAC,sCAAsC,CAAC,UAAU,CAAC,iBAAiB,CAAC,2BAA2B,CAAC,kCAAkC,CAAC,0CAA0C,cAAc,CAAC,kBAAkB,sBAAsB,CAAC,cAAc,CAAC,kBAAkB,CAAC,WAAW,CAAC,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,SAAS","file":"introjs.min.css","sourcesContent":[".introjs-overlay{position:absolute;box-sizing:content-box;z-index:999999;opacity:0;transition:all .3s ease-out}.introjs-showElement{z-index:9999999!important}tr.introjs-showElement>td{z-index:9999999!important;position:relative}tr.introjs-showElement>th{z-index:9999999!important;position:relative}.introjs-disableInteraction{z-index:99999999!important;position:absolute;background-color:#fff;opacity:0}.introjs-relativePosition{position:relative}.introjs-helperLayer{box-sizing:content-box;position:absolute;z-index:9999998;border-radius:4px;transition:all .3s ease-out}.introjs-helperLayer *{box-sizing:content-box}.introjs-helperLayer :before{box-sizing:content-box}.introjs-helperLayer :after{box-sizing:content-box}.introjs-tooltipReferenceLayer{font-family:\"Helvetica Neue\",Inter,ui-sans-serif,\"Apple Color Emoji\",Helvetica,Arial,sans-serif;box-sizing:content-box;position:absolute;visibility:hidden;z-index:100000000;background-color:transparent;transition:all .3s ease-out}.introjs-tooltipReferenceLayer *{font-family:\"Helvetica Neue\",Inter,ui-sans-serif,\"Apple Color Emoji\",Helvetica,Arial,sans-serif}.introjs-helperNumberLayer{font-family:\"Helvetica Neue\",Inter,ui-sans-serif,\"Apple Color Emoji\",Helvetica,Arial,sans-serif;color:#9e9e9e;text-align:center;padding-top:10px;padding-bottom:10px}.introjs-arrow{border:5px solid transparent;content:\"\";position:absolute}.introjs-arrow.top{top:-10px;left:10px;border-bottom-color:#fff}.introjs-arrow.top-right{top:-10px;right:10px;border-bottom-color:#fff}.introjs-arrow.top-middle{top:-10px;left:50%;margin-left:-5px;border-bottom-color:#fff}.introjs-arrow.right{right:-10px;top:10px;border-left-color:#fff}.introjs-arrow.right-bottom{bottom:10px;right:-10px;border-left-color:#fff}.introjs-arrow.bottom{bottom:-10px;left:10px;border-top-color:#fff}.introjs-arrow.bottom-right{bottom:-10px;right:10px;border-top-color:#fff}.introjs-arrow.bottom-middle{bottom:-10px;left:50%;margin-left:-5px;border-top-color:#fff}.introjs-arrow.left{left:-10px;top:10px;border-right-color:#fff}.introjs-arrow.left-bottom{left:-10px;bottom:10px;border-right-color:#fff}.introjs-tooltip{box-sizing:content-box;position:absolute;visibility:visible;background-color:#fff;min-width:250px;max-width:300px;border-radius:5px;box-shadow:0 3px 30px rgba(33,33,33,.3);transition:opacity .1s ease-out}.introjs-tooltiptext{padding:20px}.introjs-dontShowAgain{padding-left:20px;padding-right:20px}.introjs-dontShowAgain input{padding:0;margin:0;margin-bottom:2px;display:inline;width:10px;height:10px}.introjs-dontShowAgain label{font-size:14px;display:inline-block;font-weight:400;margin:0 0 0 5px;padding:0;background-color:#fff;color:#616161;-webkit-user-select:none;user-select:none}.introjs-tooltip-title{font-size:18px;width:90%;min-height:1.5em;margin:0;padding:0;font-weight:700;line-height:1.5}.introjs-tooltip-header{position:relative;padding-left:20px;padding-right:20px;padding-top:10px;min-height:1.5em}.introjs-tooltipbuttons{border-top:1px solid #e0e0e0;padding:10px;text-align:right;white-space:nowrap}.introjs-tooltipbuttons:after{content:\"\";visibility:hidden;display:block;height:0;clear:both}.introjs-button{box-sizing:content-box;position:relative;overflow:visible;padding:.5rem 1rem;border:1px solid #bdbdbd;text-decoration:none;text-shadow:1px 1px 0 #fff;font-size:14px;color:#424242;white-space:nowrap;cursor:pointer;outline:0;background-color:#f4f4f4;border-radius:.2em;zoom:1;display:inline}.introjs-button:hover{outline:0;text-decoration:none;border-color:#9e9e9e;background-color:#e0e0e0;color:#212121}.introjs-button:focus{outline:0;text-decoration:none;background-color:#eee;box-shadow:0 0 0 .2rem rgba(158,158,158,.5);border:1px solid #616161;color:#212121}.introjs-button:active{outline:0;text-decoration:none;background-color:#e0e0e0;border-color:#9e9e9e;color:#212121}.introjs-button::-moz-focus-inner{padding:0;border:0}.introjs-skipbutton{position:absolute;top:0;right:0;display:inline-block;width:45px;height:45px;line-height:45px;color:#616161;font-size:22px;cursor:pointer;font-weight:700;text-align:center;text-decoration:none}.introjs-skipbutton:focus,.introjs-skipbutton:hover{color:#212121;outline:0;text-decoration:none}.introjs-prevbutton{float:left}.introjs-nextbutton{float:right}.introjs-disabled{color:#9e9e9e;border-color:#bdbdbd;box-shadow:none;cursor:default;background-color:#f4f4f4;background-image:none;text-decoration:none}.introjs-disabled:focus,.introjs-disabled:hover{color:#9e9e9e;border-color:#bdbdbd;box-shadow:none;cursor:default;background-color:#f4f4f4;background-image:none;text-decoration:none}.introjs-hidden{display:none}.introjs-bullets{text-align:center;padding-top:10px;padding-bottom:10px}.introjs-bullets ul{box-sizing:content-box;clear:both;margin:0 auto 0;padding:0;display:inline-block}.introjs-bullets ul li{box-sizing:content-box;list-style:none;float:left;margin:0 2px}.introjs-bullets ul li a{transition:width .1s ease-in;box-sizing:content-box;display:block;width:6px;height:6px;background:#ccc;border-radius:10px;text-decoration:none;cursor:pointer}.introjs-bullets ul li a:focus,.introjs-bullets ul li a:hover{width:15px;background:#999;text-decoration:none;outline:0}.introjs-bullets ul li a.active{width:15px;background:#999}.introjs-progress{box-sizing:content-box;overflow:hidden;height:10px;margin:10px;border-radius:4px;background-color:#e0e0e0}.introjs-progressbar{box-sizing:content-box;float:left;width:0%;height:100%;font-size:10px;line-height:10px;text-align:center;background-color:#08c}.introjsFloatingElement{position:absolute;height:0;width:0;left:50%;top:50%}.introjs-fixedTooltip{position:fixed}.introjs-hint{box-sizing:content-box;position:absolute;background:0 0;width:20px;height:15px;cursor:pointer}.introjs-hint:focus{border:0;outline:0}.introjs-hint:hover>.introjs-hint-pulse{background-color:rgba(60,60,60,.57)}.introjs-hidehint{display:none}.introjs-fixedhint{position:fixed}@keyframes introjspulse{0%{transform:scale(.95);box-shadow:0 0 0 0 rgba(0,0,0,.7)}70%{transform:scale(1);box-shadow:0 0 0 10px transparent}100%{transform:scale(.95);box-shadow:0 0 0 0 transparent}}.introjs-hint-pulse{box-sizing:content-box;width:15px;height:15px;border-radius:30px;background-color:rgba(136,136,136,.24);z-index:10;position:absolute;transition:all .2s ease-out;animation:introjspulse 2s infinite}.introjs-hint-no-anim .introjs-hint-pulse{animation:none}.introjs-hint-dot{box-sizing:content-box;background:0 0;border-radius:60px;height:50px;width:50px;position:absolute;top:-18px;left:-18px;z-index:1;opacity:0}"]} \ No newline at end of file