@rocketspark/domain-checker 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/build/141.index.js +2 -2
  2. package/build/141.index.js.map +1 -1
  3. package/build/147.index.js +2 -2
  4. package/build/147.index.js.map +1 -1
  5. package/build/167.index.js +2 -2
  6. package/build/167.index.js.map +1 -1
  7. package/build/17.index.js +2 -2
  8. package/build/17.index.js.map +1 -1
  9. package/build/194.index.js +2 -2
  10. package/build/194.index.js.map +1 -1
  11. package/build/208.index.js +2 -2
  12. package/build/208.index.js.map +1 -1
  13. package/build/237.index.js +2 -2
  14. package/build/237.index.js.map +1 -1
  15. package/build/245.index.js +2 -2
  16. package/build/245.index.js.map +1 -1
  17. package/build/278.index.js +2 -2
  18. package/build/278.index.js.map +1 -1
  19. package/build/386.index.js +2 -2
  20. package/build/386.index.js.map +1 -1
  21. package/build/404.index.js +2 -2
  22. package/build/404.index.js.map +1 -1
  23. package/build/420.index.js +2 -2
  24. package/build/420.index.js.map +1 -1
  25. package/build/514.index.js +2 -2
  26. package/build/514.index.js.map +1 -1
  27. package/build/524.index.js +2 -2
  28. package/build/524.index.js.map +1 -1
  29. package/build/542.index.js +2 -2
  30. package/build/542.index.js.map +1 -1
  31. package/build/551.index.js +2 -2
  32. package/build/551.index.js.map +1 -1
  33. package/build/567.index.js +2 -2
  34. package/build/567.index.js.map +1 -1
  35. package/build/571.index.js +2 -2
  36. package/build/571.index.js.map +1 -1
  37. package/build/572.index.js +2 -2
  38. package/build/572.index.js.map +1 -1
  39. package/build/584.index.js +2 -2
  40. package/build/584.index.js.map +1 -1
  41. package/build/588.index.js +2 -2
  42. package/build/588.index.js.map +1 -1
  43. package/build/598.index.js +2 -2
  44. package/build/598.index.js.map +1 -1
  45. package/build/60.index.js +2 -2
  46. package/build/60.index.js.map +1 -1
  47. package/build/616.index.js +2 -2
  48. package/build/616.index.js.map +1 -1
  49. package/build/631.index.js +2 -2
  50. package/build/631.index.js.map +1 -1
  51. package/build/643.index.js +2 -2
  52. package/build/643.index.js.map +1 -1
  53. package/build/654.index.js +2 -2
  54. package/build/654.index.js.map +1 -1
  55. package/build/66.index.js +2 -2
  56. package/build/66.index.js.map +1 -1
  57. package/build/697.index.js +2 -2
  58. package/build/697.index.js.map +1 -1
  59. package/build/714.index.js +2 -2
  60. package/build/714.index.js.map +1 -1
  61. package/build/717.index.js +13 -0
  62. package/build/717.index.js.map +1 -0
  63. package/build/795.index.js +2 -2
  64. package/build/795.index.js.map +1 -1
  65. package/build/8.index.js +2 -2
  66. package/build/8.index.js.map +1 -1
  67. package/build/808.index.js +2 -2
  68. package/build/808.index.js.map +1 -1
  69. package/build/810.index.js +2 -2
  70. package/build/810.index.js.map +1 -1
  71. package/build/833.index.js +2 -2
  72. package/build/833.index.js.map +1 -1
  73. package/build/835.index.js +2 -2
  74. package/build/835.index.js.map +1 -1
  75. package/build/847.index.js +2 -2
  76. package/build/847.index.js.map +1 -1
  77. package/build/853.index.js +2 -2
  78. package/build/853.index.js.map +1 -1
  79. package/build/871.index.js +2 -2
  80. package/build/871.index.js.map +1 -1
  81. package/build/890.index.js +2 -2
  82. package/build/890.index.js.map +1 -1
  83. package/build/899.index.js +2 -2
  84. package/build/899.index.js.map +1 -1
  85. package/build/938.index.js +2 -2
  86. package/build/938.index.js.map +1 -1
  87. package/build/964.index.js +2 -2
  88. package/build/964.index.js.map +1 -1
  89. package/build/970.index.js +2 -2
  90. package/build/970.index.js.map +1 -1
  91. package/build/984.index.js +13 -0
  92. package/build/984.index.js.map +1 -0
  93. package/build/993.index.js +2 -2
  94. package/build/993.index.js.map +1 -1
  95. package/build/css/index.css +2 -2
  96. package/build/css/index.css.map +1 -1
  97. package/build/index.js +4 -4
  98. package/build/index.js.map +1 -1
  99. package/package.json +2 -2
  100. package/build/540.index.js +0 -13
  101. package/build/540.index.js.map +0 -1
  102. package/build/861.index.js +0 -13
  103. package/build/861.index.js.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AAW,GACE,IAAIC,EACJtD,KAAKgC,cAAgB,IAAI,EAAAuB,MAAa,IAAAhJ,GAAkC,QAArB+I,EAAKtD,KAAKsC,aAA0B,IAAPgB,EAAgBA,EAAK,EAAAf,GAAe3D,OACtH,CACA,MAAA4E,GACE,OAAQ,IAAAzJ,GAAE,EAAAwJ,EAAM,CAAEE,MAAO5F,OAAO6F,OAAO,CAAEf,QAAU3C,KAAK0C,YAA+B,WAAjB1C,KAAK2C,QAAwB,QAAU,QAAU3C,KAAKoC,iBAAkBuB,MAAO,oBAAoB3D,KAAK2C,YAAa,IAAA5I,GAAE,MAAO,CAAE4J,MAAO,2BAA4B,IAAA5J,GAAE,MAAO,CAAE4J,MAAO,6BAA8B,IAAA5J,GAAE,MAAO,CAAE4J,MAAO,2BAA4B,IAAA5J,GAAE,eAAgB,CAAE4J,MAAO,0BAA2BrB,MAAOtC,KAAKsC,MAAOO,KAAM7C,KAAK6C,KAAML,SAAUxC,KAAKwC,SAAUC,QAASzC,KAAKyC,QAASE,QAAS3C,KAAK2C,QAASC,kBAAmB5C,KAAK4C,kBAAmBf,cAAe7B,KAAK6B,cAAeM,oBAAqBnC,KAAKmC,oBAAqByB,IAAKC,GAAM7D,KAAKiD,cAAgBY,MACvoB,CACA,yBAAOb,CAAmBV,GACxB,OAAO,IAAAjI,GAAWiI,IAAkC,gBAAxBA,EAAMtF,aACpC,GAEFyE,EAAcgC,MA3EW,yO","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/HSVaColor-0aa7247b.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-color-picker.entry.js"],"sourcesContent":["const { min, max, floor, round } = Math;\nfunction standardizeColor(name) {\n if (name === undefined) {\n return '#000';\n }\n if (name.toLowerCase() === 'black') {\n return '#000';\n }\n const ctx = document.createElement('canvas').getContext('2d');\n if (ctx === null) {\n return null;\n }\n ctx.fillStyle = name;\n return ctx.fillStyle === '#000' ? null : ctx.fillStyle;\n}\nfunction hsvToRgb(h, s, v) {\n const hLocal = (h / 360) * 6;\n const sLocal = s / 100;\n const vLocal = v / 100;\n const i = floor(hLocal);\n const f = hLocal - i;\n const p = vLocal * (1 - sLocal);\n const q = vLocal * (1 - f * sLocal);\n const t = vLocal * (1 - (1 - f) * sLocal);\n const mod = i % 6;\n const r = [vLocal, q, p, p, t, vLocal][mod];\n const g = [t, vLocal, vLocal, q, p, p][mod];\n const b = [p, p, t, vLocal, vLocal, q][mod];\n return [r * 255, g * 255, b * 255];\n}\nfunction hsvToHex(h, s, v) {\n return hsvToRgb(h, s, v).map(rgb => round(rgb)\n .toString(16)\n .padStart(2, '0'));\n}\nfunction hsvToCmyk(h, s, v) {\n const rgb = hsvToRgb(h, s, v);\n const r = rgb[0] / 255;\n const g = rgb[1] / 255;\n const b = rgb[2] / 255;\n const k = min(1 - r, 1 - g, 1 - b);\n const c = k === 1 ? 0 : (1 - r - k) / (1 - k);\n const m = k === 1 ? 0 : (1 - g - k) / (1 - k);\n const y = k === 1 ? 0 : (1 - b - k) / (1 - k);\n return [c * 100, m * 100, y * 100, k * 100];\n}\nfunction hsvToHsl(h, s, v) {\n let sLocal = s / 100;\n const vLocal = v / 100;\n const l = ((2 - sLocal) * vLocal) / 2;\n if (l !== 0) {\n if (l === 1) {\n sLocal = 0;\n }\n else if (l < 0.5) {\n sLocal = (sLocal * vLocal) / (l * 2);\n }\n else {\n sLocal = (sLocal * vLocal) / (2 - l * 2);\n }\n }\n return [h, sLocal * 100, l * 100];\n}\nfunction rgbToHsv(red, green, blue) {\n const r = red / 255;\n const g = green / 255;\n const b = blue / 255;\n const minVal = min(r, g, b);\n const maxVal = max(r, g, b);\n const delta = maxVal - minVal;\n let h;\n let s;\n const v = maxVal;\n if (delta === 0) {\n h = 0;\n s = 0;\n }\n else {\n s = delta / maxVal;\n const dr = ((maxVal - r) / 6 + delta / 2) / delta;\n const dg = ((maxVal - g) / 6 + delta / 2) / delta;\n const db = ((maxVal - b) / 6 + delta / 2) / delta;\n if (r === maxVal) {\n h = db - dg;\n }\n else if (g === maxVal) {\n h = 1 / 3 + dr - db;\n }\n else if (b === maxVal) {\n h = 2 / 3 + dg - dr;\n }\n if (h < 0) {\n h += 1;\n }\n else if (h > 1) {\n h -= 1;\n }\n }\n return [h * 360, s * 100, v * 100];\n}\nfunction cmykToHsv(cyan, magenta, yellow, key) {\n const c = cyan / 100;\n const m = magenta / 100;\n const y = yellow / 100;\n const k = key / 100;\n const r = (1 - min(1, c * (1 - k) + k)) * 255;\n const g = (1 - min(1, m * (1 - k) + k)) * 255;\n const b = (1 - min(1, y * (1 - k) + k)) * 255;\n return [...rgbToHsv(r, g, b)];\n}\nfunction hslToHsv(hue, saturation, lightness) {\n let s = saturation / 100;\n const l = lightness / 100;\n s *= l < 0.5 ? l : 1 - l;\n const ns = ((2 * s) / (l + s)) * 100;\n const v = (l + s) * 100;\n return [hue, Number.isNaN(ns) ? 0 : ns, v];\n}\nfunction hexToHsv(hex) {\n const hexRgb = hex.match(/.{2}/g);\n if (hexRgb !== null) {\n const [red, green, blue] = hexRgb.map(v => Number.parseInt(v, 16));\n return rgbToHsv(red, green, blue);\n }\n return null;\n}\nfunction getColorType(colorString) {\n // Regular expressions to match different types of color representation\n const regex = {\n cmyk: /^cmyk[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)/i,\n rgba: /^((rgba)|rgb)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hsla: /^((hsla)|hsl)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hsva: /^((hsva)|hsv)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hexa: /^#?(([\\dA-Fa-f]{3,4})|([\\dA-Fa-f]{6})|([\\dA-Fa-f]{8}))$/i,\n };\n const colorType = Object.entries(regex).find(([, colorRegex]) => colorRegex.exec(colorString));\n if (colorType !== undefined) {\n const match = colorType[1].exec(colorString);\n return {\n type: colorType[0],\n regex: colorType[1],\n match,\n };\n }\n return {\n type: null,\n };\n}\n/**\n * Try's to parse a string which represents a color to an HSV array.\n * Current supported types are cmyk, rgba, hsla and hexadecimal.\n */\nfunction parseToHSVA(colorString = '#000') {\n // Check if string is a color-name\n if (colorString.toLowerCase() === 'transparent') {\n colorString = '#00000000';\n }\n const string = colorString.match(/^[a-zA-Z]+$/) !== null ? standardizeColor(colorString) : colorString;\n const { type, match } = getColorType(string);\n /**\n * Takes an Array of any type, convert strings which represents\n * a number to a number an anything else to undefined.\n * */\n const numarize = (array) => array.map(v => (/^(|\\d+)\\.\\d+|\\d+$/.test(v) ? Number(v) : undefined));\n if (type === null || match === null) {\n return { values: null, type: 'hexa' };\n }\n // Match[2] does only contain a truthy value if rgba, hsla, or hsla got matched\n const hasValidAlphaChannel = (a) => !!match[2] === (typeof a === 'number');\n const isValidAlpha = (a) => a >= 0 && a <= 1 && hasValidAlphaChannel(a);\n if (type === 'cmyk') {\n const [, c, m, y, k] = numarize(match);\n if (c && m && y && k && c <= 100 && m <= 100 && y <= 100 && k <= 100) {\n return { values: cmykToHsv(c, m, y, k), type };\n }\n }\n if (type === 'rgba') {\n const [, , , r, g, b, a] = numarize(match);\n if (r !== undefined && g !== undefined && b !== undefined && a !== undefined && r <= 255 && g <= 255 && b <= 255 && isValidAlpha(a)) {\n return { values: [...rgbToHsv(r, g, b), a], alpha: a, type };\n }\n }\n if (type === 'hexa') {\n let [, hex] = match;\n if (hex.length === 4 || hex.length === 3) {\n hex = hex\n .split('')\n .map(v => v + v)\n .join('');\n }\n const raw = hex.substring(0, 6);\n let a = hex.substring(6);\n // Convert 0 - 255 to 0 - 1 for opacity\n a = a ? parseInt(a, 16) / 255 : undefined;\n const hsvValue = hexToHsv(raw);\n if (hsvValue !== undefined) {\n return { values: [...hsvValue, a], alpha: a, type };\n }\n }\n if (type === 'hsla') {\n const [, , , h, s, l, a] = numarize(match);\n if (h && s && l && a && h <= 360 && s <= 100 && l <= 100 && a >= 0 && a <= 1 && isValidAlpha(a)) {\n return { values: [...hslToHsv(h, s, l), a], alpha: a, type };\n }\n }\n if (type === 'hsva') {\n const [, , , h, s, v, a] = numarize(match);\n if (h && s && v && a && h <= 360 && s <= 100 && v <= 100 && a >= 0 && a <= 1 && isValidAlpha(a)) {\n return { values: [h, s, v, a], alpha: a, type };\n }\n }\n return { values: null, type: 'hexa' };\n}\nconst isValidHex = string => {\n if (string === undefined) {\n return false;\n }\n return string.match(/^#?[\\dA-Fa-f]{6,8}$/i);\n};\nconst DEFAULT_COLOR = '#7CA1FF';\n\n/**\n * Simple class which holds the properties\n * of the color representation model hsla (hue saturation lightness alpha)\n */\nclass HSVaColor {\n constructor(h = 0, s = 0, v = 0, a = 1) {\n this.mapper = (original, next) => (precision = -1) => {\n return next(precision >= 0 ? original.map(v => Number(v.toFixed(precision))) : original);\n };\n this.h = h;\n this.s = s;\n this.v = v;\n this.a = (a > 1) ? a / 100 : a;\n }\n toHSVA() {\n const hsva = [this.h, this.s, this.v, this.a];\n hsva.toString = this.mapper(hsva, arr => `hsva(${arr[0]}, ${arr[1]}%, ${arr[2]}%, ${this.readableAlpha()})`);\n return hsva;\n }\n toHSLA() {\n const hsla = [...hsvToHsl(this.h, this.s, this.v), this.a];\n hsla.toString = this.mapper(hsla, arr => `hsla(${arr[0]}, ${arr[1]}%, ${arr[2]}%, ${this.readableAlpha()})`);\n return hsla;\n }\n toHSL() {\n const hsl = hsvToHsl(this.h, this.s, this.v);\n hsl.toString = this.mapper(hsl, arr => `hsl(${arr[0]}, ${arr[1]}%, ${arr[2]}%)`);\n return hsl;\n }\n toRGBA() {\n const rgba = [...hsvToRgb(this.h, this.s, this.v), this.a];\n rgba.toString = this.mapper(rgba, arr => `rgba(${Math.round(arr[0])}, ${Math.round(arr[1])}, ${Math.round(arr[2])}, ${this.readableAlpha()})`);\n return rgba;\n }\n /**\n * @deprecated {@see toRGBModern()}\n */\n toRGB() {\n const rgb = hsvToRgb(this.h, this.s, this.v);\n rgb.toString = this.mapper(rgb, arr => `rgb(${Math.round(arr[0])}, ${Math.round(arr[1])}, ${Math.round(arr[2])})`);\n return rgb;\n }\n toRGBModern() {\n const rgba = [...hsvToRgb(this.h, this.s, this.v), this.a];\n rgba.toString = this.mapper(rgba, arr => `rgb(${Math.round(arr[0])} ${Math.round(arr[1])} ${Math.round(arr[2])} / ${this.alphaAsPercent()})`);\n return rgba;\n }\n toCMYK() {\n const cmyk = hsvToCmyk(this.h, this.s, this.v);\n cmyk.toString = this.mapper(cmyk, arr => `cmyk(${arr[0]}%, ${arr[1]}%, ${arr[2]}%, ${arr[3]}%)`);\n return cmyk;\n }\n toHEXA() {\n const hex = hsvToHex(this.h, this.s, this.v);\n // Check if alpha channel make sense, convert it to 255 number space, convert\n // To hex and pad it with zeros if needed.\n const alpha = this.a >= 1\n ? ''\n : Number((this.a * 255).toFixed(0))\n .toString(16)\n .toUpperCase()\n .padStart(2, '0');\n alpha && hex.push(alpha);\n hex.toString = () => `#${hex.join('').toUpperCase()}`;\n return hex;\n }\n toHEX() {\n const hex = hsvToHex(this.h, this.s, this.v);\n hex.toString = () => `#${hex.join('').toLowerCase()}`;\n return hex;\n }\n set alpha(a) {\n this.a = (a > 1) ? a / 100 : a;\n }\n get alpha() {\n return this.a;\n }\n set hue(h) {\n this.h = Math.round(h);\n }\n get hue() {\n return this.h;\n }\n set saturation(s) {\n this.s = Math.round(s);\n }\n get saturation() {\n return this.s;\n }\n set value(v) {\n this.v = Math.round(v);\n }\n get value() {\n return this.v;\n }\n clone() {\n return new HSVaColor(this.h, this.s, this.v, this.a);\n }\n readableAlpha() {\n return Math.round((this.a + Number.EPSILON) * 100) / 100;\n }\n alphaAsPercent() {\n return Math.round((this.a + Number.EPSILON) * 100) + '%';\n }\n}\n\nexport { DEFAULT_COLOR as D, HSVaColor as H, isValidHex as i, parseToHSVA as p };\n\n//# sourceMappingURL=HSVaColor-0aa7247b.js.map","import { r as registerInstance, c as createEvent, h, H as Host } from './index-3d0f28ab.js';\nimport { D as DEFAULT_COLOR, H as HSVaColor, p as parseToHSVA, i as isValidHex } from './HSVaColor-0aa7247b.js';\n\nconst rsColorPickerCss = \":host{display:block;margin-top:5px;position:absolute;z-index:2;padding-bottom:20px}:host(.rs-color-picker--inline){position:unset;padding-bottom:0}:host(.rs-color-picker--inline) .rs-color-picker__picker{width:100%;max-width:500px}\";\n\nconst RsColorPicker = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsColorChange = createEvent(this, \"rsColorChange\", 7);\n this.rsPresetColorChoice = createEvent(this, \"rsPresetColorChoice\", 7);\n this.onColorChange = (event) => {\n event.stopImmediatePropagation();\n this.internalColor = event.detail;\n this.rsColorChange.emit({ value: event.detail });\n };\n this.onPresetColorChoice = (event) => {\n event.stopImmediatePropagation();\n this.rsPresetColorChoice.emit({ value: event.detail });\n };\n this.positionStyle = () => {\n if (this.position === 'top') {\n return {\n 'bottom': '37px',\n 'margin-top': '0px',\n 'padding-bottom': '0px',\n };\n }\n return {};\n };\n this.color = DEFAULT_COLOR;\n this.palettes = undefined;\n this.opacity = false;\n this.showPicker = false;\n this.position = 'default';\n this.display = 'default';\n this.transparentButton = false;\n this.mode = 'default';\n this.colorSwatches = null;\n }\n /**\n * Set the color of the color swatch\n * @param color\n */\n async setColor(color) {\n if (!RsColorPicker.allowedColorString(color)) {\n return;\n }\n await this.rsColorPicker.setColor(color);\n }\n /**\n * Returns a HSVaColor object of the currently selected color\n */\n async getColor() {\n return this.internalColor;\n }\n /**\n * A method that can be called on the element for showing the color picker\n */\n async show() {\n this.showPicker = true;\n }\n /**\n * A method that can be called on the element for hiding the color picker\n */\n async hide() {\n this.showPicker = false;\n }\n componentWillLoad() {\n var _a;\n this.internalColor = new HSVaColor(...parseToHSVA((_a = this.color) !== null && _a !== void 0 ? _a : DEFAULT_COLOR).values);\n }\n render() {\n return (h(Host, { style: Object.assign({ display: (this.showPicker || this.display === 'inline') ? 'block' : 'none' }, this.positionStyle()), class: `rs-color-picker--${this.display}` }, h(\"div\", { class: \"rs-color-picker__inner\" }, h(\"div\", { class: \"rs-color-picker__swatch\" }), h(\"div\", { class: \"rs-color-picker__popup\" }, h(\"color-picker\", { class: \"rs-color-picker__picker\", color: this.color, mode: this.mode, palettes: this.palettes, opacity: this.opacity, display: this.display, transparentButton: this.transparentButton, onColorChange: this.onColorChange, onPresetColorChoice: this.onPresetColorChoice, ref: el => this.rsColorPicker = el })))));\n }\n static allowedColorString(color) {\n return isValidHex(color) || color.toLowerCase() === 'transparent';\n }\n};\nRsColorPicker.style = rsColorPickerCss;\n\nexport { RsColorPicker as rs_color_picker };\n\n//# sourceMappingURL=rs-color-picker.entry.js.map"],"names":["min","max","floor","round","Math","hsvToRgb","h","s","v","hLocal","sLocal","vLocal","i","f","p","q","t","mod","hsvToHex","map","rgb","toString","padStart","hsvToHsl","l","rgbToHsv","red","green","blue","r","g","b","minVal","maxVal","delta","dr","dg","db","cmykToHsv","cyan","magenta","yellow","key","m","y","k","hslToHsv","hue","saturation","lightness","ns","Number","isNaN","parseToHSVA","colorString","toLowerCase","string","match","name","undefined","ctx","document","createElement","getContext","fillStyle","standardizeColor","type","colorType","Object","entries","cmyk","rgba","hsla","hsva","hexa","find","colorRegex","exec","regex","getColorType","numarize","array","test","values","isValidAlpha","a","hasValidAlphaChannel","c","alpha","hex","length","split","join","raw","substring","parseInt","hsvValue","hexRgb","hexToHsv","isValidHex","DEFAULT_COLOR","HSVaColor","constructor","this","mapper","original","next","precision","toFixed","toHSVA","arr","readableAlpha","toHSLA","toHSL","hsl","toRGBA","toRGB","toRGBModern","alphaAsPercent","toCMYK","hsvToCmyk","toHEXA","toUpperCase","push","toHEX","value","clone","EPSILON","RsColorPicker","hostRef","rsColorChange","rsPresetColorChoice","onColorChange","event","stopImmediatePropagation","internalColor","detail","emit","onPresetColorChoice","positionStyle","position","color","D","palettes","opacity","showPicker","display","transparentButton","mode","colorSwatches","setColor","allowedColorString","rsColorPicker","getColor","show","hide","componentWillLoad","_a","H","render","style","assign","class","ref","el"],"sourceRoot":""}
1
+ {"version":3,"file":"278.index.js","mappings":";;;;;;;;;;;uNAAA,MAAM,IAAEA,EAAG,IAAEC,EAAG,MAAEC,EAAK,MAAEC,GAAUC,KAenC,SAASC,EAASC,EAAGC,EAAGC,GACpB,MAAMC,EAAUH,EAAI,IAAO,EACrBI,EAASH,EAAI,IACbI,EAASH,EAAI,IACbI,EAAIV,EAAMO,GACVI,EAAIJ,EAASG,EACbE,EAAIH,GAAU,EAAID,GAClBK,EAAIJ,GAAU,EAAIE,EAAIH,GACtBM,EAAIL,GAAU,GAAK,EAAIE,GAAKH,GAC5BO,EAAML,EAAI,EAIhB,MAAO,CAAK,IAHF,CAACD,EAAQI,EAAGD,EAAGA,EAAGE,EAAGL,GAAQM,GAGlB,IAFX,CAACD,EAAGL,EAAQA,EAAQI,EAAGD,EAAGA,GAAGG,GAET,IADpB,CAACH,EAAGA,EAAGE,EAAGL,EAAQA,EAAQI,GAAGE,GAE3C,CACA,SAASC,EAASZ,EAAGC,EAAGC,GACpB,OAAOH,EAASC,EAAGC,EAAGC,GAAGW,KAAIC,GAAOjB,EAAMiB,GACrCC,SAAS,IACTC,SAAS,EAAG,MACrB,CAYA,SAASC,EAASjB,EAAGC,EAAGC,GACpB,IAAIE,EAASH,EAAI,IACjB,MAAMI,EAASH,EAAI,IACbgB,GAAM,EAAId,GAAUC,EAAU,EAYpC,OAXU,IAANa,IAEId,EADM,IAANc,EACS,EAEJA,EAAI,GACCd,EAASC,GAAe,EAAJa,GAGpBd,EAASC,GAAW,EAAQ,EAAJa,IAGnC,CAAClB,EAAY,IAATI,EAAkB,IAAJc,EAC7B,CACA,SAASC,EAASC,EAAKC,EAAOC,GAC1B,MAAMC,EAAIH,EAAM,IACVI,EAAIH,EAAQ,IACZI,EAAIH,EAAO,IACXI,EAAShC,EA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AAMS,GACFlD,KAAKgC,YAAa,CACtB,CAIA,UAAMmB,GACFnD,KAAKgC,YAAa,CACtB,CACA,iBAAAoB,GACI,IAAIC,EACJrD,KAAKyC,cAAgB,IAAI,EAAAa,MAAa,IAAA/I,GAAkC,QAArB8I,EAAKrD,KAAK6B,aAA0B,IAAPwB,EAAgBA,EAAK,EAAAvB,GAAelD,OACxH,CACA,MAAA2E,GACI,OAAQ,IAAAxJ,GAAE,EAAAuJ,EAAM,CAAEnH,IAAK,2CAA4CqH,MAAO3F,OAAO4F,OAAO,CAAEvB,QAAUlC,KAAKgC,YAA+B,WAAjBhC,KAAKkC,QAAwB,QAAU,QAAUlC,KAAK6C,iBAAkBa,MAAO,oBAAoB1D,KAAKkC,YAAa,IAAAnI,GAAE,MAAO,CAAEoC,IAAK,2CAA4CuH,MAAO,2BAA4B,IAAA3J,GAAE,MAAO,CAAEoC,IAAK,2CAA4CuH,MAAO,6BAA8B,IAAA3J,GAAE,MAAO,CAAEoC,IAAK,2CAA4CuH,MAAO,2BAA4B,IAAA3J,GAAE,eAAgB,CAAEoC,IAAK,2CAA4CuH,MAAO,0BAA2B7B,MAAO7B,KAAK6B,MAAOO,KAAMpC,KAAKoC,KAAMuB,SAAU3D,KAAK2D,SAAU5B,QAAS/B,KAAK+B,QAASG,QAASlC,KAAKkC,QAASC,kBAAmBnC,KAAKmC,kBAAmBG,cAAetC,KAAKsC,cAAeM,oBAAqB5C,KAAK4C,oBAAqBgB,IAAKC,GAAM7D,KAAKgD,cAAgBa,MAC93B,CACA,yBAAOd,CAAmBlB,GACtB,OAAO,IAAAxH,GAAWwH,IAAkC,gBAAxBA,EAAM7E,aACtC,GAEJyE,EAAc+B,MAtGW,yO","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/HSVaColor-db3c71a6.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-color-picker.entry.js"],"sourcesContent":["const { min, max, floor, round } = Math;\nfunction standardizeColor(name) {\n if (name === undefined) {\n return '#000';\n }\n if (name.toLowerCase() === 'black') {\n return '#000';\n }\n const ctx = document.createElement('canvas').getContext('2d');\n if (ctx === null) {\n return null;\n }\n ctx.fillStyle = name;\n return ctx.fillStyle === '#000' ? null : ctx.fillStyle;\n}\nfunction hsvToRgb(h, s, v) {\n const hLocal = (h / 360) * 6;\n const sLocal = s / 100;\n const vLocal = v / 100;\n const i = floor(hLocal);\n const f = hLocal - i;\n const p = vLocal * (1 - sLocal);\n const q = vLocal * (1 - f * sLocal);\n const t = vLocal * (1 - (1 - f) * sLocal);\n const mod = i % 6;\n const r = [vLocal, q, p, p, t, vLocal][mod];\n const g = [t, vLocal, vLocal, q, p, p][mod];\n const b = [p, p, t, vLocal, vLocal, q][mod];\n return [r * 255, g * 255, b * 255];\n}\nfunction hsvToHex(h, s, v) {\n return hsvToRgb(h, s, v).map(rgb => round(rgb)\n .toString(16)\n .padStart(2, '0'));\n}\nfunction hsvToCmyk(h, s, v) {\n const rgb = hsvToRgb(h, s, v);\n const r = rgb[0] / 255;\n const g = rgb[1] / 255;\n const b = rgb[2] / 255;\n const k = min(1 - r, 1 - g, 1 - b);\n const c = k === 1 ? 0 : (1 - r - k) / (1 - k);\n const m = k === 1 ? 0 : (1 - g - k) / (1 - k);\n const y = k === 1 ? 0 : (1 - b - k) / (1 - k);\n return [c * 100, m * 100, y * 100, k * 100];\n}\nfunction hsvToHsl(h, s, v) {\n let sLocal = s / 100;\n const vLocal = v / 100;\n const l = ((2 - sLocal) * vLocal) / 2;\n if (l !== 0) {\n if (l === 1) {\n sLocal = 0;\n }\n else if (l < 0.5) {\n sLocal = (sLocal * vLocal) / (l * 2);\n }\n else {\n sLocal = (sLocal * vLocal) / (2 - l * 2);\n }\n }\n return [h, sLocal * 100, l * 100];\n}\nfunction rgbToHsv(red, green, blue) {\n const r = red / 255;\n const g = green / 255;\n const b = blue / 255;\n const minVal = min(r, g, b);\n const maxVal = max(r, g, b);\n const delta = maxVal - minVal;\n let h;\n let s;\n const v = maxVal;\n if (delta === 0) {\n h = 0;\n s = 0;\n }\n else {\n s = delta / maxVal;\n const dr = ((maxVal - r) / 6 + delta / 2) / delta;\n const dg = ((maxVal - g) / 6 + delta / 2) / delta;\n const db = ((maxVal - b) / 6 + delta / 2) / delta;\n if (r === maxVal) {\n h = db - dg;\n }\n else if (g === maxVal) {\n h = 1 / 3 + dr - db;\n }\n else if (b === maxVal) {\n h = 2 / 3 + dg - dr;\n }\n if (h < 0) {\n h += 1;\n }\n else if (h > 1) {\n h -= 1;\n }\n }\n return [h * 360, s * 100, v * 100];\n}\nfunction cmykToHsv(cyan, magenta, yellow, key) {\n const c = cyan / 100;\n const m = magenta / 100;\n const y = yellow / 100;\n const k = key / 100;\n const r = (1 - min(1, c * (1 - k) + k)) * 255;\n const g = (1 - min(1, m * (1 - k) + k)) * 255;\n const b = (1 - min(1, y * (1 - k) + k)) * 255;\n return [...rgbToHsv(r, g, b)];\n}\nfunction hslToHsv(hue, saturation, lightness) {\n let s = saturation / 100;\n const l = lightness / 100;\n s *= l < 0.5 ? l : 1 - l;\n const ns = ((2 * s) / (l + s)) * 100;\n const v = (l + s) * 100;\n return [hue, Number.isNaN(ns) ? 0 : ns, v];\n}\nfunction hexToHsv(hex) {\n const hexRgb = hex.match(/.{2}/g);\n if (hexRgb !== null) {\n const [red, green, blue] = hexRgb.map(v => Number.parseInt(v, 16));\n return rgbToHsv(red, green, blue);\n }\n return null;\n}\nfunction getColorType(colorString) {\n // Regular expressions to match different types of color representation\n const regex = {\n cmyk: /^cmyk[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)/i,\n rgba: /^((rgba)|rgb)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hsla: /^((hsla)|hsl)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hsva: /^((hsva)|hsv)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hexa: /^#?(([\\dA-Fa-f]{3,4})|([\\dA-Fa-f]{6})|([\\dA-Fa-f]{8}))$/i,\n };\n const colorType = Object.entries(regex).find(([, colorRegex]) => colorRegex.exec(colorString));\n if (colorType !== undefined) {\n const match = colorType[1].exec(colorString);\n return {\n type: colorType[0],\n regex: colorType[1],\n match,\n };\n }\n return {\n type: null,\n };\n}\n/**\n * Try's to parse a string which represents a color to an HSV array.\n * Current supported types are cmyk, rgba, hsla and hexadecimal.\n */\nfunction parseToHSVA(colorString = '#000') {\n // Check if string is a color-name\n if (colorString.toLowerCase() === 'transparent') {\n colorString = '#00000000';\n }\n const string = colorString.match(/^[a-zA-Z]+$/) !== null ? standardizeColor(colorString) : colorString;\n const { type, match } = getColorType(string);\n /**\n * Takes an Array of any type, convert strings which represents\n * a number to a number an anything else to undefined.\n * */\n const numarize = (array) => array.map(v => (/^(|\\d+)\\.\\d+|\\d+$/.test(v) ? Number(v) : undefined));\n if (type === null || match === null) {\n return { values: null, type: 'hexa' };\n }\n // Match[2] does only contain a truthy value if rgba, hsla, or hsla got matched\n const hasValidAlphaChannel = (a) => !!match[2] === (typeof a === 'number');\n const isValidAlpha = (a) => a >= 0 && a <= 1 && hasValidAlphaChannel(a);\n if (type === 'cmyk') {\n const [, c, m, y, k] = numarize(match);\n if (c && m && y && k && c <= 100 && m <= 100 && y <= 100 && k <= 100) {\n return { values: cmykToHsv(c, m, y, k), type };\n }\n }\n if (type === 'rgba') {\n const [, , , r, g, b, a] = numarize(match);\n if (r !== undefined && g !== undefined && b !== undefined && a !== undefined && r <= 255 && g <= 255 && b <= 255 && isValidAlpha(a)) {\n return { values: [...rgbToHsv(r, g, b), a], alpha: a, type };\n }\n }\n if (type === 'hexa') {\n let [, hex] = match;\n if (hex.length === 4 || hex.length === 3) {\n hex = hex\n .split('')\n .map(v => v + v)\n .join('');\n }\n const raw = hex.substring(0, 6);\n let a = hex.substring(6);\n // Convert 0 - 255 to 0 - 1 for opacity\n a = a ? parseInt(a, 16) / 255 : undefined;\n const hsvValue = hexToHsv(raw);\n if (hsvValue !== undefined) {\n return { values: [...hsvValue, a], alpha: a, type };\n }\n }\n if (type === 'hsla') {\n const [, , , h, s, l, a] = numarize(match);\n if (h && s && l && a && h <= 360 && s <= 100 && l <= 100 && a >= 0 && a <= 1 && isValidAlpha(a)) {\n return { values: [...hslToHsv(h, s, l), a], alpha: a, type };\n }\n }\n if (type === 'hsva') {\n const [, , , h, s, v, a] = numarize(match);\n if (h && s && v && a && h <= 360 && s <= 100 && v <= 100 && a >= 0 && a <= 1 && isValidAlpha(a)) {\n return { values: [h, s, v, a], alpha: a, type };\n }\n }\n return { values: null, type: 'hexa' };\n}\nconst isValidHex = string => {\n if (string === undefined) {\n return false;\n }\n return string.match(/^#?[\\dA-Fa-f]{6,8}$/i);\n};\nconst DEFAULT_COLOR = '#7CA1FF';\n\n/**\n * Simple class which holds the properties\n * of the color representation model hsla (hue saturation lightness alpha)\n */\nclass HSVaColor {\n constructor(h = 0, s = 0, v = 0, a = 1) {\n this.mapper = (original, next) => (precision = -1) => {\n return next(precision >= 0 ? original.map(v => Number(v.toFixed(precision))) : original);\n };\n this.h = h;\n this.s = s;\n this.v = v;\n this.a = (a > 1) ? a / 100 : a;\n }\n toHSVA() {\n const hsva = [this.h, this.s, this.v, this.a];\n hsva.toString = this.mapper(hsva, arr => `hsva(${arr[0]}, ${arr[1]}%, ${arr[2]}%, ${this.readableAlpha()})`);\n return hsva;\n }\n toHSLA() {\n const hsla = [...hsvToHsl(this.h, this.s, this.v), this.a];\n hsla.toString = this.mapper(hsla, arr => `hsla(${arr[0]}, ${arr[1]}%, ${arr[2]}%, ${this.readableAlpha()})`);\n return hsla;\n }\n toHSL() {\n const hsl = hsvToHsl(this.h, this.s, this.v);\n hsl.toString = this.mapper(hsl, arr => `hsl(${arr[0]}, ${arr[1]}%, ${arr[2]}%)`);\n return hsl;\n }\n toRGBA() {\n const rgba = [...hsvToRgb(this.h, this.s, this.v), this.a];\n rgba.toString = this.mapper(rgba, arr => `rgba(${Math.round(arr[0])}, ${Math.round(arr[1])}, ${Math.round(arr[2])}, ${this.readableAlpha()})`);\n return rgba;\n }\n /**\n * @deprecated {@see toRGBModern()}\n */\n toRGB() {\n const rgb = hsvToRgb(this.h, this.s, this.v);\n rgb.toString = this.mapper(rgb, arr => `rgb(${Math.round(arr[0])}, ${Math.round(arr[1])}, ${Math.round(arr[2])})`);\n return rgb;\n }\n toRGBModern() {\n const rgba = [...hsvToRgb(this.h, this.s, this.v), this.a];\n rgba.toString = this.mapper(rgba, arr => `rgb(${Math.round(arr[0])} ${Math.round(arr[1])} ${Math.round(arr[2])} / ${this.alphaAsPercent()})`);\n return rgba;\n }\n toCMYK() {\n const cmyk = hsvToCmyk(this.h, this.s, this.v);\n cmyk.toString = this.mapper(cmyk, arr => `cmyk(${arr[0]}%, ${arr[1]}%, ${arr[2]}%, ${arr[3]}%)`);\n return cmyk;\n }\n toHEXA() {\n const hex = hsvToHex(this.h, this.s, this.v);\n // Check if alpha channel make sense, convert it to 255 number space, convert\n // To hex and pad it with zeros if needed.\n const alpha = this.a >= 1\n ? ''\n : Number((this.a * 255).toFixed(0))\n .toString(16)\n .toUpperCase()\n .padStart(2, '0');\n alpha && hex.push(alpha);\n hex.toString = () => `#${hex.join('').toUpperCase()}`;\n return hex;\n }\n toHEX() {\n const hex = hsvToHex(this.h, this.s, this.v);\n hex.toString = () => `#${hex.join('').toLowerCase()}`;\n return hex;\n }\n set alpha(a) {\n this.a = (a > 1) ? a / 100 : a;\n }\n get alpha() {\n return this.a;\n }\n set hue(h) {\n this.h = Math.round(h);\n }\n get hue() {\n return this.h;\n }\n set saturation(s) {\n this.s = Math.round(s);\n }\n get saturation() {\n return this.s;\n }\n set value(v) {\n this.v = Math.round(v);\n }\n get value() {\n return this.v;\n }\n clone() {\n return new HSVaColor(this.h, this.s, this.v, this.a);\n }\n readableAlpha() {\n return Math.round((this.a + Number.EPSILON) * 100) / 100;\n }\n alphaAsPercent() {\n return Math.round((this.a + Number.EPSILON) * 100) + '%';\n }\n}\n\nexport { DEFAULT_COLOR as D, HSVaColor as H, isValidHex as i, parseToHSVA as p };\n\n//# sourceMappingURL=HSVaColor-db3c71a6.js.map","import { r as registerInstance, c as createEvent, h, H as Host } from './index-def1ecaa.js';\nimport { D as DEFAULT_COLOR, H as HSVaColor, p as parseToHSVA, i as isValidHex } from './HSVaColor-db3c71a6.js';\n\nconst rsColorPickerCss = \":host{display:block;margin-top:5px;position:absolute;z-index:2;padding-bottom:20px}:host(.rs-color-picker--inline){position:unset;padding-bottom:0}:host(.rs-color-picker--inline) .rs-color-picker__picker{width:100%;max-width:500px}\";\nconst RsColorPickerStyle0 = rsColorPickerCss;\n\nconst RsColorPicker = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsColorChange = createEvent(this, \"rsColorChange\", 7);\n this.rsPresetColorChoice = createEvent(this, \"rsPresetColorChoice\", 7);\n /**\n * Selected colour\n */\n this.color = DEFAULT_COLOR;\n /**\n * If true, will show an opacity slider in the colour picker popup\n */\n this.opacity = false;\n /**\n * Determines whether to show the color picker or not\n */\n this.showPicker = false;\n /**\n * If this is set to 'top', then we show the color picker above the color swatch\n * If 'default', we show the color picker below the color swatch\n *\n */\n this.position = 'default';\n /**\n * If default, color picker's floating and has drop shadow - will display relative to the nearest positioned ancestor.\n * If inline, color picker will always display according to the normal flow of the page - will have no drop-shadow and width is always 100%.\n */\n this.display = 'default';\n /**\n * If set to true, a button will show that will allow the user to set the color picker to transparent without the need for the opacity slider\n */\n this.transparentButton = false;\n /**\n * If set to preset, we only show the preset colors and don't allow custom selection via any method\n */\n this.mode = 'default';\n /**\n * Sets the colour swatches\n */\n this.colorSwatches = null;\n this.onColorChange = (event) => {\n event.stopImmediatePropagation();\n this.internalColor = event.detail;\n this.rsColorChange.emit({ value: event.detail });\n };\n this.onPresetColorChoice = (event) => {\n event.stopImmediatePropagation();\n this.rsPresetColorChoice.emit({ value: event.detail });\n };\n this.positionStyle = () => {\n if (this.position === 'top') {\n return {\n 'bottom': '37px',\n 'margin-top': '0px',\n 'padding-bottom': '0px',\n };\n }\n return {};\n };\n }\n /**\n * Set the color of the color swatch\n * @param color\n */\n async setColor(color) {\n if (!RsColorPicker.allowedColorString(color)) {\n return;\n }\n await this.rsColorPicker.setColor(color);\n }\n /**\n * Returns a HSVaColor object of the currently selected color\n */\n async getColor() {\n return this.internalColor;\n }\n /**\n * A method that can be called on the element for showing the color picker\n */\n async show() {\n this.showPicker = true;\n }\n /**\n * A method that can be called on the element for hiding the color picker\n */\n async hide() {\n this.showPicker = false;\n }\n componentWillLoad() {\n var _a;\n this.internalColor = new HSVaColor(...parseToHSVA((_a = this.color) !== null && _a !== void 0 ? _a : DEFAULT_COLOR).values);\n }\n render() {\n return (h(Host, { key: 'f77ce1a1fc422ba45b6cd1ed14b0a4eb52730ed4', style: Object.assign({ display: (this.showPicker || this.display === 'inline') ? 'block' : 'none' }, this.positionStyle()), class: `rs-color-picker--${this.display}` }, h(\"div\", { key: '3d066e618b9069a1a8e9342087466eb9c9d91312', class: \"rs-color-picker__inner\" }, h(\"div\", { key: '93f13033ca65be2fe652ada17c0740f0c926e2c7', class: \"rs-color-picker__swatch\" }), h(\"div\", { key: 'ac1e1e46009fc42a18e95908ff887a78ea4852af', class: \"rs-color-picker__popup\" }, h(\"color-picker\", { key: 'ce631924706933d920257fa525e705399617b9ec', class: \"rs-color-picker__picker\", color: this.color, mode: this.mode, palettes: this.palettes, opacity: this.opacity, display: this.display, transparentButton: this.transparentButton, onColorChange: this.onColorChange, onPresetColorChoice: this.onPresetColorChoice, ref: el => this.rsColorPicker = el })))));\n }\n static allowedColorString(color) {\n return isValidHex(color) || color.toLowerCase() === 'transparent';\n }\n};\nRsColorPicker.style = RsColorPickerStyle0;\n\nexport { RsColorPicker as rs_color_picker };\n\n//# sourceMappingURL=rs-color-picker.entry.js.map"],"names":["min","max","floor","round","Math","hsvToRgb","h","s","v","hLocal","sLocal","vLocal","i","f","p","q","t","mod","hsvToHex","map","rgb","toString","padStart","hsvToHsl","l","rgbToHsv","red","green","blue","r","g","b","minVal","maxVal","delta","dr","dg","db","cmykToHsv","cyan","magenta","yellow","key","m","y","k","hslToHsv","hue","saturation","lightness","ns","Number","isNaN","parseToHSVA","colorString","toLowerCase","string","match","name","undefined","ctx","document","createElement","getContext","fillStyle","standardizeColor","type","colorType","Object","entries","cmyk","rgba","hsla","hsva","hexa","find","colorRegex","exec","regex","getColorType","numarize","array","test","values","isValidAlpha","a","hasValidAlphaChannel","c","alpha","hex","length","split","join","raw","substring","parseInt","hsvValue","hexRgb","hexToHsv","isValidHex","DEFAULT_COLOR","HSVaColor","constructor","this","mapper","original","next","precision","toFixed","toHSVA","arr","readableAlpha","toHSLA","toHSL","hsl","toRGBA","toRGB","toRGBModern","alphaAsPercent","toCMYK","hsvToCmyk","toHEXA","toUpperCase","push","toHEX","value","clone","EPSILON","RsColorPicker","hostRef","rsColorChange","rsPresetColorChoice","color","D","opacity","showPicker","position","display","transparentButton","mode","colorSwatches","onColorChange","event","stopImmediatePropagation","internalColor","detail","emit","onPresetColorChoice","positionStyle","setColor","allowedColorString","rsColorPicker","getColor","show","hide","componentWillLoad","_a","H","render","style","assign","class","palettes","ref","el"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @rocketspark/domain-checker v1.0.2
3
+ * @rocketspark/domain-checker v1.0.3
4
4
  * https://github.com/rocketspark/domain-checker.git
5
5
  *
6
6
  * Copyright (c) Lee Reichardt and project contributors.
@@ -9,5 +9,5 @@
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  *
11
11
  */
12
- "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[386],{4386:function(e,i,r){r.r(i),r.d(i,{rs_incrementer_option:function(){return t}});var n=r(7915);const t=class{constructor(e){(0,n.r)(this,e),this.rsOptionClick=(0,n.c)(this,"rsOptionClick",7),this.onClickHandler=()=>{this.rsOptionClick.emit({value:this.value})},this.value=void 0}render(){return(0,n.h)(n.H,{class:{"number-incrementer__dropdown-item":!0,"number-incrementer__dropdown-item--string":"string"==typeof this.value},"data-value":this.value,onClick:this.onClickHandler},(0,n.h)("slot",null))}};t.style=":host{display:block;position:relative;padding:10px;font-family:'Soleil', sans-serif;cursor:pointer;font-size:12px}:host(:hover){background-color:var(--rs-color-select-background)}"}}]);
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[386],{4386:function(e,r,i){i.r(r),i.d(r,{rs_incrementer_option:function(){return t}});var n=i(6919);const t=class{constructor(e){(0,n.r)(this,e),this.rsOptionClick=(0,n.c)(this,"rsOptionClick",7),this.onClickHandler=()=>{this.rsOptionClick.emit({value:this.value})}}render(){return(0,n.h)(n.H,{key:"288a6cb16878e4f16e54aa37ed8cc441501072e5",class:{"number-incrementer__dropdown-item":!0,"number-incrementer__dropdown-item--string":"string"==typeof this.value},"data-value":this.value,onClick:this.onClickHandler},(0,n.h)("slot",{key:"b035e5100ee24be34721cd4a8317737f0edb2435"}))}};t.style=":host{display:block;position:relative;padding:10px;font-family:'Soleil', sans-serif;cursor:pointer;font-size:12px}:host(:hover){background-color:var(--rs-color-select-background)}"}}]);
13
13
  //# sourceMappingURL=386.index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"386.index.js","mappings":";;;;;;;;;;;4LAEA,MAEMA,EAAoB,MACxB,WAAAC,CAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,eAAgB,IAAAC,GAAYF,KAAM,gBAAiB,GACxDA,KAAKG,eAAiB,KACpBH,KAAKC,cAAcG,KAAK,CAAEC,MAAOL,KAAKK,OAAQ,EAEhDL,KAAKK,WAAQC,CACf,CACA,MAAAC,GACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,qCAAqC,EACrC,4CAAmE,iBAAfV,KAAKK,OACxD,aAAcL,KAAKK,MAAOM,QAASX,KAAKG,iBAAkB,IAAAK,GAAE,OAAQ,MAC3E,GAEFZ,EAAkBgB,MAlBW,qL","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-incrementer-option.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host } from './index-3d0f28ab.js';\n\nconst incrementerOptionCss = \":host{display:block;position:relative;padding:10px;font-family:'Soleil', sans-serif;cursor:pointer;font-size:12px}:host(:hover){background-color:var(--rs-color-select-background)}\";\n\nconst IncrementerOption = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsOptionClick = createEvent(this, \"rsOptionClick\", 7);\n this.onClickHandler = () => {\n this.rsOptionClick.emit({ value: this.value });\n };\n this.value = undefined;\n }\n render() {\n return (h(Host, { class: {\n 'number-incrementer__dropdown-item': true,\n 'number-incrementer__dropdown-item--string': typeof this.value === 'string'\n }, \"data-value\": this.value, onClick: this.onClickHandler }, h(\"slot\", null)));\n }\n};\nIncrementerOption.style = incrementerOptionCss;\n\nexport { IncrementerOption as rs_incrementer_option };\n\n//# sourceMappingURL=rs-incrementer-option.entry.js.map"],"names":["IncrementerOption","constructor","hostRef","r","this","rsOptionClick","c","onClickHandler","emit","value","undefined","render","h","H","class","onClick","style"],"sourceRoot":""}
