@rocketspark/domain-checker 0.0.20 → 0.0.21
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.
- package/.nvmrc +1 -0
- package/build/141.index.js +13 -0
- package/build/141.index.js.map +1 -0
- package/build/147.index.js +13 -0
- package/build/147.index.js.map +1 -0
- package/build/167.index.js +13 -0
- package/build/167.index.js.map +1 -0
- package/build/17.index.js +13 -0
- package/build/17.index.js.map +1 -0
- package/build/194.index.js +13 -0
- package/build/194.index.js.map +1 -0
- package/build/208.index.js +13 -0
- package/build/208.index.js.map +1 -0
- package/build/237.index.js +13 -0
- package/build/237.index.js.map +1 -0
- package/build/245.index.js +13 -0
- package/build/245.index.js.map +1 -0
- package/build/278.index.js +13 -0
- package/build/278.index.js.map +1 -0
- package/build/386.index.js +13 -0
- package/build/386.index.js.map +1 -0
- package/build/404.index.js +13 -0
- package/build/404.index.js.map +1 -0
- package/build/420.index.js +13 -0
- package/build/420.index.js.map +1 -0
- package/build/514.index.js +13 -0
- package/build/514.index.js.map +1 -0
- package/build/524.index.js +13 -0
- package/build/524.index.js.map +1 -0
- package/build/540.index.js +13 -0
- package/build/540.index.js.map +1 -0
- package/build/542.index.js +13 -0
- package/build/542.index.js.map +1 -0
- package/build/551.index.js +13 -0
- package/build/551.index.js.map +1 -0
- package/build/567.index.js +13 -0
- package/build/567.index.js.map +1 -0
- package/build/571.index.js +13 -0
- package/build/571.index.js.map +1 -0
- package/build/{903.index.js → 572.index.js} +3 -3
- package/build/572.index.js.map +1 -0
- package/build/584.index.js +13 -0
- package/build/584.index.js.map +1 -0
- package/build/588.index.js +13 -0
- package/build/588.index.js.map +1 -0
- package/build/598.index.js +13 -0
- package/build/598.index.js.map +1 -0
- package/build/60.index.js +13 -0
- package/build/60.index.js.map +1 -0
- package/build/616.index.js +13 -0
- package/build/616.index.js.map +1 -0
- package/build/631.index.js +13 -0
- package/build/631.index.js.map +1 -0
- package/build/643.index.js +13 -0
- package/build/643.index.js.map +1 -0
- package/build/{190.index.js → 654.index.js} +3 -3
- package/build/654.index.js.map +1 -0
- package/build/66.index.js +2 -2
- package/build/66.index.js.map +1 -1
- package/build/697.index.js +13 -0
- package/build/697.index.js.map +1 -0
- package/build/714.index.js +13 -0
- package/build/714.index.js.map +1 -0
- package/build/795.index.js +13 -0
- package/build/795.index.js.map +1 -0
- package/build/8.index.js +13 -0
- package/build/8.index.js.map +1 -0
- package/build/808.index.js +13 -0
- package/build/808.index.js.map +1 -0
- package/build/810.index.js +13 -0
- package/build/810.index.js.map +1 -0
- package/build/833.index.js +13 -0
- package/build/833.index.js.map +1 -0
- package/build/835.index.js +13 -0
- package/build/835.index.js.map +1 -0
- package/build/847.index.js +13 -0
- package/build/847.index.js.map +1 -0
- package/build/853.index.js +13 -0
- package/build/853.index.js.map +1 -0
- package/build/861.index.js +13 -0
- package/build/861.index.js.map +1 -0
- package/build/871.index.js +13 -0
- package/build/871.index.js.map +1 -0
- package/build/890.index.js +13 -0
- package/build/890.index.js.map +1 -0
- package/build/899.index.js +13 -0
- package/build/899.index.js.map +1 -0
- package/build/{698.index.js → 938.index.js} +3 -3
- package/build/938.index.js.map +1 -0
- package/build/964.index.js +13 -0
- package/build/964.index.js.map +1 -0
- package/build/970.index.js +13 -0
- package/build/970.index.js.map +1 -0
- package/build/993.index.js +13 -0
- package/build/993.index.js.map +1 -0
- package/build/css/index.css +3 -2
- package/build/css/index.css.map +1 -1
- package/build/index.js +3 -2
- package/build/index.js.map +1 -1
- package/build/types/Components/SearchAlternativeRow.d.ts +3 -3
- package/build/types/Components/SearchStatus.d.ts +1 -1
- package/build/types/Helpers/Fetch.d.ts +3 -0
- package/build/types/Interfaces/class-names.d.ts +1 -0
- package/build/types/Interfaces/locale.d.ts +1 -1
- package/package.json +5 -8
- package/tsconfig.json +3 -3
- package/webpack.config.demo.js +10 -8
- package/build/130.index.js +0 -13
- package/build/130.index.js.map +0 -1
- package/build/145.index.js +0 -13
- package/build/145.index.js.map +0 -1
- package/build/171.index.js +0 -13
- package/build/171.index.js.map +0 -1
- package/build/190.index.js.map +0 -1
- package/build/228.index.js +0 -13
- package/build/228.index.js.map +0 -1
- package/build/23.index.js +0 -13
- package/build/23.index.js.map +0 -1
- package/build/253.index.js +0 -13
- package/build/253.index.js.map +0 -1
- package/build/269.index.js +0 -13
- package/build/269.index.js.map +0 -1
- package/build/307.index.js +0 -13
- package/build/307.index.js.map +0 -1
- package/build/314.index.js +0 -13
- package/build/314.index.js.map +0 -1
- package/build/330.index.js +0 -13
- package/build/330.index.js.map +0 -1
- package/build/346.index.js +0 -13
- package/build/346.index.js.map +0 -1
- package/build/385.index.js +0 -13
- package/build/385.index.js.map +0 -1
- package/build/431.index.js +0 -13
- package/build/431.index.js.map +0 -1
- package/build/447.index.js +0 -13
- package/build/447.index.js.map +0 -1
- package/build/482.index.js +0 -13
- package/build/482.index.js.map +0 -1
- package/build/525.index.js +0 -13
- package/build/525.index.js.map +0 -1
- package/build/536.index.js +0 -13
- package/build/536.index.js.map +0 -1
- package/build/548.index.js +0 -13
- package/build/548.index.js.map +0 -1
- package/build/565.index.js +0 -13
- package/build/565.index.js.map +0 -1
- package/build/577.index.js +0 -13
- package/build/577.index.js.map +0 -1
- package/build/655.index.js +0 -13
- package/build/655.index.js.map +0 -1
- package/build/669.index.js +0 -13
- package/build/669.index.js.map +0 -1
- package/build/677.index.js +0 -13
- package/build/677.index.js.map +0 -1
- package/build/678.index.js +0 -13
- package/build/678.index.js.map +0 -1
- package/build/69.index.js +0 -13
- package/build/69.index.js.map +0 -1
- package/build/690.index.js +0 -13
- package/build/690.index.js.map +0 -1
- package/build/694.index.js +0 -13
- package/build/694.index.js.map +0 -1
- package/build/698.index.js.map +0 -1
- package/build/716.index.js +0 -13
- package/build/716.index.js.map +0 -1
- package/build/717.index.js +0 -13
- package/build/717.index.js.map +0 -1
- package/build/724.index.js +0 -13
- package/build/724.index.js.map +0 -1
- package/build/738.index.js +0 -13
- package/build/738.index.js.map +0 -1
- package/build/799.index.js +0 -13
- package/build/799.index.js.map +0 -1
- package/build/82.index.js +0 -13
- package/build/82.index.js.map +0 -1
- package/build/858.index.js +0 -13
- package/build/858.index.js.map +0 -1
- package/build/882.index.js +0 -13
- package/build/882.index.js.map +0 -1
- package/build/895.index.js +0 -13
- package/build/895.index.js.map +0 -1
- package/build/903.index.js.map +0 -1
- package/build/911.index.js +0 -13
- package/build/911.index.js.map +0 -1
- package/build/912.index.js +0 -13
- package/build/912.index.js.map +0 -1
- package/build/927.index.js +0 -13
- package/build/927.index.js.map +0 -1
- package/build/953.index.js +0 -13
- package/build/953.index.js.map +0 -1
- package/build/955.index.js +0 -13
- package/build/955.index.js.map +0 -1
- package/build/994.index.js +0 -13
- package/build/994.index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"245.index.js","mappings":";;;;;;;;;;;wNAAA,MAAM,IAAEA,EAAG,IAAEC,EAAG,MAAEC,EAAK,MAAEC,GAAUC,KAenC,SAASC,EAASC,EAAGC,EAAGC,GACtB,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,GAEzC,CACA,SAASC,EAASZ,EAAGC,EAAGC,GACtB,OAAOH,EAASC,EAAGC,EAAGC,GAAGW,KAAIC,GAAOjB,EAAMiB,GACvCC,SAAS,IACTC,SAAS,EAAG,MACjB,CAYA,SAASC,E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ASI,EAAcC,EAAQC,EAAUC,EAAQC,EAAIpR,EAAU,CAAC,GAC9D,IAAIqR,EAAgBH,EAChBnH,MAAMC,QAAQkH,GAChBG,EAAgBtH,MAAMuH,KAAKJ,GAEnBnH,MAAMC,QAAQkH,KACtBG,EAAgB,CAACH,IAEnB,IAAIK,EAAcJ,EASlB,OARKpH,MAAMC,QAAQmH,KACjBI,EAAc,CAACJ,IAEjBE,EAAc3F,SAAQjB,IACpB8G,EAAY7F,SAAQ8F,IAClB/G,EAAGwG,GAAQO,EAAIJ,EAAIhW,OAAOiG,OAAO,CAAEoQ,SAAS,GAASzR,GAAS,GAC9D,IAEG,CAACkR,EAAUC,EAAQC,EAAIpR,EAChC,CACA,MAAM0R,EAAKV,EAAc5E,KAAK,KAAM,oBAC9BuF,EAAMX,EAAc5E,KAAK,KAAM,uBAC/BwF,EAAcC,IAElB,IAAKA,GAAyD,sBAA7CzW,OAAO0W,UAAUzZ,SAAS0Z,KAAKF,GAC9C,OAGF,IAAI3R,EAEJkC,OAAOV,iBAAiB,UAAU,WAEhCU,OAAON,aAAa5B,GAEpBA,EAAc+B,YAAW,WAEvB4P,GACF,GAAG,GACL,IAAG,EAAM,C","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/HSVaColor-0aa7247b.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/color-picker_4.entry.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/utils-6d01f45b.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 { i as isValidHex, D as DEFAULT_COLOR, H as HSVaColor, p as parseToHSVA } from './HSVaColor-0aa7247b.js';\nimport { S as ScrollStop, o as on, a as off } from './utils-6d01f45b.js';\n\nconst numberAsPercent = (number) => number <= 1 ? Math.round(number * 100) : Math.round(number);\n\nclass JsStorage {\n constructor() {\n this.storage = new WeakMap();\n }\n set(element, key, value) {\n if (this.has(element, key)) {\n console.warn('Overwriting existing key:', key);\n }\n if (!this.storage.get(element)) {\n this.storage.set(element, new Map());\n }\n this.storage.get(element).set(key, value);\n }\n get(element, key) {\n var _a;\n if (this.storage.get(element) !== undefined) {\n return this.storage.get(element).get(key);\n }\n return (_a = this.storage[key]) !== null && _a !== void 0 ? _a : null;\n }\n has(element, key) {\n return (this.storage.get(element) !== undefined) && this.storage.get(element).has(key);\n }\n delete(element, key) {\n if (this.has(element, key)) {\n this.storage.get(element).delete(key);\n if (this.storage.get(element).size === 0) {\n this.storage.delete(element);\n }\n }\n }\n}\nconst Storage = new JsStorage();\n\nclass ToolTip {\n /**\n * @param element\n * @param options\n */\n constructor(element, options = {}) {\n this.arrowOffset = 10;\n // private leftTolerance: number = 5;\n this.isScrolling = false;\n this.positionClasses = [];\n this.defaults = {\n // if set to horizontal or vertical, we try and auto-detect the best place to put it on that axis\n position: 'horizontal',\n // delay before the tooltip appears/hides (ms)\n delayShow: 1000,\n delayHide: 500,\n // Vertical and Horizontal offset for the tooltip for finer control\n horizontalOffset: -5,\n verticalOffset: 0,\n };\n this.classNames = {\n tooltip: 'rs-tooltip',\n horizontal: 'rs-tooltip--horizontal',\n vertical: 'rs-tooltip--vertical',\n arrowBottom: 'rs-tooltip--bottom',\n arrowLeft: 'rs-tooltip--left',\n arrowRight: 'rs-tooltip-right',\n arrowTop: 'rs-tooltip--top',\n active: 'rs-tooltip--active'\n };\n if (element.dataset.tip === undefined || element.dataset.tip === '') {\n return;\n }\n if (Storage.has(element, 'tooltip-loaded')) {\n return;\n }\n Storage.set(element, 'tooltip-loaded', true);\n // If the \"options\" parameter is an object, then lets merge it with the defaults,\n // Otherwise, we just use defaults\n if (typeof options === 'object') {\n this.options = Object.assign(this.defaults, options);\n }\n // If they have passed through a string, then we'll convert it to a dom object\n if (typeof element === 'string') {\n element = document.querySelector(element);\n }\n // If the element doesn't actually exist, then we want to stop here.\n if (!(element instanceof Element || element instanceof Element || element === null)) {\n throw new Error(`You haven't passed through a DOM element, or the element can't be found: ${element}`);\n }\n this.element = element;\n this.createStructure();\n // When we mouse over the element we need to show the relevant tool tip\n this.element.addEventListener('mouseenter', () => {\n let delayShow = this.isVisible() ? 0 : this.options.delayShow;\n // Check to see if we are waiting to hide the tooltip. If we are, then we can cancel that timeout\n const hideTimeout = Storage.get(this.tooltipContainer, 'tooltipHideTimeout');\n if (hideTimeout !== undefined) {\n clearTimeout(hideTimeout);\n Storage.delete(this.tooltipContainer, 'tooltipHideTimeout');\n }\n // Check to see if we are in the process of starting a tooltip, if we are, we cancel that one as we want to initiate this one instead\n const showTimeout = Storage.get(this.tooltipContainer, 'tooltipShowTimeout');\n if (showTimeout !== undefined) {\n clearTimeout(showTimeout);\n Storage.delete(this.tooltipContainer, 'tooltipShowTimeout');\n }\n // Start the timeout to show the tooltip after the set the delay. Save the timeout process for use in the mouseleave\n const timeout = setTimeout(() => {\n this.show();\n }, delayShow);\n Storage.set(this.tooltipContainer, 'showTimeout', timeout);\n });\n // When our mouse leaves the element, we want to start the process to hide the tooltip\n this.element.addEventListener('mouseleave', () => {\n // Start the timeout to hide the tooltip after the set the delay. Save the timeout process for use in the mouseenter\n const timeout = setTimeout(() => {\n this.hide();\n Storage.delete(this.tooltipContainer, 'tooltipHideTimeout');\n }, this.options.delayHide);\n Storage.set(this.tooltipContainer, 'tooltipHideTimeout', timeout);\n const showTimeout = Storage.get(this.tooltipContainer, 'showTimeout');\n if (showTimeout !== undefined) {\n clearTimeout(showTimeout);\n Storage.delete(this.tooltipContainer, 'showTimeout');\n }\n });\n // When we scroll, we want to hide all tooltips. We only want to fire this function once though, so when we have stopped scrolling, we want to re-init the scroll event\n window.addEventListener('scroll', () => {\n this.isScrolling = true;\n this.hide(true);\n ScrollStop(() => {\n this.isScrolling = false;\n window.addEventListener('scroll', () => {\n this.isScrolling = true;\n this.hide(true);\n }, {\n once: true\n });\n });\n }, {\n once: true\n });\n }\n /**\n * This gets fired once per page load and creates the dom element on the page\n * @private\n */\n createStructure() {\n if (document.querySelector(`rs-tool-tip`) !== null) {\n this.tooltipContainer = document.querySelector('rs-tool-tip');\n return;\n }\n this.tooltipContainer = document.createElement('rs-tool-tip');\n this.tooltipContainer.classList.add(this.classNames.tooltip);\n document.body.append(this.tooltipContainer);\n }\n /**\n * This does the actual magic of showing the tooltip. It will get relevant positioning info, content info and set the tooltip to display\n */\n show() {\n // We don't want to show when we are scrolling as this can get a bit messy\n if (this.isScrolling) {\n return;\n }\n // Set a small delay of 150 before we show the next tooltip. This is to allow any fadeout from css to happen which are 150ms long\n let delay = 150;\n this.hide();\n setTimeout(() => {\n this.tooltipContainer.innerHTML = this.element.dataset.tip;\n this.setPosition();\n this.tooltipContainer.classList.add(this.classNames.active);\n }, delay);\n }\n /**\n * We need to set the relevant classes on the tooltip and position relative to the element\n */\n setPosition() {\n let top = undefined;\n let left = undefined;\n this.tooltipContainer.style.width = null;\n this.tooltipContainer.style.height = null;\n const elementPos = this.element.getBoundingClientRect();\n const elementLeft = elementPos.left;\n const elementTop = elementPos.top;\n const elementWidth = elementPos.width;\n const elementHeight = elementPos.height;\n const tooltipWidth = this.tooltipContainer.offsetWidth;\n const tooltipHeight = this.tooltipContainer.offsetHeight;\n const scrollTop = window.scrollY || document.documentElement.scrollTop;\n const tolerance = 20; // This is a tolerance for auto checking where to put the tooltip to make sure there's a bit of room around it\n let tooltipPosition = 'left';\n if (this.options.position === 'horizontal') {\n tooltipPosition = 'right'; // We want left to be default\n // First we'll check to see if it'll fit to the left side\n // If the tooltip width + the tolerance is less than the left position of the element, there is enough room for the left\n if (window.innerWidth - elementLeft + elementWidth > tooltipWidth + tolerance) {\n tooltipPosition = 'right';\n }\n else if (elementLeft > tooltipWidth + tolerance) {\n tooltipPosition = 'left';\n }\n }\n else if (this.options.position === 'vertical') {\n tooltipPosition = 'top'; // Bottom will be the default\n // First we'll check to see if it'll on the bottom\n // If the tooltip width + the tolerance is less than the left position of the element, there is enough room for the left\n if (window.innerHeight - elementTop + elementHeight > tooltipHeight + tolerance) {\n tooltipPosition = 'bottom';\n }\n else if (elementTop > tooltipWidth + tolerance) {\n tooltipPosition = 'top';\n }\n }\n this.positionClasses.push(this.classNames[`arrow${tooltipPosition.charAt(0).toUpperCase() + tooltipPosition.slice(1)}`]);\n if (tooltipPosition === 'top') {\n this.positionClasses.push(this.classNames.vertical);\n left = ((elementWidth / 2) + elementLeft) - (tooltipWidth / 2) + this.options.horizontalOffset;\n top = ((elementTop + scrollTop) - tooltipHeight - this.arrowOffset) + this.options.verticalOffset;\n }\n else if (tooltipPosition === 'bottom') {\n this.positionClasses.push(this.classNames.vertical);\n left = ((elementWidth / 2) + elementLeft) - (tooltipWidth / 2) + this.options.horizontalOffset;\n top = ((elementTop + scrollTop) + elementHeight + this.arrowOffset) + this.options.verticalOffset;\n }\n else if (tooltipPosition === 'left') {\n this.positionClasses.push(this.classNames.horizontal);\n left = (elementLeft - tooltipWidth - this.arrowOffset) + this.options.horizontalOffset;\n top = ((elementTop + scrollTop) + (elementHeight / 2) - (tooltipHeight / 2)) + this.options.verticalOffset;\n }\n else if (tooltipPosition === 'right') {\n this.positionClasses.push(this.classNames.horizontal);\n left = (elementWidth + elementLeft + this.arrowOffset) + this.options.horizontalOffset;\n top = ((elementTop + scrollTop) + (elementHeight / 2) - (tooltipHeight / 2)) + this.options.verticalOffset;\n }\n // if (left < this.leftTolerance) {\n // const arrowLeft = left - this.leftTolerance;\n // left = this.leftTolerance;\n // this.tooltipArrow.style.marginLeft = arrowLeft + 'px';\n // }\n // } else {\n // this.tooltipArrow.style.marginLeft = null;\n // }\n const { left: bodyLeft } = window.getComputedStyle(document.body);\n const leftPosition = left !== undefined ? left - Number.parseInt(bodyLeft) : 'auto';\n this.tooltipContainer.style.top = `${top !== null && top !== void 0 ? top : 'auto'}px`;\n this.tooltipContainer.style.right = `${'auto'}px`;\n this.tooltipContainer.style.bottom = `${'auto'}px`;\n this.tooltipContainer.style.left = `${leftPosition}px`;\n this.tooltipContainer.classList.add(...this.positionClasses);\n this.tooltipContainer.setAttribute('arrow', tooltipPosition);\n }\n hide(instantHide = false) {\n const delay = instantHide ? 0 : 150;\n this.tooltipContainer.classList.remove(this.classNames.active);\n setTimeout(() => {\n this.tooltipContainer.classList.remove(this.classNames.arrowBottom, this.classNames.arrowTop, this.classNames.arrowLeft, this.classNames.arrowRight);\n this.tooltipContainer.style.top = null;\n this.tooltipContainer.style.right = null;\n this.tooltipContainer.style.bottom = null;\n this.tooltipContainer.style.left = null;\n }, delay);\n }\n isVisible() {\n const computedStyle = window.getComputedStyle(this.tooltipContainer);\n return !(this.tooltipContainer.offsetParent === null || computedStyle.opacity === '0');\n }\n}\n\nconst colorPickerCss = \":host{display:inline-block;font-family:arial, sans-serif;-webkit-font-smoothing:antialiased}.container{padding:16px;border-radius:8px;background:#fff;box-shadow:0 5px 15px rgb(70 74 83 / 0.25);font-family:soleil, sans-serif}:host(.color-picker--inline) .container{padding:0;box-shadow:none;background:none}.input-container{position:relative;flex-grow:1;flex-shrink:1}.input-label{font-size:12px;color:#95a8bd;position:absolute;right:15px;top:50%;transform:translateY(-50%)}.palettes-header{color:#748393;font-size:12px;font-weight:normal}.palettes-container{display:grid;gap:10px;grid-template-columns:repeat(6, 24px);grid-auto-rows:minmax(24px, auto)}.palettes-message{background:var(--rs-color-light);padding:16px;font-size:12px;width:162px;text-align:center;display:flex;flex-direction:column;gap:10px;border-radius:8px}.help-guide-link{color:var(--rs-color-primary);font-weight:700;cursor:pointer}:host(.color-picker--inline) .palettes-container{grid-template-columns:repeat(auto-fit, 24px)}.palette__container{border-radius:30px;overflow:hidden;position:relative}.palette__container--active{box-shadow:0 0 0 2px rgb(116 131 147 / 0.5);border:2px solid #fff}.palette{border-radius:30px;width:100%;height:100%;display:block;box-sizing:border-box;cursor:pointer;position:absolute;top:0;left:0;bottom:0;right:0;border:1px solid rgb(44 48 53 / 0.15)}.checkerboard{position:absolute;top:0;left:0;bottom:0;right:0;opacity:0.5;background-image:linear-gradient(45deg, #808080 25%, transparent 25%), linear-gradient(-45deg, #808080 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #808080 75%), linear-gradient(-45deg, transparent 75%, #808080 75%);background-size:6px 6px;background-position:0 0, 0 3px, 3px -3px, -3px 0}input,.transparent-button{font-family:soleil, arial, sans-serif;font-size:14px;text-transform:uppercase;color:#748393;height:28px;text-indent:8px;border-radius:4px;background:#fff;border:1px solid #ddd;box-sizing:border-box;min-width:0;width:100%}.transparent-button{margin-top:16px;text-transform:unset;text-align:left;display:flex;align-items:center;cursor:pointer;justify-content:space-between;padding:0 4px}.transparent-button__swatch{width:20px;height:20px;display:block;opacity:0.5;box-shadow:inset 0 0 1px 1px var(--rs-color-secondary);border-radius:20px;transition:box-shadow 0.15s cubic-bezier(0, 0.55, 0.45, 1);position:relative;overflow:hidden}.transparent-button:hover .transparent-button__swatch{box-shadow:inset 0 0 3px 1px var(--rs-color-secondary)}.transparent-button__swatch::after{content:\\\"\\\";position:absolute;border-top:2px solid red;width:21px;transform:rotate(-45deg);transform-origin:center;top:8px;z-index:1;left:0}\";\n\nconst ColorPicker = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.colorChange = createEvent(this, \"colorChange\", 7);\n this.presetColorChoice = createEvent(this, \"presetColorChoice\", 7);\n this.hasRecentColors = false;\n this.hueChangeHandler = (event) => {\n if (this.hasTransparentButton()) {\n this.currentOpacity = 100;\n this.currentColor.alpha = this.currentOpacity;\n }\n this.currentColor.hue = event.detail;\n this.setHue(event.detail);\n this.setColorAndEmit(this.currentColor.toHEXA().toString());\n };\n this.colorPaletteChangeHandler = (event) => {\n var _a;\n if (this.hasTransparentButton() || !this.supportsOpacity()) {\n this.currentOpacity = 100;\n }\n (_a = this.opacitySlider) === null || _a === void 0 ? void 0 : _a.setColor(event.detail.toHEXA().toString());\n event.detail.alpha = this.currentOpacity;\n this.setColorAndEmit(event.detail.toHEXA().toString());\n };\n this.handleOpacityInput = event => {\n const opacityValue = isNaN(event.target.value) ? 0 : event.target.value;\n this.currentOpacity = Math.max(Math.min(opacityValue, 100), 0);\n this.setColorAndEmit(this.currentColor.toHEXA().toString());\n };\n this.setPresetPalette = event => {\n var _a, _b, _c;\n const palettes = (_a = this.palettesToDisplay.filter(palettes => {\n return palettes.label === event.target.dataset.category;\n })[0]) !== null && _a !== void 0 ? _a : { palettes: [] };\n const palette = (_b = palettes.palettes.filter(palette => {\n return palette.index === Number.parseInt(event.target.dataset.index);\n })[0]) !== null && _b !== void 0 ? _b : {};\n this.setColorFromPalette(event.target.dataset.color);\n this.presetColorChoice.emit({\n color: this.currentColor,\n data: (_c = palette.data) !== null && _c !== void 0 ? _c : null\n });\n };\n this.handleHexInput = event => {\n const hexValue = event.target.value;\n const hex = hexValue.startsWith('#') ? hexValue : `#${hexValue}`;\n if (isValidHex(hex)) {\n this.setColorAndEmit(hex);\n this.setHue(this.currentColor.hue);\n }\n };\n this.handleHexFocus = event => {\n event.target.select();\n };\n this.hasOpacity = (color) => color.length > 7;\n this.setTransparentButton = () => {\n this.currentOpacity = 0;\n this.currentColor.alpha = this.currentOpacity;\n this.setColorAndEmit(this.currentColor.toHEXA().toString());\n };\n this.currentColor = undefined;\n this.currentOpacity = undefined;\n this.palettesToDisplay = [];\n this.color = undefined;\n this.opacity = false;\n this.palettes = undefined;\n this.maxPresetDisplay = 12;\n this.recentColorsLabel = 'Recent Colors';\n this.transparentButton = false;\n this.display = 'default';\n this.mode = 'default';\n }\n watchPalettes() {\n this.buildPresetPalettes();\n }\n componentWillLoad() {\n var _a;\n this.setColorValue((_a = this.color) !== null && _a !== void 0 ? _a : DEFAULT_COLOR);\n this.buildPresetPalettes();\n }\n componentDidRender() {\n this.createToolTips();\n }\n opacityChangeHandler(event) {\n this.currentOpacity = numberAsPercent(event.detail);\n this.currentColor.alpha = this.currentOpacity;\n this.setColorAndEmit(this.currentColor.toHEXA().toString());\n }\n colorPickerAddRecentHandler(event) {\n if (!this.hasRecentColors) {\n return;\n }\n const recentPalettes = this.getPresetPaletteGroup(this.recentColorsLabel);\n if (!this.paletteExists(event.detail.hex, recentPalettes.palettes)) {\n this.addToPreset(event.detail.hex, this.recentColorsLabel);\n }\n }\n /**\n * Reset the color picker to a requested color\n * @param color in hex format\n */\n async setColor(color) {\n this.setColorValue(color);\n await this.updateColorPickerControls();\n }\n /**\n * Returns a HSVaColor object of the currently selected color\n */\n async getColor() {\n return this.currentColor;\n }\n /**\n * Add a single color the list of preset palettes. If the label already exists it will be added to the start. If it doesn't exist, a new section will be created.\n * @param hex\n * @param label\n */\n async addToPreset(hex, label) {\n if (this.renderPresetPalette(hex)) {\n const palettes = JSON.parse(JSON.stringify(this.palettesToDisplay));\n const paletteIndex = palettes.findIndex(p => p.label === label);\n if (paletteIndex !== -1) {\n if (!this.paletteExists(hex, palettes[paletteIndex].palettes)) {\n palettes[paletteIndex].palettes.unshift(hex);\n }\n }\n else {\n palettes.push({\n label: label,\n palettes: [\n hex\n ]\n });\n }\n this.palettesToDisplay = palettes;\n }\n }\n async updateColorPickerControls() {\n await this.colorPalette.setColor(this.currentColor.toHEXA().toString());\n await this.hueSlider.setHue(this.currentColor.hue);\n this.setOpacitySlider();\n }\n ;\n getPresetPaletteGroup(label) {\n const palettes = JSON.parse(JSON.stringify(this.palettesToDisplay));\n const paletteIndex = palettes.findIndex(p => p.label === label);\n return palettes[paletteIndex];\n }\n setColorAndEmit(color) {\n this.setColorValue(color);\n this.colorChange.emit(this.currentColor);\n }\n setColorValue(color) {\n this.currentColor = new HSVaColor(...parseToHSVA(color).values);\n if (this.hasTransparentButton() && !this.showOpacity() && this.currentColor.alpha < 1) {\n this.currentColor.alpha = 0;\n }\n else if (!this.showOpacity()) {\n this.currentColor.alpha = 100;\n this.currentOpacity = numberAsPercent(this.currentColor.alpha);\n }\n else {\n this.currentOpacity = numberAsPercent(this.currentColor.alpha);\n }\n }\n setOpacitySlider() {\n if (this.showOpacity()) {\n this.opacitySlider.setColor(this.currentColor.toHEX().toString());\n this.opacitySlider.setOpacity(this.currentColor.alpha);\n }\n }\n supportsOpacity() {\n return this.showOpacity() || this.hasTransparentButton();\n }\n hasTransparentButton() {\n return this.transparentButton !== undefined && this.transparentButton === true && !this.showOpacity();\n }\n showOpacity() {\n return this.opacity !== undefined && this.opacity === true;\n }\n renderPresetPalette(palette) {\n return (isValidHex(palette) && !this.showOpacity() && !this.hasOpacity(palette)) ||\n (isValidHex(palette) && this.showOpacity());\n }\n paletteExists(hex, palettes) {\n return palettes.findIndex(pHex => pHex.toLowerCase() === hex.toLowerCase()) !== -1;\n }\n renderOpacityInput() {\n if (this.showOpacity()) {\n return (h(\"div\", { class: 'input-container', style: {\n flexBasis: '70px'\n } }, h(\"input\", { type: \"text\", value: `${this.currentOpacity}`, onInput: this.handleOpacityInput }), h(\"div\", { class: 'input-label' }, \"%\")));\n }\n }\n buildPresetPalettes() {\n let palettes = this.palettes;\n if (typeof this.palettes === 'string') {\n try {\n palettes = JSON.parse(this.palettes);\n }\n catch (_a) {\n palettes = [];\n }\n }\n if (palettes === undefined) {\n palettes = [];\n }\n if (!Array.isArray(palettes)) {\n palettes = [palettes];\n }\n this.palettesToDisplay = palettes.map(({ label, palettes, count }) => {\n return {\n label,\n count,\n palettes: palettes.reduce((result, palette, index) => {\n var _a, _b, _c;\n const color = typeof palette === 'string' && isValidHex(palette) ? palette : typeof palette.color === 'string' && isValidHex(palette.color) ? palette.color : null;\n if (color !== null) {\n result.push({\n index,\n color,\n title: (_a = palette.title) !== null && _a !== void 0 ? _a : null,\n description: (_b = palette.description) !== null && _b !== void 0 ? _b : null,\n data: (_c = palette.data) !== null && _c !== void 0 ? _c : null,\n });\n }\n return result;\n }, [])\n };\n });\n }\n setColorFromPalette(color) {\n this.setColorAndEmit(color);\n this.currentOpacity = numberAsPercent(this.currentColor.alpha);\n if (this.mode === 'preset') {\n return;\n }\n this.colorPalette.setColor(this.currentColor.toHEXA().toString());\n this.hueSlider.setHue(this.currentColor.hue);\n this.setOpacitySlider();\n }\n setHue(hue) {\n var _a, _b;\n (_a = this.hueSlider) === null || _a === void 0 ? void 0 : _a.setHue(hue);\n (_b = this.colorPalette) === null || _b === void 0 ? void 0 : _b.setHue(hue);\n }\n render() {\n return (h(Host, { class: `color-picker--${this.display}` }, h(\"div\", { class: 'container' }, this.mode === 'default' ?\n h(\"div\", null, h(\"color-picker-color-palette\", { display: this.display, color: this.currentColor.toHEX().toString(), onColorPaletteChange: this.colorPaletteChangeHandler, ref: el => this.colorPalette = el }), h(\"color-picker-hue-slider\", { display: this.display, hue: this.currentColor.hue, onHueChange: this.hueChangeHandler, ref: el => this.hueSlider = el }), this.showOpacity()\n ?\n h(\"color-picker-opacity-slider\", { display: this.display, color: this.currentColor.toHEX().toString(), opacity: this.currentOpacity, ref: el => this.opacitySlider = el })\n : '', h(\"div\", { style: {\n width: '100%',\n maxWidth: this.display === 'inline' ? '100%' : '200px',\n display: 'flex',\n gap: '12px',\n marginTop: '16px',\n } }, h(\"div\", { class: 'input-container' }, h(\"input\", { type: \"text\", maxlength: 7, value: this.currentColor.toHEX().toString(), onInput: this.handleHexInput, onFocus: this.handleHexFocus }), h(\"div\", { class: 'input-label' }, \"Hex\")), this.renderOpacityInput()))\n : '', h(\"div\", { ref: el => this.palettesContainer = el }, this.palettesToDisplay.map(({ label, palettes, count }, index) => {\n let presetCount = 0;\n if (label === this.recentColorsLabel) {\n this.hasRecentColors = true;\n }\n return (h(\"div\", null, h(\"h3\", { class: 'palettes-header', style: {\n marginTop: index === 0 && this.mode === 'preset' ? '0' : ''\n } }, label), h(\"div\", { class: 'palettes-container' }, palettes.map(palette => {\n if (this.renderPresetPalette(palette.color) && presetCount < this.getMaxPalettesToDisplay(count, palettes.length)) {\n presetCount++;\n return (h(\"div\", { class: {\n 'palette__container': true,\n 'palette__container--active': this.currentColor.toHEX().toString().toLowerCase() === palette.color.toLowerCase(),\n } }, h(\"span\", { class: 'checkerboard' }), h(\"span\", { class: 'palette', \"data-category\": label, \"data-index\": palette.index, \"data-tip\": ColorPicker.buildToolTip(palette), \"data-color\": palette.color, style: { backgroundColor: palette.color }, onClick: this.setPresetPalette })));\n }\n })), h(\"div\", null, (palettes.length <= 0 && label === 'Brand Colours') ?\n h(\"div\", { class: 'palettes-message' }, h(\"rs-content\", { style: {\n fontSize: '12px',\n } }, \"No brand colours have been added to your website yet\"), h(\"a\", { href: 'https://support.rocketspark.com/hc/en-us/articles/6551728489881-Want-to-add-your-Brand-Colours-to-your-site-', target: '_blank', class: 'help-guide-link' }, \"View help guide\"))\n : '')));\n })), this.hasTransparentButton() ?\n h(\"button\", { class: 'transparent-button', onClick: this.setTransparentButton }, \"Transparent\", h(\"span\", { class: 'transparent-button__swatch' }, \"\\u00A0\"))\n : '')));\n }\n static buildToolTip(palette) {\n let toolTip;\n if (palette.title !== null && palette.title !== '') {\n toolTip = `<h5 class=\"rs-tooltip__heading\">${palette.title}</h5>`;\n }\n if (palette.description !== null && palette.description !== '') {\n toolTip += `<p class=\"rs-tooltip__caption\">${palette.description}</p>`;\n }\n return toolTip;\n }\n createToolTips() {\n var _a, _b;\n (_b = (_a = this.palettesContainer) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.palette')) === null || _b === void 0 ? void 0 : _b.forEach((element) => {\n new ToolTip(element, {\n position: 'horizontal',\n horizontalOffset: 10\n });\n });\n }\n getMaxPalettesToDisplay(count, numberOfPalettes) {\n if (count === undefined) {\n return this.maxPresetDisplay;\n }\n if (count === 0) {\n return numberOfPalettes;\n }\n return count;\n }\n static get watchers() { return {\n \"palettes\": [\"watchPalettes\"]\n }; }\n};\nColorPicker.style = colorPickerCss;\n\nclass Moveable {\n constructor(options) {\n this.cache = {\n x: 0,\n y: 0,\n };\n this.clamp = (v) => Math.max(Math.min(v, 1), 0);\n this.options = Object.assign(Object.assign({}, Moveable.DEFAULT_OPTIONS), options);\n this.tapStartBinding = this.tapstart.bind(this);\n this.tapStopBinding = this.tapstop.bind(this);\n this.tapMoveBinding = this.tapmove.bind(this);\n on([this.options.wrapper, this.options.element], 'mousedown', this.tapStartBinding);\n on([this.options.wrapper, this.options.element], 'touchstart', this.tapStartBinding, {\n passive: false,\n });\n on(document, ['keydown', 'keyup'], this.keyboard.bind(this));\n }\n keyboard(e) {\n const { type, key } = e;\n // Check to see if the Movable is focused and then move it based on arrow key inputs\n // For improved accessibility\n if (document.activeElement === this.options.wrapper) {\n const { lock } = this.options;\n const up = key === 'ArrowUp';\n const right = key === 'ArrowRight';\n const down = key === 'ArrowDown';\n const left = key === 'ArrowLeft';\n if (type === 'keydown' && (up || right || down || left)) {\n let xm;\n let ym = 0;\n if (lock === 'v') {\n xm = up || right ? 1 : -1;\n }\n else if (lock === 'h') {\n xm = up || right ? -1 : 1;\n }\n else {\n ym = 0;\n if (up) {\n ym = -1;\n }\n else if (down) {\n ym = 1;\n }\n xm = 0;\n if (left) {\n xm = -1;\n }\n else if (right) {\n xm = 1;\n }\n }\n this.update(this.clamp(this.cache.x + 0.01 * xm), this.clamp(this.cache.y + 0.01 * ym));\n e.preventDefault();\n }\n else if (key.startsWith('Arrow')) {\n this.options.onstop();\n e.preventDefault();\n }\n }\n }\n tapstart(evt) {\n this.wrapperBoundingClient = this.options.wrapper.getBoundingClientRect();\n on(document, ['mouseup', 'touchend', 'touchcancel'], this.tapStopBinding);\n on(document, ['mousemove', 'touchmove'], this.tapMoveBinding);\n if (evt.cancelable) {\n evt.preventDefault();\n }\n const event = new CustomEvent('start');\n this.options.element.dispatchEvent(event);\n // Trigger\n this.tapmove(evt);\n }\n tapmove(evt) {\n let x;\n let y;\n if (evt) {\n const touch = evt && evt.touches && evt.touches[0];\n x = evt ? (touch || evt).clientX : 0;\n y = evt ? (touch || evt).clientY : 0;\n if (Moveable.outsideLeftBounds(x, this.wrapperBoundingClient)) {\n x = this.wrapperBoundingClient.left;\n }\n else if (Moveable.outsideRightBounds(x, this.wrapperBoundingClient)) {\n x = this.wrapperBoundingClient.left + this.wrapperBoundingClient.width;\n }\n if (Moveable.outsideTopBounds(y, this.wrapperBoundingClient)) {\n y = this.wrapperBoundingClient.top;\n }\n else if (Moveable.outsideBottomBounds(y, this.wrapperBoundingClient)) {\n y = this.wrapperBoundingClient.top + this.wrapperBoundingClient.height;\n }\n // Normalize (Set x/y to coords inside wrapper)\n x -= this.wrapperBoundingClient.left;\n y -= this.wrapperBoundingClient.top;\n }\n else {\n x = this.cache.x * this.wrapperBoundingClient.width;\n y = this.cache.y * this.wrapperBoundingClient.height;\n }\n if (this.options.lock !== 'h') {\n // this.options.element.style.left = `calc(${ (x / this.wrapperBoundingClient.width) * 100 }% - ${ this.options.element.offsetWidth / 2 }px)`;\n this.options.element.style.left = `${(x / this.wrapperBoundingClient.width) * 100}%`;\n }\n if (this.options.lock !== 'v') {\n // this.options.element.style.top = `calc(${ (y / this.wrapperBoundingClient.height) * 100 }% - ${ this.options.element.offsetHeight / 2 }px)`;\n this.options.element.style.top = `${(y / this.wrapperBoundingClient.height) * 100}%`;\n }\n this.cache = {\n x: x / this.wrapperBoundingClient.width,\n y: y / this.wrapperBoundingClient.height\n };\n const cx = this.clamp(this.cache.x);\n const cy = this.clamp(this.cache.y);\n const event = new CustomEvent('change', {\n detail: {\n x: cx,\n y: cy,\n }\n });\n this.options.element.dispatchEvent(event);\n }\n tapstop() {\n this.options.onstop();\n off(document, ['mouseup', 'touchend', 'touchcancel'], this.tapStopBinding);\n off(document, ['mousemove', 'touchmove'], this.tapMoveBinding);\n const event = new CustomEvent('stop');\n this.options.element.dispatchEvent(event);\n }\n trigger() {\n this.tapmove(null);\n }\n update(xPos = 0, yPos = 0) {\n const x = xPos;\n let y = this.options.lock === 'h' ? x : yPos;\n const { left, top, width, height } = this.options.wrapper.getBoundingClientRect();\n this.tapmove({\n clientX: left + width * x,\n clientY: top + height * y,\n });\n }\n destroy() {\n off(document, ['keydown', 'keyup'], this.keyboard.bind(this));\n off([this.options.wrapper, this.options.element], 'mousedown', this.tapstart.bind(this));\n off([this.options.wrapper, this.options.element], 'touchstart', this.tapstart.bind(this), {\n passive: false,\n });\n }\n}\nMoveable.DEFAULT_OPTIONS = {\n lock: null,\n onchange: () => 0,\n onstop: () => 0,\n};\nMoveable.outsideBottomBounds = (y, wrappingBoundingRect) => y > wrappingBoundingRect.top + wrappingBoundingRect.height;\nMoveable.outsideTopBounds = (y, wrappingBoundingRect) => y < wrappingBoundingRect.top;\nMoveable.outsideRightBounds = (x, wrappingBoundingRect) => x > wrappingBoundingRect.left + wrappingBoundingRect.width;\nMoveable.outsideLeftBounds = (x, wrappingBoundingRect) => x < wrappingBoundingRect.left;\n\nconst colorPickerColorPaletteCss = \":host{display:block}.selector__pickr{position:absolute;height:16px;width:16px;border-radius:16px;border:2px solid #fff;box-sizing:border-box;box-shadow:0 5px 15px rgb(70 74 83 / 0.25);cursor:pointer;transition:top 150ms linear, left 150ms linear;transform:translate(-50%, -50%)}.selector__pickr:active,.color-selector:active .selector__pickr{transition:none;cursor:none}.color-selector{height:155px;width:200px;border-radius:6px;position:relative}.color-selector--inline{width:100%}\";\n\nconst ColorPalette = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.colorPaletteChange = createEvent(this, \"colorPaletteChange\", 7);\n this.getPaletteBackgroundColor = () => {\n return `\n linear-gradient(to top, rgba(0, 0, 0, 1), transparent),\n linear-gradient(to left, hsla(${this.hue}, 100%, 50%, 1),\n rgba(255, 255, 255, 1))\n `;\n };\n this.handleChange = event => {\n const { x, y } = event.detail;\n // Calculate saturation based on the position\n const saturation = x * 100;\n // Calculate the value\n let value = 100 - y * 100;\n // Prevent falling under zero\n value < 0 ? (value = 0) : 0;\n this.currentColor.saturation = saturation;\n this.currentColor.value = value;\n this.slider.style.background = this.currentColor.toRGB().toString();\n this.colorPaletteChange.emit(this.currentColor);\n };\n this.sliderOffsetWidth = 8;\n this.sliderOffsetHeight = 8;\n this.sliderLeft = 50;\n this.sliderTop = 50;\n this.paletteBackgroundStyle = undefined;\n this.hue = 0;\n this.display = 'default';\n this.color = undefined;\n }\n componentWillLoad() {\n this.setInternalColor(this.color);\n return new Promise(resolve => {\n if (this.slider !== null && this.slider !== undefined) {\n const offsetWidth = this.slider.offsetWidth;\n const offsetHeight = this.slider.offsetHeight;\n if (!isNaN(offsetWidth)) {\n this.sliderOffsetWidth = offsetWidth / 2;\n }\n if (!isNaN(offsetHeight)) {\n this.sliderOffsetHeight = this.slider.offsetHeight / 2;\n }\n }\n resolve();\n });\n }\n componentDidLoad() {\n new Moveable({\n element: this.slider,\n wrapper: this.palette,\n });\n }\n /**\n * Set the hue ONLY on color palette\n * @param hue\n */\n async setHue(hue) {\n this.currentColor.hue = hue;\n this.hue = hue;\n }\n /**\n * Sets the color. Must pass through a hex value\n * @param {string} color\n */\n async setColor(color) {\n this.setInternalColor(color);\n }\n setInternalColor(color) {\n this.currentColor = new HSVaColor(...parseToHSVA(color).values);\n this.hue = this.currentColor.hue;\n this.sliderLeft = this.currentColor.saturation;\n this.sliderTop = 100 - this.currentColor.value;\n }\n render() {\n return (h(\"div\", { class: {\n 'color-selector': true,\n [`color-selector--${this.display}`]: true\n }, ref: el => this.palette = el, style: {\n background: this.getPaletteBackgroundColor()\n } }, h(\"div\", { class: 'selector__pickr', style: {\n 'left': `${this.sliderLeft}%`,\n 'top': `${this.sliderTop}%`,\n 'background': this.currentColor.toRGB().toString()\n }, onChange: this.handleChange, ref: el => this.slider = el })));\n }\n};\nColorPalette.style = colorPickerColorPaletteCss;\n\nconst colorPickerHueSliderCss = \":host{display:block}.selector__pickr{position:absolute;height:16px;width:16px;border-radius:16px;border:2px solid #fff;box-sizing:border-box;box-shadow:0 5px 15px rgb(70 74 83 / 0.25);cursor:pointer;transition:left 150ms linear;transform:translateX(-50%)}.selector__pickr:active,.color-selector:active .selector__pickr{transition:none;cursor:none}.component-outer{position:relative;height:8px;width:100%;max-width:200px;cursor:pointer}.component-outer--inline{max-width:100%}.component-selector{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:10px;overflow:hidden}.hue-selector{background:linear-gradient(90deg, #f00 0%, #f57a20 12.78%, #ffd708 25.28%, #61ff00 37.78%, #0ff 50.28%, #0f4ded 62.26%, #640fed 73.72%, #ed0fe4 85.7%, #ed0f87 97.68%)}\";\n\nconst HueSlider = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.hueChange = createEvent(this, \"hueChange\", 7);\n this.handleChange = (event) => {\n const hue = event.detail.x * 360;\n this.hueChange.emit(hue);\n this.slider.style.backgroundColor = `hsl(${hue}, 100%, 50%)`;\n };\n this._hue = undefined;\n this.display = 'default';\n this.hue = undefined;\n }\n /**\n * Sets the hue value\n * @param {number} hue\n */\n async setHue(hue) {\n this._hue = hue;\n }\n componentWillLoad() {\n this._hue = this.hue;\n }\n componentDidLoad() {\n new Moveable({\n lock: 'v',\n element: this.slider,\n wrapper: this.container,\n });\n }\n render() {\n return (h(\"div\", { class: {\n 'component-outer': true,\n [`component-outer--${this.display}`]: true\n }, style: {\n 'margin-top': '16px',\n }, ref: el => this.container = el }, h(\"div\", { class: 'hue-selector component-selector' }), h(\"div\", { class: 'selector__pickr', style: {\n 'margin-top': '-4px',\n 'left': `${this._hue / 360 * 100}%`,\n 'background': `hsl(${this._hue}, 100%, 50%)`\n }, onChange: this.handleChange, ref: el => this.slider = el })));\n }\n};\nHueSlider.style = colorPickerHueSliderCss;\n\nconst colorPickerOpacitySliderCss = \":host{display:block}.component-outer{position:relative;cursor:pointer;height:8px;width:100%;max-width:200px}.component-outer--inline{max-width:100%}.component-selector{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:10px;overflow:hidden}.checker-board{background-image:linear-gradient(45deg, #808080 25%, transparent 25%), linear-gradient(-45deg, #808080 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #808080 75%), linear-gradient(-45deg, transparent 75%, #808080 75%);background-size:6px 6px;background-position:0 0, 0 3px, 3px -3px, -3px 0}.selector__pickr{transform:translateX(-50%);position:absolute;height:16px;width:16px;border-radius:16px;border:2px solid #fff;box-sizing:border-box;box-shadow:0 5px 15px rgb(70 74 83 / 0.25);cursor:pointer;transition:left 150ms linear}.selector__pickr:active,.color-selector:active .selector__pickr{transition:none;cursor:none}\";\n\nconst OpacitySlider = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.opacityChange = createEvent(this, \"opacityChange\", 7);\n this.handleOpacityChange = (event) => {\n this.currentColor.alpha = this.currentOpacity = event.detail.x;\n this.slider.style.background = this.currentColor.toRGBA().toString();\n this.opacityChange.emit(this.currentOpacity);\n };\n this.currentRgb = undefined;\n this.currentOpacity = undefined;\n this.color = '#000000';\n this.opacity = undefined;\n this.display = 'default';\n }\n watchOpacity(opacity) {\n this.setInternalOpacity(opacity);\n }\n getOpacityAsPercent() {\n return this.currentOpacity <= 1 ? this.currentOpacity * 100 : this.currentOpacity;\n }\n /**\n * Sets the color for the slider\n * @param color\n */\n async setColor(color) {\n this.setInternalColor(color);\n }\n /**\n * Sets te opacity for the slider\n * @param opacity\n */\n async setOpacity(opacity) {\n this.setInternalOpacity(opacity);\n }\n componentDidLoad() {\n new Moveable({\n lock: 'v',\n element: this.slider,\n wrapper: this.container,\n });\n }\n componentWillLoad() {\n this.setInternalOpacity(this.opacity);\n this.setInternalColor(this.color);\n }\n setInternalOpacity(opacity) {\n const o = opacity !== null && opacity !== void 0 ? opacity : 100;\n this.currentOpacity = o > 1 ? o / 100 : o;\n }\n setInternalColor(color) {\n this.currentColor = new HSVaColor(...parseToHSVA(color).values);\n this.currentColor.alpha = this.currentOpacity;\n this.currentRgb = this.currentColor.toRGB();\n }\n render() {\n return (h(\"div\", { class: {\n 'component-outer': true,\n [`component-outer--${this.display}`]: true\n }, style: {\n 'margin-top': '16px',\n }, ref: el => this.container = el }, h(\"div\", { class: 'checker-board component-selector' }), h(\"div\", { class: 'component-selector', style: {\n 'background': `linear-gradient(90deg, rgba(${this.currentRgb[0]},${this.currentRgb[1]},${this.currentRgb[2]}, 0) 0%, rgba(${this.currentRgb[0]},${this.currentRgb[1]},${this.currentRgb[2]}, 1) 100%)`\n } }), h(\"div\", { class: 'selector__pickr', style: {\n 'margin-top': '-4px',\n 'left': `${this.getOpacityAsPercent()}%`,\n 'background': `rgba(${this.currentRgb[0]},${this.currentRgb[1]},${this.currentRgb[2]}, ${this.currentOpacity})`\n }, onChange: this.handleOpacityChange, ref: el => this.slider = el })));\n }\n static get watchers() { return {\n \"opacity\": [\"watchOpacity\"]\n }; }\n};\nOpacitySlider.style = colorPickerOpacitySliderCss;\n\nexport { ColorPicker as color_picker, ColorPalette as color_picker_color_palette, HueSlider as color_picker_hue_slider, OpacitySlider as color_picker_opacity_slider };\n\n//# sourceMappingURL=color-picker_4.entry.js.map","const flexGapSupported = () => {\n // create flex container with row-gap set\n const flex = document.createElement('div');\n flex.style.display = 'flex';\n flex.style.flexDirection = 'column';\n flex.style.rowGap = '1px';\n // create two, elements inside it\n flex.appendChild(document.createElement('div'));\n flex.appendChild(document.createElement('div'));\n // append to the DOM (needed to obtain scrollHeight)\n document.body.appendChild(flex);\n const isSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap\n flex.parentNode.removeChild(flex);\n return isSupported;\n};\nfunction eventListener(method, elements, events, fn, options = {}) {\n let localElements = elements;\n if (Array.isArray(elements)) {\n localElements = Array.from(elements);\n }\n else if (!Array.isArray(elements)) {\n localElements = [elements];\n }\n let localEvents = events;\n if (!Array.isArray(events)) {\n localEvents = [events];\n }\n localElements.forEach(el => {\n localEvents.forEach(ev => {\n el[method](ev, fn, Object.assign({ capture: false }, options));\n });\n });\n return [elements, events, fn, options];\n}\nconst on = eventListener.bind(null, 'addEventListener');\nconst off = eventListener.bind(null, 'removeEventListener');\nconst ScrollStop = (callback) => {\n // Make sure a valid callback was provided\n if (!callback || Object.prototype.toString.call(callback) !== '[object Function]') {\n return;\n }\n // Setup scrolling variable\n let isScrolling;\n // Listen for scroll events\n window.addEventListener('scroll', function () {\n // Clear our timeout throughout the scroll\n window.clearTimeout(isScrolling);\n // Set a timeout to run after scrolling ends\n isScrolling = setTimeout(function () {\n // Run the callback\n callback();\n }, 66);\n }, false);\n};\n\nexport { ScrollStop as S, off as a, flexGapSupported as f, on as o };\n\n//# sourceMappingURL=utils-6d01f45b.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","numberAsPercent","number","Storage","storage","WeakMap","set","element","has","console","warn","get","Map","_a","delete","size","ToolTip","options","arrowOffset","isScrolling","positionClasses","defaults","position","delayShow","delayHide","horizontalOffset","verticalOffset","classNames","tooltip","horizontal","vertical","arrowBottom","arrowLeft","arrowRight","arrowTop","active","dataset","tip","assign","querySelector","Element","Error","createStructure","addEventListener","isVisible","hideTimeout","tooltipContainer","clearTimeout","showTimeout","timeout","setTimeout","show","hide","window","S","once","classList","add","body","append","innerHTML","setPosition","top","left","style","width","height","elementPos","getBoundingClientRect","elementLeft","elementTop","elementWidth","elementHeight","tooltipWidth","offsetWidth","tooltipHeight","offsetHeight","scrollTop","scrollY","documentElement","tooltipPosition","innerWidth","innerHeight","charAt","slice","bodyLeft","getComputedStyle","leftPosition","right","bottom","setAttribute","instantHide","delay","remove","computedStyle","offsetParent","opacity","ColorPicker","hostRef","colorChange","presetColorChoice","hasRecentColors","hueChangeHandler","event","hasTransparentButton","currentOpacity","currentColor","detail","setHue","setColorAndEmit","colorPaletteChangeHandler","supportsOpacity","opacitySlider","setColor","handleOpacityInput","opacityValue","target","setPresetPalette","_b","_c","palette","palettesToDisplay","filter","palettes","label","category","index","setColorFromPalette","color","emit","data","handleHexInput","hexValue","startsWith","handleHexFocus","select","hasOpacity","setTransparentButton","maxPresetDisplay","recentColorsLabel","transparentButton","display","mode","watchPalettes","buildPresetPalettes","componentWillLoad","setColorValue","D","componentDidRender","createToolTips","opacityChangeHandler","colorPickerAddRecentHandler","recentPalettes","getPresetPaletteGroup","paletteExists","addToPreset","updateColorPickerControls","getColor","renderPresetPalette","JSON","parse","stringify","paletteIndex","findIndex","unshift","colorPalette","hueSlider","setOpacitySlider","H","showOpacity","setOpacity","pHex","renderOpacityInput","class","flexBasis","onInput","Array","isArray","count","reduce","result","title","description","render","onColorPaletteChange","ref","el","onHueChange","maxWidth","gap","marginTop","maxlength","onFocus","palettesContainer","presetCount","getMaxPalettesToDisplay","buildToolTip","backgroundColor","onClick","fontSize","href","toolTip","querySelectorAll","forEach","numberOfPalettes","watchers","Moveable","cache","x","clamp","DEFAULT_OPTIONS","tapStartBinding","tapstart","bind","tapStopBinding","tapstop","tapMoveBinding","tapmove","o","wrapper","passive","keyboard","e","activeElement","lock","up","down","xm","ym","update","preventDefault","onstop","evt","wrapperBoundingClient","cancelable","CustomEvent","dispatchEvent","touch","touches","clientX","clientY","outsideLeftBounds","outsideRightBounds","outsideTopBounds","outsideBottomBounds","cx","cy","trigger","xPos","yPos","destroy","onchange","wrappingBoundingRect","ColorPalette","colorPaletteChange","getPaletteBackgroundColor","handleChange","slider","background","sliderOffsetWidth","sliderOffsetHeight","sliderLeft","sliderTop","paletteBackgroundStyle","setInternalColor","Promise","resolve","componentDidLoad","onChange","HueSlider","hueChange","_hue","container","OpacitySlider","opacityChange","handleOpacityChange","currentRgb","watchOpacity","setInternalOpacity","getOpacityAsPercent","flexGapSupported","flex","flexDirection","rowGap","appendChild","isSupported","scrollHeight","parentNode","removeChild","eventListener","method","elements","events","fn","localElements","from","localEvents","ev","capture","on","off","ScrollStop","callback","prototype","call"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.21
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[278],{4902:function(t,s,r){r.d(s,{D:function(){return f},H:function(){return v},i:function(){return m},p:function(){return d}});const{min:i,max:o,floor:e,round:n}=Math;function a(t,s,r){const i=t/360*6,o=s/100,n=r/100,a=e(i),h=i-a,l=n*(1-o),c=n*(1-h*o),u=n*(1-(1-h)*o),p=a%6;return[255*[n,c,l,l,u,n][p],255*[u,n,n,c,l,l][p],255*[l,l,u,n,n,c][p]]}function h(t,s,r){return a(t,s,r).map((t=>n(t).toString(16).padStart(2,"0")))}function l(t,s,r){let i=s/100;const o=r/100,e=(2-i)*o/2;return 0!==e&&(i=1===e?0:e<.5?i*o/(2*e):i*o/(2-2*e)),[t,100*i,100*e]}function c(t,s,r){const e=t/255,n=s/255,a=r/255,h=i(e,n,a),l=o(e,n,a),c=l-h;let u,p;if(0===c)u=0,p=0;else{p=c/l;const t=((l-e)/6+c/2)/c,s=((l-n)/6+c/2)/c,r=((l-a)/6+c/2)/c;e===l?u=r-s:n===l?u=1/3+t-r:a===l&&(u=2/3+s-t),u<0?u+=1:u>1&&(u-=1)}return[360*u,100*p,100*l]}function u(t,s,r,o){const e=s/100,n=r/100,a=o/100;return[...c(255*(1-i(1,t/100*(1-a)+a)),255*(1-i(1,e*(1-a)+a)),255*(1-i(1,n*(1-a)+a)))]}function p(t,s,r){let i=s/100;const o=r/100;i*=o<.5?o:1-o;const e=2*i/(o+i)*100,n=100*(o+i);return[t,Number.isNaN(e)?0:e,n]}function d(t="#000"){"transparent"===t.toLowerCase()&&(t="#00000000");const s=null!==t.match(/^[a-zA-Z]+$/)?function(t){if(void 0===t)return"#000";if("black"===t.toLowerCase())return"#000";const s=document.createElement("canvas").getContext("2d");return null===s?null:(s.fillStyle=t,"#000"===s.fillStyle?null:s.fillStyle)}(t):t,{type:r,match:i}=function(t){const s=Object.entries({cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i}).find((([,s])=>s.exec(t)));if(void 0!==s){const r=s[1].exec(t);return{type:s[0],regex:s[1],match:r}}return{type:null}}(s),o=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));if(null===r||null===i)return{values:null,type:"hexa"};const e=t=>t>=0&&t<=1&&(t=>!!i[2]==("number"==typeof t))(t);if("cmyk"===r){const[,t,s,e,n]=o(i);if(t&&s&&e&&n&&t<=100&&s<=100&&e<=100&&n<=100)return{values:u(t,s,e,n),type:r}}if("rgba"===r){const[,,,t,s,n,a]=o(i);if(void 0!==t&&void 0!==s&&void 0!==n&&void 0!==a&&t<=255&&s<=255&&n<=255&&e(a))return{values:[...c(t,s,n),a],alpha:a,type:r}}if("hexa"===r){let[,t]=i;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const s=t.substring(0,6);let o=t.substring(6);o=o?parseInt(o,16)/255:void 0;const e=function(t){const s=t.match(/.{2}/g);if(null!==s){const[t,r,i]=s.map((t=>Number.parseInt(t,16)));return c(t,r,i)}return null}(s);if(void 0!==e)return{values:[...e,o],alpha:o,type:r}}if("hsla"===r){const[,,,t,s,n,a]=o(i);if(t&&s&&n&&a&&t<=360&&s<=100&&n<=100&&a>=0&&a<=1&&e(a))return{values:[...p(t,s,n),a],alpha:a,type:r}}if("hsva"===r){const[,,,t,s,n,a]=o(i);if(t&&s&&n&&a&&t<=360&&s<=100&&n<=100&&a>=0&&a<=1&&e(a))return{values:[t,s,n,a],alpha:a,type:r}}return{values:null,type:"hexa"}}const m=t=>void 0!==t&&t.match(/^#?[\dA-Fa-f]{6,8}$/i),f="#7CA1FF";class v{constructor(t=0,s=0,r=0,i=1){this.mapper=(t,s)=>(r=-1)=>s(r>=0?t.map((t=>Number(t.toFixed(r)))):t),this.h=t,this.s=s,this.v=r,this.a=i>1?i/100:i}toHSVA(){const t=[this.h,this.s,this.v,this.a];return t.toString=this.mapper(t,(t=>`hsva(${t[0]}, ${t[1]}%, ${t[2]}%, ${this.readableAlpha()})`)),t}toHSLA(){const t=[...l(this.h,this.s,this.v),this.a];return t.toString=this.mapper(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${this.readableAlpha()})`)),t}toHSL(){const t=l(this.h,this.s,this.v);return t.toString=this.mapper(t,(t=>`hsl(${t[0]}, ${t[1]}%, ${t[2]}%)`)),t}toRGBA(){const t=[...a(this.h,this.s,this.v),this.a];return t.toString=this.mapper(t,(t=>`rgba(${Math.round(t[0])}, ${Math.round(t[1])}, ${Math.round(t[2])}, ${this.readableAlpha()})`)),t}toRGB(){const t=a(this.h,this.s,this.v);return t.toString=this.mapper(t,(t=>`rgb(${Math.round(t[0])}, ${Math.round(t[1])}, ${Math.round(t[2])})`)),t}toRGBModern(){const t=[...a(this.h,this.s,this.v),this.a];return t.toString=this.mapper(t,(t=>`rgb(${Math.round(t[0])} ${Math.round(t[1])} ${Math.round(t[2])} / ${this.alphaAsPercent()})`)),t}toCMYK(){const t=function(t,s,r){const o=a(t,s,r),e=o[0]/255,n=o[1]/255,h=o[2]/255,l=i(1-e,1-n,1-h);return[100*(1===l?0:(1-e-l)/(1-l)),100*(1===l?0:(1-n-l)/(1-l)),100*(1===l?0:(1-h-l)/(1-l)),100*l]}(this.h,this.s,this.v);return t.toString=this.mapper(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t}toHEXA(){const t=h(this.h,this.s,this.v),s=this.a>=1?"":Number((255*this.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return s&&t.push(s),t.toString=()=>`#${t.join("").toUpperCase()}`,t}toHEX(){const t=h(this.h,this.s,this.v);return t.toString=()=>`#${t.join("").toLowerCase()}`,t}set alpha(t){this.a=t>1?t/100:t}get alpha(){return this.a}set hue(t){this.h=Math.round(t)}get hue(){return this.h}set saturation(t){this.s=Math.round(t)}get saturation(){return this.s}set value(t){this.v=Math.round(t)}get value(){return this.v}clone(){return new v(this.h,this.s,this.v,this.a)}readableAlpha(){return Math.round(100*(this.a+Number.EPSILON))/100}alphaAsPercent(){return Math.round(100*(this.a+Number.EPSILON))+"%"}}},278:function(t,s,r){r.r(s),r.d(s,{rs_color_picker:function(){return e}});var i=r(7915),o=r(4902);const e=class{constructor(t){(0,i.r)(this,t),this.rsColorChange=(0,i.c)(this,"rsColorChange",7),this.rsPresetColorChoice=(0,i.c)(this,"rsPresetColorChoice",7),this.onColorChange=t=>{t.stopImmediatePropagation(),this.internalColor=t.detail,this.rsColorChange.emit({value:t.detail})},this.onPresetColorChoice=t=>{t.stopImmediatePropagation(),this.rsPresetColorChoice.emit({value:t.detail})},this.positionStyle=()=>"top"===this.position?{bottom:"37px","margin-top":"0px","padding-bottom":"0px"}:{},this.color=o.D,this.palettes=void 0,this.opacity=!1,this.showPicker=!1,this.position="default",this.display="default",this.transparentButton=!1,this.mode="default",this.colorSwatches=null}async setColor(t){e.allowedColorString(t)&&await this.rsColorPicker.setColor(t)}async getColor(){return this.internalColor}async show(){this.showPicker=!0}async hide(){this.showPicker=!1}componentWillLoad(){var t;this.internalColor=new o.H(...(0,o.p)(null!==(t=this.color)&&void 0!==t?t:o.D).values)}render(){return(0,i.h)(i.H,{style:Object.assign({display:this.showPicker||"inline"===this.display?"block":"none"},this.positionStyle()),class:`rs-color-picker--${this.display}`},(0,i.h)("div",{class:"rs-color-picker__inner"},(0,i.h)("div",{class:"rs-color-picker__swatch"}),(0,i.h)("div",{class:"rs-color-picker__popup"},(0,i.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:t=>this.rsColorPicker=t}))))}static allowedColorString(t){return(0,o.i)(t)||"transparent"===t.toLowerCase()}};e.style=":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}"}}]);
|
|
13
|
+
//# sourceMappingURL=278.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"278.index.js","mappings":";;;;;;;;;;;wNAAA,MAAM,IAAEA,EAAG,IAAEC,EAAG,MAAEC,EAAK,MAAEC,GAAUC,KAenC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Af,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":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.21
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
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)}"}}]);
|
|
13
|
+
//# sourceMappingURL=386.index.js.map
|
|
@@ -0,0 +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":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.21
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
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)}'}}]);
|
|
13
|
+
//# sourceMappingURL=404.index.js.map
|
|
@@ -0,0 +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":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.21
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
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}"}}]);
|
|
13
|
+
//# sourceMappingURL=420.index.js.map
|
|
@@ -0,0 +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":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.21
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
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}"}}]);
|
|
13
|
+
//# sourceMappingURL=514.index.js.map
|
|
@@ -0,0 +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,K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,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":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.21
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
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}'}}]);
|
|
13
|
+
//# sourceMappingURL=524.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"524.index.js","mappings":";;;;;;;;;;;+MAMA,MAAMA,EAAW,CAACC,EAAMC,EAAO,KAC7B,IAAIC,EACJ,MAAO,IAAIC,KACTC,aAAaF,GACbA,EAAQG,WAAWL,EAAMC,KAASE,EAAK,CACxC,EAEGG,EAAY,CAACC,EAAIC,EAAYC,KACjC,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,IACjC,GAAIT,EAAcS,GAA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IAAAa,GAAE,EAAAE,EAAM,CAAE,gBAAiBpE,KAAK+B,SAAW,OAAS,KAAMoC,MAAO,CACrE,YAAanE,KAAKsD,WAClB,YAAatD,KAAKc,SAClB,UAA8B,OAAnBd,KAAKV,WAAyC,OAAnBU,KAAKT,UAC3C,WAAYS,KAAKR,QACjB,iBAAkBQ,KAAK8B,UAAY,EACnC,YAAa9B,KAAKqC,WACfI,GAAe,IAAAyB,GAAE,MAAO,CAAEC,MAAO,uBAAwB,IAAAD,GAAE,OAAQ,CAAEG,KAAM,WAAY,IAAAH,GAAE,WAAY,CAAE9B,YAAapC,KAAKoC,YAAa+B,MAAO,iBAAkB1D,QAAST,KAAKS,QAASI,QAASb,KAAKa,QAASG,OAAQhB,KAAKgB,OAAQC,QAASjB,KAAKiB,QAAS4C,UAAW7D,KAAKV,UAAWqB,MAAOA,EAAOwB,KAAMnC,KAAKmC,QAAS,IAAA+B,GAAE,OAAQ,CAAEG,KAAM,SACjV,CACA,MAAI3B,GAAO,OAAO,IAAA4B,GAAWtE,KAAO,CACpC,mBAAWuE,GAAa,MAAO,CAC7B,MAAS,CAAC,gBACT,GAEL3E,EAASH,MArNW,slE","sources":["webpack://DomainChecker/./node_modules/@rocketspark/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":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.21
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[540],{6540:function(t,e,o){o.r(e),o.d(e,{rs_button:function(){return r},rs_header:function(){return i},rs_subtitle:function(){return l}});var n=o(7915);const r=class{constructor(t){(0,n.r)(this,t),this.color="primary",this.disabled=!1,this.href=void 0,this.rel=void 0,this.target=void 0,this.size="default",this.loading=!1,this.expand=void 0,this.flexGrow=void 0}getColorClass(){return`color--${this.color}`}getExpandClass(){return"block"===this.expand?"expand-block":"full"===this.expand?"expand-full":""}setButtonWidth(){this.loading?this.buttonElement.style.width=`${this.buttonElement.offsetWidth}px`:this.buttonElement.style.width=null}render(){const{href:t,rel:e,target:o}=this,r=void 0===this.href?"button":"a",i="a"===r?{href:t,rel:e,target:o}:{};let l=this.loading?(0,n.h)("div",{class:"button-element__loading-bar"}):(0,n.h)("slot",null);return(0,n.h)(n.H,{class:this.getExpandClass(),style:{"flex-grow":this.flexGrow}},(0,n.h)(r,Object.assign({ref:t=>this.buttonElement=t},i,{disabled:this.disabled,class:["button-element",this.loading?"button-element--loading":"",this.getColorClass(),"small"===this.size?"small":"",this.disabled?"disabled":""].join(" ")}),(0,n.h)("span",null,l)))}static get watchers(){return{loading:["setButtonWidth"]}}};r.style=':host{display:inline-block}.button-element span{top:-1px;display:block;position:relative;line-height:1;font-size:16px;font-family:soleil, sans-serif;font-style:normal;font-weight:600;letter-spacing:0.2px;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a.button-element span{top:initial}.button-element{text-decoration:none;padding:12px 25px;min-width:90px;height:42px;cursor:pointer;user-select:none;border:0;border-radius:4px;outline:none;display:inline-block;box-sizing:border-box;background-size:cover;transition:background 0.25s ease-out, box-shadow 0.25s ease-out;color:var(--rs-color-white);width:100%;white-space:nowrap}.button-element.small{padding-top:10px;padding-bottom:10px;height:36px}.button-element.small span{font-size:14px}.button-element:active{transition-delay:200ms}:host(.expand-block),:host(.expand-full){display:block}:host(.expand-block) .button-element{display:block;width:100%}:host(.expand-full) .button-element{display:block;width:100%;border-radius:0}.button-element.color--primary{background:var(--rs-color-primary-700)}.button-element.color--primary:hover{background:var(--rs-color-primary)}.button-element.color--primary:active{background:var(--rs-color-primary-300)}.button-element.color--negative{background:var(--rs-color-negative)}.button-element.color--secondary{background:var(--rs-color-secondary)}.button-element.color--secondary:hover{background:var(--rs-color-secondary-700)}.button-element.color--secondary:active{background:var(--rs-color-secondary-300)}.button-element.disabled span{color:var(--rs-color-white);pointer-events:none}.button-element.color--grey-light{color:var(--rs-color-grey);background:transparent;box-shadow:inset 0 0 0 1px var(--rs-color-grey-light)}:host(.expand-block) .button-element.color--grey-light span,:host(.expand-full) .button-element.color--grey-light span{font-weight:normal;color:var(--rs-color-secondary)}.button-element:not(.disabled).color--grey-light:hover{box-shadow:inset 0 0 0 1px var(--rs-color-grey)}.button-element.color--positive{background:var(--rs-color-positive)}.button-element.color--positive:hover{background:var(--rs-color-positive-700)}.button-element.color--positive:active{background:var(--rs-color-positive-300)}.button-element.color--text{color:var(--rs-color-grey);background:transparent}.button-element.color--text:hover{background:var(--rs-color-light)}.button-element.color--text:active{background:var(--rs-color-grey-light)}.button-element.disabled{box-shadow:none;background:var(--rs-color-grey-light);cursor:not-allowed}.button-element.disabled:hover{background:var(--rs-color-grey-light)}:host .button-element--loading{padding:12px 16px;cursor:wait;display:flex;align-items:center}:host .button-element--loading>*{width:100%;top:0}:host .button-element--loading .button-element__loading-bar{position:relative;overflow:hidden;height:5px;margin:7px 0;border-radius:3px;background-color:rgb(255 255 255 / 0.5);width:100%}:host .button-element--loading .button-element__loading-bar::before{position:absolute;top:0;bottom:0;left:0;content:"";animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;border-radius:3px;background-color:rgb(255 255 255 / 0.5);will-change:left, right}:host .button-element--loading .button-element__loading-bar::after{position:absolute;top:0;bottom:0;left:0;content:"";animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation-delay:1.15s;border-radius:3px;background-color:rgb(255 255 255 / 0.5);will-change:left, right}@keyframes indeterminate{0%{right:100%;left:-35%}60%{right:-90%;left:100%}100%{right:-90%;left:100%}}@keyframes indeterminate-short{0%{right:100%;left:-200%}60%{right:-8%;left:107%}100%{right:-8%;left:107%}}';const i=class{constructor(t){(0,n.r)(this,t),this.heading="2",this.color="heading"}render(){const t=`h${this.heading}`;return(0,n.h)(n.H,{style:{color:void 0!==this.color?`var(--rs-color-${this.color})`:""}},(0,n.h)(t,null,(0,n.h)("slot",null)))}};i.style=":host{display:block;font-family:soleil, sans-serif;font-style:normal;color:var(--rs-color-heading);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}h1,h2,h3,h4,h5{margin:0;padding:0;line-height:1.2em}h1{font-weight:600;font-size:50px}h2{font-weight:600;font-size:38px}h3{font-weight:600;font-size:26px}h4{font-weight:700;font-size:22px}h5{font-weight:600;font-size:16px}";const l=class{constructor(t){(0,n.r)(this,t),this.subtitle="1",this.color="grey"}render(){return(0,n.h)(n.H,{class:`subtitle__${this.subtitle}`,style:{color:void 0!==this.color?`var(--rs-color-${this.color})`:""}},(0,n.h)("slot",null))}};l.style=":host{display:block;font-family:soleil, sans-serif;font-style:normal;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host(.subtitle__1){font-weight:400;font-size:18px;line-height:1.4em;letter-spacing:0.15px}:host(.subtitle__2){font-weight:300;font-size:12px;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}:host(.subtitle__3){font-weight:500;font-size:10px;line-height:1.2em;letter-spac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GAClCP,KAAKE,SAAW,WAAa,IAC7B2B,KAAK,QAAS,IAAAP,GAAE,OAAQ,KAAMD,IACpC,CACA,mBAAWS,GAAa,MAAO,CAC7B,QAAW,CAAC,kBACX,GAELlC,EAAOmB,MA3DW,+qHA6DlB,MAEMgB,EAAS,MACb,WAAAlC,CAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKgC,QAAU,IACfhC,KAAKC,MAAQ,SACf,CACA,MAAAiB,GACE,MAAMC,EAAU,IAAInB,KAAKgC,UACzB,OAAQ,IAAAV,GAAE,EAAAE,EAAM,CAAET,MAAO,CACrBd,WAAsBG,IAAfJ,KAAKC,MAAsB,kBAAkBD,KAAKC,SAAW,MACjE,IAAAqB,GAAEH,EAAS,MAAM,IAAAG,GAAE,OAAQ,OACpC,GAEFS,EAAOhB,MAfW,yYAiBlB,MAEMkB,EAAW,MACf,WAAApC,CAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKkC,SAAW,IAChBlC,KAAKC,MAAQ,MACf,CACA,MAAAiB,GACE,OAAQ,IAAAI,GAAE,EAAAE,EAAM,CAAED,MAAO,aAAavB,KAAKkC,WAAYnB,MAAO,CAC1Dd,WAAsBG,IAAfJ,KAAKC,MAAsB,kBAAkBD,KAAKC,SAAW,MACjE,IAAAqB,GAAE,OAAQ,MACnB,GAEFW,EAASlB,MAdW,6c","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-button_3.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-3d0f28ab.js';\n\nconst buttonCss = \":host{display:inline-block}.button-element span{top:-1px;display:block;position:relative;line-height:1;font-size:16px;font-family:soleil, sans-serif;font-style:normal;font-weight:600;letter-spacing:0.2px;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a.button-element span{top:initial}.button-element{text-decoration:none;padding:12px 25px;min-width:90px;height:42px;cursor:pointer;user-select:none;border:0;border-radius:4px;outline:none;display:inline-block;box-sizing:border-box;background-size:cover;transition:background 0.25s ease-out, box-shadow 0.25s ease-out;color:var(--rs-color-white);width:100%;white-space:nowrap}.button-element.small{padding-top:10px;padding-bottom:10px;height:36px}.button-element.small span{font-size:14px}.button-element:active{transition-delay:200ms}:host(.expand-block),:host(.expand-full){display:block}:host(.expand-block) .button-element{display:block;width:100%}:host(.expand-full) .button-element{display:block;width:100%;border-radius:0}.button-element.color--primary{background:var(--rs-color-primary-700)}.button-element.color--primary:hover{background:var(--rs-color-primary)}.button-element.color--primary:active{background:var(--rs-color-primary-300)}.button-element.color--negative{background:var(--rs-color-negative)}.button-element.color--secondary{background:var(--rs-color-secondary)}.button-element.color--secondary:hover{background:var(--rs-color-secondary-700)}.button-element.color--secondary:active{background:var(--rs-color-secondary-300)}.button-element.disabled span{color:var(--rs-color-white);pointer-events:none}.button-element.color--grey-light{color:var(--rs-color-grey);background:transparent;box-shadow:inset 0 0 0 1px var(--rs-color-grey-light)}:host(.expand-block) .button-element.color--grey-light span,:host(.expand-full) .button-element.color--grey-light span{font-weight:normal;color:var(--rs-color-secondary)}.button-element:not(.disabled).color--grey-light:hover{box-shadow:inset 0 0 0 1px var(--rs-color-grey)}.button-element.color--positive{background:var(--rs-color-positive)}.button-element.color--positive:hover{background:var(--rs-color-positive-700)}.button-element.color--positive:active{background:var(--rs-color-positive-300)}.button-element.color--text{color:var(--rs-color-grey);background:transparent}.button-element.color--text:hover{background:var(--rs-color-light)}.button-element.color--text:active{background:var(--rs-color-grey-light)}.button-element.disabled{box-shadow:none;background:var(--rs-color-grey-light);cursor:not-allowed}.button-element.disabled:hover{background:var(--rs-color-grey-light)}:host .button-element--loading{padding:12px 16px;cursor:wait;display:flex;align-items:center}:host .button-element--loading>*{width:100%;top:0}:host .button-element--loading .button-element__loading-bar{position:relative;overflow:hidden;height:5px;margin:7px 0;border-radius:3px;background-color:rgb(255 255 255 / 0.5);width:100%}:host .button-element--loading .button-element__loading-bar::before{position:absolute;top:0;bottom:0;left:0;content:\\\"\\\";animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;border-radius:3px;background-color:rgb(255 255 255 / 0.5);will-change:left, right}:host .button-element--loading .button-element__loading-bar::after{position:absolute;top:0;bottom:0;left:0;content:\\\"\\\";animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation-delay:1.15s;border-radius:3px;background-color:rgb(255 255 255 / 0.5);will-change:left, right}@keyframes indeterminate{0%{right:100%;left:-35%}60%{right:-90%;left:100%}100%{right:-90%;left:100%}}@keyframes indeterminate-short{0%{right:100%;left:-200%}60%{right:-8%;left:107%}100%{right:-8%;left:107%}}\";\n\nconst Button = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.color = 'primary';\n this.disabled = false;\n this.href = undefined;\n this.rel = undefined;\n this.target = undefined;\n this.size = 'default';\n this.loading = false;\n this.expand = undefined;\n this.flexGrow = undefined;\n }\n getColorClass() {\n return `color--${this.color}`;\n }\n getExpandClass() {\n if (this.expand === 'block') {\n return 'expand-block';\n }\n else if (this.expand === 'full') {\n return 'expand-full';\n }\n return '';\n }\n setButtonWidth() {\n if (this.loading) {\n this.buttonElement.style.width = `${this.buttonElement.offsetWidth}px`;\n }\n else {\n this.buttonElement.style.width = null;\n }\n }\n render() {\n const { href, rel, target } = this;\n const TagType = this.href === undefined ? 'button' : 'a';\n const attrs = (TagType === 'a')\n ? {\n href,\n rel,\n target\n } : {};\n let buttonInnerHTML = !this.loading ? (h(\"slot\", null)) : (h(\"div\", { class: \"button-element__loading-bar\" }));\n return (h(Host, { class: this.getExpandClass(), style: {\n 'flex-grow': this.flexGrow\n } }, h(TagType, Object.assign({ ref: el => this.buttonElement = el }, attrs, { disabled: this.disabled, class: [\n 'button-element',\n this.loading ? 'button-element--loading' : '',\n this.getColorClass(),\n this.size === 'small' ? 'small' : '',\n this.disabled ? 'disabled' : ''\n ].join(' ') }), h(\"span\", null, buttonInnerHTML))));\n }\n static get watchers() { return {\n \"loading\": [\"setButtonWidth\"]\n }; }\n};\nButton.style = buttonCss;\n\nconst headerCss = \":host{display:block;font-family:soleil, sans-serif;font-style:normal;color:var(--rs-color-heading);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}h1,h2,h3,h4,h5{margin:0;padding:0;line-height:1.2em}h1{font-weight:600;font-size:50px}h2{font-weight:600;font-size:38px}h3{font-weight:600;font-size:26px}h4{font-weight:700;font-size:22px}h5{font-weight:600;font-size:16px}\";\n\nconst Header = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.heading = '2';\n this.color = 'heading';\n }\n render() {\n const TagType = `h${this.heading}`;\n return (h(Host, { style: {\n color: this.color !== undefined ? `var(--rs-color-${this.color})` : ''\n } }, h(TagType, null, h(\"slot\", null))));\n }\n};\nHeader.style = headerCss;\n\nconst subtitleCss = \":host{display:block;font-family:soleil, sans-serif;font-style:normal;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host(.subtitle__1){font-weight:400;font-size:18px;line-height:1.4em;letter-spacing:0.15px}:host(.subtitle__2){font-weight:300;font-size:12px;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}:host(.subtitle__3){font-weight:500;font-size:10px;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}\";\n\nconst Subtitle = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.subtitle = '1';\n this.color = 'grey';\n }\n render() {\n return (h(Host, { class: `subtitle__${this.subtitle}`, style: {\n color: this.color !== undefined ? `var(--rs-color-${this.color})` : ''\n } }, h(\"slot\", null)));\n }\n};\nSubtitle.style = subtitleCss;\n\nexport { Button as rs_button, Header as rs_header, Subtitle as rs_subtitle };\n\n//# sourceMappingURL=rs-button_3.entry.js.map"],"names":["Button","constructor","hostRef","r","this","color","disabled","href","undefined","rel","target","size","loading","expand","flexGrow","getColorClass","getExpandClass","setButtonWidth","buttonElement","style","width","offsetWidth","render","TagType","attrs","buttonInnerHTML","h","class","H","Object","assign","ref","el","join","watchers","Header","heading","Subtitle","subtitle"],"sourceRoot":""}
|