@rocketspark/domain-checker 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/.github-test/FUNDING.yml +1 -0
  2. package/.github-test/dependabot.yml +10 -0
  3. package/.github-test/workflows/main.yml +28 -0
  4. package/.github-test/workflows/publish.yml +49 -0
  5. package/.github-test/workflows/pull_request.yml +24 -0
  6. package/.github-test/workflows/pull_request_dependabot.yml +48 -0
  7. package/.idea/domain-checker.iml +8 -0
  8. package/.idea/git_toolbox_prj.xml +15 -0
  9. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  10. package/.idea/modules.xml +8 -0
  11. package/.idea/vcs.xml +6 -0
  12. package/CODE_OF_CONDUCT.md +76 -0
  13. package/CONTRIBUTING.md +15 -0
  14. package/LICENSE +21 -0
  15. package/README.md +67 -0
  16. package/build/130.index.js +13 -0
  17. package/build/130.index.js.map +1 -0
  18. package/build/145.index.js +13 -0
  19. package/build/145.index.js.map +1 -0
  20. package/build/171.index.js +13 -0
  21. package/build/171.index.js.map +1 -0
  22. package/build/190.index.js +13 -0
  23. package/build/190.index.js.map +1 -0
  24. package/build/228.index.js +13 -0
  25. package/build/228.index.js.map +1 -0
  26. package/build/23.index.js +13 -0
  27. package/build/23.index.js.map +1 -0
  28. package/build/253.index.js +13 -0
  29. package/build/253.index.js.map +1 -0
  30. package/build/269.index.js +13 -0
  31. package/build/269.index.js.map +1 -0
  32. package/build/307.index.js +13 -0
  33. package/build/307.index.js.map +1 -0
  34. package/build/314.index.js +13 -0
  35. package/build/314.index.js.map +1 -0
  36. package/build/330.index.js +13 -0
  37. package/build/330.index.js.map +1 -0
  38. package/build/346.index.js +13 -0
  39. package/build/346.index.js.map +1 -0
  40. package/build/385.index.js +13 -0
  41. package/build/385.index.js.map +1 -0
  42. package/build/3cce2bffb56fb72f4f99.svg +521 -0
  43. package/build/431.index.js +13 -0
  44. package/build/431.index.js.map +1 -0
  45. package/build/447.index.js +13 -0
  46. package/build/447.index.js.map +1 -0
  47. package/build/482.index.js +13 -0
  48. package/build/482.index.js.map +1 -0
  49. package/build/525.index.js +13 -0
  50. package/build/525.index.js.map +1 -0
  51. package/build/536.index.js +13 -0
  52. package/build/536.index.js.map +1 -0
  53. package/build/548.index.js +13 -0
  54. package/build/548.index.js.map +1 -0
  55. package/build/565.index.js +13 -0
  56. package/build/565.index.js.map +1 -0
  57. package/build/577.index.js +13 -0
  58. package/build/577.index.js.map +1 -0
  59. package/build/5798190b27b26600fb18.svg +266 -0
  60. package/build/655.index.js +13 -0
  61. package/build/655.index.js.map +1 -0
  62. package/build/66.index.js +13 -0
  63. package/build/66.index.js.map +1 -0
  64. package/build/669.index.js +13 -0
  65. package/build/669.index.js.map +1 -0
  66. package/build/677.index.js +13 -0
  67. package/build/677.index.js.map +1 -0
  68. package/build/678.index.js +13 -0
  69. package/build/678.index.js.map +1 -0
  70. package/build/69.index.js +13 -0
  71. package/build/69.index.js.map +1 -0
  72. package/build/690.index.js +13 -0
  73. package/build/690.index.js.map +1 -0
  74. package/build/694.index.js +13 -0
  75. package/build/694.index.js.map +1 -0
  76. package/build/698.index.js +13 -0
  77. package/build/698.index.js.map +1 -0
  78. package/build/716.index.js +13 -0
  79. package/build/716.index.js.map +1 -0
  80. package/build/717.index.js +13 -0
  81. package/build/717.index.js.map +1 -0
  82. package/build/724.index.js +13 -0
  83. package/build/724.index.js.map +1 -0
  84. package/build/738.index.js +13 -0
  85. package/build/738.index.js.map +1 -0
  86. package/build/799.index.js +13 -0
  87. package/build/799.index.js.map +1 -0
  88. package/build/82.index.js +13 -0
  89. package/build/82.index.js.map +1 -0
  90. package/build/858.index.js +13 -0
  91. package/build/858.index.js.map +1 -0
  92. package/build/882.index.js +13 -0
  93. package/build/882.index.js.map +1 -0
  94. package/build/895.index.js +13 -0
  95. package/build/895.index.js.map +1 -0
  96. package/build/903.index.js +13 -0
  97. package/build/903.index.js.map +1 -0
  98. package/build/911.index.js +13 -0
  99. package/build/911.index.js.map +1 -0
  100. package/build/912.index.js +13 -0
  101. package/build/912.index.js.map +1 -0
  102. package/build/927.index.js +13 -0
  103. package/build/927.index.js.map +1 -0
  104. package/build/953.index.js +13 -0
  105. package/build/953.index.js.map +1 -0
  106. package/build/955.index.js +13 -0
  107. package/build/955.index.js.map +1 -0
  108. package/build/994.index.js +13 -0
  109. package/build/994.index.js.map +1 -0
  110. package/build/css/index.css +11 -0
  111. package/build/css/index.css.map +1 -0
  112. package/build/index.js +13 -0
  113. package/build/index.js.map +1 -0
  114. package/build/types/Components/DomainSearch.d.ts +20 -0
  115. package/build/types/Components/PopupContainer.d.ts +30 -0
  116. package/build/types/Components/SearchHeading.d.ts +8 -0
  117. package/build/types/Components/SearchResultCaption.d.ts +12 -0
  118. package/build/types/Components/SearchStatus.d.ts +13 -0
  119. package/build/types/Helpers/Fetch.d.ts +6 -0
  120. package/build/types/Helpers/defaults.d.ts +2 -0
  121. package/build/types/Helpers/templates.d.ts +13 -0
  122. package/build/types/Helpers/wrap.d.ts +1 -0
  123. package/build/types/index.d.ts +21 -0
  124. package/build/types/interfaces/class-names.d.ts +19 -0
  125. package/build/types/interfaces/options.d.ts +9 -0
  126. package/package.json +91 -0
  127. package/tsconfig.json +17 -0
  128. package/webpack.config.demo.js +64 -0
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
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([[655],{655:function(e,t,s){s.r(t),s.d(t,{rs_multi_select:function(){return i}});var r=s(492);const i=class{constructor(e){(0,r.r)(this,e),this.rsSelect=(0,r.c)(this,"rsSelect",7),this.rsFeature=(0,r.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=i.toArray(e))||void 0===s?void 0:s.includes(t.value)}));const s=""===e?[]:i.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=i.toArray(e))||void 0===s?void 0:s.includes(t.value)}));const s=""===e?[]:i.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=i.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?[]:i.toArray(this.selectedItems)),"string"==typeof this.featuredItems&&(this.featuredItems=""===this.featuredItems?[]:i.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,r.h)(r.H,{style:{"grid-template-columns":`repeat(${this.columns}, 1fr)`,"grid-gap":this.gap,width:this.width}},(0,r.h)("slot",null))}get el(){return(0,r.g)(this)}static get watchers(){return{selectedItems:["selectedItemsChange"],featuredItems:["featuredItemsChange"]}}};i.style=":host{display:grid;grid-template-columns:repeat(3, 1fr);grid-gap:1rem;font-style:normal}"}}]);
13
+ //# sourceMappingURL=655.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"655.index.js","mappings":";;;;;;;;;;;oLAEA,MAEMA,EAAgB,MACpBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,UAAW,IAAAC,GAAYF,KAAM,WAAY,GAC9CA,KAAKG,WAAY,IAAA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EjD,iBAAvBP,KAAKQ,gBACdR,KAAKQ,cAAuC,KAAvBR,KAAKQ,cAAuB,GAAKZ,EAAcoB,QAAQhB,KAAKQ,eACnD,QAA7BG,EAAKX,KAAKQ,qBAAkC,IAAPG,GAAyBA,EAAGE,SAAQsB,IACxE,IAAIxB,GACgC,QAA7BA,EAAKX,KAAKO,qBAAkC,IAAPI,OAAgB,EAASA,EAAGM,SAASkB,KAC/EnC,KAAKO,cAAc6B,KAAKD,OAKhCE,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,wBAAyB,UAAUxC,KAAKK,gBACxC,WAAYL,KAAKI,IACjB,MAASJ,KAAKM,SACX,IAAAgC,GAAE,OAAQ,OAEnB,SAAW,OAAO,IAAAG,GAAWzC,MAC7B,sBAAwB,MAAO,CAC7B,cAAiB,CAAC,uBAClB,cAAiB,CAAC,0BAGtBJ,EAAc4C,MA3FW","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-d4fae449.js';\n\nconst rsMultiSelectCss = \":host{display:grid;grid-template-columns:repeat(3, 1fr);grid-gap:1rem;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 /**\n * Gap between the items\n */\n this.gap = '16px';\n /**\n * Number of columns\n */\n this.columns = 3;\n /**\n * Width of the multi-select container\n */\n this.width = '100%';\n /**\n * Items that are selected\n */\n this.selectedItems = '';\n /**\n * Items that are featured\n */\n this.featuredItems = '';\n }\n selectedItemsChange(newValue) {\n var _a;\n (_a = this.multiSelectItems) === null || _a === void 0 ? void 0 : _a.forEach(multiSelectItem => {\n var _a;\n multiSelectItem.selected = (_a = RsMultiSelect.toArray(newValue)) === null || _a === void 0 ? void 0 : _a.includes(multiSelectItem.value);\n });\n const selectedItems = newValue === '' ? [] : RsMultiSelect.noDuplicates(this.selectedItems);\n this.rsSelect.emit({ value: selectedItems });\n }\n featuredItemsChange(newValue) {\n var _a;\n (_a = this.multiSelectItems) === null || _a === void 0 ? void 0 : _a.forEach(multiSelectItem => {\n var _a;\n multiSelectItem.featured = (_a = RsMultiSelect.toArray(newValue)) === null || _a === void 0 ? void 0 : _a.includes(multiSelectItem.value);\n });\n const featuredItems = newValue === '' ? [] : RsMultiSelect.noDuplicates(this.featuredItems);\n this.rsFeature.emit({ value: featuredItems });\n }\n static toArray(items) {\n if (typeof items === 'string') {\n return items === null || items === void 0 ? void 0 : items.split(',').map(item => {\n return item.trim();\n });\n }\n return items;\n }\n static noDuplicates(items) {\n if (typeof items === 'string') {\n items = RsMultiSelect.toArray(items);\n }\n return items === null || items === void 0 ? void 0 : items.filter((item, index, inputArray) => {\n return inputArray.indexOf(item) == index;\n });\n }\n componentWillLoad() {\n var _a;\n this.multiSelectItems = this.el.querySelectorAll('rs-multi-select-item');\n if (typeof this.selectedItems === 'string') {\n this.selectedItems = this.selectedItems === '' ? [] : RsMultiSelect.toArray(this.selectedItems);\n }\n if (typeof this.featuredItems === 'string') {\n this.featuredItems = this.featuredItems === '' ? [] : RsMultiSelect.toArray(this.featuredItems);\n (_a = this.featuredItems) === null || _a === void 0 ? void 0 : _a.forEach(featuredItem => {\n var _a;\n if (!((_a = this.selectedItems) === null || _a === void 0 ? void 0 : _a.includes(featuredItem))) {\n this.selectedItems.push(featuredItem);\n }\n });\n }\n }\n render() {\n return (h(Host, { 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"],"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"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
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([[66],{6066:function(r,e,t){t.r(e),t.d(e,{rs_progress_bar:function(){return i}});var s=t(492);const i=class{constructor(r){(0,s.r)(this,r),this.type="determinate",this.value=0,this.color="primary"}render(){return(0,s.h)(s.H,{class:{"progress-determinate":"determinate"===this.type,"progress-indeterminate":"indeterminate"===this.type}},(0,s.h)("div",{class:"progress-bar__loader",style:{width:`${this.value}%`,backgroundColor:`var(--rs-color-${this.color})`}}))}};i.style=":host{display:flex;align-items:center;justify-content:start;width:100%;height:0.25rem;border-radius:0.25rem;background-color:var(--rs-color-grey-light)}:host .progress-bar__loader{height:0.25rem;border-radius:0.25rem;background-color:var(--rs-color-primary)}:host(.progress-determinate) .progress-bar__loader{transition:width .2s linear}:host(.progress-indeterminate) .progress-bar__loader{width:100%;animation:load 5s linear}@keyframes load{0%{width:0}10%{width:5%}20%{width:15%}30%{width:25%}40%{width:30%}50%{width:45%}60%{width:50%}70%{width:75%}80%{width:85%}90%{width:95%}100%{width:100%}}"}}]);
13
+ //# sourceMappingURL=66.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"66.index.js","mappings":";;;;;;;;;;;oLAEA,MAEMA,EAAgB,MACpBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAUvBE,KAAKC,KAAO,cAMZD,KAAKE,MAAQ,EAIbF,KAAKG,MAAQ,UAEfC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,uBAAsC,gBAAdP,KAAKC,KAC7B,yBAAwC,kBAAdD,KAAKC,QAC5B,IAAAI,GAAE,MAAO,CAAEE,MAAO,uBAAwBC,MAAO,CACpDC,MAAO,GAAGT,KAAKE,SACfQ,gBAAiB,kBAAkBV,KAAKG,eAIhDP,EAAcY,MApCW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-progress-bar.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst rsProgressBarCss = \":host{display:flex;align-items:center;justify-content:start;width:100%;height:0.25rem;border-radius:0.25rem;background-color:var(--rs-color-grey-light)}:host .progress-bar__loader{height:0.25rem;border-radius:0.25rem;background-color:var(--rs-color-primary)}:host(.progress-determinate) .progress-bar__loader{transition:width .2s linear}:host(.progress-indeterminate) .progress-bar__loader{width:100%;animation:load 5s linear}@keyframes load{0%{width:0}10%{width:5%}20%{width:15%}30%{width:25%}40%{width:30%}50%{width:45%}60%{width:50%}70%{width:75%}80%{width:85%}90%{width:95%}100%{width:100%}}\";\n\nconst RsProgressBar = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Type of progress bar.\n * Two possible values are 'determinate' and 'indeterminate'\n *\n * Determinate is the default type.This should only be used when we know how long the process will take.\n * The progress is represented by setting the 'value' prop to a percentage.\n *\n * Indeterminate should be used when it's not known how long the process will take.\n */\n this.type = 'determinate';\n /**\n * Represents the progress in percentage.\n * This is used to show the progress increasing from 0% to 100%\n */\n // eslint-disable-next-line @stencil/strict-mutable\n this.value = 0;\n /**\n * Colour of the progress\n */\n this.color = 'primary';\n }\n render() {\n return (h(Host, { class: {\n 'progress-determinate': this.type === 'determinate',\n 'progress-indeterminate': this.type === 'indeterminate'\n } }, h(\"div\", { class: \"progress-bar__loader\", style: {\n width: `${this.value}%`,\n backgroundColor: `var(--rs-color-${this.color})`\n } })));\n }\n};\nRsProgressBar.style = rsProgressBarCss;\n\nexport { RsProgressBar as rs_progress_bar };\n"],"names":["RsProgressBar","constructor","hostRef","r","this","type","value","color","render","h","H","class","style","width","backgroundColor"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
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([[669],{8669:function(t,s,e){e.r(s),e.d(s,{rs_row:function(){return n}});var r=e(492);const n=class{constructor(t){(0,r.r)(this,t),this.wrap="wrap",this.justifyContent="flex-start"}render(){return(0,r.h)(r.H,{style:{"flex-wrap":this.wrap,"justify-content":this.justifyContent}},(0,r.h)("slot",null))}};n.style=":host{display:flex}"}}]);
13
+ //# sourceMappingURL=669.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"669.index.js","mappings":";;;;;;;;;;;4KAEA,MAEMA,EAAQ,MACZC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,KAAO,OAIZD,KAAKE,eAAiB,aAExBC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,YAAaN,KAAKC,KAClB,kBAAmBD,KAAKE,kBACrB,IAAAE,GAAE,OAAQ,SAGrBR,EAAMU,MArBS","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-row.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst rowCss = \":host{display:flex}\";\n\nconst RsRow = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * flex-wrap CSS value\n */\n this.wrap = 'wrap';\n /**\n * justify-content CSS value\n */\n this.justifyContent = 'flex-start';\n }\n render() {\n return (h(Host, { style: {\n 'flex-wrap': this.wrap,\n 'justify-content': this.justifyContent\n } }, h(\"slot\", null)));\n }\n};\nRsRow.style = rowCss;\n\nexport { RsRow as rs_row };\n"],"names":["RsRow","constructor","hostRef","r","this","wrap","justifyContent","render","h","H","style"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
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([[677],{7677:function(t,s,e){e.r(s),e.d(s,{rs_flint_popup:function(){return i}});var p=e(492);const i=class{constructor(t){(0,p.r)(this,t),this.rsClose=(0,p.c)(this,"rsClose",7),this.rsOpen=(0,p.c)(this,"rsOpen",7),this.closeIcon=!0,this.backIcon=!1,this.steps=3,this.progress=1,this.stepActive=1,this.closePopup=()=>{this.close()},this.runPreviousStep=()=>{this.previousStep()}}async open(){this.el.style.display="block",setTimeout((()=>{this.el.style.opacity="1"})),this.rsOpen.emit()}async close(){this.el.style.opacity="0",setTimeout((()=>{this.el.style.display="none"}),150),this.rsClose.emit()}async previousStep(){"step"===this.type&&this.showContent(this.stepActive-=1)}async nextStep(){if("step"===this.type){const t=this.el.querySelector(".rs-flint-popup__back");null!=t&&(t.style.visibility="visible"),this.showContent(this.stepActive+=1)}}renderCloseButton(){let t=null;return this.closeIcon&&(t=(0,p.h)("rs-icon",{name:"x",color:"grey",onClick:this.closePopup,class:"rs-flint-popup__close"})),t}renderBackButton(){let t=null;return(this.backIcon||"step"==this.type)&&(t=(0,p.h)("rs-icon",{name:"arrow-left",color:"grey",class:"rs-flint-popup__back",onClick:this.runPreviousStep})),t}showContent(t=!1){if(1==t){const t=this.el.querySelector(".rs-flint-popup__back");null!=t&&(t.style.visibility="hidden")}!1===t&&(t=this.stepActive);const s=this.el.querySelector(".rs-flint-popup__body").querySelectorAll("rs-flint-popup-content");t>s.length&&(this.stepActive=1,this.close()),t<1&&(this.stepActive=1);const e=s[this.stepActive-1];s.forEach((t=>{e!==t&&(t.style.opacity="0",setTimeout((()=>{t.style.display="none"}),150))})),null!=e&&(e.style.display="block",setTimeout((()=>{e.style.opacity="1"})));const p=this.el.querySelector(".rs-flint-popup__progress-step");null!=p&&p.setAttribute("progress",this.stepActive.toString())}componentDidLoad(){const t=this.el.querySelector(".rs-flint-popup__body").querySelectorAll("rs-flint-popup-content");if("step"===this.type){let s=0;t.forEach((t=>{s++,t.setAttribute("order",s.toString()),t.setAttribute("parent-type",this.type)})),this.showContent(this.stepActive)}}render(){const t=this.renderCloseButton(),s=this.renderBackButton();let e=null;return"step"==this.type&&(e=(0,p.h)("rs-progress-step",{steps:this.steps,class:"rs-flint-popup__progress-step",progress:this.progress})),(0,p.h)(p.H,null,(0,p.h)("div",{class:"rs-flint-popup__backdrop",onClick:this.closePopup}),(0,p.h)("div",{class:"rs-flint-popup__inner rs-component-shadow--popup"},(0,p.h)("div",{class:"rs-flint-popup__header"},s,(0,p.h)("slot",{name:"title"}),e,t),(0,p.h)("div",{class:"rs-flint-popup__body"},(0,p.h)("slot",null))))}get el(){return(0,p.g)(this)}};i.style=".sc-rs-flint-popup-h{display:none;opacity:0;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1)}.sc-rs-flint-popup-h .rs-flint-popup__body.sc-rs-flint-popup{position:relative}.sc-rs-flint-popup-h .rs-flint-popup__backdrop.sc-rs-flint-popup{display:block;width:100%;height:100%;position:fixed;top:0;left:0;background:var(--rs-color-grey-light);opacity:0.8}.sc-rs-flint-popup-h .rs-flint-popup__inner.sc-rs-flint-popup{display:block;width:40.25rem;height:25rem;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);background-color:var(--rs-color-white);border-radius:0.625rem;box-shadow:none;box-sizing:border-box}.sc-rs-flint-popup-h .rs-flint-popup__header.sc-rs-flint-popup{display:flex;align-items:center;justify-content:space-between;padding:1.875rem;box-sizing:border-box}.sc-rs-flint-popup-h .rs-flint-popup__close.sc-rs-flint-popup,.sc-rs-flint-popup-h .rs-flint-popup__back.sc-rs-flint-popup{cursor:pointer;color:var(--rs-color-grey);font-size:1rem}.sc-rs-flint-popup-h .rs-flint-popup__close.sc-rs-flint-popup{margin-left:auto}[type='step'].sc-rs-flint-popup-h .rs-flint-popup__close.sc-rs-flint-popup{margin-left:0}"}}]);
13
+ //# sourceMappingURL=677.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"677.index.js","mappings":";;;;;;;;;;;oLAEA,MAEMA,EAAe,MACnBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,SAAU,IAAAC,GAAYF,KAAM,UAAW,GAC5CA,KAAKG,QAAS,IAAAD,GAAYF,KAAM,SAAU,GAI1CA,KAAKI,WAAY,EAIjBJ,KAAKK,UAAW,EAIhBL,KAAKM,MAAQ,EAIbN,KAAKO,SAAW,EAChBP,KAAKQ,WAAa,EAClBR,KAAKS,WAAa,KAChBT,KAAKU,SAEPV,KAAKW,gBAAkB,KACrBX,KAAKY,gBAMT,aACEZ,KAAKa,GAAGC,MAAMC,QAAU,QACxBC,YAAW,KACThB,KAAKa,GAAGC,MAAMG,QAAU,OAE1BjB,KAAKG,OAAOe,OAMd,cACElB,KAAKa,GAAGC,MAAMG,QAAU,IACxBD,YAAW,KACThB,KAAKa,GAAGC,MAAMC,QAAU,SACvB,KACHf,KAAKC,QAAQiB,OAMf,qBACoB,SAAdlB,KAAKmB,MACPnB,KAAKoB,YAAYpB,KAAKQ,YAAc,GAMxC,iBACE,GAAkB,SAAdR,KAAKmB,KAAiB,CAExB,MAAME,EAAarB,KAAKa,GA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,EAAaI,SAAQC,IACnBK,IACAL,EAAYE,aAAa,QAASG,EAAMF,YACxCH,EAAYE,aAAa,cAAevC,KAAKmB,SAG/CnB,KAAKoB,YAAYpB,KAAKQ,aAM1BmC,SAEE,MAAMlB,EAAczB,KAAKwB,oBACnBH,EAAarB,KAAK+B,mBAExB,IAAIO,EAAe,KAInB,MAHiB,QAAbtC,KAAKmB,OACPmB,GAAgB,IAAAZ,GAAE,mBAAoB,CAAEpB,MAAON,KAAKM,MAAOwB,MAAO,gCAAiCvB,SAAUP,KAAKO,aAE5G,IAAAmB,GAAE,EAAAkB,EAAM,MAAM,IAAAlB,GAAE,MAAO,CAAEI,MAAO,2BAA4BD,QAAS7B,KAAKS,cAAe,IAAAiB,GAAE,MAAO,CAAEI,MAAO,qDAAsD,IAAAJ,GAAE,MAAO,CAAEI,MAAO,0BAA4BT,GAAY,IAAAK,GAAE,OAAQ,CAAEC,KAAM,UAAYW,EAAcb,IAAc,IAAAC,GAAE,MAAO,CAAEI,MAAO,yBAA0B,IAAAJ,GAAE,OAAQ,SAErV,SAAW,OAAO,IAAAmB,GAAW7C,QAE/BJ,EAAakB,MAnLW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-flint-popup.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\n\nconst rsFlintPopupCss = \".sc-rs-flint-popup-h{display:none;opacity:0;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1)}.sc-rs-flint-popup-h .rs-flint-popup__body.sc-rs-flint-popup{position:relative}.sc-rs-flint-popup-h .rs-flint-popup__backdrop.sc-rs-flint-popup{display:block;width:100%;height:100%;position:fixed;top:0;left:0;background:var(--rs-color-grey-light);opacity:0.8}.sc-rs-flint-popup-h .rs-flint-popup__inner.sc-rs-flint-popup{display:block;width:40.25rem;height:25rem;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);background-color:var(--rs-color-white);border-radius:0.625rem;box-shadow:none;box-sizing:border-box}.sc-rs-flint-popup-h .rs-flint-popup__header.sc-rs-flint-popup{display:flex;align-items:center;justify-content:space-between;padding:1.875rem;box-sizing:border-box}.sc-rs-flint-popup-h .rs-flint-popup__close.sc-rs-flint-popup,.sc-rs-flint-popup-h .rs-flint-popup__back.sc-rs-flint-popup{cursor:pointer;color:var(--rs-color-grey);font-size:1rem}.sc-rs-flint-popup-h .rs-flint-popup__close.sc-rs-flint-popup{margin-left:auto}[type='step'].sc-rs-flint-popup-h .rs-flint-popup__close.sc-rs-flint-popup{margin-left:0}\";\n\nconst RsFlintPopup = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsClose = createEvent(this, \"rsClose\", 7);\n this.rsOpen = createEvent(this, \"rsOpen\", 7);\n /**\n * Determines whether we want to have a close button for closing the popup or not.\n */\n this.closeIcon = true;\n /**\n * If it's a step based popup, we have the option to add a back button for going to a previous step.\n */\n this.backIcon = false;\n /**\n * If it's a step based popup, this sets the number of steps on the progress bar.\n */\n this.steps = 3;\n /**\n * The number of steps that have been completed by the user.\n */\n this.progress = 1;\n this.stepActive = 1; // this changes internally\n this.closePopup = () => {\n this.close();\n };\n this.runPreviousStep = () => {\n this.previousStep();\n };\n }\n /**\n * Function that can be called directly from the element for opening the popup.\n */\n async open() {\n this.el.style.display = 'block';\n setTimeout(() => {\n this.el.style.opacity = '1';\n });\n this.rsOpen.emit();\n }\n /**\n * Function that can be called directly from the element for closing the popup.\n * Only for step-based popups.\n */\n async close() {\n this.el.style.opacity = '0';\n setTimeout(() => {\n this.el.style.display = 'none';\n }, 150);\n this.rsClose.emit();\n }\n /**\n * Function that can be called directly from the element for showing the previous step.\n * Only for step-based popups.\n */\n async previousStep() {\n if (this.type === 'step') {\n this.showContent(this.stepActive -= 1);\n }\n }\n /**\n * Function that can be called directly from the element for showing the next step.\n */\n async nextStep() {\n if (this.type === 'step') {\n // show back button if the user moved onto the next step\n const backButton = this.el.querySelector('.rs-flint-popup__back');\n if (backButton !== null && backButton !== undefined) {\n backButton.style.visibility = 'visible';\n }\n this.showContent(this.stepActive += 1);\n }\n }\n /**\n * Function for rendering the close button in the popup.\n */\n renderCloseButton() {\n let closeButton = null;\n if (this.closeIcon) {\n closeButton = (h(\"rs-icon\", { name: \"x\", color: \"grey\", onClick: this.closePopup, class: \"rs-flint-popup__close\" }));\n }\n return closeButton;\n }\n /**\n * Function for rendering the back button in the popup.\n * Will only get rendered if the user set the `closeIcon` property to true or if it's a step-based popup\n */\n renderBackButton() {\n let backButton = null;\n if ((this.backIcon || this.type == 'step')) {\n backButton = (h(\"rs-icon\", { name: \"arrow-left\", color: \"grey\", class: \"rs-flint-popup__back\", onClick: this.runPreviousStep }));\n }\n return backButton;\n }\n /**\n * Function for showing the content.\n * @param stepActive - current step that is active\n */\n showContent(stepActive = false) {\n // if the current step is the first step, we hide the back button\n if (stepActive == 1) {\n // hide the back button at the start\n const backButton = this.el.querySelector('.rs-flint-popup__back');\n if (backButton !== null && backButton !== undefined) {\n backButton.style.visibility = 'hidden';\n }\n }\n // Set the default active step to the current step\n if (stepActive === false) {\n stepActive = this.stepActive;\n }\n const popupBody = this.el.querySelector('.rs-flint-popup__body');\n const stepContents = popupBody.querySelectorAll('rs-flint-popup-content');\n // if it's the last step and you click next then the popup will be closed\n if (stepActive > stepContents.length) {\n this.stepActive = 1;\n this.close();\n }\n // If it's the first step and you click previous, the popup will show the first step content\n if (stepActive < 1) {\n this.stepActive = 1;\n }\n const currentStep = stepContents[this.stepActive - 1];\n // reset active class\n stepContents.forEach((stepContent) => {\n if (currentStep !== stepContent) {\n stepContent.style.opacity = '0';\n setTimeout(() => {\n stepContent.style.display = 'none';\n }, 150);\n }\n });\n // current step\n if (currentStep !== null && currentStep !== undefined) {\n currentStep.style.display = 'block';\n setTimeout(() => {\n currentStep.style.opacity = '1';\n });\n }\n // change the progress bar\n const stepProgress = this.el.querySelector('.rs-flint-popup__progress-step');\n if (stepProgress !== null && stepProgress !== undefined) {\n stepProgress.setAttribute('progress', (this.stepActive).toString());\n }\n }\n /**\n * This gets called once after the component is first connected to the DOM.\n */\n componentDidLoad() {\n const popupBody = this.el.querySelector('.rs-flint-popup__body');\n const stepContents = popupBody.querySelectorAll('rs-flint-popup-content');\n if (this.type === 'step') {\n let count = 0;\n stepContents.forEach(stepContent => {\n count++;\n stepContent.setAttribute('order', count.toString());\n stepContent.setAttribute('parent-type', this.type);\n });\n // show the first step\n this.showContent(this.stepActive);\n }\n }\n /**\n * This renders the component.\n */\n render() {\n // Render close button/back button if set to true\n const closeButton = this.renderCloseButton();\n const backButton = this.renderBackButton();\n // only show progress bar if it's a step-based popup\n let stepProgress = null;\n if (this.type == 'step') {\n stepProgress = (h(\"rs-progress-step\", { steps: this.steps, class: \"rs-flint-popup__progress-step\", progress: this.progress }));\n }\n return (h(Host, null, h(\"div\", { class: \"rs-flint-popup__backdrop\", onClick: this.closePopup }), h(\"div\", { class: \"rs-flint-popup__inner rs-component-shadow--popup\" }, h(\"div\", { class: \"rs-flint-popup__header\" }, backButton, h(\"slot\", { name: \"title\" }), stepProgress, closeButton), h(\"div\", { class: \"rs-flint-popup__body\" }, h(\"slot\", null)))));\n }\n get el() { return getElement(this); }\n};\nRsFlintPopup.style = rsFlintPopupCss;\n\nexport { RsFlintPopup as rs_flint_popup };\n"],"names":["RsFlintPopup","constructor","hostRef","r","this","rsClose","c","rsOpen","closeIcon","backIcon","steps","progress","stepActive","closePopup","close","runPreviousStep","previousStep","el","style","display","setTimeout","opacity","emit","type","showContent","backButton","querySelector","visibility","renderCloseButton","closeButton","h","name","color","onClick","class","renderBackButton","stepContents","querySelectorAll","length","currentStep","forEach","stepContent","stepProgress","setAttribute","toString","componentDidLoad","count","render","H","g"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
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([[678],{1034:function(t,e,i){i.d(e,{D:function(){return g},H:function(){return f},i:function(){return m},p:function(){return u}});const{min:o,max:s,floor:r,round:n}=Math;function a(t,e,i){const o=t/360*6,s=e/100,n=i/100,a=r(o),l=o-a,h=n*(1-s),c=n*(1-l*s),p=n*(1-(1-l)*s),d=a%6;return[255*[n,c,h,h,p,n][d],255*[p,n,n,c,h,h][d],255*[h,h,p,n,n,c][d]]}function l(t,e,i){return a(t,e,i).map((t=>n(t).toString(16).padStart(2,"0")))}function h(t,e,i){let o=e/100;const s=i/100,r=(2-o)*s/2;return 0!==r&&(o=1===r?0:r<.5?o*s/(2*r):o*s/(2-2*r)),[t,100*o,100*r]}function c(t,e,i){const r=t/255,n=e/255,a=i/255,l=o(r,n,a),h=s(r,n,a),c=h-l;let p,d;if(0===c)p=0,d=0;else{d=c/h;const t=((h-r)/6+c/2)/c,e=((h-n)/6+c/2)/c,i=((h-a)/6+c/2)/c;r===h?p=i-e:n===h?p=1/3+t-i:a===h&&(p=2/3+e-t),p<0?p+=1:p>1&&(p-=1)}return[360*p,100*d,100*h]}function p(t,e,i,s){const r=e/100,n=i/100,a=s/100;return[...c(255*(1-o(1,t/100*(1-a)+a)),255*(1-o(1,r*(1-a)+a)),255*(1-o(1,n*(1-a)+a)))]}function d(t,e,i){let o=e/100;const s=i/100;o*=s<.5?s:1-s;const r=2*o/(s+o)*100,n=100*(s+o);return[t,Number.isNaN(r)?0:r,n]}function u(t="#000"){"transparent"===t.toLowerCase()&&(t="#00000000");const e=null!==t.match(/^[a-zA-Z]+$/)?function(t){if(void 0===t)return"#000";if("black"===t.toLowerCase())return"#000";const e=document.createElement("canvas").getContext("2d");return null===e?null:(e.fillStyle=t,"#000"===e.fillStyle?null:e.fillStyle)}(t):t,{type:i,match:o}=function(t){const e=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((([,e])=>e.exec(t)));if(void 0!==e){const i=e[1].exec(t);return{type:e[0],regex:e[1],match:i}}return{type:null}}(e),s=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));if(null===i||null===o)return{values:null,type:"hexa"};const r=t=>t>=0&&t<=1&&(t=>!!o[2]==("number"==typeof t))(t);if("cmyk"===i){const[,t,e,r,n]=s(o);if(t&&e&&r&&n&&t<=100&&e<=100&&r<=100&&n<=100)return{values:p(t,e,r,n),type:i}}if("rgba"===i){const[,,,t,e,n,a]=s(o);if(void 0!==t&&void 0!==e&&void 0!==n&&void 0!==a&&t<=255&&e<=255&&n<=255&&r(a))return{values:[...c(t,e,n),a],alpha:a,type:i}}if("hexa"===i){let[,t]=o;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let s=t.substring(6);s=s?parseInt(s,16)/255:void 0;const r=function(t){const e=t.match(/.{2}/g);if(null!==e){const[t,i,o]=e.map((t=>Number.parseInt(t,16)));return c(t,i,o)}return null}(e);if(void 0!==r)return{values:[...r,s],alpha:s,type:i}}if("hsla"===i){const[,,,t,e,n,a]=s(o);if(t&&e&&n&&a&&t<=360&&e<=100&&n<=100&&a>=0&&a<=1&&r(a))return{values:[...d(t,e,n),a],alpha:a,type:i}}if("hsva"===i){const[,,,t,e,n,a]=s(o);if(t&&e&&n&&a&&t<=360&&e<=100&&n<=100&&a>=0&&a<=1&&r(a))return{values:[t,e,n,a],alpha:a,type:i}}return{values:null,type:"hexa"}}const m=t=>void 0!==t&&t.match(/^#?[\dA-Fa-f]{6,8}$/i),g="#7CA1FF";class f{constructor(t=0,e=0,i=0,o=1){this.mapper=(t,e)=>(i=-1)=>e(i>=0?t.map((t=>Number(t.toFixed(i)))):t),this.h=t,this.s=e,this.v=i,this.a=o>1?o/100:o}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=[...h(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=h(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,e,i){const s=a(t,e,i),r=s[0]/255,n=s[1]/255,l=s[2]/255,h=o(1-r,1-n,1-l);return[100*(1===h?0:(1-r-h)/(1-h)),100*(1===h?0:(1-n-h)/(1-h)),100*(1===h?0:(1-l-h)/(1-h)),100*h]}(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=l(this.h,this.s,this.v),e=this.a>=1?"":Number((255*this.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&t.push(e),t.toString=()=>`#${t.join("").toUpperCase()}`,t}toHEX(){const t=l(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 f(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))+"%"}}},4678:function(t,e,i){i.r(e),i.d(e,{color_picker:function(){return h},color_picker_color_palette:function(){return p},color_picker_hue_slider:function(){return d},color_picker_opacity_slider:function(){return u}});var o=i(492),s=i(1034),r=i(5924);const n=t=>t<=1?Math.round(100*t):Math.round(t);const a=new class{constructor(){this.storage=new WeakMap}set(t,e,i){this.has(t,e)&&console.warn("Overwriting existing key:",e),this.storage.get(t)||this.storage.set(t,new Map),this.storage.get(t).set(e,i)}get(t,e){var i;return void 0!==this.storage.get(t)?this.storage.get(t).get(e):null!==(i=this.storage[e])&&void 0!==i?i:null}has(t,e){return void 0!==this.storage.get(t)&&this.storage.get(t).has(e)}delete(t,e){this.has(t,e)&&(this.storage.get(t).delete(e),0===this.storage.get(t).size&&this.storage.delete(t))}};class l{constructor(t,e={}){if(this.arrowOffset=10,this.isScrolling=!1,this.positionClasses=[],this.defaults={position:"horizontal",delayShow:1e3,delayHide:500,horizontalOffset:-5,verticalOffset:0},this.classNames={tooltip:"rs-tooltip",horizontal:"rs-tooltip--horizontal",vertical:"rs-tooltip--vertical",arrowBottom:"rs-tooltip--bottom",arrowLeft:"rs-tooltip--left",arrowRight:"rs-tooltip-right",arrowTop:"rs-tooltip--top",active:"rs-tooltip--active"},void 0!==t.dataset.tip&&""!==t.dataset.tip&&!a.has(t,"tooltip-loaded")){if(a.set(t,"tooltip-loaded",!0),"object"==typeof e&&(this.options=Object.assign(this.defaults,e)),"string"==typeof t&&(t=document.querySelector(t)),!(t instanceof Element||t instanceof Element||null===t))throw new Error(`You haven't passed through a DOM element, or the element can't be found: ${t}`);this.element=t,this.createStructure(),this.element.addEventListener("mouseenter",(()=>{let t=this.isVisible()?0:this.options.delayShow;const e=a.get(this.tooltipContainer,"tooltipHideTimeout");void 0!==e&&(clearTimeout(e),a.delete(this.tooltipContainer,"tooltipHideTimeout"));const i=a.get(this.tooltipContainer,"tooltipShowTimeout");void 0!==i&&(clearTimeout(i),a.delete(this.tooltipContainer,"tooltipShowTimeout"));const o=setTimeout((()=>{this.show()}),t);a.set(this.tooltipContainer,"showTimeout",o)})),this.element.addEventListener("mouseleave",(()=>{const t=setTimeout((()=>{this.hide(),a.delete(this.tooltipContainer,"tooltipHideTimeout")}),this.options.delayHide);a.set(this.tooltipContainer,"tooltipHideTimeout",t);const e=a.get(this.tooltipContainer,"showTimeout");void 0!==e&&(clearTimeout(e),a.delete(this.tooltipContainer,"showTimeout"))})),window.addEventListener("scroll",(()=>{this.isScrolling=!0,this.hide(!0),(0,r.S)((()=>{this.isScrolling=!1,window.addEventListener("scroll",(()=>{this.isScrolling=!0,this.hide(!0)}),{once:!0})}))}),{once:!0})}}createStructure(){null===document.querySelector("rs-tool-tip")?(this.tooltipContainer=document.createElement("rs-tool-tip"),this.tooltipContainer.classList.add(this.classNames.tooltip),document.body.append(this.tooltipContainer)):this.tooltipContainer=document.querySelector("rs-tool-tip")}show(){if(this.isScrolling)return;this.hide(),setTimeout((()=>{this.tooltipContainer.innerHTML=this.element.dataset.tip,this.setPosition(),this.tooltipContainer.classList.add(this.classNames.active)}),150)}setPosition(){let t,e;this.tooltipContainer.style.width=null,this.tooltipContainer.style.height=null;const i=this.element.getBoundingClientRect(),o=i.left,s=i.top,r=i.width,n=i.height,a=this.tooltipContainer.offsetWidth,l=this.tooltipContainer.offsetHeight,h=window.scrollY||document.documentElement.scrollTop;let c="left";"horizontal"===this.options.position?(c="right",window.innerWidth-o+r>a+20?c="right":o>a+20&&(c="left")):"vertical"===this.options.position&&(c="top",window.innerHeight-s+n>l+20?c="bottom":s>a+20&&(c="top")),this.positionClasses.push(this.classNames[`arrow${c.charAt(0).toUpperCase()+c.slice(1)}`]),"top"===c?(this.positionClasses.push(this.classNames.vertical),e=r/2+o-a/2+this.options.horizontalOffset,t=s+h-l-this.arrowOffset+this.options.verticalOffset):"bottom"===c?(this.positionClasses.push(this.classNames.vertical),e=r/2+o-a/2+this.options.horizontalOffset,t=s+h+n+this.arrowOffset+this.options.verticalOffset):"left"===c?(this.positionClasses.push(this.classNames.horizontal),e=o-a-this.arrowOffset+this.options.horizontalOffset,t=s+h+n/2-l/2+this.options.verticalOffset):"right"===c&&(this.positionClasses.push(this.classNames.horizontal),e=r+o+this.arrowOffset+this.options.horizontalOffset,t=s+h+n/2-l/2+this.options.verticalOffset);const{left:p}=window.getComputedStyle(document.body),d=void 0!==e?e-Number.parseInt(p):"auto";this.tooltipContainer.style.top=`${null!=t?t:"auto"}px`,this.tooltipContainer.style.right="autopx",this.tooltipContainer.style.bottom="autopx",this.tooltipContainer.style.left=`${d}px`,this.tooltipContainer.classList.add(...this.positionClasses),this.tooltipContainer.setAttribute("arrow",c)}hide(t=!1){const e=t?0:150;this.tooltipContainer.classList.remove(this.classNames.active),setTimeout((()=>{this.tooltipContainer.classList.remove(this.classNames.arrowBottom,this.classNames.arrowTop,this.classNames.arrowLeft,this.classNames.arrowRight),this.tooltipContainer.style.top=null,this.tooltipContainer.style.right=null,this.tooltipContainer.style.bottom=null,this.tooltipContainer.style.left=null}),e)}isVisible(){const t=window.getComputedStyle(this.tooltipContainer);return!(null===this.tooltipContainer.offsetParent||"0"===t.opacity)}}const h=class{constructor(t){(0,o.r)(this,t),this.colorChange=(0,o.c)(this,"colorChange",7),this.presetColorChoice=(0,o.c)(this,"presetColorChoice",7),this.hasRecentColors=!1,this.palettesToDisplay=[],this.opacity=!1,this.maxPresetDisplay=12,this.recentColorsLabel="Recent Colors",this.transparentButton=!1,this.display="default",this.mode="default",this.hueChangeHandler=t=>{this.hasTransparentButton()&&(this.currentOpacity=100,this.currentColor.alpha=this.currentOpacity),this.currentColor.hue=t.detail,this.setHue(t.detail),this.setColorAndEmit(this.currentColor.toHEXA().toString())},this.colorPaletteChangeHandler=t=>{var e;!this.hasTransparentButton()&&this.supportsOpacity()||(this.currentOpacity=100),null===(e=this.opacitySlider)||void 0===e||e.setColor(t.detail.toHEXA().toString()),t.detail.alpha=this.currentOpacity,this.setColorAndEmit(t.detail.toHEXA().toString())},this.handleOpacityInput=t=>{const e=isNaN(t.target.value)?0:t.target.value;this.currentOpacity=Math.max(Math.min(e,100),0),this.setColorAndEmit(this.currentColor.toHEXA().toString())},this.setPresetPalette=t=>{var e,i,o;const s=null!==(i=(null!==(e=this.palettesToDisplay.filter((e=>e.label===t.target.dataset.category))[0])&&void 0!==e?e:{palettes:[]}).palettes.filter((e=>e.index===Number.parseInt(t.target.dataset.index)))[0])&&void 0!==i?i:{};this.setColorFromPalette(t.target.dataset.color),this.presetColorChoice.emit({color:this.currentColor,data:null!==(o=s.data)&&void 0!==o?o:null})},this.handleHexInput=t=>{const e=t.target.value,i=e.startsWith("#")?e:`#${e}`;(0,s.i)(i)&&(this.setColorAndEmit(i),this.setHue(this.currentColor.hue))},this.hasOpacity=t=>t.length>7,this.setTransparentButton=()=>{this.currentOpacity=0,this.currentColor.alpha=this.currentOpacity,this.setColorAndEmit(this.currentColor.toHEXA().toString())}}watchPalettes(){this.buildPresetPalettes()}componentWillLoad(){var t;this.setColorValue(null!==(t=this.color)&&void 0!==t?t:s.D),this.buildPresetPalettes()}componentDidRender(){this.createToolTips()}opacityChangeHandler(t){this.currentOpacity=n(t.detail),this.currentColor.alpha=this.currentOpacity,this.setColorAndEmit(this.currentColor.toHEXA().toString())}colorPickerAddRecentHandler(t){if(!this.hasRecentColors)return;const e=this.getPresetPaletteGroup(this.recentColorsLabel);this.paletteExists(t.detail.hex,e.palettes)||this.addToPreset(t.detail.hex,this.recentColorsLabel)}async setColor(t){this.setColorValue(t),await this.updateColorPickerControls()}async getColor(){return this.currentColor}async addToPreset(t,e){if(this.renderPresetPalette(t)){const i=JSON.parse(JSON.stringify(this.palettesToDisplay)),o=i.findIndex((t=>t.label===e));-1!==o?this.paletteExists(t,i[o].palettes)||i[o].palettes.unshift(t):i.push({label:e,palettes:[t]}),this.palettesToDisplay=i}}async updateColorPickerControls(){await this.colorPalette.setColor(this.currentColor.toHEXA().toString()),await this.hueSlider.setHue(this.currentColor.hue),this.setOpacitySlider()}getPresetPaletteGroup(t){const e=JSON.parse(JSON.stringify(this.palettesToDisplay)),i=e.findIndex((e=>e.label===t));return e[i]}setColorAndEmit(t){this.setColorValue(t),this.colorChange.emit(this.currentColor)}setColorValue(t){this.currentColor=new s.H(...(0,s.p)(t).values),this.hasTransparentButton()&&!this.showOpacity()&&this.currentColor.alpha<1?this.currentColor.alpha=0:(this.showOpacity()||(this.currentColor.alpha=100),this.currentOpacity=n(this.currentColor.alpha))}setOpacitySlider(){this.showOpacity()&&(this.opacitySlider.setColor(this.currentColor.toHEX().toString()),this.opacitySlider.setOpacity(this.currentColor.alpha))}supportsOpacity(){return this.showOpacity()||this.hasTransparentButton()}hasTransparentButton(){return void 0!==this.transparentButton&&!0===this.transparentButton&&!this.showOpacity()}showOpacity(){return void 0!==this.opacity&&!0===this.opacity}renderPresetPalette(t){return(0,s.i)(t)&&!this.showOpacity()&&!this.hasOpacity(t)||(0,s.i)(t)&&this.showOpacity()}paletteExists(t,e){return-1!==e.findIndex((e=>e.toLowerCase()===t.toLowerCase()))}renderOpacityInput(){if(this.showOpacity())return(0,o.h)("div",{class:"input-container",style:{flexBasis:"70px"}},(0,o.h)("input",{type:"text",value:`${this.currentOpacity}`,onInput:this.handleOpacityInput}),(0,o.h)("div",{class:"input-label"},"%"))}buildPresetPalettes(){let t=this.palettes;if("string"==typeof this.palettes)try{t=JSON.parse(this.palettes)}catch(e){t=[]}void 0===t&&(t=[]),Array.isArray(t)||(t=[t]),this.palettesToDisplay=t.map((({label:t,palettes:e})=>({label:t,palettes:e.reduce(((t,e,i)=>{var o,r,n;const a="string"==typeof e&&(0,s.i)(e)?e:"string"==typeof e.color&&(0,s.i)(e.color)?e.color:null;return null!==a&&t.push({index:i,color:a,title:null!==(o=e.title)&&void 0!==o?o:null,description:null!==(r=e.description)&&void 0!==r?r:null,data:null!==(n=e.data)&&void 0!==n?n:null}),t}),[])})))}setColorFromPalette(t){this.setColorAndEmit(t),this.currentOpacity=n(this.currentColor.alpha),"preset"!==this.mode&&(this.colorPalette.setColor(this.currentColor.toHEXA().toString()),this.hueSlider.setHue(this.currentColor.hue),this.setOpacitySlider())}setHue(t){var e,i;null===(e=this.hueSlider)||void 0===e||e.setHue(t),null===(i=this.colorPalette)||void 0===i||i.setHue(t)}render(){return(0,o.h)(o.H,{class:`color-picker--${this.display}`},(0,o.h)("div",{class:"container"},"default"===this.mode?(0,o.h)("div",null,(0,o.h)("color-picker-color-palette",{display:this.display,color:this.currentColor.toHEX().toString(),onColorPaletteChange:this.colorPaletteChangeHandler,ref:t=>this.colorPalette=t}),(0,o.h)("color-picker-hue-slider",{display:this.display,hue:this.currentColor.hue,onHueChange:this.hueChangeHandler,ref:t=>this.hueSlider=t}),this.showOpacity()?(0,o.h)("color-picker-opacity-slider",{display:this.display,color:this.currentColor.toHEX().toString(),opacity:this.currentOpacity,ref:t=>this.opacitySlider=t}):"",(0,o.h)("div",{style:{width:"100%",maxWidth:"inline"===this.display?"100%":"200px",display:"flex",gap:"12px",marginTop:"16px"}},(0,o.h)("div",{class:"input-container"},(0,o.h)("input",{type:"text",maxlength:7,value:this.currentColor.toHEX().toString(),onInput:this.handleHexInput}),(0,o.h)("div",{class:"input-label"},"Hex")),this.renderOpacityInput())):"",(0,o.h)("div",{ref:t=>this.palettesContainer=t},this.palettesToDisplay.map((({label:t,palettes:e},i)=>{let s=0;return t===this.recentColorsLabel&&(this.hasRecentColors=!0),(0,o.h)("div",null,(0,o.h)("h3",{class:"palettes-header",style:{marginTop:0===i&&"preset"===this.mode?"0":""}},t),(0,o.h)("div",{class:"palettes-container"},e.map((e=>{if(this.renderPresetPalette(e.color)&&s<this.maxPresetDisplay)return s++,(0,o.h)("div",{class:{palette__container:!0,"palette__container--active":this.currentColor.toHEX().toString().toLowerCase()===e.color.toLowerCase()}},(0,o.h)("span",{class:"checkerboard"}),(0,o.h)("span",{class:"palette","data-category":t,"data-index":e.index,"data-tip":h.buildToolTip(e),"data-color":e.color,style:{backgroundColor:e.color},onClick:this.setPresetPalette}))}))))}))),this.hasTransparentButton()?(0,o.h)("button",{class:"transparent-button",onClick:this.setTransparentButton},"Transparent",(0,o.h)("span",{class:"transparent-button__swatch"}," ")):""))}static buildToolTip(t){let e;return null!==t.title&&""!==t.title&&(e=`<h5 class="rs-tooltip__heading">${t.title}</h5>`),null!==t.description&&""!==t.description&&(e+=`<p class="rs-tooltip__caption">${t.description}</p>`),e}createToolTips(){var t,e;null===(e=null===(t=this.palettesContainer)||void 0===t?void 0:t.querySelectorAll(".palette"))||void 0===e||e.forEach((t=>{new l(t,{position:"horizontal",horizontalOffset:10})}))}static get watchers(){return{palettes:["watchPalettes"]}}};h.style=':host{display:inline-block;font-family:arial, sans-serif;-webkit-font-smoothing:antialiased}.container{padding:1rem;border-radius:0.5rem;background:#fff;box-shadow:0 0.3125rem 0.9375rem 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:0.75rem;color:#95a8bd;position:absolute;right:0.9375rem;top:50%;transform:translateY(-50%)}.palettes-header{color:#748393;font-size:0.75rem;font-weight:normal}.palettes-container{display:grid;gap:0.625rem;grid-template-columns:repeat(6, 1.5rem);grid-auto-rows:minmax(1.5rem, auto)}:host(.color-picker--inline) .palettes-container{grid-template-columns:repeat(auto-fit, 1.5rem)}.palette__container{border-radius:1.875rem;overflow:hidden;position:relative}.palette__container--active{box-shadow:0 0 0 0.125rem rgb(116 131 147 / 0.5);border:0.125rem solid #fff}.palette{border-radius:1.875rem;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:0.375rem 0.375rem;background-position:0 0, 0 0.1875rem, 0.1875rem -0.1875rem, -0.1875rem 0}input,.transparent-button{font-family:soleil, arial, sans-serif;font-size:0.875rem;text-transform:uppercase;color:#748393;height:1.75rem;text-indent:0.5rem;border-radius:0.25rem;background:#fff;border:1px solid #ddd;box-sizing:border-box;min-width:0;width:100%}.transparent-button{margin-top:1rem;text-transform:unset;text-align:left;display:flex;align-items:center;cursor:pointer;justify-content:space-between;padding:0 0.25rem}.transparent-button__swatch{width:1.25rem;height:1.25rem;display:block;opacity:0.5;box-shadow:inset 0 0 1px 1px var(--rs-color-secondary);border-radius:1.25rem;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 0.1875rem 1px var(--rs-color-secondary)}.transparent-button__swatch::after{content:"";position:absolute;border-top:0.125rem solid red;width:1.3125rem;transform:rotate(-45deg);transform-origin:center;top:0.5rem;z-index:1;left:0}';class c{constructor(t){this.cache={x:0,y:0},this.clamp=t=>Math.max(Math.min(t,1),0),this.options=Object.assign(Object.assign({},c.DEFAULT_OPTIONS),t),this.tapStartBinding=this.tapstart.bind(this),this.tapStopBinding=this.tapstop.bind(this),this.tapMoveBinding=this.tapmove.bind(this),(0,r.o)([this.options.wrapper,this.options.element],"mousedown",this.tapStartBinding),(0,r.o)([this.options.wrapper,this.options.element],"touchstart",this.tapStartBinding,{passive:!1}),(0,r.o)(document,["keydown","keyup"],this.keyboard.bind(this))}keyboard(t){const{type:e,key:i}=t;if(document.activeElement===this.options.wrapper){const{lock:o}=this.options,s="ArrowUp"===i,r="ArrowRight"===i,n="ArrowDown"===i,a="ArrowLeft"===i;if("keydown"===e&&(s||r||n||a)){let e,i=0;"v"===o?e=s||r?1:-1:"h"===o?e=s||r?-1:1:(i=0,s?i=-1:n&&(i=1),e=0,a?e=-1:r&&(e=1)),this.update(this.clamp(this.cache.x+.01*e),this.clamp(this.cache.y+.01*i)),t.preventDefault()}else i.startsWith("Arrow")&&(this.options.onstop(),t.preventDefault())}}tapstart(t){this.wrapperBoundingClient=this.options.wrapper.getBoundingClientRect(),(0,r.o)(document,["mouseup","touchend","touchcancel"],this.tapStopBinding),(0,r.o)(document,["mousemove","touchmove"],this.tapMoveBinding),t.cancelable&&t.preventDefault();const e=new CustomEvent("start");this.options.element.dispatchEvent(e),this.tapmove(t)}tapmove(t){let e,i;if(t){const o=t&&t.touches&&t.touches[0];e=t?(o||t).clientX:0,i=t?(o||t).clientY:0,c.outsideLeftBounds(e,this.wrapperBoundingClient)?e=this.wrapperBoundingClient.left:c.outsideRightBounds(e,this.wrapperBoundingClient)&&(e=this.wrapperBoundingClient.left+this.wrapperBoundingClient.width),c.outsideTopBounds(i,this.wrapperBoundingClient)?i=this.wrapperBoundingClient.top:c.outsideBottomBounds(i,this.wrapperBoundingClient)&&(i=this.wrapperBoundingClient.top+this.wrapperBoundingClient.height),e-=this.wrapperBoundingClient.left,i-=this.wrapperBoundingClient.top}else e=this.cache.x*this.wrapperBoundingClient.width,i=this.cache.y*this.wrapperBoundingClient.height;"h"!==this.options.lock&&(this.options.element.style.left=e/this.wrapperBoundingClient.width*100+"%"),"v"!==this.options.lock&&(this.options.element.style.top=i/this.wrapperBoundingClient.height*100+"%"),this.cache={x:e/this.wrapperBoundingClient.width,y:i/this.wrapperBoundingClient.height};const o=this.clamp(this.cache.x),s=this.clamp(this.cache.y),r=new CustomEvent("change",{detail:{x:o,y:s}});this.options.element.dispatchEvent(r)}tapstop(){this.options.onstop(),(0,r.a)(document,["mouseup","touchend","touchcancel"],this.tapStopBinding),(0,r.a)(document,["mousemove","touchmove"],this.tapMoveBinding);const t=new CustomEvent("stop");this.options.element.dispatchEvent(t)}trigger(){this.tapmove(null)}update(t=0,e=0){const i=t;let o="h"===this.options.lock?i:e;const{left:s,top:r,width:n,height:a}=this.options.wrapper.getBoundingClientRect();this.tapmove({clientX:s+n*i,clientY:r+a*o})}destroy(){(0,r.a)(document,["keydown","keyup"],this.keyboard.bind(this)),(0,r.a)([this.options.wrapper,this.options.element],"mousedown",this.tapstart.bind(this)),(0,r.a)([this.options.wrapper,this.options.element],"touchstart",this.tapstart.bind(this),{passive:!1})}}c.DEFAULT_OPTIONS={lock:null,onchange:()=>0,onstop:()=>0},c.outsideBottomBounds=(t,e)=>t>e.top+e.height,c.outsideTopBounds=(t,e)=>t<e.top,c.outsideRightBounds=(t,e)=>t>e.left+e.width,c.outsideLeftBounds=(t,e)=>t<e.left;const p=class{constructor(t){(0,o.r)(this,t),this.colorPaletteChange=(0,o.c)(this,"colorPaletteChange",7),this.sliderOffsetWidth=8,this.sliderOffsetHeight=8,this.sliderLeft=50,this.sliderTop=50,this.hue=0,this.display="default",this.getPaletteBackgroundColor=()=>`\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 `,this.handleChange=t=>{const{x:e,y:i}=t.detail,o=100*e;let s=100-100*i;s<0&&(s=0),this.currentColor.saturation=o,this.currentColor.value=s,this.slider.style.background=this.currentColor.toRGB().toString(),this.colorPaletteChange.emit(this.currentColor)}}componentWillLoad(){return this.setInternalColor(this.color),new Promise((t=>{if(null!==this.slider&&void 0!==this.slider){const t=this.slider.offsetWidth,e=this.slider.offsetHeight;isNaN(t)||(this.sliderOffsetWidth=t/2),isNaN(e)||(this.sliderOffsetHeight=this.slider.offsetHeight/2)}t()}))}componentDidLoad(){new c({element:this.slider,wrapper:this.palette})}async setHue(t){this.currentColor.hue=t,this.hue=t}async setColor(t){this.setInternalColor(t)}setInternalColor(t){this.currentColor=new s.H(...(0,s.p)(t).values),this.hue=this.currentColor.hue,this.sliderLeft=this.currentColor.saturation,this.sliderTop=100-this.currentColor.value}render(){return(0,o.h)("div",{class:{"color-selector":!0,[`color-selector--${this.display}`]:!0},ref:t=>this.palette=t,style:{background:this.getPaletteBackgroundColor()}},(0,o.h)("div",{class:"selector__pickr",style:{left:`${this.sliderLeft}%`,top:`${this.sliderTop}%`,background:this.currentColor.toRGB().toString()},onChange:this.handleChange,ref:t=>this.slider=t}))}};p.style=":host{display:block}.selector__pickr{position:absolute;height:1rem;width:1rem;border-radius:1rem;border:0.125rem solid #fff;box-sizing:border-box;box-shadow:0 0.3125rem 0.9375rem 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:9.6875rem;width:12.5rem;border-radius:0.375rem;position:relative}.color-selector--inline{width:100%}";const d=class{constructor(t){(0,o.r)(this,t),this.hueChange=(0,o.c)(this,"hueChange",7),this.display="default",this.handleChange=t=>{const e=360*t.detail.x;this.hueChange.emit(e),this.slider.style.backgroundColor=`hsl(${e}, 100%, 50%)`}}async setHue(t){this._hue=t}componentWillLoad(){this._hue=this.hue}componentDidLoad(){new c({lock:"v",element:this.slider,wrapper:this.container})}render(){return(0,o.h)("div",{class:{"component-outer":!0,[`component-outer--${this.display}`]:!0},style:{"margin-top":"16px"},ref:t=>this.container=t},(0,o.h)("div",{class:"hue-selector component-selector"}),(0,o.h)("div",{class:"selector__pickr",style:{"margin-top":"-4px",left:this._hue/360*100+"%",background:`hsl(${this._hue}, 100%, 50%)`},onChange:this.handleChange,ref:t=>this.slider=t}))}};d.style=":host{display:block}.selector__pickr{position:absolute;height:1rem;width:1rem;border-radius:1rem;border:0.125rem solid #fff;box-sizing:border-box;box-shadow:0 0.3125rem 0.9375rem 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:0.5rem;width:100%;max-width:12.5rem;cursor:pointer}.component-outer--inline{max-width:100%}.component-selector{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:0.625rem;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%)}";const u=class{constructor(t){(0,o.r)(this,t),this.opacityChange=(0,o.c)(this,"opacityChange",7),this.color="#000000",this.display="default",this.handleOpacityChange=t=>{this.currentColor.alpha=this.currentOpacity=t.detail.x,this.slider.style.background=this.currentColor.toRGBA().toString(),this.opacityChange.emit(this.currentOpacity)}}watchOpacity(t){this.setInternalOpacity(t)}getOpacityAsPercent(){return this.currentOpacity<=1?100*this.currentOpacity:this.currentOpacity}async setColor(t){this.setInternalColor(t)}async setOpacity(t){this.setInternalOpacity(t)}componentDidLoad(){new c({lock:"v",element:this.slider,wrapper:this.container})}componentWillLoad(){this.setInternalOpacity(this.opacity),this.setInternalColor(this.color)}setInternalOpacity(t){const e=null!=t?t:100;this.currentOpacity=e>1?e/100:e}setInternalColor(t){this.currentColor=new s.H(...(0,s.p)(t).values),this.currentColor.alpha=this.currentOpacity,this.currentRgb=this.currentColor.toRGB()}render(){return(0,o.h)("div",{class:{"component-outer":!0,[`component-outer--${this.display}`]:!0},style:{"margin-top":"16px"},ref:t=>this.container=t},(0,o.h)("div",{class:"checker-board component-selector"}),(0,o.h)("div",{class:"component-selector",style:{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%)`}}),(0,o.h)("div",{class:"selector__pickr",style:{"margin-top":"-4px",left:`${this.getOpacityAsPercent()}%`,background:`rgba(${this.currentRgb[0]},${this.currentRgb[1]},${this.currentRgb[2]}, ${this.currentOpacity})`},onChange:this.handleOpacityChange,ref:t=>this.slider=t}))}static get watchers(){return{opacity:["watchOpacity"]}}};u.style=":host{display:block}.component-outer{position:relative;cursor:pointer;height:0.5rem;width:100%;max-width:12.5rem}.component-outer--inline{max-width:100%}.component-selector{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:0.625rem;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:0.375rem 0.375rem;background-position:0 0, 0 0.1875rem, 0.1875rem -0.1875rem, -0.1875rem 0}.selector__pickr{transform:translateX(-50%);position:absolute;height:1rem;width:1rem;border-radius:1rem;border:0.125rem solid #fff;box-sizing:border-box;box-shadow:0 0.3125rem 0.9375rem rgb(70 74 83 / 0.25);cursor:pointer;transition:left 150ms linear}.selector__pickr:active,.color-selector:active .selector__pickr{transition:none;cursor:none}"},5924:function(t,e,i){i.d(e,{S:function(){return a},a:function(){return n},f:function(){return o},o:function(){return r}});const o=()=>{const t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t);const e=1===t.scrollHeight;return t.parentNode.removeChild(t),e};function s(t,e,i,o,s={}){let r=e;Array.isArray(e)?r=Array.from(e):Array.isArray(e)||(r=[e]);let n=i;return Array.isArray(i)||(n=[i]),r.forEach((e=>{n.forEach((i=>{e[t](i,o,Object.assign({capture:!1},s))}))})),[e,i,o,s]}const r=s.bind(null,"addEventListener"),n=s.bind(null,"removeEventListener"),a=t=>{if(!t||"[object Function]"!==Object.prototype.toString.call(t))return;let e;window.addEventListener("scroll",(function(){window.clearTimeout(e),e=setTimeout((function(){t()}),66)}),!1)}}}]);
13
+ //# sourceMappingURL=678.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"678.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,IAGzC,SAASC,EAASZ,EAAGC,EAAGC,GACtB,OAAOH,EAASC,EAAGC,EAAGC,GAAGW,KAAIC,GAAOjB,EAAMiB,GACvCC,SAAS,IACTC,SAAS,EAAG,OAajB,SAASC,EAASjB,EAAGC,EAAGC,GACtB,IAAIE,EAASH,EAAI,IACjB,MAAMI,EAASH,EAAI,IACbgB,GAAM,EAAId,GAAUC,EAAU,EAYpC,OAXU,IAANa,IAEAd,EADQ,IAANc,EACO,EAEFA,EAAI,GACDd,EAASC,GAAe,EAAJa,GAGpBd,EAASC,GAAW,EAAQ,EAAJa,IAG/B,CAAClB,EAAY,IAATI,EAAkB,IAAJc,GAE3B,SAASC,EAASC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AKG,YAAYnV,SAASC,cAAc,QACxC+U,EAAKG,YAAYnV,SAASC,cAAc,QAExCD,SAAS4H,KAAKuN,YAAYH,GAC1B,MAAMI,EAAoC,IAAtBJ,EAAKK,aAEzB,OADAL,EAAKM,WAAWC,YAAYP,GACrBI,GAET,SAASI,EAAcC,EAAQC,EAAUC,EAAQC,EAAIzQ,EAAU,IAC7D,IAAI0Q,EAAgBH,EAChB3G,MAAMC,QAAQ0G,GAChBG,EAAgB9G,MAAM+G,KAAKJ,GAEnB3G,MAAMC,QAAQ0G,KACtBG,EAAgB,CAACH,IAEnB,IAAIK,EAAcJ,EASlB,OARK5G,MAAMC,QAAQ2G,KACjBI,EAAc,CAACJ,IAEjBE,EAAcxF,SAAQb,IACpBuG,EAAY1F,SAAQ2F,IAClBxG,EAAGiG,GAAQO,EAAIJ,EAAIrV,OAAOiG,OAAO,CAAEyP,SAAS,GAAS9Q,UAGlD,CAACuQ,EAAUC,EAAQC,EAAIzQ,GAEhC,MAAM+Q,EAAKV,EAAc3E,KAAK,KAAM,oBAC9BsF,EAAMX,EAAc3E,KAAK,KAAM,uBAC/BuF,EAAcC,IAElB,IAAKA,GAAyD,sBAA7C9V,OAAO+V,UAAU9Y,SAAS+Y,KAAKF,GAC9C,OAGF,IAAIhR,EAEJkC,OAAOV,iBAAiB,UAAU,WAEhCU,OAAON,aAAa5B,GAEpBA,EAAc+B,YAAW,WAEvBiP,MACC,OACF","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/HSVaColor-82f956e7.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-666cff40.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","import { r as registerInstance, c as createEvent, h, H as Host } from './index-d4fae449.js';\nimport { i as isValidHex, D as DEFAULT_COLOR, H as HSVaColor, p as parseToHSVA } from './HSVaColor-82f956e7.js';\nimport { S as ScrollStop, o as on, a as off } from './utils-666cff40.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:1rem;border-radius:0.5rem;background:#fff;box-shadow:0 0.3125rem 0.9375rem 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:0.75rem;color:#95a8bd;position:absolute;right:0.9375rem;top:50%;transform:translateY(-50%)}.palettes-header{color:#748393;font-size:0.75rem;font-weight:normal}.palettes-container{display:grid;gap:0.625rem;grid-template-columns:repeat(6, 1.5rem);grid-auto-rows:minmax(1.5rem, auto)}:host(.color-picker--inline) .palettes-container{grid-template-columns:repeat(auto-fit, 1.5rem)}.palette__container{border-radius:1.875rem;overflow:hidden;position:relative}.palette__container--active{box-shadow:0 0 0 0.125rem rgb(116 131 147 / 0.5);border:0.125rem solid #fff}.palette{border-radius:1.875rem;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:0.375rem 0.375rem;background-position:0 0, 0 0.1875rem, 0.1875rem -0.1875rem, -0.1875rem 0}input,.transparent-button{font-family:soleil, arial, sans-serif;font-size:0.875rem;text-transform:uppercase;color:#748393;height:1.75rem;text-indent:0.5rem;border-radius:0.25rem;background:#fff;border:1px solid #ddd;box-sizing:border-box;min-width:0;width:100%}.transparent-button{margin-top:1rem;text-transform:unset;text-align:left;display:flex;align-items:center;cursor:pointer;justify-content:space-between;padding:0 0.25rem}.transparent-button__swatch{width:1.25rem;height:1.25rem;display:block;opacity:0.5;box-shadow:inset 0 0 1px 1px var(--rs-color-secondary);border-radius:1.25rem;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 0.1875rem 1px var(--rs-color-secondary)}.transparent-button__swatch::after{content:\\\"\\\";position:absolute;border-top:0.125rem solid red;width:1.3125rem;transform:rotate(-45deg);transform-origin:center;top:0.5rem;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.palettesToDisplay = [];\n /**\n * Whether opacity is supported on this instance.\n */\n this.opacity = false;\n /**\n * Max number of preset palettes to display\n */\n this.maxPresetDisplay = 12;\n /**\n * The label that corresponds to the group of palettes for your recent colors\n */\n this.recentColorsLabel = 'Recent Colors';\n /**\n * If set to true, a button will show that will allow the user to set the color picker to transparent without the need for the opacity slider\n */\n this.transparentButton = false;\n /**\n * If set to default, color picker's floating and has drop shadow - will display relative to the nearest positioned ancestor.\n * If set to inline, color picker will always display according to the normal flow of the page - will have no drop-shadow and width is always 100%.\n */\n this.display = 'default';\n /**\n * If set to preset, we only show the preset colors and don't allow custom selection via any method\n */\n this.mode = 'default';\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.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 }\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 }) => {\n return {\n label,\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 }), h(\"div\", { class: 'input-label' }, \"Hex\")), this.renderOpacityInput()))\n : '', h(\"div\", { ref: el => this.palettesContainer = el }, this.palettesToDisplay.map(({ label, palettes }, 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.maxPresetDisplay) {\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 }))));\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 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:1rem;width:1rem;border-radius:1rem;border:0.125rem solid #fff;box-sizing:border-box;box-shadow:0 0.3125rem 0.9375rem 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:9.6875rem;width:12.5rem;border-radius:0.375rem;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.sliderOffsetWidth = 8;\n this.sliderOffsetHeight = 8;\n this.sliderLeft = 50;\n this.sliderTop = 50;\n this.hue = 0;\n /**\n * If set to default, color palette have a fixed width.\n * If inline, color palette will have 100% width.\n */\n this.display = 'default';\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 }\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:1rem;width:1rem;border-radius:1rem;border:0.125rem solid #fff;box-sizing:border-box;box-shadow:0 0.3125rem 0.9375rem 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:0.5rem;width:100%;max-width:12.5rem;cursor:pointer}.component-outer--inline{max-width:100%}.component-selector{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:0.625rem;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 /**\n * If set to default, color palette have a fixed width.\n * If inline, color palette will have 100% width.\n */\n this.display = 'default';\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 }\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:0.5rem;width:100%;max-width:12.5rem}.component-outer--inline{max-width:100%}.component-selector{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:0.625rem;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:0.375rem 0.375rem;background-position:0 0, 0 0.1875rem, 0.1875rem -0.1875rem, -0.1875rem 0}.selector__pickr{transform:translateX(-50%);position:absolute;height:1rem;width:1rem;border-radius:1rem;border:0.125rem solid #fff;box-sizing:border-box;box-shadow:0 0.3125rem 0.9375rem 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 /**\n * The color that is being displayed. This currently *MUST* be in 6 digit hex format.\n */\n this.color = '#000000';\n /**\n\n /**\n * If default, color palette have a fixed width.\n * If inline, color palette will have 100% width.\n */\n this.display = 'default';\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 }\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","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"],"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","clone","EPSILON","numberAsPercent","number","Storage","storage","WeakMap","set","element","value","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","palettesToDisplay","maxPresetDisplay","recentColorsLabel","transparentButton","display","mode","hueChangeHandler","event","hasTransparentButton","currentOpacity","currentColor","detail","setHue","setColorAndEmit","colorPaletteChangeHandler","supportsOpacity","opacitySlider","setColor","handleOpacityInput","opacityValue","target","setPresetPalette","_b","_c","palette","filter","palettes","label","category","index","setColorFromPalette","color","emit","data","handleHexInput","hexValue","startsWith","hasOpacity","setTransparentButton","watchPalettes","buildPresetPalettes","componentWillLoad","setColorValue","D","componentDidRender","createToolTips","opacityChangeHandler","colorPickerAddRecentHandler","recentPalettes","getPresetPaletteGroup","paletteExists","addToPreset","updateColorPickerControls","renderPresetPalette","JSON","parse","stringify","paletteIndex","findIndex","unshift","colorPalette","hueSlider","setOpacitySlider","H","showOpacity","setOpacity","pHex","renderOpacityInput","class","flexBasis","onInput","Array","isArray","reduce","result","title","description","render","onColorPaletteChange","ref","el","onHueChange","maxWidth","gap","marginTop","maxlength","palettesContainer","presetCount","buildToolTip","backgroundColor","onClick","toolTip","querySelectorAll","forEach","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","sliderOffsetWidth","sliderOffsetHeight","sliderLeft","sliderTop","getPaletteBackgroundColor","handleChange","slider","background","setInternalColor","Promise","resolve","componentDidLoad","onChange","HueSlider","hueChange","_hue","container","OpacitySlider","opacityChange","handleOpacityChange","watchOpacity","setInternalOpacity","getOpacityAsPercent","currentRgb","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.01
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([[69],{4069:function(t,o,s){s.r(o),s.d(o,{rs_flint_popup_content:function(){return r}});var e=s(492);const r=class{constructor(t){(0,e.r)(this,t)}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:1.875rem;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=69.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"69.index.js","mappings":";;;;;;;;;;;2LAEA,MAEMA,EAAsB,MAC1BC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAEzBG,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,cAAmC,SAApBJ,KAAKK,WACpB,CAAC,SAASL,KAAKM,cAAyBC,IAAfP,KAAKM,SAC3B,IAAAJ,GAAE,OAAQ,SAGrBN,EAAoBY,MAbW","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-d4fae449.js';\n\nconst rsFlintPopupContentCss = \":host{width:100%;box-sizing:border-box;padding:1.875rem;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 }\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"],"names":["RsFlintPopupContent","constructor","hostRef","r","this","render","h","H","class","parentType","lines","undefined","style"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
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([[690],{2690:function(t,e,i){i.r(e),i.d(e,{rs_radio:function(){return o}});var r=i(492);const o=class{constructor(t){(0,r.r)(this,t),this.rsStyle=(0,r.c)(this,"rsStyle",7),this.radioGroup=null,this.checked=!1,this.disabled=!1,this.button="default",this.updateState=()=>{null!==this.radioGroup&&(this.checked=this.radioGroup.value===this.value)},this.onClick=t=>{if(!this.disabled){const e=t.target&&t.target.closest("rs-radio");if(null!==e)if(null!==this.radioGroup){const t=this.radioGroup.value,i=e.value;i!==t?this.radioGroup.value=i:this.radioGroup.allowDeselect&&(this.radioGroup.value=void 0)}else this.checked=!this.checked}}}checkedChange(){this.emitStyle()}disabledChanged(){this.emitStyle()}connectedCallback(){const t=this.radioGroup=this.el.closest("rs-radio-group");null!==t&&(this.updateState(),t.addEventListener("rsChange",this.updateState))}disconnectedCallback(){const t=this.radioGroup;null!==t&&(t.removeEventListener("rsChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}emitStyle(){this.rsStyle.emit({radio:!0,"radio-checked":this.checked,"interactive-disabled":this.disabled})}render(){const{disabled:t,checked:e,color:i}=this,o=["primary","secondary","secondary-variant","positive","positive-variant","white","light","grey-light","grey","black","heading","negative","neutral","highlight"].includes(i);return(0,r.h)(r.H,{role:"radio",class:{nativeElement:!0,"radio-checked":e,"radio-disabled":t,"radio-button":"vertical"===this.button||"horizontal"===this.button,"radio-button--vertical":"vertical"===this.button,"radio-button--horizontal":"horizontal"===this.button},style:{"justify-content":this.justifyContent},onClick:this.onClick,disabled:t},(0,r.h)("slot",{name:"start"}),(0,r.h)("div",{class:"rs-radio__circle-container"},(0,r.h)("div",{class:"rs-radio__circle-inner",style:{"background-color":o?`var(--rs-color-${i})`:i}})),(0,r.h)("slot",{name:"end"}))}get el(){return(0,r.g)(this)}static get watchers(){return{checked:["checkedChange"],disabled:["disabledChanged"]}}};o.style=':host{display:flex;align-items:center;box-sizing:border-box}.rs-radio__circle-container{display:flex;align-items:center;justify-content:center;width:23PX;height:23PX;box-shadow:inset 0 0 0 1PX var(--rs-color-grey-light);border-radius:50%;cursor:pointer;max-width:23PX;max-height:23PX;min-width:23PX;min-height:23PX;box-sizing:border-box}.rs-radio__circle-inner{background-color:var(--rs-color-black);width:13PX;height:13PX;border-radius:50%;transform:scale3d(0, 0, 0);transition:transform 0.2s ease-out;max-width:13PX;max-height:13PX;min-width:13PX;min-height:13PX}:host(.radio-checked) .rs-radio__circle-inner{transform:scale3d(1, 1, 1)}:host(.radio-disabled){cursor:not-allowed;opacity:0.5}::slotted([slot=\'start\']){margin-right:0.6875rem}::slotted([slot=\'end\']){margin-left:0.6875rem}:host([button="vertical"]) ::slotted([slot="start"]){margin-right:0;margin-bottom:0.6875rem}:host([button="vertical"]) ::slotted([slot="end"]){margin-left:0;margin-top:0.6875rem}:host(.radio-button.radio-checked){box-shadow:inset 0 0 0 0.125rem var(--rs-color-primary)}:host(.radio-button){display:flex;padding:0.9375rem;box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);border-radius:0.375rem;cursor:pointer;transition:box-shadow 0.4s ease-out}:host(.radio-button:hover){box-shadow:inset 0 0 0 0.125rem var(--rs-color-primary)}:host(.radio-button--vertical){flex-direction:column;align-items:center;justify-content:center;text-align:center}:host(.radio-button--horizontal){flex-direction:row;align-items:center;justify-content:start;text-align:left}'}}]);
13
+ //# sourceMappingURL=690.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"690.index.js","mappings":";;;;;;;;;;;8KAEA,MAEMA,EAAQ,MACZC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,SAAU,IAAAC,GAAYF,KAAM,UAAW,GAC5CA,KAAKG,WAAa,KAKlBH,KAAKI,SAAU,EAIfJ,KAAKK,UAAW,EAIhBL,KAAKM,OAAS,UAIdN,KAAKO,YAAc,KACO,OAApBP,KAAKG,aACPH,KAAKI,QAAUJ,KAAKG,WAAWK,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vB5B,QAAST,KAAKS,QAASJ,SAAUA,IAAY,IAAA2B,GAAE,OAAQ,CAAEM,KAAM,WAAY,IAAAN,GAAE,MAAO,CAAEG,MAAO,+BAAgC,IAAAH,GAAE,MAAO,CAAEG,MAAO,yBAA0BC,MAAO,CACjL,mBAAoBN,EAAoB,kBAAkBD,KAAWA,OAChE,IAAAG,GAAE,OAAQ,CAAEM,KAAM,SAE7B,SAAW,OAAO,IAAAC,GAAWvC,MAC7B,sBAAwB,MAAO,CAC7B,QAAW,CAAC,iBACZ,SAAY,CAAC,sBAGjBJ,EAAMwC,MAnHW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-radio.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\n\nconst radioCss = \":host{display:flex;align-items:center;box-sizing:border-box}.rs-radio__circle-container{display:flex;align-items:center;justify-content:center;width:23PX;height:23PX;box-shadow:inset 0 0 0 1PX var(--rs-color-grey-light);border-radius:50%;cursor:pointer;max-width:23PX;max-height:23PX;min-width:23PX;min-height:23PX;box-sizing:border-box}.rs-radio__circle-inner{background-color:var(--rs-color-black);width:13PX;height:13PX;border-radius:50%;transform:scale3d(0, 0, 0);transition:transform 0.2s ease-out;max-width:13PX;max-height:13PX;min-width:13PX;min-height:13PX}:host(.radio-checked) .rs-radio__circle-inner{transform:scale3d(1, 1, 1)}:host(.radio-disabled){cursor:not-allowed;opacity:0.5}::slotted([slot='start']){margin-right:0.6875rem}::slotted([slot='end']){margin-left:0.6875rem}:host([button=\\\"vertical\\\"]) ::slotted([slot=\\\"start\\\"]){margin-right:0;margin-bottom:0.6875rem}:host([button=\\\"vertical\\\"]) ::slotted([slot=\\\"end\\\"]){margin-left:0;margin-top:0.6875rem}:host(.radio-button.radio-checked){box-shadow:inset 0 0 0 0.125rem var(--rs-color-primary)}:host(.radio-button){display:flex;padding:0.9375rem;box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);border-radius:0.375rem;cursor:pointer;transition:box-shadow 0.4s ease-out}:host(.radio-button:hover){box-shadow:inset 0 0 0 0.125rem var(--rs-color-primary)}:host(.radio-button--vertical){flex-direction:column;align-items:center;justify-content:center;text-align:center}:host(.radio-button--horizontal){flex-direction:row;align-items:center;justify-content:start;text-align:left}\";\n\nconst Radio = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsStyle = createEvent(this, \"rsStyle\", 7);\n this.radioGroup = null;\n /**\n * Checks if the radio is checked or not.\n * Any changes on this property will cause the render function to be called again\n */\n this.checked = false;\n /**\n * If disabled, the user will not be able to interact with the radio.\n */\n this.disabled = false;\n /**\n * Changes the look of the radio component to a grey outline button\n */\n this.button = 'default';\n /**\n * Updates checked state\n */\n this.updateState = () => {\n if (this.radioGroup !== null) {\n this.checked = this.radioGroup.value === this.value;\n }\n };\n this.onClick = (ev) => {\n if (!this.disabled) {\n const selectedRadio = ev.target && ev.target.closest('rs-radio');\n if (selectedRadio !== null) {\n if (this.radioGroup !== null) {\n const currentValue = this.radioGroup.value;\n const newValue = selectedRadio.value;\n if (newValue !== currentValue) {\n this.radioGroup.value = newValue;\n }\n else if (this.radioGroup.allowDeselect) {\n this.radioGroup.value = undefined;\n }\n }\n else {\n this.checked = !this.checked;\n }\n }\n }\n };\n }\n /**\n * Watch for any changes on the `checked` property.\n */\n checkedChange() {\n this.emitStyle(); // checked change, emit change in styling\n }\n /**\n * Watch for any changes on the `disabled` property.\n */\n disabledChanged() {\n this.emitStyle(); // disabled changed, emit change in styling\n }\n /**\n * As soon as the component is attached to the DOM,\n * we make sure that a default radio is selected.\n */\n connectedCallback() {\n const radioGroup = this.radioGroup = this.el.closest('rs-radio-group');\n if (radioGroup !== null) {\n this.updateState();\n radioGroup.addEventListener('rsChange', this.updateState);\n }\n }\n disconnectedCallback() {\n const radioGroup = this.radioGroup;\n if (radioGroup !== null) {\n radioGroup.removeEventListener('rsChange', this.updateState);\n this.radioGroup = null;\n }\n }\n componentWillLoad() {\n this.emitStyle();\n }\n /**\n * Emits `rsStyle` event when the styles of the radio change\n */\n emitStyle() {\n this.rsStyle.emit({\n 'radio': true,\n 'radio-checked': this.checked,\n 'interactive-disabled': this.disabled\n });\n }\n render() {\n const { disabled, checked, color } = this;\n const predefinedColors = ['primary', 'secondary', 'secondary-variant', 'positive', 'positive-variant', 'white', 'light', 'grey-light', 'grey', 'black', 'heading', 'negative', 'neutral', 'highlight'];\n const colorIsPredefined = predefinedColors.includes(color);\n return (h(Host, { role: \"radio\", class: {\n 'nativeElement': true,\n 'radio-checked': checked,\n 'radio-disabled': disabled,\n 'radio-button': this.button === 'vertical' || this.button === 'horizontal',\n 'radio-button--vertical': this.button === 'vertical',\n 'radio-button--horizontal': this.button === 'horizontal'\n }, style: {\n 'justify-content': this.justifyContent\n }, onClick: this.onClick, disabled: disabled }, h(\"slot\", { name: \"start\" }), h(\"div\", { class: \"rs-radio__circle-container\" }, h(\"div\", { class: \"rs-radio__circle-inner\", style: {\n 'background-color': colorIsPredefined ? `var(--rs-color-${color})` : color\n } })), h(\"slot\", { name: \"end\" })));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"checked\": [\"checkedChange\"],\n \"disabled\": [\"disabledChanged\"]\n }; }\n};\nRadio.style = radioCss;\n\nexport { Radio as rs_radio };\n"],"names":["Radio","constructor","hostRef","r","this","rsStyle","c","radioGroup","checked","disabled","button","updateState","value","onClick","ev","selectedRadio","target","closest","currentValue","newValue","allowDeselect","undefined","checkedChange","emitStyle","disabledChanged","connectedCallback","el","addEventListener","disconnectedCallback","removeEventListener","componentWillLoad","emit","render","color","colorIsPredefined","includes","h","H","role","class","style","justifyContent","name","g"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
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([[694],{694:function(e,r,s){s.r(r),s.d(r,{rs_toggle_item:function(){return i}});var t=s(492);const i=class{constructor(e){(0,t.r)(this,e),this.active=!1}render(){return(0,t.h)(t.H,{class:{active:this.active}},(0,t.h)("slot",null))}get el(){return(0,t.g)(this)}};i.style=":host{box-sizing:border-box;display:block;padding:0.4375rem;text-align:center;z-index:2;cursor:pointer;color:var(--rs-color-secondary);font-family:Soleil, sans-serif;font-size:0.875rem;user-select:none;flex-grow:1;flex-shrink:1;flex-basis:0;line-height:initial}:host(.active){cursor:default}"}}]);
13
+ //# sourceMappingURL=694.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"694.index.js","mappings":";;;;;;;;;;;mLAEA,MAEMA,EAAa,MACjBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,QAAS,EAEhBC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,OAAUL,KAAKC,UACZ,IAAAE,GAAE,OAAQ,OAEnB,SAAW,OAAO,IAAAG,GAAWN,QAE/BJ,EAAWW,MAjBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-toggle-item.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host, g as getElement } from './index-d4fae449.js';\n\nconst toggleItemCss = \":host{box-sizing:border-box;display:block;padding:0.4375rem;text-align:center;z-index:2;cursor:pointer;color:var(--rs-color-secondary);font-family:Soleil, sans-serif;font-size:0.875rem;user-select:none;flex-grow:1;flex-shrink:1;flex-basis:0;line-height:initial}:host(.active){cursor:default}\";\n\nconst ToggleItem = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * If true, this item will be marked as active in the toggle\n */\n this.active = false;\n }\n render() {\n return (h(Host, { class: {\n 'active': this.active\n } }, h(\"slot\", null)));\n }\n get el() { return getElement(this); }\n};\nToggleItem.style = toggleItemCss;\n\nexport { ToggleItem as rs_toggle_item };\n"],"names":["ToggleItem","constructor","hostRef","r","this","active","render","h","H","class","g","style"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
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([[698],{2698:function(e,n,t){t.r(n),t.d(n,{rs_overline:function(){return r}});var s=t(492);const r=class{constructor(e){(0,s.r)(this,e)}render(){return(0,s.h)(s.H,null,(0,s.h)("slot",null))}};r.style=":host{display:block;font-family:soleil, sans-serif;font-weight:300;font-style:normal;line-height:1.2em;font-size:0.75rem;letter-spacing:0.5px;text-transform:uppercase}"}}]);
13
+ //# sourceMappingURL=698.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"698.index.js","mappings":";;;;;;;;;;;iLAEA,MAEMA,EAAW,MACfC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAEzBG,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,OAAQ,SAGpCN,EAASQ,MAVW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-overline.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst overlineCss = \":host{display:block;font-family:soleil, sans-serif;font-weight:300;font-style:normal;line-height:1.2em;font-size:0.75rem;letter-spacing:0.5px;text-transform:uppercase}\";\n\nconst Overline = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n render() {\n return (h(Host, null, h(\"slot\", null)));\n }\n};\nOverline.style = overlineCss;\n\nexport { Overline as rs_overline };\n"],"names":["Overline","constructor","hostRef","r","this","render","h","H","style"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
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([[716],{5716:function(o,s,t){t.r(s),t.d(s,{rs_content:function(){return i}});var e=t(492);const i=class{constructor(o){(0,e.r)(this,o),this.body=1,this.color="secondary",this.display="block"}render(){return(0,e.h)(e.H,{class:`body__${this.body}`,style:{color:void 0!==this.color?`var(--rs-color-${this.color})`:"",display:this.display}},(0,e.h)("slot",null))}};i.style=":host{display:block;font-family:soleil, sans-serif;font-weight:normal;font-style:normal;line-height:1.4em;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host(.body__1){font-size:1rem}:host(.body__2){font-size:0.875rem}"}}]);
13
+ //# sourceMappingURL=716.index.js.map