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AAyDvB,GACrE,MAAM,KAAEwK,GAASC,OAAO7B,SACpB8B,EAAe1K,aAAamK,YAAcnK,EAAEsK,QAGhDhM,KAAKqM,QAAS,EAGdrM,KAAKsM,IAAIC,YACLvM,KACAkM,EAAI,GAAAnL,OACDqL,EAAe,QAAU,QAAO,QACnCV,EAA6Bc,KAAKxM,OAEtCA,KAAKsM,IAAIC,YAAYvM,KAAMkM,EAAM,GAAFnL,OAAKqL,EAAe,WAAa,YAAc1K,IAE1E1B,KAAKqM,QAAS,EACdrM,KAAKsM,IAAIG,mBAAmBzM,MAG5B0L,EAA6B5J,KAAK9B,KAAM0B,EAAE,GAElD,C","sources":["src/helpers/wrap-with-promise.ts","src/components/color-pickers/analogous-picker.hbs","src/components/color-pickers/analogous-picker.ts","src/components/pagination-bar.hbs","src/components/pagination-bar.ts","src/components/ticked-slider.hbs","src/components/ticked-slider.js","src/helpers/get-simple-list-item.ts","src/utils/color-pickers/common.ts"],"sourcesContent":["/**\n * Helper function that returns a Promise that passes down argument to an async method.\n */\nexport default function wrapWithPromise(\n fn: (...args: any[]) => Promise,\n ...args: any[]\n): Promise {\n return new Promise((resolve) => {\n fn(...args).then((result) => resolve(result));\n });\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n /**\n * Helper function that returns a Promise that passes down argument to an async method.\n */\n 'wrap-with-promise': typeof wrapWithPromise;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{! template-lint-disable no-inline-styles }}\\n\\n
\\n
\\n {{! template-lint-disable no-pointer-down-event-binding }}\\n
\\n \\n\\n \\n\")","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { isArrowCode } from '@adc/ember-utils/utils/a11y';\nimport { assert } from '@ember/debug';\nimport { computed, action, getProperties } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { isPresent } from '@ember/utils';\nimport { fnGradient, constrainHueValue } from '../../utils/color-pickers/color.ts';\nimport {\n getNormalizedEventCoordinates,\n LEFT_MOUSE_BUTTON_CODE,\n processEvent\n} from '../../utils/color-pickers/common.ts';\n\nimport type DomService from '@adc/ember-utils/services/dom';\nimport type { SafeString } from 'handlebars';\nimport type { Color, Hue, Lightness } from '../../utils/color-pickers/color.ts';\n\nconst ON_SELECT_ACTION = 'on-select';\nconst TRANSPARENT_GRADIENT_VALUE = 'rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.67) 50%, #ffffff';\n\n/**\n * The half size of the hue values range to show in the picker interactive surface.\n * One half before and one half after the baseHue value.\n */\nconst HUE_STEP = 60 as const;\n\nexport interface AnalogousPickerSignature {\n Element: HTMLDivElement;\n Args: {\n /** Optional color sheet width, in pixels (defaults to 216). */\n width?: number;\n /** Optional color sheet height, in pixels (defaults to 216). */\n height?: number;\n /** The current base hue (defaults to 25). */\n baseHue?: Hue;\n /** The currently selected hue (defaults to 25). */\n hue?: Hue;\n /** The currently selected lightness value (defaults to 51). */\n lightness?: Lightness;\n /** Triggered when the user selects a new color. */\n [ON_SELECT_ACTION]: (item: Color) => void;\n };\n}\n\n/**\n * @classdesc\n * Adds support for selecting a color and returns it in the HSL format.\n */\nexport default class AnalogousPickerComponent extends Component {\n // region Properties\n\n @service declare dom: DomService;\n @tracked isBusy = false;\n\n /**\n * The picker height, in pixels.\n */\n @computed('args.height')\n get height(): number {\n return this.args.height ?? 216;\n }\n\n /**\n * The picker width, in pixels.\n */\n @computed('args.width')\n get width(): number {\n return this.args.width ?? 216;\n }\n\n /**\n * The hue this range of colors will be based on.\n */\n @computed('args.baseHue')\n get baseHue(): Hue {\n return this.args.baseHue ?? 25;\n }\n\n /**\n * The selected hue (should be within 60 degrees of the base hue).\n */\n @computed('args.hue')\n get hue(): Hue {\n return this.args.hue ?? 25;\n }\n\n /**\n * The selected lightness (should be between 50 and 100).\n */\n @computed('args.lightness')\n get lightness(): Lightness {\n return this.args.lightness ?? 51;\n }\n\n // endregion\n\n // region Computed Properties\n\n /**\n * Generates the background image CSS for the analogous picker interactive surface.\n */\n @computed('baseHue')\n get pickerBackgroundStyle(): SafeString {\n const hueRange = [-HUE_STEP, 0, HUE_STEP]\n .map((offset) => constrainHueValue(offset, this.baseHue))\n .map((hue, idx) => `hsl(${hue}, 100%, 50%)${idx === 1 ? ' 50%' : ''}`);\n\n return htmlSafe(\n `background-image: ${fnGradient('top', TRANSPARENT_GRADIENT_VALUE)}, ${fnGradient(\n 'right',\n hueRange.join(', ')\n )}`\n );\n }\n\n /**\n * The slider thumb color style.\n */\n @computed('baseHue')\n get sliderThumbColorStyle(): SafeString {\n return htmlSafe(`color: hsl(${this.baseHue}, 100%, 50%);`);\n }\n\n /**\n * Sets the width and height for the clickable surface of the picker, according to the values of the *width* and *height* properties.\n */\n @computed('width', 'height')\n get pickerSurfaceStyle(): SafeString {\n return htmlSafe(`width: ${this.width}px; height: ${this.height}px;`);\n }\n\n /**\n * Combines the inherited picker surface style with the background style.\n */\n @computed('pickerSurfaceStyle', 'pickerBackgroundStyle')\n get pickerStyle(): SafeString {\n return htmlSafe(`${this.pickerBackgroundStyle}; ${this.pickerSurfaceStyle}`);\n }\n\n /**\n * Generates the position transform CSS for the selector.\n */\n @computed('baseHue', 'hue', 'lightness', 'width', 'height')\n get selectorPositionStyle(): SafeString {\n const { baseHue, hue, lightness, width, height } = this,\n bottomRange = constrainHueValue(-HUE_STEP, baseHue),\n hueDelta = hue >= bottomRange ? hue - bottomRange : hue + (360 - bottomRange);\n\n return htmlSafe(\n `transform: translate(${(hueDelta / (2 * HUE_STEP)) * width}px, ${(1 - (lightness - 50) / 50) * height}px);`\n );\n }\n\n // endregion\n\n /**\n * Calls the 'on-select' action.\n */\n @action changeSelectedColor(e: Event): void {\n const [x, y] = getNormalizedEventCoordinates.call(this, e);\n if (x && y) {\n const hue = constrainHueValue(Math.round((x - 0.5) * (HUE_STEP * 2)), this.baseHue),\n lightness = Math.round((1 - y) * 50 + 50) as Lightness;\n\n // Pass new color value out of picker.\n this.args[ON_SELECT_ACTION]({\n hue,\n saturation: 100,\n lightness\n });\n }\n }\n\n /**\n * Validates the passed component attributes.\n */\n @action validateAttributes() {\n const requiredProperties = getProperties(this, 'baseHue', 'hue', 'lightness', 'height', 'width'),\n fnGetErrorText = (reason: string) => `[@adc/ui-components] Analogous Color Picker: ${reason}`,\n fnCompareRange = (name: keyof typeof requiredProperties, min: number, max: number) => {\n const value = requiredProperties[name];\n assert(\n fnGetErrorText(`The \"${name}\" value (${value}) must be between ${min} and ${max} (inclusive)`),\n value >= min && value <= max\n );\n };\n\n // Verify all values are present and are numbers.\n Object.keys(requiredProperties).forEach((name: keyof typeof requiredProperties) => {\n const value = requiredProperties[name];\n assert(\n fnGetErrorText(`The \"${name}\" must be a valid number`),\n isPresent(value) && typeof value === 'number'\n );\n });\n\n // Verify hues and lightness are within supported levels.\n ['baseHue', 'hue'].forEach((name: keyof typeof requiredProperties) => fnCompareRange(name, 0, 360));\n fnCompareRange('lightness', 50, 100);\n\n const { baseHue, hue } = requiredProperties,\n minValue = constrainHueValue(-HUE_STEP, baseHue),\n maxValue = constrainHueValue(HUE_STEP, baseHue);\n\n assert(\n fnGetErrorText(`The \"hue\" and \"baseHue\" values must be within ${HUE_STEP} degrees of one another`),\n minValue > maxValue ? hue >= minValue || hue <= maxValue : hue >= minValue && hue <= maxValue\n );\n }\n\n /**\n * Changes the base hue, preserving the current baseHue/hue relationship.\n */\n @action onHueSliderChange(newBaseHue: Hue): void {\n // Get current base hue and selected hue.\n const { baseHue, hue, lightness } = this;\n\n // Did the hue actually change?\n if (newBaseHue !== baseHue) {\n // Pass new color value out of picker.\n this.args[ON_SELECT_ACTION]({\n baseHue: newBaseHue,\n hue: constrainHueValue(hue - baseHue, newBaseHue),\n saturation: 100,\n lightness\n });\n }\n }\n\n /**\n * Updates the selected hue and lightness based on the position of the left mouse click.\n */\n @action mouseDownAction(e: MouseEvent): void {\n // If this event was fired by left-click\n if (e.which === LEFT_MOUSE_BUTTON_CODE) {\n try {\n processEvent.call(this, e);\n this.changeSelectedColor(e);\n } catch (e) {\n // VID-58056: clicked on the edge of picker\n }\n }\n }\n\n /**\n * Updates the selected hue and lightness based on the position of the touch.\n */\n @action touchStartAction(e: Event): void {\n processEvent.call(this, e);\n this.changeSelectedColor(e);\n }\n\n /**\n * Selects a color from a keyup on the thumb.\n */\n @action keyUpOnThumb(e: KeyboardEvent): void {\n if (isArrowCode(e.code)) {\n this.changeSelectedColor(e);\n }\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n
\\n {{yield}}\\n
\\n\\n \\n\\n {{#if @linkInfo.route}}\\n \\n {{@linkInfo.text}}\\n \\n {{/if}}\\n\\n {{#if this.showPageSizeDropdown}}\\n
\\n \\n
\\n {{/if}}\\n
\")","import Component from '@glimmer/component';\nimport { assert } from '@ember/debug';\nimport { computed, action } from '@ember/object';\nimport { gt } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport DropdownActionItem from '../utils/dropdown-action-item.js';\nimport DropdownSelectItem from '../utils/dropdown-select-item.js';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { Placement } from 'popper.js';\n\ninterface PaginationBarSignature {\n Element: HTMLDivElement;\n Args: {\n /** Action called when the user changes the currently selected page. */\n changePage: (page: number) => void;\n /** Action called when the user changes the page size. If this action parameter is not passed the page size selector will not render. */\n changePageSize?: (pageSize: number) => void;\n /** The total number of items. */\n itemCount?: number;\n /** The page size options to render in the page size selector. */\n pageSizeOptions?: number[];\n /** The currently selected page size. */\n selectedPageSize?: number;\n /** The currently selected page. */\n selectedPage?: number;\n /** The placement for the overflow page menu popup. */\n menuPlacement?: Placement;\n /** Optional link and text used to render a link inside link to render in pagination bar. */\n linkInfo?: {\n route?: string | null;\n text: string;\n };\n };\n Blocks: {\n default: [];\n };\n}\n\ninterface PageButton {\n text: string;\n page: number;\n disabled: boolean;\n css: string;\n pages: DropdownActionItem[];\n}\n\n/**\n * @classdesc\n * A pagination component with pages, arrows and a dropdown for page size.\n *\n * This control will always show the \"PREV\" button, the first button, last button, \"NEXT\" button and the three buttons surrounding the current page. If there are pages not represented\n * by that collection we will show popup menus for those pages, unless there is only one page in the popup.\n */\n@intlPath({ module: '@adc/ui-components', path: 'pagination-bar' })\nexport default class PaginationBar extends Component {\n @service declare intl: ADCIntlService;\n\n defaultPageSize = 100;\n\n constructor(owner: unknown, args: PaginationBarSignature['Args']) {\n super(owner, args);\n\n // Verify required closure functions.\n assert(`The changePage closure function must be passed to the pagination bar component`, this.args.changePage);\n\n // Optionally verify changePageSize if needed, but don't assert\n if (this.args.changePageSize) {\n assert(`The changePageSize must be a function`, typeof this.args.changePageSize === 'function');\n }\n }\n\n /**\n * The value of the selected page size.\n */\n @computed('args.selectedPageSize', 'defaultPageSize')\n get selectedPageSize(): number {\n return this.args.selectedPageSize ?? this.defaultPageSize;\n }\n\n /**\n * The computed number of pages.\n */\n @computed('args.itemCount', 'selectedPageSize')\n get pageCount(): number {\n const { selectedPageSize } = this,\n { itemCount = 0 } = this.args;\n\n return Math.ceil(itemCount / selectedPageSize);\n }\n\n get showPageSizeDropdown(): boolean {\n return !!this.args.changePageSize;\n }\n\n /**\n * Determines visibility of the pageButtons.\n */\n @gt('pageCount', 1)\n declare showPages: boolean;\n\n /**\n * The computed page buttons to render.\n *\n * This control will always show the first button, last button, and three buttons surrounding the current page. If there are pages not represented by that collection we will show\n * popup menus for those pages, unless there is only one page in the popup.\n */\n @computed('args.{changePage,selectedPage}', 'pageCount')\n get pageButtons(): PageButton[] {\n const { selectedPage = 1 } = this.args,\n { pageCount } = this;\n\n // Are there NO pages?\n if (pageCount === 0) {\n // Nothing to render.\n return [];\n }\n\n const buttons: PageButton[] = [],\n fnGetRangeOfPages = (start: number, end: number): number[] =>\n Array.from({ length: end - start + 1 }, (_, idx) => idx + start),\n fnGetButton = (text: string, page: number, css: string, pages: DropdownActionItem[] = []): PageButton => ({\n text,\n page,\n disabled: page === selectedPage,\n css,\n pages\n }),\n fnAddPageBtn = (page: number): number =>\n buttons.push(fnGetButton(String(page), page, `page${page === selectedPage ? ' active' : ''}`)),\n fnAddRangeMenuBtn = (pages: number[]): void => {\n // Does the menu only have one page?\n if (pages.length === 1) {\n // Show page button for that single page.\n fnAddPageBtn(pages[0]);\n return;\n }\n\n // Add dropdown actions button.\n buttons.push(\n fnGetButton(\n '...',\n -1,\n 'page',\n pages.map((page) =>\n DropdownActionItem.create({\n name: String(page),\n action: () => this.args.changePage(page)\n })\n )\n )\n );\n };\n\n // Calculate index of previous and next page.\n const previousPage = Math.max(selectedPage - 1, 1),\n nextPage = Math.min(selectedPage + 1, pageCount);\n\n // Assume we will show all pages in selection range.\n let selectionLowerBound = 1,\n selectionUpperBound = pageCount;\n\n // Are there more than six pages?\n if (pageCount > 6) {\n // Selection lower bound is the previous page, constrained to between 1 and the total page count minus 2.\n selectionLowerBound = Math.min(previousPage, pageCount - 2);\n\n // Selection upper bound is the next page, constrained to between 3 and the total page count.\n selectionUpperBound = Math.max(nextPage, 3);\n }\n\n // Get array of buttons around currently selected page, based on calculated lower and upper bound.\n const selectionRange = fnGetRangeOfPages(selectionLowerBound, selectionUpperBound);\n\n // Does the selection range NOT include the first page?\n if (!selectionRange.includes(1)) {\n // Add the first page.\n fnAddPageBtn(1);\n }\n\n // Does the selection range NOT include the second page?\n if (!selectionRange.includes(2)) {\n // Add menu button for the second page through the last page NOT present within the selection range.\n fnAddRangeMenuBtn(fnGetRangeOfPages(2, selectionLowerBound - 1));\n }\n\n // Add all selection range buttons.\n selectionRange.forEach(fnAddPageBtn);\n\n // Does the selection range NOT include the second to last page?\n if (!selectionRange.includes(pageCount - 1)) {\n // Add menu button for the first page after the selection range through the second to last page.\n fnAddRangeMenuBtn(fnGetRangeOfPages(selectionUpperBound + 1, pageCount - 1));\n }\n\n // Does the selection range NOT include the last page?\n if (!selectionRange.includes(pageCount)) {\n // Add the last page.\n fnAddPageBtn(pageCount);\n }\n\n // Return page buttons surrounded by the previous and next buttons.\n return [\n fnGetButton(this.intl.tc(this, 'previousPage'), previousPage, 'ctrl'),\n ...buttons,\n fnGetButton(this.intl.tc(this, 'nextPage'), nextPage, 'ctrl')\n ];\n }\n\n /**\n * Drop down items for page size.\n */\n @computed('args.pageSizeOptions.[]', 'selectedPageSize')\n get pageSizeItems(): DropdownSelectItem[] {\n return (this.args.pageSizeOptions ?? [10, 25, 50, 100]).map((value) =>\n DropdownSelectItem.create({\n name: this.intl.tc(this, 'perPage', { value }),\n value: String(value)\n })\n );\n }\n\n /**\n * Called when the user changes the page size dropdown value.\n * New page begins with first items from previous page.\n */\n @action onPageSizeChanged(size: string): void {\n this.args.changePageSize?.(parseInt(size, 10));\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n
\\n {{#each this.ticks as |tick|}}\\n
\\n {{#if tick.text}}\\n \\n {{/if}}\\n
\\n {{/each}}\\n
\\n\\n
\\n {{#each this.ticks as |tick|}}\\n
\\n {{/each}}\\n
\\n \\n\")","import { action, get, set } from '@ember/object';\nimport { once } from '@ember/runloop';\nimport { VALUE_CHANGE_ACTION } from './common/base-input.js';\nimport { default as BaseSlider } from './slider/base-slider.js';\n\n/**\n * Stores array of tick objects.\n *\n * @param {number} currentValue Current value of slider. By default this will be the currently set value property. This may also be the current non-set value during sliding the slider.\n */\nfunction updateTicks(currentValue = this.value) {\n // Create an array of size max value minus min value (with null at each index).\n const ticks = Array.apply(null, Array(this.maxValue - this.minValue + 1))\n // For each array item, create a tick using the index.\n .map((_, n) => getTick.call(this, n + this.minValue, currentValue));\n\n set(this, 'ticks', ticks);\n}\n\n/**\n * Get Tick based on given tick index.\n *\n * @param {number} index Index inclusively between min and max values.\n * @param {number} currentValue Current value of slider. This could be the set one by default or the current one during sliding the slider.\n *\n * @return {Tick}\n */\nfunction getTick(index, currentValue) {\n const tickTexts = {\n [this.minValue]: this.minTickText,\n [this.maxValue]: this.maxTickText,\n [this.suggestedTick]: this.suggestedTickText\n };\n\n return {\n // We need the index so that handlebar doesn't take any shortcuts rendering.\n // Without this, the ticks will be selected out of order during value changes.\n index,\n // Selected tick is to the left of slider marker.\n cssClass: index <= currentValue ? 'selected' : '',\n // Get text (if any) that goes above the tick.\n text: tickTexts[index]\n };\n}\n\n/**\n * @classdesc A slider control that has tick markers for each slider option.\n */\nexport default class TickedSlider extends BaseSlider {\n /**\n * Text that will appear on left most tick.\n *\n * @type {String}\n */\n minTickText;\n\n /**\n * Text that will appear on right most tick.\n *\n * @type {String}\n */\n maxTickText;\n\n /**\n * Suggested tick index.\n *\n * @type {number}\n */\n suggestedTick;\n\n /**\n * Suggested tick's text.\n *\n * @type {String}\n */\n suggestedTickText;\n\n /**\n * Update ticks every time any of the tick-related values change.\n */\n @action valueChangeObserver() {\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line ember/no-runloop\n once(this, updateTicks);\n }\n\n /**\n * Updates slider and reverts value if request fails.\n *\n * @param {number} newTickValue - The new value of the slider.\n * @param {boolean} [isFromSlider=true] - Was the change made by the slider?\n * @param {boolean} [isMouseUp=true] - Is the mouse currently in the release position?\n */\n @action sliderChanged(newTickValue, isFromSlider = true, isMouseUp = true) {\n // Was a new tick value given?\n if (newTickValue !== undefined) {\n const numberOfTicks = this.ticks?.length - 1;\n\n // If the mouse event is done and it's from the slider.\n if (isMouseUp && isFromSlider) {\n // Round to the nearest tick's percentage.\n set(this, 'sliderPercentage', (newTickValue / numberOfTicks) * 100);\n }\n\n // Only update the ticks if this is from the slider.\n if (isFromSlider) {\n updateTicks.call(this, (this.sliderPercentage * numberOfTicks) / 100);\n }\n }\n\n // Was the value-change action defined in the handlebars?\n if (get(this, VALUE_CHANGE_ACTION)) {\n // Send back the new value, along with a boolean indicating if the value was changed using the slider element.\n get(this, VALUE_CHANGE_ACTION)(newTickValue, isFromSlider, isMouseUp);\n }\n }\n}\n\n/**\n * The definition of a Tick.\n *\n * @typedef {{\n * index: number,\n * cssClass: string,\n * text: String,\n * textStyle: string\n * }} Tick\n *\n * @property {number} index Index of tick that is between min and max values.\n * @property {String} cssStyle CSS class name for tick.\n * @property {String} text Text that will be displayed above the tick.\n * @property {String} textStyle In-line styling for text positioning.\n *\n * @components.TickedSlider\n * @private\n */\n","import SimpleListItem from '../components/simple-list/list-item.ts';\n\nexport default function getSimpleListItemHelper(params: Partial): SimpleListItem {\n return new SimpleListItem(params);\n}\n","import { isArrowDownCode, isArrowCode, isArrowLeftCode, isArrowUpCode } from '@adc/ember-utils/utils/a11y';\nimport { guidFor } from '@ember/object/internals';\n\nimport type DomService from '@adc/ember-utils/services/dom';\n\ninterface Coordinates {\n clientX: number;\n clientY: number;\n}\n\n/**\n * The picker thumb size (height and width).\n */\nexport const PICKER_THUMB_SIZE = 24;\n\nexport const LEFT_MOUSE_BUTTON_CODE = 1;\n\n/**\n * Cancels the propagation of the event.\n */\nexport function cancelEvent(e: Event): void {\n e.stopPropagation();\n e.stopImmediatePropagation();\n if (!(e instanceof TouchEvent)) {\n e.preventDefault();\n }\n}\n\n/**\n * Get coordinates for the picker selector\n */\nfunction getSelectorCoordinates(element: HTMLElement): Coordinates {\n const { left, top, width, height } = element.getBoundingClientRect();\n\n return {\n clientX: left + width / 2,\n clientY: top + height / 2\n };\n}\n\n/**\n * Determines the normalized coordinates of the event relative to the picker interactive surface.\n * After normalization, the coordinates will have a fractional value between 0 and 1.\n */\nexport function getNormalizedEventCoordinates(\n this: { width: number; height?: number },\n e: KeyboardEvent & { clientX: number; clientY: number }\n): Array {\n // Get the event coordinates.\n let { clientX, clientY } = e;\n const el = document.getElementById(guidFor(this)) as HTMLElement;\n\n // Cache document scroll, position/size of element (adjusted for scroll) and keyboard event code.\n const picker = el.querySelector('.picker') as HTMLElement;\n const { top, left } = picker.getBoundingClientRect(),\n { width, height } = this,\n { code } = e;\n\n if (isArrowCode(code)) {\n const selector = el.querySelector('.selector') as HTMLElement;\n const selectorCoordinates = getSelectorCoordinates(selector),\n isUp = isArrowUpCode(code),\n step = isUp || isArrowLeftCode(code) ? -5 : 5;\n\n clientX = selectorCoordinates.clientX;\n clientY = selectorCoordinates.clientY;\n\n // Is this a vertical arrow?\n if (isUp || isArrowDownCode(code)) {\n clientY += step;\n } else {\n clientX += step;\n }\n }\n\n // Normalize the X and Y coordinates. This outputs values between 0 and 1.\n return [\n [clientX, left, width],\n [clientY, top, height ?? 0]\n ].map(([coordinate, base, dimension]) => Math.max(Math.min((coordinate - base) / dimension, 0.99), 0.01));\n}\n\n/**\n * Validates the event, acquires the coordinates, trigger the color update.\n */\nfunction handlePickerInteractionEvent(e: TouchEvent): void {\n // Cancel the event and check for touches.\n cancelEvent(e);\n\n const { touches } = e;\n\n // Was this a touch event?\n if (touches !== undefined) {\n // Use the first touch event.\n const touch = Array.from(touches || []).pop();\n\n // Is there no touch?\n if (!touch) {\n // The touchend event doesn't have any touches, so there is nothing to do.\n return;\n }\n }\n}\n\n/**\n * Handles the mouseDown and touchStart events.\n */\nexport function processEvent(this: { isBusy: boolean; dom: DomService }, e: MouseEvent | TouchEvent): void {\n const { body } = window.document,\n isTouchEvent = e instanceof TouchEvent && e.touches;\n\n // Set the busy flag.\n this.isBusy = true;\n\n // Add move and up listeners.\n this.dom.addListener(\n this,\n body,\n `${isTouchEvent ? 'touch' : 'mouse'}move`,\n handlePickerInteractionEvent.bind(this)\n );\n this.dom.addListener(this, body, `${isTouchEvent ? 'touchend' : 'mouseup'}`, (e: TouchEvent) => {\n // Clear the listeners and busy status.\n this.isBusy = false;\n this.dom.removeAllListeners(this);\n\n // Handle the event to update the color.\n handlePickerInteractionEvent.call(this, e);\n });\n}\n"],"names":["wrapWithPromise","fn","_len","arguments","length","args","Array","_key","Promise","resolve","then","result","TEMPLATE","createTemplateFactory","scope","guidFor_","didUpdate_","on","t_","sliderAdc_","ON_SELECT_ACTION","HUE_STEP","_dom","WeakMap","_isBusy","AnalogousPickerComponent","Component","constructor","_classPrivateFieldInitSpec","i","height","_this$args$height","this","width","_this$args$width","baseHue","_this$args$baseHue","hue","_this$args$hue","lightness","_this$args$lightness","pickerBackgroundStyle","hueRange","map","offset","constrainHueValue","idx","concat","htmlSafe","fnGradient","join","sliderThumbColorStyle","pickerSurfaceStyle","pickerStyle","selectorPositionStyle","bottomRange","hueDelta","changeSelectedColor","e","x","y","getNormalizedEventCoordinates","call","Math","round","saturation","validateAttributes","requiredProperties","getProperties","fnCompareRange","name","min","max","Object","keys","forEach","onHueSliderChange","newBaseHue","mouseDownAction","which","LEFT_MOUSE_BUTTON_CODE","processEvent","touchStartAction","keyUpOnThumb","isArrowCode","code","_AnalogousPickerComponent","g","prototype","inject","tracked","n","computed","action","setComponentTemplate","tc_","dropdownActions_","coalesce_","buttonSimple_","LinkTo","dropdownSelectSingleSelect_","toString_","PaginationBar","c","_intl","_showPages","_PaginationBar","owner","super","_defineProperty","changePageSize","selectedPageSize","_this$args$selectedPa","defaultPageSize","pageCount","itemCount","ceil","showPageSizeDropdown","pageButtons","selectedPage","buttons","fnGetRangeOfPages","start","end","from","_","fnGetButton","text","page","css","disabled","pages","undefined","fnAddPageBtn","push","String","fnAddRangeMenuBtn","DropdownActionItem","create","changePage","previousPage","nextPage","selectionLowerBound","selectionUpperBound","selectionRange","includes","intl","tc","pageSizeItems","_this$args$pageSizeOp","pageSizeOptions","value","DropdownSelectItem","onPageSizeChanged","size","_this$args$changePage","_this$args","parseInt","gt","intlPath","module","path","didInsert_","updateTicks","currentValue","ticks","apply","maxValue","minValue","getTick","set","index","cssClass","minTickText","maxTickText","suggestedTick","suggestedTickText","TickedSlider","BaseSlider","valueChangeObserver","once","sliderChanged","newTickValue","isFromSlider","isMouseUp","_this$ticks","numberOfTicks","sliderPercentage","get","VALUE_CHANGE_ACTION","_TickedSlider","getSimpleListItemHelper","params","SimpleListItem","PICKER_THUMB_SIZE","clientX","clientY","el","document","getElementById","guidFor","picker","querySelector","top","left","getBoundingClientRect","selectorCoordinates","element","getSelectorCoordinates","isUp","isArrowUpCode","step","isArrowLeftCode","isArrowDownCode","_ref","coordinate","base","dimension","handlePickerInteractionEvent","stopPropagation","stopImmediatePropagation","TouchEvent","preventDefault","cancelEvent","touches","pop","body","window","isTouchEvent","isBusy","dom","addListener","bind","removeAllListeners"],"sourceRoot":""}