1
+ {"version":3,"file":"386.index.js","mappings":";;;;;;;;;;;4LAEA,MAGMA,EAAoB,MACtB,WAAAC,CAAYC,IACR,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,eAAgB,IAAAC,GAAYF,KAAM,gBAAiB,GACxDA,KAAKG,eAAiB,KAClBH,KAAKC,cAAcG,KAAK,CAAEC,MAAOL,KAAKK,OAAQ,CAEtD,CACA,MAAAC,GACI,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,IAAK,2CAA4CC,MAAO,CAClE,qCAAqC,EACrC,4CAAmE,iBAAfV,KAAKK,OAC1D,aAAcL,KAAKK,MAAOM,QAASX,KAAKG,iBAAkB,IAAAI,GAAE,OAAQ,CAAEE,IAAK,6CACtF,GAEJb,EAAkBgB,MAlBW,qL","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-incrementer-option.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host } from './index-def1ecaa.js';\n\nconst incrementerOptionCss = \":host{display:block;position:relative;padding:10px;font-family:'Soleil', sans-serif;cursor:pointer;font-size:12px}:host(:hover){background-color:var(--rs-color-select-background)}\";\nconst RsIncrementerOptionStyle0 = incrementerOptionCss;\n\nconst IncrementerOption = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsOptionClick = createEvent(this, \"rsOptionClick\", 7);\n this.onClickHandler = () => {\n this.rsOptionClick.emit({ value: this.value });\n };\n }\n render() {\n return (h(Host, { key: '288a6cb16878e4f16e54aa37ed8cc441501072e5', class: {\n 'number-incrementer__dropdown-item': true,\n 'number-incrementer__dropdown-item--string': typeof this.value === 'string'\n }, \"data-value\": this.value, onClick: this.onClickHandler }, h(\"slot\", { key: 'b035e5100ee24be34721cd4a8317737f0edb2435' })));\n }\n};\nIncrementerOption.style = RsIncrementerOptionStyle0;\n\nexport { IncrementerOption as rs_incrementer_option };\n\n//# sourceMappingURL=rs-incrementer-option.entry.js.map"],"names":["IncrementerOption","constructor","hostRef","r","this","rsOptionClick","c","onClickHandler","emit","value","render","h","H","key","class","onClick","style"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @rocketspark/domain-checker v1.0.2
3
+ * @rocketspark/domain-checker v1.0.3
4
4
  * https://github.com/rocketspark/domain-checker.git
5
5
  *
6
6
  * Copyright (c) Lee Reichardt and project contributors.
@@ -9,5 +9,5 @@
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  *
11
11
  */
12
- "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[404],{1404:function(t,o,s){s.r(o),s.d(o,{rs_flint_popup_content:function(){return r}});var e=s(7915);const r=class{constructor(t){(0,e.r)(this,t),this.lines=void 0,this.order=void 0,this.parentType=void 0}render(){return(0,e.h)(e.H,{class:{"parent-step":"step"===this.parentType,[`lines-${this.lines}`]:void 0!==this.lines}},(0,e.h)("slot",null))}};r.style=':host{width:100%;box-sizing:border-box;padding:30px;text-align:center;box-shadow:none;border:none;margin:0 auto}:host([parent-type="step"]){position:absolute;top:0;left:0;transition:opacity 0.15s ease-out}:host(.active){pointer-events:all;opacity:1}:host(.lines-full){box-shadow:inset 0 0 0 1px var(--rs-color-light)}:host(.lines-top){border-top:1px solid var(--rs-color-light)}:host(.lines-bottom){border-bottom:1px solid var(--rs-color-light)}:host(.lines-left){border-left:1px solid var(--rs-color-light)}:host(.lines-right){border-right:1px solid var(--rs-color-light)}'}}]);
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[404],{1404:function(t,o,e){e.r(o),e.d(o,{rs_flint_popup_content:function(){return r}});var s=e(6919);const r=class{constructor(t){(0,s.r)(this,t)}render(){return(0,s.h)(s.H,{key:"2f1905d288531afe635960dbb66d92cb35a07367",class:{"parent-step":"step"===this.parentType,[`lines-${this.lines}`]:void 0!==this.lines}},(0,s.h)("slot",{key:"5e7ead45850fd631b5f5db0213042fe4980ad8d7"}))}};r.style=':host{width:100%;box-sizing:border-box;padding:30px;text-align:center;box-shadow:none;border:none;margin:0 auto}:host([parent-type="step"]){position:absolute;top:0;left:0;transition:opacity 0.15s ease-out}:host(.active){pointer-events:all;opacity:1}:host(.lines-full){box-shadow:inset 0 0 0 1px var(--rs-color-light)}:host(.lines-top){border-top:1px solid var(--rs-color-light)}:host(.lines-bottom){border-bottom:1px solid var(--rs-color-light)}:host(.lines-left){border-left:1px solid var(--rs-color-light)}:host(.lines-right){border-right:1px solid var(--rs-color-light)}'}}]);
13
13
  //# sourceMappingURL=404.index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"404.index.js","mappings":";;;;;;;;;;;6LAEA,MAEMA,EAAsB,MAC1B,WAAAC,CAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,WAAQC,EACbF,KAAKG,WAAQD,EACbF,KAAKI,gBAAaF,CACpB,CACA,MAAAG,GACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,cAAmC,SAApBR,KAAKI,WACpB,CAAC,SAASJ,KAAKC,cAAyBC,IAAfF,KAAKC,SAC3B,IAAAK,GAAE,OAAQ,MACnB,GAEFV,EAAoBa,MAhBW,+jB","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-flint-popup-content.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-3d0f28ab.js';\n\nconst rsFlintPopupContentCss = \":host{width:100%;box-sizing:border-box;padding:30px;text-align:center;box-shadow:none;border:none;margin:0 auto}:host([parent-type=\\\"step\\\"]){position:absolute;top:0;left:0;transition:opacity 0.15s ease-out}:host(.active){pointer-events:all;opacity:1}:host(.lines-full){box-shadow:inset 0 0 0 1px var(--rs-color-light)}:host(.lines-top){border-top:1px solid var(--rs-color-light)}:host(.lines-bottom){border-bottom:1px solid var(--rs-color-light)}:host(.lines-left){border-left:1px solid var(--rs-color-light)}:host(.lines-right){border-right:1px solid var(--rs-color-light)}\";\n\nconst RsFlintPopupContent = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.lines = undefined;\n this.order = undefined;\n this.parentType = undefined;\n }\n render() {\n return (h(Host, { class: {\n 'parent-step': this.parentType === 'step',\n [`lines-${this.lines}`]: this.lines !== undefined\n } }, h(\"slot\", null)));\n }\n};\nRsFlintPopupContent.style = rsFlintPopupContentCss;\n\nexport { RsFlintPopupContent as rs_flint_popup_content };\n\n//# sourceMappingURL=rs-flint-popup-content.entry.js.map"],"names":["RsFlintPopupContent","constructor","hostRef","r","this","lines","undefined","order","parentType","render","h","H","class","style"],"sourceRoot":""}
1
+ {"version":3,"file":"404.index.js","mappings":";;;;;;;;;;;6LAEA,MAGMA,EAAsB,MACxB,WAAAC,CAAYC,IACR,IAAAC,GAAiBC,KAAMF,EAC3B,CACA,MAAAG,GACI,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,IAAK,2CAA4CC,MAAO,CAClE,cAAmC,SAApBL,KAAKM,WACpB,CAAC,SAASN,KAAKO,cAAyBC,IAAfR,KAAKO,SAC7B,IAAAL,GAAE,OAAQ,CAAEE,IAAK,6CAC9B,GAEJR,EAAoBa,MAdW,+jB","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-flint-popup-content.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-def1ecaa.js';\n\nconst rsFlintPopupContentCss = \":host{width:100%;box-sizing:border-box;padding:30px;text-align:center;box-shadow:none;border:none;margin:0 auto}:host([parent-type=\\\"step\\\"]){position:absolute;top:0;left:0;transition:opacity 0.15s ease-out}:host(.active){pointer-events:all;opacity:1}:host(.lines-full){box-shadow:inset 0 0 0 1px var(--rs-color-light)}:host(.lines-top){border-top:1px solid var(--rs-color-light)}:host(.lines-bottom){border-bottom:1px solid var(--rs-color-light)}:host(.lines-left){border-left:1px solid var(--rs-color-light)}:host(.lines-right){border-right:1px solid var(--rs-color-light)}\";\nconst RsFlintPopupContentStyle0 = rsFlintPopupContentCss;\n\nconst RsFlintPopupContent = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n render() {\n return (h(Host, { key: '2f1905d288531afe635960dbb66d92cb35a07367', class: {\n 'parent-step': this.parentType === 'step',\n [`lines-${this.lines}`]: this.lines !== undefined\n } }, h(\"slot\", { key: '5e7ead45850fd631b5f5db0213042fe4980ad8d7' })));\n }\n};\nRsFlintPopupContent.style = RsFlintPopupContentStyle0;\n\nexport { RsFlintPopupContent as rs_flint_popup_content };\n\n//# sourceMappingURL=rs-flint-popup-content.entry.js.map"],"names":["RsFlintPopupContent","constructor","hostRef","r","this","render","h","H","key","class","parentType","lines","undefined","style"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @rocketspark/domain-checker v1.0.2
3
+ * @rocketspark/domain-checker v1.0.3
4
4
  * https://github.com/rocketspark/domain-checker.git
5
5
  *
6
6
  * Copyright (c) Lee Reichardt and project contributors.
@@ -9,5 +9,5 @@
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  *
11
11
  */
12
- "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[420],{9420:function(t,e,n){n.r(e),n.d(e,{rs_card_header:function(){return o}});var s=n(7915);const o=class{constructor(t){(0,s.r)(this,t),this.flex=!1,this.alignContent=void 0}render(){return(0,s.h)(s.H,null,(0,s.h)("slot",{name:"start"}),(0,s.h)("slot",null),(0,s.h)("slot",{name:"end"}))}};o.style=":host{display:block;width:100%;padding:14px;box-sizing:border-box;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;color:var(--rs-color-heading);position:relative}:host([flex]){display:flex;flex-flow:row wrap;align-items:center}::slotted([slot='start']){margin-right:16px}::slotted([slot='end']){margin-left:16px}:host([align-content='flex-start']){justify-content:flex-start}:host([align-content='flex-end']){justify-content:flex-end}:host([align-content='space-around']){justify-content:space-around}:host([align-content='space-between']){justify-content:space-between}:host([align-content='space-evenly']){justify-content:space-evenly}:host([align-content='space-around']) ::slotted([slot='start']),:host([align-content='space-around']) ::slotted([slot='end']),:host([align-content='space-between']) ::slotted([slot='start']),:host([align-content='space-between']) ::slotted([slot='end']),:host([align-content='space-evenly']) ::slotted([slot='start']),:host([align-content='space-evenly']) ::slotted([slot='end']){margin:0}"}}]);
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[420],{9420:function(t,e,n){n.r(e),n.d(e,{rs_card_header:function(){return o}});var s=n(6919);const o=class{constructor(t){(0,s.r)(this,t),this.flex=!1}render(){return(0,s.h)(s.H,{key:"6d54e86718d4f6d5330244dfaf20b4633e7238be"},(0,s.h)("slot",{key:"a5d555bd7e578ac28ccf07b3075fc85b8ad1288b",name:"start"}),(0,s.h)("slot",{key:"12e0853bf16fcdc4248c513d99484aedf496ed62"}),(0,s.h)("slot",{key:"04bdae067b66812345de89b3e065ee29fac77a84",name:"end"}))}};o.style=":host{display:block;width:100%;padding:14px;box-sizing:border-box;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;color:var(--rs-color-heading);position:relative}:host([flex]){display:flex;flex-flow:row wrap;align-items:center}::slotted([slot='start']){margin-right:16px}::slotted([slot='end']){margin-left:16px}:host([align-content='flex-start']){justify-content:flex-start}:host([align-content='flex-end']){justify-content:flex-end}:host([align-content='space-around']){justify-content:space-around}:host([align-content='space-between']){justify-content:space-between}:host([align-content='space-evenly']){justify-content:space-evenly}:host([align-content='space-around']) ::slotted([slot='start']),:host([align-content='space-around']) ::slotted([slot='end']),:host([align-content='space-between']) ::slotted([slot='start']),:host([align-content='space-between']) ::slotted([slot='end']),:host([align-content='space-evenly']) ::slotted([slot='start']),:host([align-content='space-evenly']) ::slotted([slot='end']){margin:0}"}}]);
13
13
  //# sourceMappingURL=420.index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"420.index.js","mappings":";;;;;;;;;;;qLAEA,MAEMA,EAAa,MACjB,WAAAC,CAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,MAAO,EACZD,KAAKE,kBAAeC,CACtB,CAIA,MAAAC,GACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,OAAQ,CAAEE,KAAM,WAAY,IAAAF,GAAE,OAAQ,OAAO,IAAAA,GAAE,OAAQ,CAAEE,KAAM,QACzF,GAEFX,EAAWY,MAfW,whC","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-card-header.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-3d0f28ab.js';\n\nconst cardHeaderCss = \":host{display:block;width:100%;padding:14px;box-sizing:border-box;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;color:var(--rs-color-heading);position:relative}:host([flex]){display:flex;flex-flow:row wrap;align-items:center}::slotted([slot='start']){margin-right:16px}::slotted([slot='end']){margin-left:16px}:host([align-content='flex-start']){justify-content:flex-start}:host([align-content='flex-end']){justify-content:flex-end}:host([align-content='space-around']){justify-content:space-around}:host([align-content='space-between']){justify-content:space-between}:host([align-content='space-evenly']){justify-content:space-evenly}:host([align-content='space-around']) ::slotted([slot='start']),:host([align-content='space-around']) ::slotted([slot='end']),:host([align-content='space-between']) ::slotted([slot='start']),:host([align-content='space-between']) ::slotted([slot='end']),:host([align-content='space-evenly']) ::slotted([slot='start']),:host([align-content='space-evenly']) ::slotted([slot='end']){margin:0}\";\n\nconst CardHeader = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.flex = false;\n this.alignContent = undefined;\n }\n /**\n * This renders this component\n */\n render() {\n return (h(Host, null, h(\"slot\", { name: \"start\" }), h(\"slot\", null), h(\"slot\", { name: \"end\" })));\n }\n};\nCardHeader.style = cardHeaderCss;\n\nexport { CardHeader as rs_card_header };\n\n//# sourceMappingURL=rs-card-header.entry.js.map"],"names":["CardHeader","constructor","hostRef","r","this","flex","alignContent","undefined","render","h","H","name","style"],"sourceRoot":""}
1
+ {"version":3,"file":"420.index.js","mappings":";;;;;;;;;;;qLAEA,MAGMA,EAAa,MACf,WAAAC,CAAYC,IACR,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,MAAO,CAChB,CAIA,MAAAC,GACI,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,IAAK,6CAA8C,IAAAF,GAAE,OAAQ,CAAEE,IAAK,2CAA4CC,KAAM,WAAY,IAAAH,GAAE,OAAQ,CAAEE,IAAK,8CAA+C,IAAAF,GAAE,OAAQ,CAAEE,IAAK,2CAA4CC,KAAM,QAC3R,GAEJV,EAAWW,MAlBW,whC","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-card-header.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-def1ecaa.js';\n\nconst cardHeaderCss = \":host{display:block;width:100%;padding:14px;box-sizing:border-box;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;color:var(--rs-color-heading);position:relative}:host([flex]){display:flex;flex-flow:row wrap;align-items:center}::slotted([slot='start']){margin-right:16px}::slotted([slot='end']){margin-left:16px}:host([align-content='flex-start']){justify-content:flex-start}:host([align-content='flex-end']){justify-content:flex-end}:host([align-content='space-around']){justify-content:space-around}:host([align-content='space-between']){justify-content:space-between}:host([align-content='space-evenly']){justify-content:space-evenly}:host([align-content='space-around']) ::slotted([slot='start']),:host([align-content='space-around']) ::slotted([slot='end']),:host([align-content='space-between']) ::slotted([slot='start']),:host([align-content='space-between']) ::slotted([slot='end']),:host([align-content='space-evenly']) ::slotted([slot='start']),:host([align-content='space-evenly']) ::slotted([slot='end']){margin:0}\";\nconst RsCardHeaderStyle0 = cardHeaderCss;\n\nconst CardHeader = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Displays items inside the component in one row\n */\n this.flex = false;\n }\n /**\n * This renders this component\n */\n render() {\n return (h(Host, { key: '6d54e86718d4f6d5330244dfaf20b4633e7238be' }, h(\"slot\", { key: 'a5d555bd7e578ac28ccf07b3075fc85b8ad1288b', name: \"start\" }), h(\"slot\", { key: '12e0853bf16fcdc4248c513d99484aedf496ed62' }), h(\"slot\", { key: '04bdae067b66812345de89b3e065ee29fac77a84', name: \"end\" })));\n }\n};\nCardHeader.style = RsCardHeaderStyle0;\n\nexport { CardHeader as rs_card_header };\n\n//# sourceMappingURL=rs-card-header.entry.js.map"],"names":["CardHeader","constructor","hostRef","r","this","flex","render","h","H","key","name","style"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @rocketspark/domain-checker v1.0.2
3
+ * @rocketspark/domain-checker v1.0.3
4
4
  * https://github.com/rocketspark/domain-checker.git
5
5
  *
6
6
  * Copyright (c) Lee Reichardt and project contributors.
@@ -9,5 +9,5 @@
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  *
11
11
  */
12
- "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[514],{4514:function(e,t,s){s.r(t),s.d(t,{rs_multi_select:function(){return r}});var i=s(7915);const r=class{constructor(e){(0,i.r)(this,e),this.rsSelect=(0,i.c)(this,"rsSelect",7),this.rsFeature=(0,i.c)(this,"rsFeature",7),this.gap="16px",this.columns=3,this.width="100%",this.selectedItems="",this.featuredItems=""}selectedItemsChange(e){var t;null===(t=this.multiSelectItems)||void 0===t||t.forEach((t=>{var s;t.selected=null===(s=r.toArray(e))||void 0===s?void 0:s.includes(t.value)}));const s=""===e?[]:r.noDuplicates(this.selectedItems);this.rsSelect.emit({value:s})}featuredItemsChange(e){var t;null===(t=this.multiSelectItems)||void 0===t||t.forEach((t=>{var s;t.featured=null===(s=r.toArray(e))||void 0===s?void 0:s.includes(t.value)}));const s=""===e?[]:r.noDuplicates(this.featuredItems);this.rsFeature.emit({value:s})}static toArray(e){return"string"==typeof e?null==e?void 0:e.split(",").map((e=>e.trim())):e}static noDuplicates(e){return"string"==typeof e&&(e=r.toArray(e)),null==e?void 0:e.filter(((e,t,s)=>s.indexOf(e)==t))}componentWillLoad(){var e;this.multiSelectItems=this.el.querySelectorAll("rs-multi-select-item"),"string"==typeof this.selectedItems&&(this.selectedItems=""===this.selectedItems?[]:r.toArray(this.selectedItems)),"string"==typeof this.featuredItems&&(this.featuredItems=""===this.featuredItems?[]:r.toArray(this.featuredItems),null===(e=this.featuredItems)||void 0===e||e.forEach((e=>{var t;(null===(t=this.selectedItems)||void 0===t?void 0:t.includes(e))||this.selectedItems.push(e)})))}render(){return(0,i.h)(i.H,{style:{"grid-template-columns":`repeat(${this.columns}, 1fr)`,"grid-gap":this.gap,width:this.width}},(0,i.h)("slot",null))}get el(){return(0,i.g)(this)}static get watchers(){return{selectedItems:["selectedItemsChange"],featuredItems:["featuredItemsChange"]}}};r.style=":host{display:grid;grid-template-columns:repeat(3, 1fr);grid-gap:16px;font-style:normal}"}}]);
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[514],{4514:function(e,t,s){s.r(t),s.d(t,{rs_multi_select:function(){return r}});var i=s(6919);const r=class{constructor(e){(0,i.r)(this,e),this.rsSelect=(0,i.c)(this,"rsSelect",7),this.rsFeature=(0,i.c)(this,"rsFeature",7),this.gap="16px",this.columns=3,this.width="100%",this.selectedItems="",this.featuredItems=""}selectedItemsChange(e){var t;null===(t=this.multiSelectItems)||void 0===t||t.forEach((t=>{var s;t.selected=null===(s=r.toArray(e))||void 0===s?void 0:s.includes(t.value)}));const s=""===e?[]:r.noDuplicates(this.selectedItems);this.rsSelect.emit({value:s})}featuredItemsChange(e){var t;null===(t=this.multiSelectItems)||void 0===t||t.forEach((t=>{var s;t.featured=null===(s=r.toArray(e))||void 0===s?void 0:s.includes(t.value)}));const s=""===e?[]:r.noDuplicates(this.featuredItems);this.rsFeature.emit({value:s})}static toArray(e){return"string"==typeof e?null==e?void 0:e.split(",").map((e=>e.trim())):e}static noDuplicates(e){return"string"==typeof e&&(e=r.toArray(e)),null==e?void 0:e.filter(((e,t,s)=>s.indexOf(e)==t))}componentWillLoad(){var e;this.multiSelectItems=this.el.querySelectorAll("rs-multi-select-item"),"string"==typeof this.selectedItems&&(this.selectedItems=""===this.selectedItems?[]:r.toArray(this.selectedItems)),"string"==typeof this.featuredItems&&(this.featuredItems=""===this.featuredItems?[]:r.toArray(this.featuredItems),null===(e=this.featuredItems)||void 0===e||e.forEach((e=>{var t;(null===(t=this.selectedItems)||void 0===t?void 0:t.includes(e))||this.selectedItems.push(e)})))}render(){return(0,i.h)(i.H,{key:"7a27ba12a69e0a57350f0da8f17553b6393a80d5",style:{"grid-template-columns":`repeat(${this.columns}, 1fr)`,"grid-gap":this.gap,width:this.width}},(0,i.h)("slot",{key:"c3bb8cc3eb1ba0e65a0d7485e9807ed3a29bade6"}))}get el(){return(0,i.g)(this)}static get watchers(){return{selectedItems:["selectedItemsChange"],featuredItems:["featuredItemsChange"]}}};r.style=":host{display:grid;grid-template-columns:repeat(3, 1fr);grid-gap:16px;font-style:normal}"}}]);
13
13
  //# sourceMappingURL=514.index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"514.index.js","mappings":";;;;;;;;;;;sLAEA,MAEMA,EAAgB,MACpB,WAAAC,CAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,UAAW,IAAAC,GAAYF,KAAM,WAAY,GAC9CA,KAAKG,WAAY,IAAAD,GAAYF,KAAM,YAAa,GAChDA,KAAKI,IAAM,OACXJ,KAAKK,QAAU,EACfL,KAAKM,MAAQ,OACbN,KAAKO,cAAgB,GACrBP,KAAKQ,cAAgB,EACvB,CACA,mBAAAC,CAAoBC,GAClB,IAAIC,EAC6B,QAAhCA,EAAKX,KAAKY,wBAAqC,IAAPD,GAAyBA,EAAGE,SAAQC,IAC3E,IAAIH,EACJG,EAAgBC,SAAsD,QAA1CJ,EAAKf,EAAcoB,QAAQN,UAA8B,IAAPC,OAAgB,EAASA,EAAGM,SAASH,EAAgBI,MAAM,IAE3I,MAAMX,EAA6B,KAAbG,EAAkB,GAAKd,EAAcuB,aAAanB,KAAKO,eAC7EP,KAAKC,SAASmB,KAAK,CAAEF,MAAOX,GAC9B,CACA,mBAAAc,CAAoBX,GAClB,IAAIC,EAC6B,QAAhCA,EAAKX,KAAKY,wBAAqC,IAAPD,GAAyBA,EAAGE,SAAQC,IAC3E,IAAIH,EACJG,EAAgBQ,SAAsD,QAA1CX,EAAKf,EAAcoB,QAAQN,UAA8B,IAAPC,OAAgB,EAASA,EAAGM,SAASH,EAAgBI,MAAM,IAE3I,MAAMV,EAA6B,KAAbE,EAAkB,GAAKd,EAAcuB,aAAanB,KAAKQ,eAC7ER,KAAKG,UAAUiB,KAAK,CAAEF,MAAOV,GAC/B,CACA,cAAOQ,CAAQO,GACb,MAAqB,iBAAVA,EACFA,aAAqC,EAASA,EAAMC,MAAM,KAAKC,KAAIC,GACjEA,EAAKC,SAGTJ,CACT,CACA,mBAAOJ,CAAaI,GAIlB,MAHqB,iBAAVA,IACTA,EAAQ3B,EAAcoB,QAAQO,IAEzBA,aAAqC,EAASA,EAAMK,QAAO,CAACF,EAAMG,EAAOC,IACvEA,EAAWC,QAAQL,IAASG,GAEvC,CACA,iBAAAG,GACE,IAAIrB,EACJX,KAAKY,iBAAmBZ,KAAKiC,GAAGC,iBAAiB,wBACf,iBAAvBlC,KAAKO,gBACdP,KAAKO,cAAuC,KAAvBP,KAAKO,cAAuB,GAAKX,EAAcoB,QAAQhB,KAAKO,gBAEjD,iBAAvBP,KAAKQ,gBACdR,KAAKQ,cAAuC,KAAvBR,KAAKQ,cAAuB,GAAKZ,EAAcoB,QAAQhB,KAAKQ,eACnD,QAA7BG,EAAKX,KAAKQ,qBAAkC,IAAPG,GAAyBA,EAAGE,SAAQsB,IACxE,IAAIxB,GACgC,QAA7BA,EAAKX,KAAKO,qBAAkC,IAAPI,OAAgB,EAASA,EAAGM,SAASkB,KAC/EnC,KAAKO,cAAc6B,KAAKD,EAC1B,IAGN,CACA,MAAAE,GACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,wBAAyB,UAAUxC,KAAKK,gBACxC,WAAYL,KAAKI,IACjB,MAASJ,KAAKM,SACX,IAAAgC,GAAE,OAAQ,MACnB,CACA,MAAIL,GAAO,OAAO,IAAAQ,GAAWzC,KAAO,CACpC,mBAAW0C,GAAa,MAAO,CAC7B,cAAiB,CAAC,uBAClB,cAAiB,CAAC,uBACjB,GAEL9C,EAAc4C,MA5EW,0F","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-multi-select.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-3d0f28ab.js';\n\nconst rsMultiSelectCss = \":host{display:grid;grid-template-columns:repeat(3, 1fr);grid-gap:16px;font-style:normal}\";\n\nconst RsMultiSelect = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsSelect = createEvent(this, \"rsSelect\", 7);\n this.rsFeature = createEvent(this, \"rsFeature\", 7);\n this.gap = '16px';\n this.columns = 3;\n this.width = '100%';\n this.selectedItems = '';\n this.featuredItems = '';\n }\n selectedItemsChange(newValue) {\n var _a;\n (_a = this.multiSelectItems) === null || _a === void 0 ? void 0 : _a.forEach(multiSelectItem => {\n var _a;\n multiSelectItem.selected = (_a = RsMultiSelect.toArray(newValue)) === null || _a === void 0 ? void 0 : _a.includes(multiSelectItem.value);\n });\n const selectedItems = newValue === '' ? [] : RsMultiSelect.noDuplicates(this.selectedItems);\n this.rsSelect.emit({ value: selectedItems });\n }\n featuredItemsChange(newValue) {\n var _a;\n (_a = this.multiSelectItems) === null || _a === void 0 ? void 0 : _a.forEach(multiSelectItem => {\n var _a;\n multiSelectItem.featured = (_a = RsMultiSelect.toArray(newValue)) === null || _a === void 0 ? void 0 : _a.includes(multiSelectItem.value);\n });\n const featuredItems = newValue === '' ? [] : RsMultiSelect.noDuplicates(this.featuredItems);\n this.rsFeature.emit({ value: featuredItems });\n }\n static toArray(items) {\n if (typeof items === 'string') {\n return items === null || items === void 0 ? void 0 : items.split(',').map(item => {\n return item.trim();\n });\n }\n return items;\n }\n static noDuplicates(items) {\n if (typeof items === 'string') {\n items = RsMultiSelect.toArray(items);\n }\n return items === null || items === void 0 ? void 0 : items.filter((item, index, inputArray) => {\n return inputArray.indexOf(item) == index;\n });\n }\n componentWillLoad() {\n var _a;\n this.multiSelectItems = this.el.querySelectorAll('rs-multi-select-item');\n if (typeof this.selectedItems === 'string') {\n this.selectedItems = this.selectedItems === '' ? [] : RsMultiSelect.toArray(this.selectedItems);\n }\n if (typeof this.featuredItems === 'string') {\n this.featuredItems = this.featuredItems === '' ? [] : RsMultiSelect.toArray(this.featuredItems);\n (_a = this.featuredItems) === null || _a === void 0 ? void 0 : _a.forEach(featuredItem => {\n var _a;\n if (!((_a = this.selectedItems) === null || _a === void 0 ? void 0 : _a.includes(featuredItem))) {\n this.selectedItems.push(featuredItem);\n }\n });\n }\n }\n render() {\n return (h(Host, { style: {\n 'grid-template-columns': `repeat(${this.columns}, 1fr)`,\n 'grid-gap': this.gap,\n 'width': this.width,\n } }, h(\"slot\", null)));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"selectedItems\": [\"selectedItemsChange\"],\n \"featuredItems\": [\"featuredItemsChange\"]\n }; }\n};\nRsMultiSelect.style = rsMultiSelectCss;\n\nexport { RsMultiSelect as rs_multi_select };\n\n//# sourceMappingURL=rs-multi-select.entry.js.map"],"names":["RsMultiSelect","constructor","hostRef","r","this","rsSelect","c","rsFeature","gap","columns","width","selectedItems","featuredItems","selectedItemsChange","newValue","_a","multiSelectItems","forEach","multiSelectItem","selected","toArray","includes","value","noDuplicates","emit","featuredItemsChange","featured","items","split","map","item","trim","filter","index","inputArray","indexOf","componentWillLoad","el","querySelectorAll","featuredItem","push","render","h","H","style","g","watchers"],"sourceRoot":""}
1
+ {"version":3,"file":"514.index.js","mappings":";;;;;;;;;;;sLAEA,MAGMA,EAAgB,MAClB,WAAAC,CAAYC,IACR,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,UAAW,IAAAC,GAAYF,KAAM,WAAY,GAC9CA,KAAKG,WAAY,IAAAD,GAAYF,KAAM,YAAa,GAIhDA,KAAKI,IAAM,OAIXJ,KAAKK,QAAU,EAIfL,KAAKM,MAAQ,OAIbN,KAAKO,cAAgB,GAIrBP,KAAKQ,cAAgB,EACzB,CACA,mBAAAC,CAAoBC,GAChB,IAAIC,EAC6B,QAAhCA,EAAKX,KAAKY,wBAAqC,IAAPD,GAAyBA,EAAGE,SAAQC,IACzE,IAAIH,EACJG,EAAgBC,SAAsD,QAA1CJ,EAAKf,EAAcoB,QAAQN,UAA8B,IAAPC,OAAgB,EAASA,EAAGM,SAASH,EAAgBI,MAAM,IAE7I,MAAMX,EAA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,IAAAC,GAAE,EAAAC,EAAM,CAAEC,IAAK,2CAA4CC,MAAO,CAClE,wBAAyB,UAAUzC,KAAKK,gBACxC,WAAYL,KAAKI,IACjB,MAASJ,KAAKM,SACb,IAAAgC,GAAE,OAAQ,CAAEE,IAAK,6CAC9B,CACA,MAAIP,GAAO,OAAO,IAAAS,GAAW1C,KAAO,CACpC,mBAAW2C,GAAa,MAAO,CAC3B,cAAiB,CAAC,uBAClB,cAAiB,CAAC,uBACnB,GAEP/C,EAAc6C,MA5FW,0F","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-multi-select.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-def1ecaa.js';\n\nconst rsMultiSelectCss = \":host{display:grid;grid-template-columns:repeat(3, 1fr);grid-gap:16px;font-style:normal}\";\nconst RsMultiSelectStyle0 = rsMultiSelectCss;\n\nconst RsMultiSelect = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsSelect = createEvent(this, \"rsSelect\", 7);\n this.rsFeature = createEvent(this, \"rsFeature\", 7);\n /**\n * Gap between the items\n */\n this.gap = '16px';\n /**\n * Number of columns\n */\n this.columns = 3;\n /**\n * Width of the multi-select container\n */\n this.width = '100%';\n /**\n * Items that are selected\n */\n this.selectedItems = '';\n /**\n * Items that are featured\n */\n this.featuredItems = '';\n }\n selectedItemsChange(newValue) {\n var _a;\n (_a = this.multiSelectItems) === null || _a === void 0 ? void 0 : _a.forEach(multiSelectItem => {\n var _a;\n multiSelectItem.selected = (_a = RsMultiSelect.toArray(newValue)) === null || _a === void 0 ? void 0 : _a.includes(multiSelectItem.value);\n });\n const selectedItems = newValue === '' ? [] : RsMultiSelect.noDuplicates(this.selectedItems);\n this.rsSelect.emit({ value: selectedItems });\n }\n featuredItemsChange(newValue) {\n var _a;\n (_a = this.multiSelectItems) === null || _a === void 0 ? void 0 : _a.forEach(multiSelectItem => {\n var _a;\n multiSelectItem.featured = (_a = RsMultiSelect.toArray(newValue)) === null || _a === void 0 ? void 0 : _a.includes(multiSelectItem.value);\n });\n const featuredItems = newValue === '' ? [] : RsMultiSelect.noDuplicates(this.featuredItems);\n this.rsFeature.emit({ value: featuredItems });\n }\n static toArray(items) {\n if (typeof items === 'string') {\n return items === null || items === void 0 ? void 0 : items.split(',').map(item => {\n return item.trim();\n });\n }\n return items;\n }\n static noDuplicates(items) {\n if (typeof items === 'string') {\n items = RsMultiSelect.toArray(items);\n }\n return items === null || items === void 0 ? void 0 : items.filter((item, index, inputArray) => {\n return inputArray.indexOf(item) == index;\n });\n }\n componentWillLoad() {\n var _a;\n this.multiSelectItems = this.el.querySelectorAll('rs-multi-select-item');\n if (typeof this.selectedItems === 'string') {\n this.selectedItems = this.selectedItems === '' ? [] : RsMultiSelect.toArray(this.selectedItems);\n }\n if (typeof this.featuredItems === 'string') {\n this.featuredItems = this.featuredItems === '' ? [] : RsMultiSelect.toArray(this.featuredItems);\n (_a = this.featuredItems) === null || _a === void 0 ? void 0 : _a.forEach(featuredItem => {\n var _a;\n if (!((_a = this.selectedItems) === null || _a === void 0 ? void 0 : _a.includes(featuredItem))) {\n this.selectedItems.push(featuredItem);\n }\n });\n }\n }\n render() {\n return (h(Host, { key: '7a27ba12a69e0a57350f0da8f17553b6393a80d5', style: {\n 'grid-template-columns': `repeat(${this.columns}, 1fr)`,\n 'grid-gap': this.gap,\n 'width': this.width,\n } }, h(\"slot\", { key: 'c3bb8cc3eb1ba0e65a0d7485e9807ed3a29bade6' })));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"selectedItems\": [\"selectedItemsChange\"],\n \"featuredItems\": [\"featuredItemsChange\"]\n }; }\n};\nRsMultiSelect.style = RsMultiSelectStyle0;\n\nexport { RsMultiSelect as rs_multi_select };\n\n//# sourceMappingURL=rs-multi-select.entry.js.map"],"names":["RsMultiSelect","constructor","hostRef","r","this","rsSelect","c","rsFeature","gap","columns","width","selectedItems","featuredItems","selectedItemsChange","newValue","_a","multiSelectItems","forEach","multiSelectItem","selected","toArray","includes","value","noDuplicates","emit","featuredItemsChange","featured","items","split","map","item","trim","filter","index","inputArray","indexOf","componentWillLoad","el","querySelectorAll","featuredItem","push","render","h","H","key","style","g","watchers"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @rocketspark/domain-checker v1.0.2
3
+ * @rocketspark/domain-checker v1.0.3
4
4
  * https://github.com/rocketspark/domain-checker.git
5
5
  *
6
6
  * Copyright (c) Lee Reichardt and project contributors.
@@ -9,5 +9,5 @@
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  *
11
11
  */
12
- "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[524],{2419:function(t,e,s){s.d(e,{d:function(){return i},i:function(){return o},s:function(){return r}});var a=s(7915);const i=(t,e=0)=>{let s;return(...a)=>{clearTimeout(s),s=setTimeout(t,e,...a)}},o=(t,e,s)=>{const i=(void 0!==t.target?t.target:s).tagName.toLowerCase().replace("rs-",""),o=t.detail,r={},h=e.get(i)||{};let n=!1;Object.keys(o).forEach((t=>{if(o[t]){const e=`item-${t}`;h[e]||(n=!0),r[e]=!0}})),n||Object.keys(r).length===Object.keys(h).length||(n=!0),n&&(e.set(i,r),(0,a.f)(s))},r=(t,e,s,a=!1)=>{!e&&!s||a||null!==t&&(t.style.display="block",setTimeout((function(){t.style.opacity="1"}),150))}},5524:function(t,e,s){s.r(e),s.d(e,{rs_textarea:function(){return o}});var a=s(7915),i=s(2419);const o=class{constructor(t){(0,a.r)(this,t),this.rsChange=(0,a.c)(this,"rsChange",7),this.rsInput=(0,a.c)(this,"rsInput",7),this.rsItem=(0,a.c)(this,"rsItem",7),this.rsBlur=(0,a.c)(this,"rsBlur",7),this.rsFocus=(0,a.c)(this,"rsFocus",7),this.hasStartSlot=!1,this.hasEndSlot=!1,this.onInput=t=>{const e=t.target;void 0!==e&&(this.value=e.value||""),this.rsInput.emit(t)},this.onFocus=()=>{this.hasFocus=!0,this.emitRsItem(),this.rsFocus.emit()},this.onBlur=()=>{this.hasFocus=!1,this.emitRsItem(),this.rsBlur.emit()},this.onPaste=t=>{if(this.richText){let e=t.clipboardData.getData("text/plain");t.preventDefault();const s=document.createElement("textarea");s.innerHTML=e,e=s.textContent.trim().replace(/[ ]+/g," ").replace(/\n+\s+\n+/g,"\n\n").replace(/\n\n+/g,"\n\n"),document.execCommand("insertText",!1,e)}},this.charsLeft=0,this.hasFocus=!1,this.disabled=!1,this.autoExpand=!1,this.minHeight=62,this.maxHeight=250,this.rows=2,this.placeholder=void 0,this.hideMax=!1,this.hardLimit=null,this.softLimit=null,this.value="",this.richText=!1,this.hasError=!1,this.required=!1}changeMaxLengthText(){if(null!==this.softLimit&&this.softLimit>0&&!this.hideMax){const t=this.value.length;this.charsLeft=this.softLimit-t;const e=this.el.shadowRoot.querySelector(".max-length");null!==e&&(this.charsLeft<0?(e.innerHTML=`${Math.abs(this.charsLeft)} over`,this.el.classList.add("textarea-chars-over-max")):(e.innerHTML=`${this.charsLeft} left`,this.el.classList.remove("textarea-chars-over-max")))}}valueChanged(){this.runAutoExpand(),this.emitRsItem(),this.changeMaxLengthText(),this.rsChange.emit({value:null==this.value?this.value:this.value.toString()})}getValue(){return this.value||""}hasValue(){return""!==this.value}runAutoExpand(){if(this.autoExpand){const t=this.el.shadowRoot.querySelector(".native-element");null!==t&&(t.style.height="",t.style.height=t.scrollHeight+"px")}}emitRsItem(){this.rsItem.emit({textarea:!0,interactive:!0,"has-placeholder":null!=this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,"has-max":null!==this.hardLimit||null!==this.softLimit,"hide-max":this.hideMax,"has-error":this.hasError,"interactive-disabled":this.disabled,"textarea-has-start-slot":this.hasStartSlot,"textarea-has-end-slot":this.hasEndSlot,"textarea-chars-over-max":this.charsLeft<0,"textarea-is-required":this.required})}componentDidUpdate(){this.runAutoExpand()}componentWillLoad(){this.hasStartSlot=null!==this.el.querySelector('[slot="start"]'),this.hasEndSlot=null!==this.el.querySelector('[slot="end"]'),this.emitRsItem()}componentDidLoad(){if(void 0!==this.softLimit||void 0!==this.hardLimit){const t=this.el.shadowRoot.querySelector(".max-length");(0,i.s)(t,this.hardLimit,this.softLimit,this.hideMax),this.changeMaxLengthText()}this.runAutoExpand()}componentDidRender(){this.emitRsItem()}connectedCallback(){this.emitRsItem()}render(){let t=null;if((this.hardLimit||this.softLimit)&&!this.hideMax){const e=this.hardLimit||this.softLimit;t=(0,a.h)("span",{class:"max-length"},e," max")}const e=this.getValue();return(0,a.h)(a.H,{"aria-disabled":this.disabled?"true":null,class:{"has-value":this.hasValue(),"has-focus":this.hasFocus,"has-max":null!==this.hardLimit||null!==this.softLimit,"hide-max":this.hideMax,"chars-over-max":this.charsLeft<0,"has-error":this.hasError}},t,(0,a.h)("div",{class:"rs-textarea__inner"},(0,a.h)("slot",{name:"start"}),(0,a.h)("textarea",{placeholder:this.placeholder,class:"native-element",onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur,onPaste:this.onPaste,maxLength:this.hardLimit,value:e,rows:this.rows}),(0,a.h)("slot",{name:"end"})))}get el(){return(0,a.g)(this)}static get watchers(){return{value:["valueChanged"]}}};o.style=':host{display:block;position:static;width:100%;padding:0}.rs-textarea__inner{display:flex;align-items:flex-start;justify-content:flex-start;width:100%;box-shadow:none;background:var(--rs-color-light);border:none;box-sizing:border-box;border-radius:4px;padding:11px 14px;transition:box-shadow .15s ease-out, background-color .15s ease-out;min-height:42px;word-break:break-all}.native-element{border:none;background-image:none;background-color:transparent;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-appearance:none;outline:none;height:100%;width:100%;display:block;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:14px;color:var(--rs-color-heading);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;resize:none;padding:0;word-break:break-word}:host(.has-value) .rs-textarea__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);color:var(--rs-color-grey)}:host(.has-focus) .rs-textarea__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 2px var(--rs-color-primary);color:var(--rs-color-heading)}:host(.has-value:not(.has-focus)) .native-element{color:var(--rs-color-grey)}:host(.has-error.has-focus) .rs-textarea__inner{box-shadow:inset 0 0 0 2px var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-error:not(.has-focus)) .rs-textarea__inner{box-shadow:inset 0 0 0 1px var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-focus) .max-length{color:var(--rs-color-grey)}:host(.has-value:not(.has-focus)) .max-length{display:block;opacity:1;color:var(--rs-color-grey-light)}:host(.chars-over-max) .max-length{color:var(--rs-color-negative)}:host .max-length{display:none;opacity:0;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:12px;line-height:13px;text-align:right;color:var(--rs-color-grey);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:5px;transition:opacity .15s ease-out, color .15s ease-out}::slotted([slot="start"]){margin-right:10px;margin-top:3px}::slotted([slot="end"]){margin-left:10px}'}}]);
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[524],{7402:function(t,e,s){s.d(e,{d:function(){return i},i:function(){return o},s:function(){return r}});var a=s(6919);const i=(t,e=0)=>{let s;return(...a)=>{clearTimeout(s),s=setTimeout(t,e,...a)}},o=(t,e,s)=>{const i=(void 0!==t.target?t.target:s).tagName.toLowerCase().replace("rs-",""),o=t.detail,r={},h=e.get(i)||{};let n=!1;Object.keys(o).forEach((t=>{if(o[t]){const e=`item-${t}`;h[e]||(n=!0),r[e]=!0}})),n||Object.keys(r).length===Object.keys(h).length||(n=!0),n&&(e.set(i,r),(0,a.f)(s))},r=(t,e,s,a=!1)=>{!e&&!s||a||null!==t&&(t.style.display="block",setTimeout((function(){t.style.opacity="1"}),150))}},5524:function(t,e,s){s.r(e),s.d(e,{rs_textarea:function(){return o}});var a=s(6919),i=s(7402);const o=class{constructor(t){(0,a.r)(this,t),this.rsChange=(0,a.c)(this,"rsChange",7),this.rsInput=(0,a.c)(this,"rsInput",7),this.rsItem=(0,a.c)(this,"rsItem",7),this.rsBlur=(0,a.c)(this,"rsBlur",7),this.rsFocus=(0,a.c)(this,"rsFocus",7),this.hasStartSlot=!1,this.hasEndSlot=!1,this.charsLeft=0,this.hasFocus=!1,this.disabled=!1,this.autoExpand=!1,this.minHeight=62,this.maxHeight=250,this.rows=2,this.hideMax=!1,this.hardLimit=null,this.softLimit=null,this.value="",this.richText=!1,this.hasError=!1,this.required=!1,this.onInput=t=>{const e=t.target;void 0!==e&&(this.value=e.value||""),this.rsInput.emit(t)},this.onFocus=()=>{this.hasFocus=!0,this.emitRsItem(),this.rsFocus.emit()},this.onBlur=()=>{this.hasFocus=!1,this.emitRsItem(),this.rsBlur.emit()},this.onPaste=t=>{if(this.richText){let e=t.clipboardData.getData("text/plain");t.preventDefault();const s=document.createElement("textarea");s.innerHTML=e,e=s.textContent.trim().replace(/[ ]+/g," ").replace(/\n+\s+\n+/g,"\n\n").replace(/\n\n+/g,"\n\n"),document.execCommand("insertText",!1,e)}}}changeMaxLengthText(){if(null!==this.softLimit&&this.softLimit>0&&!this.hideMax){const t=this.value.length;this.charsLeft=this.softLimit-t;const e=this.el.shadowRoot.querySelector(".max-length");null!==e&&(this.charsLeft<0?(e.innerHTML=`${Math.abs(this.charsLeft)} over`,this.el.classList.add("textarea-chars-over-max")):(e.innerHTML=`${this.charsLeft} left`,this.el.classList.remove("textarea-chars-over-max")))}}valueChanged(){this.runAutoExpand(),this.emitRsItem(),this.changeMaxLengthText(),this.rsChange.emit({value:null==this.value?this.value:this.value.toString()})}getValue(){return this.value||""}hasValue(){return""!==this.value}runAutoExpand(){if(this.autoExpand){const t=this.el.shadowRoot.querySelector(".native-element");null!==t&&(t.style.height="",t.style.height=t.scrollHeight+"px")}}emitRsItem(){this.rsItem.emit({textarea:!0,interactive:!0,"has-placeholder":null!=this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,"has-max":null!==this.hardLimit||null!==this.softLimit,"hide-max":this.hideMax,"has-error":this.hasError,"interactive-disabled":this.disabled,"textarea-has-start-slot":this.hasStartSlot,"textarea-has-end-slot":this.hasEndSlot,"textarea-chars-over-max":this.charsLeft<0,"textarea-is-required":this.required})}componentDidUpdate(){this.runAutoExpand()}componentWillLoad(){this.hasStartSlot=null!==this.el.querySelector('[slot="start"]'),this.hasEndSlot=null!==this.el.querySelector('[slot="end"]'),this.emitRsItem()}componentDidLoad(){if(void 0!==this.softLimit||void 0!==this.hardLimit){const t=this.el.shadowRoot.querySelector(".max-length");(0,i.s)(t,this.hardLimit,this.softLimit,this.hideMax),this.changeMaxLengthText()}this.runAutoExpand()}componentDidRender(){this.emitRsItem()}connectedCallback(){this.emitRsItem()}render(){let t=null;if((this.hardLimit||this.softLimit)&&!this.hideMax){const e=this.hardLimit||this.softLimit;t=(0,a.h)("span",{key:"1c3cc7b55db0bf4dd5f3de01bc23afd39e300e78",class:"max-length"},e," max")}const e=this.getValue();return(0,a.h)(a.H,{key:"ce8c31bb456a5e01bce4917659cbe4cb0b347302","aria-disabled":this.disabled?"true":null,class:{"has-value":this.hasValue(),"has-focus":this.hasFocus,"has-max":null!==this.hardLimit||null!==this.softLimit,"hide-max":this.hideMax,"chars-over-max":this.charsLeft<0,"has-error":this.hasError}},t,(0,a.h)("div",{key:"58f004412180a308b150f2aa961c64a756c4a476",class:"rs-textarea__inner"},(0,a.h)("slot",{key:"f96dcf4047cd81733bd4e5aef69bc3f8df6a0fd6",name:"start"}),(0,a.h)("textarea",{key:"558239608ad9ef44395e28492a4b65e84e687fa8",placeholder:this.placeholder,class:"native-element",onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur,onPaste:this.onPaste,maxLength:this.hardLimit,value:e,rows:this.rows}),(0,a.h)("slot",{key:"1a85b35059d57e5e4adfd6412a0329d1af0450ae",name:"end"})))}get el(){return(0,a.g)(this)}static get watchers(){return{value:["valueChanged"]}}};o.style=':host{display:block;position:static;width:100%;padding:0}.rs-textarea__inner{display:flex;align-items:flex-start;justify-content:flex-start;width:100%;box-shadow:none;background:var(--rs-color-light);border:none;box-sizing:border-box;border-radius:4px;padding:11px 14px;transition:box-shadow .15s ease-out, background-color .15s ease-out;min-height:42px;word-break:break-all}.native-element{border:none;background-image:none;background-color:transparent;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-appearance:none;outline:none;height:100%;width:100%;display:block;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:14px;color:var(--rs-color-heading);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;resize:none;padding:0;word-break:break-word}:host(.has-value) .rs-textarea__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);color:var(--rs-color-grey)}:host(.has-focus) .rs-textarea__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 2px var(--rs-color-primary);color:var(--rs-color-heading)}:host(.has-value:not(.has-focus)) .native-element{color:var(--rs-color-grey)}:host(.has-error.has-focus) .rs-textarea__inner{box-shadow:inset 0 0 0 2px var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-error:not(.has-focus)) .rs-textarea__inner{box-shadow:inset 0 0 0 1px var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-focus) .max-length{color:var(--rs-color-grey)}:host(.has-value:not(.has-focus)) .max-length{display:block;opacity:1;color:var(--rs-color-grey-light)}:host(.chars-over-max) .max-length{color:var(--rs-color-negative)}:host .max-length{display:none;opacity:0;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:12px;line-height:13px;text-align:right;color:var(--rs-color-grey);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:5px;transition:opacity .15s ease-out, color .15s ease-out}::slotted([slot="start"]){margin-right:10px;margin-top:3px}::slotted([slot="end"]){margin-left:10px}'}}]);
13
13
  //# sourceMappingURL=524.index.js.map
@@ -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flint-ui/dist/esm/helpers-11c1a06b.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-textarea.entry.js"],"sourcesContent":["import { f as forceUpdate } from './index-3d0f28ab.js';\n\n/**\n * @param func\n * @param wait\n */\nconst debounce = (func, wait = 0) => {\n let timer;\n return (...args) => {\n clearTimeout(timer);\n timer = setTimeout(func, wait, ...args);\n };\n};\nconst itemStyle = (ev, itemStyles, element) => {\n const el = ev.target !== undefined ? ev.target : element;\n const tagName = el.tagName.toLowerCase().replace('rs-', '');\n const updatedStyles = ev.detail;\n const newStyles = {};\n const childStyles = itemStyles.get(tagName) || {};\n let hasStyleChange = false;\n Object.keys(updatedStyles).forEach(key => {\n if (updatedStyles[key]) {\n const itemKey = `item-${key}`;\n if (!childStyles[itemKey]) {\n hasStyleChange = true;\n }\n newStyles[itemKey] = true;\n }\n });\n if (!hasStyleChange && Object.keys(newStyles).length !== Object.keys(childStyles).length) {\n hasStyleChange = true;\n }\n if (hasStyleChange) {\n itemStyles.set(tagName, newStyles);\n forceUpdate(element);\n }\n};\nconst showCharacterCounter = (maxLengthElement, hardLimit, softLimit, hideMax = false) => {\n // show only if soft limit or hard limit is set and if the element has been rendered\n if ((hardLimit || softLimit) && !hideMax) {\n if (maxLengthElement !== null) {\n maxLengthElement.style.display = 'block';\n setTimeout(function () {\n maxLengthElement.style.opacity = '1';\n }, 150);\n }\n }\n};\n\nexport { debounce as d, itemStyle as i, showCharacterCounter as s };\n\n//# sourceMappingURL=helpers-11c1a06b.js.map","import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-3d0f28ab.js';\nimport { s as showCharacterCounter } from './helpers-11c1a06b.js';\n\nconst textareaCss = \":host{display:block;position:static;width:100%;padding:0}.rs-textarea__inner{display:flex;align-items:flex-start;justify-content:flex-start;width:100%;box-shadow:none;background:var(--rs-color-light);border:none;box-sizing:border-box;border-radius:4px;padding:11px 14px;transition:box-shadow .15s ease-out, background-color .15s ease-out;min-height:42px;word-break:break-all}.native-element{border:none;background-image:none;background-color:transparent;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-appearance:none;outline:none;height:100%;width:100%;display:block;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:14px;color:var(--rs-color-heading);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;resize:none;padding:0;word-break:break-word}:host(.has-value) .rs-textarea__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);color:var(--rs-color-grey)}:host(.has-focus) .rs-textarea__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 2px var(--rs-color-primary);color:var(--rs-color-heading)}:host(.has-value:not(.has-focus)) .native-element{color:var(--rs-color-grey)}:host(.has-error.has-focus) .rs-textarea__inner{box-shadow:inset 0 0 0 2px var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-error:not(.has-focus)) .rs-textarea__inner{box-shadow:inset 0 0 0 1px var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-focus) .max-length{color:var(--rs-color-grey)}:host(.has-value:not(.has-focus)) .max-length{display:block;opacity:1;color:var(--rs-color-grey-light)}:host(.chars-over-max) .max-length{color:var(--rs-color-negative)}:host .max-length{display:none;opacity:0;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:12px;line-height:13px;text-align:right;color:var(--rs-color-grey);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:5px;transition:opacity .15s ease-out, color .15s ease-out}::slotted([slot=\\\"start\\\"]){margin-right:10px;margin-top:3px}::slotted([slot=\\\"end\\\"]){margin-left:10px}\";\n\nconst Textarea = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsChange = createEvent(this, \"rsChange\", 7);\n this.rsInput = createEvent(this, \"rsInput\", 7);\n this.rsItem = createEvent(this, \"rsItem\", 7);\n this.rsBlur = createEvent(this, \"rsBlur\", 7);\n this.rsFocus = createEvent(this, \"rsFocus\", 7);\n this.hasStartSlot = false;\n this.hasEndSlot = false;\n /**\n * The function which gets called when user enters something in the textarea.\n * @param ev - event\n */\n this.onInput = (ev) => {\n const textarea = ev.target;\n if (textarea !== undefined) {\n this.value = textarea.value || '';\n }\n this.rsInput.emit(ev);\n // this.saveInput();\n };\n /**\n * The function which gets called when textarea is in focus.\n */\n this.onFocus = () => {\n this.hasFocus = true;\n this.emitRsItem();\n this.rsFocus.emit();\n };\n /**\n * The function which gets called when input gets out of focus\n */\n this.onBlur = () => {\n this.hasFocus = false;\n this.emitRsItem();\n this.rsBlur.emit();\n };\n /**\n * The function which gets called when user pastes something to the textarea.\n * @param event\n */\n this.onPaste = (event) => {\n if (this.richText) {\n let value = event.clipboardData.getData('text/plain');\n event.preventDefault();\n const tempText = document.createElement('textarea');\n tempText.innerHTML = value;\n value = tempText.textContent.trim().replace(/[ ]+/g, ' ')\n .replace(/\\n+\\s+\\n+/g, '\\n\\n')\n .replace(/\\n\\n+/g, '\\n\\n');\n document.execCommand('insertText', false, value);\n }\n };\n this.charsLeft = 0;\n this.hasFocus = false;\n this.disabled = false;\n this.autoExpand = false;\n this.minHeight = 62;\n this.maxHeight = 250;\n this.rows = 2;\n this.placeholder = undefined;\n this.hideMax = false;\n this.hardLimit = null;\n this.softLimit = null;\n this.value = '';\n this.richText = false;\n this.hasError = false;\n this.required = false;\n }\n /**\n * As the user types something in the input field, if soft max is set, then we show a character counter above the input field.\n * This function is for updating the text above the input field.\n */\n changeMaxLengthText() {\n if ((this.softLimit !== null && this.softLimit > 0) && !this.hideMax) {\n const valueLength = this.value.length; // the number of characters the user entered\n this.charsLeft = this.softLimit - valueLength;\n const maxLengthText = this.el.shadowRoot.querySelector('.max-length');\n if (maxLengthText !== null) {\n // if no. of characters entered by the user is over the set max characters\n if (this.charsLeft < 0) {\n maxLengthText.innerHTML = `${Math.abs(this.charsLeft)} over`;\n this.el.classList.add('textarea-chars-over-max');\n // if no. of characters entered by the user is NOT over the set max character\n }\n else {\n maxLengthText.innerHTML = `${this.charsLeft} left`;\n this.el.classList.remove('textarea-chars-over-max');\n }\n }\n }\n }\n /**\n * Update the native input element when the value changes\n */\n valueChanged() {\n this.runAutoExpand();\n this.emitRsItem(); // value changed, emit change in styling\n this.changeMaxLengthText();\n this.rsChange.emit({ value: this.value == null ? this.value : this.value.toString() }); // emit change in input\n }\n /**\n * A private function for getting the value of textarea\n */\n getValue() {\n return this.value || '';\n }\n /**\n * A private function for checking if the textarea has value or not.\n */\n hasValue() {\n return this.value !== '';\n }\n //TODO: Possibly not good for performance as it requires layout thrashing/redraw\n /**\n * Auto expands the text area while the user is typing something in the textarea.\n */\n runAutoExpand() {\n if (this.autoExpand) {\n const nativeTextArea = this.el.shadowRoot.querySelector('.native-element');\n if (nativeTextArea !== null) {\n nativeTextArea.style.height = ''; /* Reset the height*/\n nativeTextArea.style.height = nativeTextArea.scrollHeight + 'px';\n }\n }\n }\n /**\n * Emits `rsItem` event when the styles of the textarea change\n */\n emitRsItem() {\n this.rsItem.emit({\n 'textarea': true,\n 'interactive': true,\n 'has-placeholder': this.placeholder != null,\n 'has-value': this.hasValue(),\n 'has-focus': this.hasFocus,\n 'has-max': this.hardLimit !== null || this.softLimit !== null,\n 'hide-max': this.hideMax,\n 'has-error': this.hasError,\n 'interactive-disabled': this.disabled,\n 'textarea-has-start-slot': this.hasStartSlot,\n 'textarea-has-end-slot': this.hasEndSlot,\n 'textarea-chars-over-max': this.charsLeft < 0,\n 'textarea-is-required': this.required\n });\n }\n /**\n * This gets called after the component updates, after the component gets rendered. This is never called during the first render.\n */\n componentDidUpdate() {\n this.runAutoExpand();\n }\n /**\n * This gets called once after the component is first connected to the DOM.\n * After the component is first connected to the DOM, we make sure that we have the correct styling.\n */\n componentWillLoad() {\n this.hasStartSlot = this.el.querySelector('[slot=\"start\"]') !== null;\n this.hasEndSlot = this.el.querySelector('[slot=\"end\"]') !== null;\n this.emitRsItem();\n }\n /**\n * This gets called once just after the component gets fully loaded\n * and after the first render occurred.\n */\n componentDidLoad() {\n if (this.softLimit !== undefined || this.hardLimit !== undefined) {\n const maxLength = this.el.shadowRoot.querySelector('.max-length');\n showCharacterCounter(maxLength, this.hardLimit, this.softLimit, this.hideMax);\n this.changeMaxLengthText(); // the char count should reflect the initial value's char count\n }\n this.runAutoExpand(); // auto expand after every render\n }\n /**\n * This gets called after every render.\n */\n componentDidRender() {\n this.emitRsItem();\n }\n /**\n * As soon as the component is attached to the DOM,\n * we make sure that we have the correct styling.\n */\n connectedCallback() {\n this.emitRsItem();\n }\n /**\n * This renders the component\n */\n render() {\n let maxLengthText = null;\n if ((this.hardLimit || this.softLimit) && !this.hideMax) {\n const maxLength = this.hardLimit || this.softLimit;\n maxLengthText = (h(\"span\", { class: \"max-length\" }, maxLength, \" max\"));\n }\n const value = this.getValue();\n return (h(Host, { \"aria-disabled\": this.disabled ? 'true' : null, class: {\n 'has-value': this.hasValue(),\n 'has-focus': this.hasFocus,\n 'has-max': this.hardLimit !== null || this.softLimit !== null,\n 'hide-max': this.hideMax,\n 'chars-over-max': this.charsLeft < 0,\n 'has-error': this.hasError,\n } }, maxLengthText, h(\"div\", { class: \"rs-textarea__inner\" }, h(\"slot\", { name: \"start\" }), h(\"textarea\", { placeholder: this.placeholder, class: 'native-element', onInput: this.onInput, onFocus: this.onFocus, onBlur: this.onBlur, onPaste: this.onPaste, maxLength: this.hardLimit, value: value, rows: this.rows }), h(\"slot\", { name: \"end\" }))));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"value\": [\"valueChanged\"]\n }; }\n};\nTextarea.style = textareaCss;\n\nexport { Textarea as rs_textarea };\n\n//# sourceMappingURL=rs-textarea.entry.js.map"],"names":["debounce","func","wait","timer","args","clearTimeout","setTimeout","itemStyle","ev","itemStyles","element","tagName","undefined","target","toLowerCase","replace","updatedStyles","detail","newStyles","childStyles","get","hasStyleChange","Object","keys","forEach","key","itemKey","length","set","f","showCharacterCounter","maxLengthElement","hardLimit","softLimit","hideMax","style","display","opacity","Textarea","constructor","hostRef","r","this","rsChange","c","rsInput","rsItem","rsBlur","rsFocus","hasStartSlot","hasEndSlot","onInput","textarea","value","emit","onFocus","hasFocus","emitRsItem","onBlur","onPaste","event","richText","clipboardData","getData","preventDefault","tempText","document","createElement","innerHTML","textContent","trim","execCommand","charsLeft","disabled","autoExpand","minHeight","maxHeight","rows","placeholder","hasError","required","changeMaxLengthText","valueLength","maxLengthText","el","shadowRoot","querySelector","Math","abs","classList","add","remove","valueChanged","runAutoExpand","toString","getValue","hasValue","nativeTextArea","height","scrollHeight","componentDidUpdate","componentWillLoad","componentDidLoad","maxLength","s","componentDidRender","connectedCallback","render","h","class","H","name","g","watchers"],"sourceRoot":""}
1
+ {"version":3,"file":"524.index.js","mappings":";;;;;;;;;;;+MAMA,MAAMA,EAAW,CAACC,EAAMC,EAAO,KAC3B,IAAIC,EACJ,MAAO,IAAIC,KACPC,aAAaF,GACbA,EAAQG,WAAWL,EAAMC,KAASE,EAAK,CAC1C,EAECG,EAAY,CAACC,EAAIC,EAAYC,KAC/B,MACMC,QADmBC,IAAdJ,EAAGK,OAAuBL,EAAGK,OAASH,GAC9BC,QAAQG,cAAcC,QAAQ,MAAO,IAClDC,EAAgBR,EAAGS,OACnBC,EAAY,CAAC,EACbC,EAAcV,EAAWW,IAAIT,IAAY,CAAC,EAChD,IAAIU,GAAiB,EACrBC,OAAOC,KAAKP,GAAeQ,SAAQC,IAC/B,GAAIT,EAAcS,GAAM,CACpB,MAAMC,EAAU,QAAQD,IACnBN,EAAYO,KACbL,GAAiB,GAErBH,EAAUQ,IAAW,CACzB,KAECL,GAAkBC,OAAOC,KAAKL,GAAWS,SAAWL,OAAOC,KAAKJ,GAAaQ,SAC9EN,GAAiB,GAEjBA,IACAZ,EAAWmB,IAAIjB,EAASO,IACxB,IAAAW,GAAYnB,GAChB,EAEEoB,EAAuB,CAACC,EAAkBC,EAAWC,EAAWC,GAAU,MAEvEF,IAAaC,GAAeC,GACJ,OAArBH,IACAA,EAAiBI,MAAMC,QAAU,QACjC9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AAO,uBAAwB,IAAAD,GAAE,OAAQ,CAAEnF,IAAK,2CAA4CsF,KAAM,WAAY,IAAAH,GAAE,WAAY,CAAEnF,IAAK,2CAA4C0E,YAAazD,KAAKyD,YAAaU,MAAO,iBAAkB/C,QAASpB,KAAKoB,QAASG,QAASvB,KAAKuB,QAASE,OAAQzB,KAAKyB,OAAQC,QAAS1B,KAAK0B,QAASmC,UAAW7D,KAAKV,UAAW0B,MAAOA,EAAOD,KAAMf,KAAKe,QAAS,IAAAmD,GAAE,OAAQ,CAAEnF,IAAK,2CAA4CsF,KAAM,SACzhB,CACA,MAAI5B,GAAO,OAAO,IAAA6B,GAAWtE,KAAO,CACpC,mBAAWuE,GAAa,MAAO,CAC3B,MAAS,CAAC,gBACX,GAEP3E,EAASH,MAvQW,slE","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/helpers-16362640.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-textarea.entry.js"],"sourcesContent":["import { f as forceUpdate } from './index-def1ecaa.js';\n\n/**\n * @param func\n * @param wait\n */\nconst debounce = (func, wait = 0) => {\n let timer;\n return (...args) => {\n clearTimeout(timer);\n timer = setTimeout(func, wait, ...args);\n };\n};\nconst itemStyle = (ev, itemStyles, element) => {\n const el = ev.target !== undefined ? ev.target : element;\n const tagName = el.tagName.toLowerCase().replace('rs-', '');\n const updatedStyles = ev.detail;\n const newStyles = {};\n const childStyles = itemStyles.get(tagName) || {};\n let hasStyleChange = false;\n Object.keys(updatedStyles).forEach(key => {\n if (updatedStyles[key]) {\n const itemKey = `item-${key}`;\n if (!childStyles[itemKey]) {\n hasStyleChange = true;\n }\n newStyles[itemKey] = true;\n }\n });\n if (!hasStyleChange && Object.keys(newStyles).length !== Object.keys(childStyles).length) {\n hasStyleChange = true;\n }\n if (hasStyleChange) {\n itemStyles.set(tagName, newStyles);\n forceUpdate(element);\n }\n};\nconst showCharacterCounter = (maxLengthElement, hardLimit, softLimit, hideMax = false) => {\n // show only if soft limit or hard limit is set and if the element has been rendered\n if ((hardLimit || softLimit) && !hideMax) {\n if (maxLengthElement !== null) {\n maxLengthElement.style.display = 'block';\n setTimeout(function () {\n maxLengthElement.style.opacity = '1';\n }, 150);\n }\n }\n};\n\nexport { debounce as d, itemStyle as i, showCharacterCounter as s };\n\n//# sourceMappingURL=helpers-16362640.js.map","import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-def1ecaa.js';\nimport { s as showCharacterCounter } from './helpers-16362640.js';\n\nconst textareaCss = \":host{display:block;position:static;width:100%;padding:0}.rs-textarea__inner{display:flex;align-items:flex-start;justify-content:flex-start;width:100%;box-shadow:none;background:var(--rs-color-light);border:none;box-sizing:border-box;border-radius:4px;padding:11px 14px;transition:box-shadow .15s ease-out, background-color .15s ease-out;min-height:42px;word-break:break-all}.native-element{border:none;background-image:none;background-color:transparent;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-appearance:none;outline:none;height:100%;width:100%;display:block;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:14px;color:var(--rs-color-heading);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;resize:none;padding:0;word-break:break-word}:host(.has-value) .rs-textarea__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);color:var(--rs-color-grey)}:host(.has-focus) .rs-textarea__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 2px var(--rs-color-primary);color:var(--rs-color-heading)}:host(.has-value:not(.has-focus)) .native-element{color:var(--rs-color-grey)}:host(.has-error.has-focus) .rs-textarea__inner{box-shadow:inset 0 0 0 2px var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-error:not(.has-focus)) .rs-textarea__inner{box-shadow:inset 0 0 0 1px var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-focus) .max-length{color:var(--rs-color-grey)}:host(.has-value:not(.has-focus)) .max-length{display:block;opacity:1;color:var(--rs-color-grey-light)}:host(.chars-over-max) .max-length{color:var(--rs-color-negative)}:host .max-length{display:none;opacity:0;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:12px;line-height:13px;text-align:right;color:var(--rs-color-grey);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:5px;transition:opacity .15s ease-out, color .15s ease-out}::slotted([slot=\\\"start\\\"]){margin-right:10px;margin-top:3px}::slotted([slot=\\\"end\\\"]){margin-left:10px}\";\nconst RsTextareaStyle0 = textareaCss;\n\nconst Textarea = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsChange = createEvent(this, \"rsChange\", 7);\n this.rsInput = createEvent(this, \"rsInput\", 7);\n this.rsItem = createEvent(this, \"rsItem\", 7);\n this.rsBlur = createEvent(this, \"rsBlur\", 7);\n this.rsFocus = createEvent(this, \"rsFocus\", 7);\n this.hasStartSlot = false;\n this.hasEndSlot = false;\n /**\n * Character counter.\n * Used for updating the text above the text area.\n */\n this.charsLeft = 0;\n /**\n * Used for checking if the text area has focus or not.\n */\n this.hasFocus = false;\n /**\n * Disabled state of the textarea\n */\n this.disabled = false;\n /**\n * Whether or not the textarea should auto expand to show all text.\n */\n this.autoExpand = false;\n /**\n * The minimum height for the text area.\n */\n this.minHeight = 62;\n /**\n * The maximum height for the text area.\n */\n this.maxHeight = 250;\n /**\n * The visible number of lines in the text area.\n */\n this.rows = 2;\n /**\n * Hides the max number of characters and the character counter text above the input field.\n */\n this.hideMax = false;\n /**\n * (hard max)\n * This specifies the maximum number of characters the user can enter.\n * If the user goes over the maximum number of characters, they won't be able to type anything in the text area anymore.\n * A label showing the max no. of characters will display above the text area.\n * This label is not the same as the character counter feature that soft limit has - the number on the label won't change as you type.\n */\n this.hardLimit = null;\n /**\n * (soft max)\n * This specifies the maximum number of characters the user can enter.\n * If the user goes over the maximum number of characters, they will still be able to type something in the text area.\n * Character counter above the text area will display.\n */\n this.softLimit = null;\n /**\n * The value of the 'textarea'.\n */\n this.value = '';\n /**\n * Whether or not the field will be rich text. i.e., have highlighting, etc\n */\n this.richText = false;\n /**\n * Sets the input field to an error state - border will change to red.\n */\n this.hasError = false;\n /**\n * If true, the user must enter a value before submitting the form.\n */\n this.required = false;\n /**\n * The function which gets called when user enters something in the textarea.\n * @param ev - event\n */\n this.onInput = (ev) => {\n const textarea = ev.target;\n if (textarea !== undefined) {\n this.value = textarea.value || '';\n }\n this.rsInput.emit(ev);\n // this.saveInput();\n };\n /**\n * The function which gets called when textarea is in focus.\n */\n this.onFocus = () => {\n this.hasFocus = true;\n this.emitRsItem();\n this.rsFocus.emit();\n };\n /**\n * The function which gets called when input gets out of focus\n */\n this.onBlur = () => {\n this.hasFocus = false;\n this.emitRsItem();\n this.rsBlur.emit();\n };\n /**\n * The function which gets called when user pastes something to the textarea.\n * @param event\n */\n this.onPaste = (event) => {\n if (this.richText) {\n let value = event.clipboardData.getData('text/plain');\n event.preventDefault();\n const tempText = document.createElement('textarea');\n tempText.innerHTML = value;\n value = tempText.textContent.trim().replace(/[ ]+/g, ' ')\n .replace(/\\n+\\s+\\n+/g, '\\n\\n')\n .replace(/\\n\\n+/g, '\\n\\n');\n document.execCommand('insertText', false, value);\n }\n };\n }\n /**\n * As the user types something in the input field, if soft max is set, then we show a character counter above the input field.\n * This function is for updating the text above the input field.\n */\n changeMaxLengthText() {\n if ((this.softLimit !== null && this.softLimit > 0) && !this.hideMax) {\n const valueLength = this.value.length; // the number of characters the user entered\n this.charsLeft = this.softLimit - valueLength;\n const maxLengthText = this.el.shadowRoot.querySelector('.max-length');\n if (maxLengthText !== null) {\n // if no. of characters entered by the user is over the set max characters\n if (this.charsLeft < 0) {\n maxLengthText.innerHTML = `${Math.abs(this.charsLeft)} over`;\n this.el.classList.add('textarea-chars-over-max');\n // if no. of characters entered by the user is NOT over the set max character\n }\n else {\n maxLengthText.innerHTML = `${this.charsLeft} left`;\n this.el.classList.remove('textarea-chars-over-max');\n }\n }\n }\n }\n /**\n * Update the native input element when the value changes\n */\n valueChanged() {\n this.runAutoExpand();\n this.emitRsItem(); // value changed, emit change in styling\n this.changeMaxLengthText();\n this.rsChange.emit({ value: this.value == null ? this.value : this.value.toString() }); // emit change in input\n }\n /**\n * A private function for getting the value of textarea\n */\n getValue() {\n return this.value || '';\n }\n /**\n * A private function for checking if the textarea has value or not.\n */\n hasValue() {\n return this.value !== '';\n }\n //TODO: Possibly not good for performance as it requires layout thrashing/redraw\n /**\n * Auto expands the text area while the user is typing something in the textarea.\n */\n runAutoExpand() {\n if (this.autoExpand) {\n const nativeTextArea = this.el.shadowRoot.querySelector('.native-element');\n if (nativeTextArea !== null) {\n nativeTextArea.style.height = ''; /* Reset the height*/\n nativeTextArea.style.height = nativeTextArea.scrollHeight + 'px';\n }\n }\n }\n /**\n * Emits `rsItem` event when the styles of the textarea change\n */\n emitRsItem() {\n this.rsItem.emit({\n 'textarea': true,\n 'interactive': true,\n 'has-placeholder': this.placeholder != null,\n 'has-value': this.hasValue(),\n 'has-focus': this.hasFocus,\n 'has-max': this.hardLimit !== null || this.softLimit !== null,\n 'hide-max': this.hideMax,\n 'has-error': this.hasError,\n 'interactive-disabled': this.disabled,\n 'textarea-has-start-slot': this.hasStartSlot,\n 'textarea-has-end-slot': this.hasEndSlot,\n 'textarea-chars-over-max': this.charsLeft < 0,\n 'textarea-is-required': this.required\n });\n }\n /**\n * This gets called after the component updates, after the component gets rendered. This is never called during the first render.\n */\n componentDidUpdate() {\n this.runAutoExpand();\n }\n /**\n * This gets called once after the component is first connected to the DOM.\n * After the component is first connected to the DOM, we make sure that we have the correct styling.\n */\n componentWillLoad() {\n this.hasStartSlot = this.el.querySelector('[slot=\"start\"]') !== null;\n this.hasEndSlot = this.el.querySelector('[slot=\"end\"]') !== null;\n this.emitRsItem();\n }\n /**\n * This gets called once just after the component gets fully loaded\n * and after the first render occurred.\n */\n componentDidLoad() {\n if (this.softLimit !== undefined || this.hardLimit !== undefined) {\n const maxLength = this.el.shadowRoot.querySelector('.max-length');\n showCharacterCounter(maxLength, this.hardLimit, this.softLimit, this.hideMax);\n this.changeMaxLengthText(); // the char count should reflect the initial value's char count\n }\n this.runAutoExpand(); // auto expand after every render\n }\n /**\n * This gets called after every render.\n */\n componentDidRender() {\n this.emitRsItem();\n }\n /**\n * As soon as the component is attached to the DOM,\n * we make sure that we have the correct styling.\n */\n connectedCallback() {\n this.emitRsItem();\n }\n /**\n * This renders the component\n */\n render() {\n let maxLengthText = null;\n if ((this.hardLimit || this.softLimit) && !this.hideMax) {\n const maxLength = this.hardLimit || this.softLimit;\n maxLengthText = (h(\"span\", { key: '1c3cc7b55db0bf4dd5f3de01bc23afd39e300e78', class: \"max-length\" }, maxLength, \" max\"));\n }\n const value = this.getValue();\n return (h(Host, { key: 'ce8c31bb456a5e01bce4917659cbe4cb0b347302', \"aria-disabled\": this.disabled ? 'true' : null, class: {\n 'has-value': this.hasValue(),\n 'has-focus': this.hasFocus,\n 'has-max': this.hardLimit !== null || this.softLimit !== null,\n 'hide-max': this.hideMax,\n 'chars-over-max': this.charsLeft < 0,\n 'has-error': this.hasError,\n } }, maxLengthText, h(\"div\", { key: '58f004412180a308b150f2aa961c64a756c4a476', class: \"rs-textarea__inner\" }, h(\"slot\", { key: 'f96dcf4047cd81733bd4e5aef69bc3f8df6a0fd6', name: \"start\" }), h(\"textarea\", { key: '558239608ad9ef44395e28492a4b65e84e687fa8', placeholder: this.placeholder, class: 'native-element', onInput: this.onInput, onFocus: this.onFocus, onBlur: this.onBlur, onPaste: this.onPaste, maxLength: this.hardLimit, value: value, rows: this.rows }), h(\"slot\", { key: '1a85b35059d57e5e4adfd6412a0329d1af0450ae', name: \"end\" }))));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"value\": [\"valueChanged\"]\n }; }\n};\nTextarea.style = RsTextareaStyle0;\n\nexport { Textarea as rs_textarea };\n\n//# sourceMappingURL=rs-textarea.entry.js.map"],"names":["debounce","func","wait","timer","args","clearTimeout","setTimeout","itemStyle","ev","itemStyles","element","tagName","undefined","target","toLowerCase","replace","updatedStyles","detail","newStyles","childStyles","get","hasStyleChange","Object","keys","forEach","key","itemKey","length","set","f","showCharacterCounter","maxLengthElement","hardLimit","softLimit","hideMax","style","display","opacity","Textarea","constructor","hostRef","r","this","rsChange","c","rsInput","rsItem","rsBlur","rsFocus","hasStartSlot","hasEndSlot","charsLeft","hasFocus","disabled","autoExpand","minHeight","maxHeight","rows","value","richText","hasError","required","onInput","textarea","emit","onFocus","emitRsItem","onBlur","onPaste","event","clipboardData","getData","preventDefault","tempText","document","createElement","innerHTML","textContent","trim","execCommand","changeMaxLengthText","valueLength","maxLengthText","el","shadowRoot","querySelector","Math","abs","classList","add","remove","valueChanged","runAutoExpand","toString","getValue","hasValue","nativeTextArea","height","scrollHeight","placeholder","componentDidUpdate","componentWillLoad","componentDidLoad","maxLength","s","componentDidRender","connectedCallback","render","h","class","H","name","g","watchers"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @rocketspark/domain-checker v1.0.2
3
+ * @rocketspark/domain-checker v1.0.3
4
4
  * https://github.com/rocketspark/domain-checker.git
5
5
  *
6
6
  * Copyright (c) Lee Reichardt and project contributors.
@@ -9,5 +9,5 @@
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  *
11
11
  */
12
- "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[542],{2542:function(e,t,n){n.r(t),n.d(t,{rs_incrementer:function(){return r}});var i=n(7915);const r=class{constructor(e){(0,i.r)(this,e),this.rsChange=(0,i.c)(this,"rsChange",7),this.customOptionsArray=[],this.customOptionIndex=0,this.onDecrementHandler=e=>{if(e.stopPropagation(),this.customOptions){if(this.customOptionsArray.length>0){let e=this.customOptionIndex-1;this.handleOutOfRangeIndex(e),e=this.validateCustomOptionIndex(this.customOptionIndex-1),this.customOptionIndex=e,this.value=this.customOptionsArray[e]}}else this.value=Number.parseFloat(this.value),this.value=Number.parseFloat((this.value-this.step).toFixed(this.decimalPlaces))},this.onIncrementHandler=e=>{if(e.stopPropagation(),this.customOptions){if(this.customOptionsArray.length>0){let e=this.customOptionIndex+1;this.handleOutOfRangeIndex(e),e=this.validateCustomOptionIndex(this.customOptionIndex+1),this.customOptionIndex=e,this.value=this.customOptionsArray[e]}}else this.value=Number.parseFloat(this.value),this.value=Number.parseFloat((this.value+this.step).toFixed(this.decimalPlaces))},this.onClickHandler=()=>{this.dropdown&&!this.isDropdownVisible?this.showDropdown():this.hideDropdown()},this.onOptionClickHandler=e=>{const t=parseFloat(e.target.dataset.value);this.value=parseFloat(t.toFixed(this.decimalPlaces))},this.isDropdownVisible=!1,this.step=1,this.value=1,this.min=0,this.max=100,this.suffix="",this.dropdown=!1,this.decimalPlaces=0,this.dropdownStep=0,this.customOptions=!1}valueChanged(e){if(this.value=e,this.dropdown&&this.customOptions&&(this.customOptionIndex=this.customOptionsArray.indexOf(this.value)),!this.customOptions){const e=r.validateMin(this.min),t=r.validateMax(this.max);this.value<e?this.value=e:this.value>t&&(this.value=t),this.value===e?this.decrementButton.classList.add("number-incrementer__control--disable"):this.value===t?this.incrementButton.classList.add("number-incrementer__control--disable"):(this.incrementButton.classList.remove("number-incrementer__control--disable"),this.decrementButton.classList.remove("number-incrementer__control--disable"))}this.rsChange.emit({value:this.value})}async showDropdown(){this.dropdown&&(this.setDropdownHeight(),this.isDropdownVisible=!0)}async hideDropdown(){this.dropdown&&(this.isDropdownVisible=!1)}async toggleDropdown(){this.onClickHandler()}rsOptionClickHandler(e){this.value=e.detail.value}validateCustomOptionIndex(e){return e<0&&(e=0),e>this.customOptionsArray.length-1&&(e=this.customOptionsArray.length-1),e}static validateMin(e){return isNaN(e)?0:Number(e)}static validateMax(e){return isNaN(e)?100:Number(e)}handleOutOfRangeIndex(e){e<=0?this.decrementButton.classList.add("number-incrementer__control--disable"):this.decrementButton.classList.remove("number-incrementer__control--disable"),e>=this.customOptionsArray.length-1?this.incrementButton.classList.add("number-incrementer__control--disable"):this.incrementButton.classList.remove("number-incrementer__control--disable")}setDropdownHeight(){if(this.dropdown){const e=this.el.getBoundingClientRect(),t=e.top+e.height;let n=window.innerHeight-t-5;n<50&&(n=50),n<300&&(this.dropdownList.style.height=n+"px")}}componentDidLoad(){if(document.addEventListener("click",(e=>{null==e.target.closest(".number-incrementer")&&this.isDropdownVisible&&this.hideDropdown()})),this.dropdown&&this.customOptions){document.querySelectorAll("rs-incrementer-option").forEach((e=>{this.customOptionsArray.push(e.dataset.value)})),this.customOptionsArray.length>0&&(this.customOptionIndex=this.customOptionsArray.indexOf(this.value),this.handleOutOfRangeIndex(this.customOptionIndex))}}componentWillRender(){const e=this.step%1;if(0===this.decimalPlaces&&0!==e&&(this.decimalPlaces=1),this.dropdownStep=0===this.dropdownStep?this.step:this.dropdownStep,this.dropdown){let e=[];const t=r.validateMin(this.min),n=r.validateMax(this.max);for(let i=t;i<=n;i+=this.dropdownStep)i=Number(i.toFixed(this.decimalPlaces)),e.push(i);e=e.filter(((t,n)=>e.indexOf(t)===n));let s=e.map((e=>(0,i.h)("span",{class:"number-incrementer__dropdown-item",onClick:this.onOptionClickHandler,"data-value":e},e+this.suffix)));this.customOptions&&(s=(0,i.h)("slot",null)),this.dropdownHtml=(0,i.h)("div",{class:{"number-incrementer__dropdown-container":!0,"number-incrementer__dropdown-container--active":this.isDropdownVisible},style:{display:this.isDropdownVisible?"block":"none",opacity:this.isDropdownVisible?"1":"0","pointer-events":this.isDropdownVisible?"auto":"none"}},(0,i.h)("div",{class:"number-incrementer__dropdown-list",ref:e=>this.dropdownList=e},s))}}render(){return(0,i.h)(i.H,{class:{"number-incrementer":!0,"number-incrementer--dropdown":this.dropdown},onClick:this.onClickHandler},(0,i.h)("div",{class:"number-incrementer__container"},(0,i.h)("span",{class:"number-incrementer__control number-incrementer__control--decrement",ref:e=>this.decrementButton=e,onClick:this.onDecrementHandler},(0,i.h)("rs-icon",{name:"minus",color:"secondary"})),(0,i.h)("span",{class:"number-incrementer__value"},this.value+this.suffix),(0,i.h)("span",{class:"number-incrementer__control number-incrementer__control--increment",ref:e=>this.incrementButton=e,onClick:this.onIncrementHandler},(0,i.h)("rs-icon",{name:"plus",color:"secondary"}))),this.dropdownHtml)}get el(){return(0,i.g)(this)}static get watchers(){return{value:["valueChanged"]}}};r.style=".sc-rs-incrementer-h{display:block;width:100%;height:32px;min-width:114px;box-sizing:border-box;font-family:Soleil, sans-serif;color:var(--rs-color-secondary);position:relative}.number-incrementer--dropdown.sc-rs-incrementer-h{cursor:pointer}.number-incrementer__container.sc-rs-incrementer{border:1px solid var(--rs-color-select-border);border-radius:4px;background-color:rgba(216, 216, 216, 0);padding:5px;display:flex;align-items:center;justify-content:space-between;user-select:none}.number-incrementer__control.sc-rs-incrementer{width:20px;height:20px;background-color:var(--rs-color-select-secondary);border-radius:50%;font-size:16px;font-weight:500;line-height:20px;cursor:pointer;display:flex;align-items:center;justify-content:center}.number-incrementer__control--disable.sc-rs-incrementer{opacity:0.5;cursor:not-allowed}.number-incrementer__control.sc-rs-incrementer rs-icon.sc-rs-incrementer{font-size:8px}.number-incrementer__value.sc-rs-incrementer{font-size:14px;font-family:'Soleil', sans-serif;color:var(--rs-color-black);flex-grow:1;text-align:center}.number-incrementer--dropdown.sc-rs-incrementer-h .number-incrementer__value.sc-rs-incrementer{cursor:pointer}.number-incrementer__dropdown-container.sc-rs-incrementer{z-index:9;position:absolute;width:100%;background-color:var(--rs-color-white);border:1px solid var(--rs-color-select-border);top:100%;margin-top:-3px;box-sizing:border-box;border-bottom-left-radius:3px;border-bottom-right-radius:3px;overflow:hidden;word-break:break-all;opacity:0;pointer-events:none;transition:opacity 0.15s ease-out 0.05s}.number-incrementer__dropdown-list.sc-rs-incrementer{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.number-incrementer__dropdown-item.sc-rs-incrementer{display:block;position:relative;padding:10px;font-family:'Soleil', sans-serif;cursor:pointer;font-size:12px}.number-incrementer__dropdown-item.sc-rs-incrementer:hover{background-color:var(--rs-color-select-background)}"}}]);
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[542],{2542:function(e,t,n){n.r(t),n.d(t,{rs_incrementer:function(){return s}});var i=n(6919);const s=class{constructor(e){(0,i.r)(this,e),this.rsChange=(0,i.c)(this,"rsChange",7),this.isDropdownVisible=!1,this.customOptionsArray=[],this.customOptionIndex=0,this.step=1,this.value=1,this.min=0,this.max=100,this.suffix="",this.dropdown=!1,this.decimalPlaces=0,this.dropdownStep=0,this.customOptions=!1,this.onDecrementHandler=e=>{if(e.stopPropagation(),this.customOptions){if(this.customOptionsArray.length>0){let e=this.customOptionIndex-1;this.handleOutOfRangeIndex(e),e=this.validateCustomOptionIndex(this.customOptionIndex-1),this.customOptionIndex=e,this.value=this.customOptionsArray[e]}}else this.value=Number.parseFloat(this.value),this.value=Number.parseFloat((this.value-this.step).toFixed(this.decimalPlaces))},this.onIncrementHandler=e=>{if(e.stopPropagation(),this.customOptions){if(this.customOptionsArray.length>0){let e=this.customOptionIndex+1;this.handleOutOfRangeIndex(e),e=this.validateCustomOptionIndex(this.customOptionIndex+1),this.customOptionIndex=e,this.value=this.customOptionsArray[e]}}else this.value=Number.parseFloat(this.value),this.value=Number.parseFloat((this.value+this.step).toFixed(this.decimalPlaces))},this.onClickHandler=()=>{this.dropdown&&!this.isDropdownVisible?this.showDropdown():this.hideDropdown()},this.onOptionClickHandler=e=>{const t=parseFloat(e.target.dataset.value);this.value=parseFloat(t.toFixed(this.decimalPlaces))}}valueChanged(e){if(this.value=e,this.dropdown&&this.customOptions&&(this.customOptionIndex=this.customOptionsArray.indexOf(this.value)),!this.customOptions){const e=s.validateMin(this.min),t=s.validateMax(this.max);this.value<e?this.value=e:this.value>t&&(this.value=t),this.value===e?this.decrementButton.classList.add("number-incrementer__control--disable"):this.value===t?this.incrementButton.classList.add("number-incrementer__control--disable"):(this.incrementButton.classList.remove("number-incrementer__control--disable"),this.decrementButton.classList.remove("number-incrementer__control--disable"))}this.rsChange.emit({value:this.value})}async showDropdown(){this.dropdown&&(this.setDropdownHeight(),this.isDropdownVisible=!0)}async hideDropdown(){this.dropdown&&(this.isDropdownVisible=!1)}async toggleDropdown(){this.onClickHandler()}rsOptionClickHandler(e){this.value=e.detail.value}validateCustomOptionIndex(e){return e<0&&(e=0),e>this.customOptionsArray.length-1&&(e=this.customOptionsArray.length-1),e}static validateMin(e){return isNaN(e)?0:Number(e)}static validateMax(e){return isNaN(e)?100:Number(e)}handleOutOfRangeIndex(e){e<=0?this.decrementButton.classList.add("number-incrementer__control--disable"):this.decrementButton.classList.remove("number-incrementer__control--disable"),e>=this.customOptionsArray.length-1?this.incrementButton.classList.add("number-incrementer__control--disable"):this.incrementButton.classList.remove("number-incrementer__control--disable")}setDropdownHeight(){if(this.dropdown){const e=this.el.getBoundingClientRect(),t=e.top+e.height;let n=window.innerHeight-t-5;n<50&&(n=50),n<300&&(this.dropdownList.style.height=n+"px")}}componentDidLoad(){if(document.addEventListener("click",(e=>{null==e.target.closest(".number-incrementer")&&this.isDropdownVisible&&this.hideDropdown()})),this.dropdown&&this.customOptions){this.el.querySelectorAll("rs-incrementer-option").forEach((e=>{this.customOptionsArray.push(e.dataset.value)})),this.customOptionsArray.length>0&&(this.customOptionIndex=this.customOptionsArray.indexOf(this.value),this.handleOutOfRangeIndex(this.customOptionIndex))}}componentWillRender(){const e=this.step%1;if(0===this.decimalPlaces&&0!==e&&(this.decimalPlaces=1),this.dropdownStep=0===this.dropdownStep?this.step:this.dropdownStep,this.dropdown){let e=[];const t=s.validateMin(this.min),n=s.validateMax(this.max);for(let i=t;i<=n;i+=this.dropdownStep)i=Number(i.toFixed(this.decimalPlaces)),e.push(i);e=e.filter(((t,n)=>e.indexOf(t)===n));let r=e.map((e=>(0,i.h)("span",{class:"number-incrementer__dropdown-item",onClick:this.onOptionClickHandler,"data-value":e},e+this.suffix)));this.customOptions&&(r=(0,i.h)("slot",null)),this.dropdownHtml=(0,i.h)("div",{class:{"number-incrementer__dropdown-container":!0,"number-incrementer__dropdown-container--active":this.isDropdownVisible},style:{display:this.isDropdownVisible?"block":"none",opacity:this.isDropdownVisible?"1":"0","pointer-events":this.isDropdownVisible?"auto":"none"}},(0,i.h)("div",{class:"number-incrementer__dropdown-list",ref:e=>this.dropdownList=e},r))}}render(){return(0,i.h)(i.H,{key:"f76f5fd75e8436a91530c1d1ae9a5f0dc78a894a",class:{"number-incrementer":!0,"number-incrementer--dropdown":this.dropdown},onClick:this.onClickHandler},(0,i.h)("div",{key:"90c14bb727c9a4ab0d9b0b00877c0572c9e04746",class:"number-incrementer__container"},(0,i.h)("span",{key:"a2bea57699bcb276f5cc707a08e29eacc14c17d1",class:"number-incrementer__control number-incrementer__control--decrement",ref:e=>this.decrementButton=e,onClick:this.onDecrementHandler},(0,i.h)("rs-icon",{key:"480808c0b61b3c06a55258f52dab4583327d0f51",name:"minus",color:"secondary"})),(0,i.h)("span",{key:"2effde38d53505e28ad7ac03fd74d2e45fcbb8a5",class:"number-incrementer__value"},this.value+this.suffix),(0,i.h)("span",{key:"64147f7a4ee119337cfb8b60f337f22653a62b64",class:"number-incrementer__control number-incrementer__control--increment",ref:e=>this.incrementButton=e,onClick:this.onIncrementHandler},(0,i.h)("rs-icon",{key:"70625e43bad8d2e62dda28d16e5567eaacfade84",name:"plus",color:"secondary"}))),this.dropdownHtml)}get el(){return(0,i.g)(this)}static get watchers(){return{value:["valueChanged"]}}};s.style=".sc-rs-incrementer-h{display:block;width:100%;height:32px;min-width:114px;box-sizing:border-box;font-family:Soleil, sans-serif;color:var(--rs-color-secondary);position:relative}.number-incrementer--dropdown.sc-rs-incrementer-h{cursor:pointer}.number-incrementer__container.sc-rs-incrementer{border:1px solid var(--rs-color-select-border);border-radius:4px;background-color:rgba(216, 216, 216, 0);padding:5px;display:flex;align-items:center;justify-content:space-between;user-select:none}.number-incrementer__control.sc-rs-incrementer{width:20px;height:20px;background-color:var(--rs-color-select-secondary);border-radius:50%;font-size:16px;font-weight:500;line-height:20px;cursor:pointer;display:flex;align-items:center;justify-content:center}.number-incrementer__control--disable.sc-rs-incrementer{opacity:0.5;cursor:not-allowed}.number-incrementer__control.sc-rs-incrementer rs-icon.sc-rs-incrementer{font-size:8px}.number-incrementer__value.sc-rs-incrementer{font-size:14px;font-family:'Soleil', sans-serif;color:var(--rs-color-black);flex-grow:1;text-align:center}.number-incrementer--dropdown.sc-rs-incrementer-h .number-incrementer__value.sc-rs-incrementer{cursor:pointer}.number-incrementer__dropdown-container.sc-rs-incrementer{z-index:9;position:absolute;width:100%;background-color:var(--rs-color-white);border:1px solid var(--rs-color-select-border);top:100%;margin-top:-3px;box-sizing:border-box;border-bottom-left-radius:3px;border-bottom-right-radius:3px;overflow:hidden;word-break:break-all;opacity:0;pointer-events:none;transition:opacity 0.15s ease-out 0.05s}.number-incrementer__dropdown-list.sc-rs-incrementer{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.number-incrementer__dropdown-item.sc-rs-incrementer{display:block;position:relative;padding:10px;font-family:'Soleil', sans-serif;cursor:pointer;font-size:12px}.number-incrementer__dropdown-item.sc-rs-incrementer:hover{background-color:var(--rs-color-select-background)}"}}]);
13
13
  //# sourceMappingURL=542.index.js.map