@rocketspark/domain-checker 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/.nvmrc +1 -0
  2. package/build/141.index.js +13 -0
  3. package/build/141.index.js.map +1 -0
  4. package/build/147.index.js +13 -0
  5. package/build/147.index.js.map +1 -0
  6. package/build/167.index.js +13 -0
  7. package/build/167.index.js.map +1 -0
  8. package/build/17.index.js +13 -0
  9. package/build/17.index.js.map +1 -0
  10. package/build/194.index.js +13 -0
  11. package/build/194.index.js.map +1 -0
  12. package/build/208.index.js +13 -0
  13. package/build/208.index.js.map +1 -0
  14. package/build/237.index.js +13 -0
  15. package/build/237.index.js.map +1 -0
  16. package/build/245.index.js +13 -0
  17. package/build/245.index.js.map +1 -0
  18. package/build/278.index.js +13 -0
  19. package/build/278.index.js.map +1 -0
  20. package/build/386.index.js +13 -0
  21. package/build/386.index.js.map +1 -0
  22. package/build/404.index.js +13 -0
  23. package/build/404.index.js.map +1 -0
  24. package/build/420.index.js +13 -0
  25. package/build/420.index.js.map +1 -0
  26. package/build/514.index.js +13 -0
  27. package/build/514.index.js.map +1 -0
  28. package/build/524.index.js +13 -0
  29. package/build/524.index.js.map +1 -0
  30. package/build/540.index.js +13 -0
  31. package/build/540.index.js.map +1 -0
  32. package/build/542.index.js +13 -0
  33. package/build/542.index.js.map +1 -0
  34. package/build/551.index.js +13 -0
  35. package/build/551.index.js.map +1 -0
  36. package/build/567.index.js +13 -0
  37. package/build/567.index.js.map +1 -0
  38. package/build/571.index.js +13 -0
  39. package/build/571.index.js.map +1 -0
  40. package/build/{903.index.js → 572.index.js} +3 -3
  41. package/build/572.index.js.map +1 -0
  42. package/build/584.index.js +13 -0
  43. package/build/584.index.js.map +1 -0
  44. package/build/588.index.js +13 -0
  45. package/build/588.index.js.map +1 -0
  46. package/build/598.index.js +13 -0
  47. package/build/598.index.js.map +1 -0
  48. package/build/60.index.js +13 -0
  49. package/build/60.index.js.map +1 -0
  50. package/build/616.index.js +13 -0
  51. package/build/616.index.js.map +1 -0
  52. package/build/631.index.js +13 -0
  53. package/build/631.index.js.map +1 -0
  54. package/build/643.index.js +13 -0
  55. package/build/643.index.js.map +1 -0
  56. package/build/{190.index.js → 654.index.js} +3 -3
  57. package/build/654.index.js.map +1 -0
  58. package/build/66.index.js +2 -2
  59. package/build/66.index.js.map +1 -1
  60. package/build/697.index.js +13 -0
  61. package/build/697.index.js.map +1 -0
  62. package/build/714.index.js +13 -0
  63. package/build/714.index.js.map +1 -0
  64. package/build/795.index.js +13 -0
  65. package/build/795.index.js.map +1 -0
  66. package/build/8.index.js +13 -0
  67. package/build/8.index.js.map +1 -0
  68. package/build/808.index.js +13 -0
  69. package/build/808.index.js.map +1 -0
  70. package/build/810.index.js +13 -0
  71. package/build/810.index.js.map +1 -0
  72. package/build/833.index.js +13 -0
  73. package/build/833.index.js.map +1 -0
  74. package/build/835.index.js +13 -0
  75. package/build/835.index.js.map +1 -0
  76. package/build/847.index.js +13 -0
  77. package/build/847.index.js.map +1 -0
  78. package/build/853.index.js +13 -0
  79. package/build/853.index.js.map +1 -0
  80. package/build/861.index.js +13 -0
  81. package/build/861.index.js.map +1 -0
  82. package/build/871.index.js +13 -0
  83. package/build/871.index.js.map +1 -0
  84. package/build/890.index.js +13 -0
  85. package/build/890.index.js.map +1 -0
  86. package/build/899.index.js +13 -0
  87. package/build/899.index.js.map +1 -0
  88. package/build/{698.index.js → 938.index.js} +3 -3
  89. package/build/938.index.js.map +1 -0
  90. package/build/964.index.js +13 -0
  91. package/build/964.index.js.map +1 -0
  92. package/build/970.index.js +13 -0
  93. package/build/970.index.js.map +1 -0
  94. package/build/993.index.js +13 -0
  95. package/build/993.index.js.map +1 -0
  96. package/build/css/index.css +3 -2
  97. package/build/css/index.css.map +1 -1
  98. package/build/index.js +3 -2
  99. package/build/index.js.map +1 -1
  100. package/build/types/Components/SearchAlternativeRow.d.ts +3 -3
  101. package/build/types/Components/SearchStatus.d.ts +1 -1
  102. package/build/types/Helpers/Fetch.d.ts +3 -0
  103. package/build/types/Interfaces/class-names.d.ts +1 -0
  104. package/build/types/Interfaces/locale.d.ts +1 -1
  105. package/package.json +5 -8
  106. package/tsconfig.json +3 -3
  107. package/webpack.config.demo.js +10 -8
  108. package/build/130.index.js +0 -13
  109. package/build/130.index.js.map +0 -1
  110. package/build/145.index.js +0 -13
  111. package/build/145.index.js.map +0 -1
  112. package/build/171.index.js +0 -13
  113. package/build/171.index.js.map +0 -1
  114. package/build/190.index.js.map +0 -1
  115. package/build/228.index.js +0 -13
  116. package/build/228.index.js.map +0 -1
  117. package/build/23.index.js +0 -13
  118. package/build/23.index.js.map +0 -1
  119. package/build/253.index.js +0 -13
  120. package/build/253.index.js.map +0 -1
  121. package/build/269.index.js +0 -13
  122. package/build/269.index.js.map +0 -1
  123. package/build/307.index.js +0 -13
  124. package/build/307.index.js.map +0 -1
  125. package/build/314.index.js +0 -13
  126. package/build/314.index.js.map +0 -1
  127. package/build/330.index.js +0 -13
  128. package/build/330.index.js.map +0 -1
  129. package/build/346.index.js +0 -13
  130. package/build/346.index.js.map +0 -1
  131. package/build/385.index.js +0 -13
  132. package/build/385.index.js.map +0 -1
  133. package/build/431.index.js +0 -13
  134. package/build/431.index.js.map +0 -1
  135. package/build/447.index.js +0 -13
  136. package/build/447.index.js.map +0 -1
  137. package/build/482.index.js +0 -13
  138. package/build/482.index.js.map +0 -1
  139. package/build/525.index.js +0 -13
  140. package/build/525.index.js.map +0 -1
  141. package/build/536.index.js +0 -13
  142. package/build/536.index.js.map +0 -1
  143. package/build/548.index.js +0 -13
  144. package/build/548.index.js.map +0 -1
  145. package/build/565.index.js +0 -13
  146. package/build/565.index.js.map +0 -1
  147. package/build/577.index.js +0 -13
  148. package/build/577.index.js.map +0 -1
  149. package/build/655.index.js +0 -13
  150. package/build/655.index.js.map +0 -1
  151. package/build/669.index.js +0 -13
  152. package/build/669.index.js.map +0 -1
  153. package/build/677.index.js +0 -13
  154. package/build/677.index.js.map +0 -1
  155. package/build/678.index.js +0 -13
  156. package/build/678.index.js.map +0 -1
  157. package/build/69.index.js +0 -13
  158. package/build/69.index.js.map +0 -1
  159. package/build/690.index.js +0 -13
  160. package/build/690.index.js.map +0 -1
  161. package/build/694.index.js +0 -13
  162. package/build/694.index.js.map +0 -1
  163. package/build/698.index.js.map +0 -1
  164. package/build/716.index.js +0 -13
  165. package/build/716.index.js.map +0 -1
  166. package/build/717.index.js +0 -13
  167. package/build/717.index.js.map +0 -1
  168. package/build/724.index.js +0 -13
  169. package/build/724.index.js.map +0 -1
  170. package/build/738.index.js +0 -13
  171. package/build/738.index.js.map +0 -1
  172. package/build/799.index.js +0 -13
  173. package/build/799.index.js.map +0 -1
  174. package/build/82.index.js +0 -13
  175. package/build/82.index.js.map +0 -1
  176. package/build/858.index.js +0 -13
  177. package/build/858.index.js.map +0 -1
  178. package/build/882.index.js +0 -13
  179. package/build/882.index.js.map +0 -1
  180. package/build/895.index.js +0 -13
  181. package/build/895.index.js.map +0 -1
  182. package/build/903.index.js.map +0 -1
  183. package/build/911.index.js +0 -13
  184. package/build/911.index.js.map +0 -1
  185. package/build/912.index.js +0 -13
  186. package/build/912.index.js.map +0 -1
  187. package/build/927.index.js +0 -13
  188. package/build/927.index.js.map +0 -1
  189. package/build/953.index.js +0 -13
  190. package/build/953.index.js.map +0 -1
  191. package/build/955.index.js +0 -13
  192. package/build/955.index.js.map +0 -1
  193. package/build/994.index.js +0 -13
  194. package/build/994.index.js.map +0 -1
@@ -1,13 +0,0 @@
1
- /*!
2
- *
3
- * @rocketspark/domain-checker v0.0.20
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([[799],{5799:function(t,e,n){n.r(e),n.d(e,{rs_card_header:function(){return o}});var s=n(492);const o=class{constructor(t){(0,s.r)(this,t),this.flex=!1}render(){return(0,s.h)(s.H,null,(0,s.h)("slot",{name:"start"}),(0,s.h)("slot",null),(0,s.h)("slot",{name:"end"}))}};o.style=":host{display:block;width:100%;padding:0.875rem;box-sizing:border-box;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;color:var(--rs-color-heading);position:relative}:host([flex]){display:flex;flex-flow:row wrap;align-items:center}::slotted([slot='start']){margin-right:1rem}::slotted([slot='end']){margin-left:1rem}:host([align-content='flex-start']){justify-content:flex-start}:host([align-content='flex-end']){justify-content:flex-end}:host([align-content='space-around']){justify-content:space-around}:host([align-content='space-between']){justify-content:space-between}:host([align-content='space-evenly']){justify-content:space-evenly}:host([align-content='space-around']) ::slotted([slot='start']),:host([align-content='space-around']) ::slotted([slot='end']),:host([align-content='space-between']) ::slotted([slot='start']),:host([align-content='space-between']) ::slotted([slot='end']),:host([align-content='space-evenly']) ::slotted([slot='start']),:host([align-content='space-evenly']) ::slotted([slot='end']){margin:0}"}}]);
13
- //# sourceMappingURL=799.index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"799.index.js","mappings":";;;;;;;;;;;oLAEA,MAEMA,EAAa,MACjBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,MAAO,EAKdC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,OAAQ,CAAEE,KAAM,WAAY,IAAAF,GAAE,OAAQ,OAAO,IAAAA,GAAE,OAAQ,CAAEE,KAAM,WAG3FT,EAAWU,MAjBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-card-header.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst cardHeaderCss = \":host{display:block;width:100%;padding:0.875rem;box-sizing:border-box;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;color:var(--rs-color-heading);position:relative}:host([flex]){display:flex;flex-flow:row wrap;align-items:center}::slotted([slot='start']){margin-right:1rem}::slotted([slot='end']){margin-left:1rem}:host([align-content='flex-start']){justify-content:flex-start}:host([align-content='flex-end']){justify-content:flex-end}:host([align-content='space-around']){justify-content:space-around}:host([align-content='space-between']){justify-content:space-between}:host([align-content='space-evenly']){justify-content:space-evenly}:host([align-content='space-around']) ::slotted([slot='start']),:host([align-content='space-around']) ::slotted([slot='end']),:host([align-content='space-between']) ::slotted([slot='start']),:host([align-content='space-between']) ::slotted([slot='end']),:host([align-content='space-evenly']) ::slotted([slot='start']),:host([align-content='space-evenly']) ::slotted([slot='end']){margin:0}\";\n\nconst CardHeader = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Displays items inside the component in one row\n */\n this.flex = false;\n }\n /**\n * This renders this component\n */\n render() {\n return (h(Host, null, h(\"slot\", { name: \"start\" }), h(\"slot\", null), h(\"slot\", { name: \"end\" })));\n }\n};\nCardHeader.style = cardHeaderCss;\n\nexport { CardHeader as rs_card_header };\n"],"names":["CardHeader","constructor","hostRef","r","this","flex","render","h","H","name","style"],"sourceRoot":""}
package/build/82.index.js DELETED
@@ -1,13 +0,0 @@
1
- /*!
2
- *
3
- * @rocketspark/domain-checker v0.0.20
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([[82],{1034:function(t,r,o){o.d(r,{D:function(){return m},H:function(){return f},i:function(){return g},p:function(){return p}});const{min:e,max:i,floor:s,round:n}=Math;function a(t,r,o){const e=t/360*6,i=r/100,n=o/100,a=s(e),l=e-a,h=n*(1-i),c=n*(1-l*i),d=n*(1-(1-l)*i),u=a%6;return[255*[n,c,h,h,d,n][u],255*[d,n,n,c,h,h][u],255*[h,h,d,n,n,c][u]]}function l(t,r,o){return a(t,r,o).map((t=>n(t).toString(16).padStart(2,"0")))}function h(t,r,o){let e=r/100;const i=o/100,s=(2-e)*i/2;return 0!==s&&(e=1===s?0:s<.5?e*i/(2*s):e*i/(2-2*s)),[t,100*e,100*s]}function c(t,r,o){const s=t/255,n=r/255,a=o/255,l=e(s,n,a),h=i(s,n,a),c=h-l;let d,u;if(0===c)d=0,u=0;else{u=c/h;const t=((h-s)/6+c/2)/c,r=((h-n)/6+c/2)/c,o=((h-a)/6+c/2)/c;s===h?d=o-r:n===h?d=1/3+t-o:a===h&&(d=2/3+r-t),d<0?d+=1:d>1&&(d-=1)}return[360*d,100*u,100*h]}function d(t,r,o,i){const s=r/100,n=o/100,a=i/100;return[...c(255*(1-e(1,t/100*(1-a)+a)),255*(1-e(1,s*(1-a)+a)),255*(1-e(1,n*(1-a)+a)))]}function u(t,r,o){let e=r/100;const i=o/100;e*=i<.5?i:1-i;const s=2*e/(i+e)*100,n=100*(i+e);return[t,Number.isNaN(s)?0:s,n]}function p(t="#000"){"transparent"===t.toLowerCase()&&(t="#00000000");const r=null!==t.match(/^[a-zA-Z]+$/)?function(t){if(void 0===t)return"#000";if("black"===t.toLowerCase())return"#000";const r=document.createElement("canvas").getContext("2d");return null===r?null:(r.fillStyle=t,"#000"===r.fillStyle?null:r.fillStyle)}(t):t,{type:o,match:e}=function(t){const r=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((([,r])=>r.exec(t)));if(void 0!==r){const o=r[1].exec(t);return{type:r[0],regex:r[1],match:o}}return{type:null}}(r),i=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));if(null===o||null===e)return{values:null,type:"hexa"};const s=t=>t>=0&&t<=1&&(t=>!!e[2]==("number"==typeof t))(t);if("cmyk"===o){const[,t,r,s,n]=i(e);if(t&&r&&s&&n&&t<=100&&r<=100&&s<=100&&n<=100)return{values:d(t,r,s,n),type:o}}if("rgba"===o){const[,,,t,r,n,a]=i(e);if(void 0!==t&&void 0!==r&&void 0!==n&&void 0!==a&&t<=255&&r<=255&&n<=255&&s(a))return{values:[...c(t,r,n),a],alpha:a,type:o}}if("hexa"===o){let[,t]=e;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const r=t.substring(0,6);let i=t.substring(6);i=i?parseInt(i,16)/255:void 0;const s=function(t){const r=t.match(/.{2}/g);if(null!==r){const[t,o,e]=r.map((t=>Number.parseInt(t,16)));return c(t,o,e)}return null}(r);if(void 0!==s)return{values:[...s,i],alpha:i,type:o}}if("hsla"===o){const[,,,t,r,n,a]=i(e);if(t&&r&&n&&a&&t<=360&&r<=100&&n<=100&&a>=0&&a<=1&&s(a))return{values:[...u(t,r,n),a],alpha:a,type:o}}if("hsva"===o){const[,,,t,r,n,a]=i(e);if(t&&r&&n&&a&&t<=360&&r<=100&&n<=100&&a>=0&&a<=1&&s(a))return{values:[t,r,n,a],alpha:a,type:o}}return{values:null,type:"hexa"}}const g=t=>void 0!==t&&t.match(/^#?[\dA-Fa-f]{6,8}$/i),m="#7CA1FF";class f{constructor(t=0,r=0,o=0,e=1){this.mapper=(t,r)=>(o=-1)=>r(o>=0?t.map((t=>Number(t.toFixed(o)))):t),this.h=t,this.s=r,this.v=o,this.a=e>1?e/100:e}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,r,o){const i=a(t,r,o),s=i[0]/255,n=i[1]/255,l=i[2]/255,h=e(1-s,1-n,1-l);return[100*(1===h?0:(1-s-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),r=this.a>=1?"":Number((255*this.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return r&&t.push(r),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))+"%"}}},9082:function(t,r,o){o.r(r),o.d(r,{rs_color_swatch:function(){return s}});var e=o(492),i=o(1034);const s=class{constructor(t){(0,e.r)(this,t),this.close=(0,e.c)(this,"close",7),this.isDirty=!1,this.label="",this.color=i.D,this.opacity=!1,this.alignment="center",this.transparentButton=!1,this.mode="default",this.isNearBottomOfViewport=()=>window.innerHeight-this.el.getBoundingClientRect().bottom<200,this.isTopSpaceEnoughForColorPicker=()=>600<this.el.getBoundingClientRect().y,this.updateColorPickerPosition=()=>{this.isNearBottomOfViewport()&&this.isTopSpaceEnoughForColorPicker()?this.colorPicker.position="top":this.colorPicker.position="default"},this.toggleColorPicker=()=>{this.updateColorPickerPosition(),this.colorPicker.showPicker?(this.closeColorPicker(),document.removeEventListener("click",this.listenToBody.bind(this))):(this.colorPicker.show(),document.addEventListener("click",this.listenToBody.bind(this)))},this.alignmentClass=()=>"center"===this.alignment?{left:"50%",transform:"translateX(-50%)"}:{}}updateColor(t){s.allowedColorString(t)&&(this.setInternalColor(t),this.colorPicker.setColor(this.internalColor.toHEXA().toString()))}async setColor(t){s.allowedColorString(t)&&(this.setInternalColor(t),await this.colorPicker.setColor(this.internalColor.toHEXA().toString()))}async getColor(){return this.internalColor}listenToBody(t){!t.composedPath().includes(this.el)&&this.colorPicker.showPicker&&this.closeColorPicker()}closeColorPicker(){this.close.emit({color:this.color,isDirty:this.isDirty}),this.colorPicker.hide(),this.isDirty=!1}rsColorChangeHandler(t){this.setInternalColor(t.detail.value),this.isDirty=!0}swatchBackgroundColor(){return`linear-gradient(135deg, ${this.internalColor.toRGB().toString()} 50%, ${this.internalColor.toRGBModern().toString()} 50%)`}componentWillLoad(){this.setInternalColor(""===this.color?i.D:this.color)}setInternalColor(t){if("string"==typeof t)t=s.allowedColorString(t)?t:i.D,this.internalColor=new i.H(...(0,i.p)(t).values);else{if(!(t instanceof i.H))throw new Error("A valid color string or HSVaColor object is required");this.internalColor=t}this.internalOpacity=this.internalColor.alpha}render(){return(0,e.h)(e.H,{style:{display:""===this.label?"inline-block":null,width:this.getWidth()}},(0,e.h)("div",{class:"rs-color-swatch__inner",onClick:this.toggleColorPicker},(0,e.h)("div",{class:{"rs-color-swatch__container":!0,"rs-color-swatch__container--transparent":0===this.internalOpacity}},(0,e.h)("div",{class:{"rs-color-swatch__swatch":!0,"rs-color-swatch__swatch--solid-half":!0},style:{background:this.swatchBackgroundColor()}})),""!==this.label?(0,e.h)("rs-caption",{style:{display:""!==this.label?"block":null},class:"rs-color-swatch__label",color:"secondary"},""!==this.label?this.label:""):""),(0,e.h)("rs-color-picker",{class:"rs-color-swatch__color-picker",mode:this.mode,style:this.alignmentClass(),color:this.internalColor.toHEXA().toString().toLowerCase(),palettes:this.palettes,opacity:this.opacity,transparentButton:this.transparentButton,ref:t=>this.colorPicker=t}))}getWidth(){return void 0!==this.width?this.width:""!==this.label?"100%":null}static allowedColorString(t){return(0,i.i)(t)||"transparent"===t.toLowerCase()}get el(){return(0,e.g)(this)}static get watchers(){return{color:["updateColor"]}}};s.style=':host{display:block}.rs-color-swatch__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-select-border);border-radius:0.25rem;padding:0.375rem;cursor:pointer;min-width:2rem;box-sizing:border-box;display:flex;align-items:center;justify-content:start}.rs-color-swatch__container{width:1.25rem;height:1.25rem;box-sizing:border-box;position:relative;overflow:hidden;border-radius:50%}.rs-color-swatch__container::before{content:"";position:absolute;width:1.125rem;height:1.125rem;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;border-radius:50%;top:1px;left:1px}.rs-color-swatch__container::after{content:"";position:absolute;border-top:0.125rem solid red;width:1.125rem;transform:rotate(-45deg);transform-origin:center;top:0.5625rem;left:1px;opacity:0}.rs-color-swatch__container--transparent::after{opacity:1}.rs-color-swatch__swatch{display:block;width:1.25rem;height:1.25rem;min-width:0.625rem;box-sizing:border-box;position:relative;overflow:hidden;border-radius:50%;border:1px solid rgb(223 223 224)}.rs-color-swatch__container--transparent .rs-color-swatch__swatch{background:#fff !important}.rs-color-swatch__label{display:none;margin-left:0.4375rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}'}}]);
13
- //# sourceMappingURL=82.index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"82.index.js","mappings":";;;;;;;;;;;uNAAA,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,EAD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,yBAA0BC,QAAS9E,KAAK6C,oBAAqB,IAAA9I,GAAE,MAAO,CAAE8K,MAAO,CACpG,8BAA8B,EAC9B,0CAAoE,IAAzB7E,KAAKyE,mBAC7C,IAAA1K,GAAE,MAAO,CAAE8K,MAAO,CACrB,2BAA2B,EAC3B,uCAAuC,GACtCF,MAAO,CACRI,WAAY/E,KAAKqE,4BACG,KAAfrE,KAAK4B,OACZ,IAAA7H,GAAE,aAAc,CAAE4K,MAAO,CACrB,QAA0B,KAAf3E,KAAK4B,MAAe,QAAU,MACxCiD,MAAO,yBAA0BhD,MAAO,aAA8B,KAAf7B,KAAK4B,MAAe5B,KAAK4B,MAAQ,IAC3F,KAAK,IAAA7H,GAAE,kBAAmB,CAAE8K,MAAO,gCAAiC3C,KAAMlC,KAAKkC,KAAMyC,MAAO3E,KAAKqD,iBAAkBxB,MAAO7B,KAAK4D,cAAc1C,SAASpG,WAAWkC,cAAegI,SAAUhF,KAAKgF,SAAUjD,QAAS/B,KAAK+B,QAASE,kBAAmBjC,KAAKiC,kBAAmBgD,IAAK3C,GAAMtC,KAAK2C,YAAcL,KAE/SsC,WACE,YAAmBxH,IAAf4C,KAAKkF,MACAlF,KAAKkF,MAEK,KAAflF,KAAK4B,MACA,OAEF,KAET,0BAA0BC,GACxB,OAAO,IAAAxH,GAAWwH,IAAkC,gBAAxBA,EAAM7E,cAEpC,SAAW,OAAO,IAAAzB,GAAWyE,MAC7B,sBAAwB,MAAO,CAC7B,MAAS,CAAC,kBAGdwB,EAAcmD,MAhLW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/HSVaColor-82f956e7.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-color-swatch.entry.js"],"sourcesContent":["const { min, max, floor, round } = Math;\nfunction standardizeColor(name) {\n if (name === undefined) {\n return '#000';\n }\n if (name.toLowerCase() === 'black') {\n return '#000';\n }\n const ctx = document.createElement('canvas').getContext('2d');\n if (ctx === null) {\n return null;\n }\n ctx.fillStyle = name;\n return ctx.fillStyle === '#000' ? null : ctx.fillStyle;\n}\nfunction hsvToRgb(h, s, v) {\n const hLocal = (h / 360) * 6;\n const sLocal = s / 100;\n const vLocal = v / 100;\n const i = floor(hLocal);\n const f = hLocal - i;\n const p = vLocal * (1 - sLocal);\n const q = vLocal * (1 - f * sLocal);\n const t = vLocal * (1 - (1 - f) * sLocal);\n const mod = i % 6;\n const r = [vLocal, q, p, p, t, vLocal][mod];\n const g = [t, vLocal, vLocal, q, p, p][mod];\n const b = [p, p, t, vLocal, vLocal, q][mod];\n return [r * 255, g * 255, b * 255];\n}\nfunction hsvToHex(h, s, v) {\n return hsvToRgb(h, s, v).map(rgb => round(rgb)\n .toString(16)\n .padStart(2, '0'));\n}\nfunction hsvToCmyk(h, s, v) {\n const rgb = hsvToRgb(h, s, v);\n const r = rgb[0] / 255;\n const g = rgb[1] / 255;\n const b = rgb[2] / 255;\n const k = min(1 - r, 1 - g, 1 - b);\n const c = k === 1 ? 0 : (1 - r - k) / (1 - k);\n const m = k === 1 ? 0 : (1 - g - k) / (1 - k);\n const y = k === 1 ? 0 : (1 - b - k) / (1 - k);\n return [c * 100, m * 100, y * 100, k * 100];\n}\nfunction hsvToHsl(h, s, v) {\n let sLocal = s / 100;\n const vLocal = v / 100;\n const l = ((2 - sLocal) * vLocal) / 2;\n if (l !== 0) {\n if (l === 1) {\n sLocal = 0;\n }\n else if (l < 0.5) {\n sLocal = (sLocal * vLocal) / (l * 2);\n }\n else {\n sLocal = (sLocal * vLocal) / (2 - l * 2);\n }\n }\n return [h, sLocal * 100, l * 100];\n}\nfunction rgbToHsv(red, green, blue) {\n const r = red / 255;\n const g = green / 255;\n const b = blue / 255;\n const minVal = min(r, g, b);\n const maxVal = max(r, g, b);\n const delta = maxVal - minVal;\n let h;\n let s;\n const v = maxVal;\n if (delta === 0) {\n h = 0;\n s = 0;\n }\n else {\n s = delta / maxVal;\n const dr = ((maxVal - r) / 6 + delta / 2) / delta;\n const dg = ((maxVal - g) / 6 + delta / 2) / delta;\n const db = ((maxVal - b) / 6 + delta / 2) / delta;\n if (r === maxVal) {\n h = db - dg;\n }\n else if (g === maxVal) {\n h = 1 / 3 + dr - db;\n }\n else if (b === maxVal) {\n h = 2 / 3 + dg - dr;\n }\n if (h < 0) {\n h += 1;\n }\n else if (h > 1) {\n h -= 1;\n }\n }\n return [h * 360, s * 100, v * 100];\n}\nfunction cmykToHsv(cyan, magenta, yellow, key) {\n const c = cyan / 100;\n const m = magenta / 100;\n const y = yellow / 100;\n const k = key / 100;\n const r = (1 - min(1, c * (1 - k) + k)) * 255;\n const g = (1 - min(1, m * (1 - k) + k)) * 255;\n const b = (1 - min(1, y * (1 - k) + k)) * 255;\n return [...rgbToHsv(r, g, b)];\n}\nfunction hslToHsv(hue, saturation, lightness) {\n let s = saturation / 100;\n const l = lightness / 100;\n s *= l < 0.5 ? l : 1 - l;\n const ns = ((2 * s) / (l + s)) * 100;\n const v = (l + s) * 100;\n return [hue, Number.isNaN(ns) ? 0 : ns, v];\n}\nfunction hexToHsv(hex) {\n const hexRgb = hex.match(/.{2}/g);\n if (hexRgb !== null) {\n const [red, green, blue] = hexRgb.map(v => Number.parseInt(v, 16));\n return rgbToHsv(red, green, blue);\n }\n return null;\n}\nfunction getColorType(colorString) {\n // Regular expressions to match different types of color representation\n const regex = {\n cmyk: /^cmyk[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)/i,\n rgba: /^((rgba)|rgb)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hsla: /^((hsla)|hsl)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hsva: /^((hsva)|hsv)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hexa: /^#?(([\\dA-Fa-f]{3,4})|([\\dA-Fa-f]{6})|([\\dA-Fa-f]{8}))$/i,\n };\n const colorType = Object.entries(regex).find(([, colorRegex]) => colorRegex.exec(colorString));\n if (colorType !== undefined) {\n const match = colorType[1].exec(colorString);\n return {\n type: colorType[0],\n regex: colorType[1],\n match,\n };\n }\n return {\n type: null,\n };\n}\n/**\n * Try's to parse a string which represents a color to an HSV array.\n * Current supported types are cmyk, rgba, hsla and hexadecimal.\n */\nfunction parseToHSVA(colorString = '#000') {\n // Check if string is a color-name\n if (colorString.toLowerCase() === 'transparent') {\n colorString = '#00000000';\n }\n const string = colorString.match(/^[a-zA-Z]+$/) !== null ? standardizeColor(colorString) : colorString;\n const { type, match } = getColorType(string);\n /**\n * Takes an Array of any type, convert strings which represents\n * a number to a number an anything else to undefined.\n * */\n const numarize = (array) => array.map(v => (/^(|\\d+)\\.\\d+|\\d+$/.test(v) ? Number(v) : undefined));\n if (type === null || match === null) {\n return { values: null, type: 'hexa' };\n }\n // Match[2] does only contain a truthy value if rgba, hsla, or hsla got matched\n const hasValidAlphaChannel = (a) => !!match[2] === (typeof a === 'number');\n const isValidAlpha = (a) => a >= 0 && a <= 1 && hasValidAlphaChannel(a);\n if (type === 'cmyk') {\n const [, c, m, y, k] = numarize(match);\n if (c && m && y && k && c <= 100 && m <= 100 && y <= 100 && k <= 100) {\n return { values: cmykToHsv(c, m, y, k), type };\n }\n }\n if (type === 'rgba') {\n const [, , , r, g, b, a] = numarize(match);\n if (r !== undefined && g !== undefined && b !== undefined && a !== undefined && r <= 255 && g <= 255 && b <= 255 && isValidAlpha(a)) {\n return { values: [...rgbToHsv(r, g, b), a], alpha: a, type };\n }\n }\n if (type === 'hexa') {\n let [, hex] = match;\n if (hex.length === 4 || hex.length === 3) {\n hex = hex\n .split('')\n .map(v => v + v)\n .join('');\n }\n const raw = hex.substring(0, 6);\n let a = hex.substring(6);\n // Convert 0 - 255 to 0 - 1 for opacity\n a = a ? parseInt(a, 16) / 255 : undefined;\n const hsvValue = hexToHsv(raw);\n if (hsvValue !== undefined) {\n return { values: [...hsvValue, a], alpha: a, type };\n }\n }\n if (type === 'hsla') {\n const [, , , h, s, l, a] = numarize(match);\n if (h && s && l && a && h <= 360 && s <= 100 && l <= 100 && a >= 0 && a <= 1 && isValidAlpha(a)) {\n return { values: [...hslToHsv(h, s, l), a], alpha: a, type };\n }\n }\n if (type === 'hsva') {\n const [, , , h, s, v, a] = numarize(match);\n if (h && s && v && a && h <= 360 && s <= 100 && v <= 100 && a >= 0 && a <= 1 && isValidAlpha(a)) {\n return { values: [h, s, v, a], alpha: a, type };\n }\n }\n return { values: null, type: 'hexa' };\n}\nconst isValidHex = string => {\n if (string === undefined) {\n return false;\n }\n return string.match(/^#?[\\dA-Fa-f]{6,8}$/i);\n};\nconst DEFAULT_COLOR = '#7CA1FF';\n\n/**\n * Simple class which holds the properties\n * of the color representation model hsla (hue saturation lightness alpha)\n */\nclass HSVaColor {\n constructor(h = 0, s = 0, v = 0, a = 1) {\n this.mapper = (original, next) => (precision = -1) => {\n return next(precision >= 0 ? original.map(v => Number(v.toFixed(precision))) : original);\n };\n this.h = h;\n this.s = s;\n this.v = v;\n this.a = (a > 1) ? a / 100 : a;\n }\n toHSVA() {\n const hsva = [this.h, this.s, this.v, this.a];\n hsva.toString = this.mapper(hsva, arr => `hsva(${arr[0]}, ${arr[1]}%, ${arr[2]}%, ${this.readableAlpha()})`);\n return hsva;\n }\n toHSLA() {\n const hsla = [...hsvToHsl(this.h, this.s, this.v), this.a];\n hsla.toString = this.mapper(hsla, arr => `hsla(${arr[0]}, ${arr[1]}%, ${arr[2]}%, ${this.readableAlpha()})`);\n return hsla;\n }\n toHSL() {\n const hsl = hsvToHsl(this.h, this.s, this.v);\n hsl.toString = this.mapper(hsl, arr => `hsl(${arr[0]}, ${arr[1]}%, ${arr[2]}%)`);\n return hsl;\n }\n toRGBA() {\n const rgba = [...hsvToRgb(this.h, this.s, this.v), this.a];\n rgba.toString = this.mapper(rgba, arr => `rgba(${Math.round(arr[0])}, ${Math.round(arr[1])}, ${Math.round(arr[2])}, ${this.readableAlpha()})`);\n return rgba;\n }\n /**\n * @deprecated {@see toRGBModern()}\n */\n toRGB() {\n const rgb = hsvToRgb(this.h, this.s, this.v);\n rgb.toString = this.mapper(rgb, arr => `rgb(${Math.round(arr[0])}, ${Math.round(arr[1])}, ${Math.round(arr[2])})`);\n return rgb;\n }\n toRGBModern() {\n const rgba = [...hsvToRgb(this.h, this.s, this.v), this.a];\n rgba.toString = this.mapper(rgba, arr => `rgb(${Math.round(arr[0])} ${Math.round(arr[1])} ${Math.round(arr[2])} / ${this.alphaAsPercent()})`);\n return rgba;\n }\n toCMYK() {\n const cmyk = hsvToCmyk(this.h, this.s, this.v);\n cmyk.toString = this.mapper(cmyk, arr => `cmyk(${arr[0]}%, ${arr[1]}%, ${arr[2]}%, ${arr[3]}%)`);\n return cmyk;\n }\n toHEXA() {\n const hex = hsvToHex(this.h, this.s, this.v);\n // Check if alpha channel make sense, convert it to 255 number space, convert\n // To hex and pad it with zeros if needed.\n const alpha = this.a >= 1\n ? ''\n : Number((this.a * 255).toFixed(0))\n .toString(16)\n .toUpperCase()\n .padStart(2, '0');\n alpha && hex.push(alpha);\n hex.toString = () => `#${hex.join('').toUpperCase()}`;\n return hex;\n }\n toHEX() {\n const hex = hsvToHex(this.h, this.s, this.v);\n hex.toString = () => `#${hex.join('').toLowerCase()}`;\n return hex;\n }\n set alpha(a) {\n this.a = (a > 1) ? a / 100 : a;\n }\n get alpha() {\n return this.a;\n }\n set hue(h) {\n this.h = Math.round(h);\n }\n get hue() {\n return this.h;\n }\n set saturation(s) {\n this.s = Math.round(s);\n }\n get saturation() {\n return this.s;\n }\n set value(v) {\n this.v = Math.round(v);\n }\n get value() {\n return this.v;\n }\n clone() {\n return new HSVaColor(this.h, this.s, this.v, this.a);\n }\n readableAlpha() {\n return Math.round((this.a + Number.EPSILON) * 100) / 100;\n }\n alphaAsPercent() {\n return Math.round((this.a + Number.EPSILON) * 100) + '%';\n }\n}\n\nexport { DEFAULT_COLOR as D, HSVaColor as H, isValidHex as i, parseToHSVA as p };\n","import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\nimport { D as DEFAULT_COLOR, H as HSVaColor, p as parseToHSVA, i as isValidHex } from './HSVaColor-82f956e7.js';\n\nconst rsColorSwatchCss = \":host{display:block}.rs-color-swatch__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-select-border);border-radius:0.25rem;padding:0.375rem;cursor:pointer;min-width:2rem;box-sizing:border-box;display:flex;align-items:center;justify-content:start}.rs-color-swatch__container{width:1.25rem;height:1.25rem;box-sizing:border-box;position:relative;overflow:hidden;border-radius:50%}.rs-color-swatch__container::before{content:\\\"\\\";position:absolute;width:1.125rem;height:1.125rem;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;border-radius:50%;top:1px;left:1px}.rs-color-swatch__container::after{content:\\\"\\\";position:absolute;border-top:0.125rem solid red;width:1.125rem;transform:rotate(-45deg);transform-origin:center;top:0.5625rem;left:1px;opacity:0}.rs-color-swatch__container--transparent::after{opacity:1}.rs-color-swatch__swatch{display:block;width:1.25rem;height:1.25rem;min-width:0.625rem;box-sizing:border-box;position:relative;overflow:hidden;border-radius:50%;border:1px solid rgb(223 223 224)}.rs-color-swatch__container--transparent .rs-color-swatch__swatch{background:#fff !important}.rs-color-swatch__label{display:none;margin-left:0.4375rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\";\n\nconst RsColorSwatch = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.close = createEvent(this, \"close\", 7);\n this.isDirty = false;\n /**\n * Colour picker label\n * If this is set, the label is added to the right of the color swatch\n */\n this.label = '';\n /**\n * Selected colour\n */\n this.color = DEFAULT_COLOR;\n /**\n * If true, will show an opacity slider in the colour picker popup\n */\n this.opacity = false;\n /**\n * Sets the alignment of the colour picker relative to the color swatch\n */\n this.alignment = 'center';\n /**\n * If set to true, a button will show in the color picker that will allow the user to set the color picker to transparent without the need for the opacity slider\n */\n this.transparentButton = false;\n /**\n * If set to preset, we only show the preset colors and don't allow custom selection via any method\n */\n this.mode = 'default';\n /**\n * Checks if the swatch element is close to the bottom of the viewport\n */\n this.isNearBottomOfViewport = () => {\n return (window.innerHeight - this.el.getBoundingClientRect().bottom) < 200;\n };\n /**\n * Checked if there's enough space above the color swatch element for displaying the color picker\n */\n this.isTopSpaceEnoughForColorPicker = () => {\n const topOffset = 150;\n const colorPickerHeight = 450; // max height of the color picker\n const colorSwatchRect = this.el.getBoundingClientRect();\n return (colorPickerHeight + topOffset) < colorSwatchRect.y;\n };\n /**\n * If the color swatch is close to the bottom of the sidebar/view port\n * then we show the color picker above the swatch\n */\n this.updateColorPickerPosition = () => {\n /*\n * If there's no space at the bottom, but there's enough space at the top,\n * then we reposition the color picker above the swatch\n */\n if (this.isNearBottomOfViewport() && this.isTopSpaceEnoughForColorPicker()) {\n this.colorPicker.position = 'top';\n }\n else {\n this.colorPicker.position = 'default';\n }\n };\n this.toggleColorPicker = () => {\n this.updateColorPickerPosition();\n if (!this.colorPicker.showPicker) {\n this.colorPicker.show();\n document.addEventListener('click', this.listenToBody.bind(this));\n }\n else {\n this.closeColorPicker();\n document.removeEventListener('click', this.listenToBody.bind(this));\n }\n };\n this.alignmentClass = () => {\n if (this.alignment === 'center') {\n return {\n left: '50%',\n transform: 'translateX(-50%)',\n };\n }\n return {};\n };\n }\n updateColor(color) {\n if (!RsColorSwatch.allowedColorString(color)) {\n return;\n }\n this.setInternalColor(color);\n this.colorPicker.setColor(this.internalColor.toHEXA().toString());\n }\n /**\n * Set the color of the color swatch\n * @param color\n */\n async setColor(color) {\n if (!RsColorSwatch.allowedColorString(color)) {\n return;\n }\n this.setInternalColor(color);\n await this.colorPicker.setColor(this.internalColor.toHEXA().toString());\n }\n /**\n * Returns a HSVaColor object of the currently selected color\n */\n async getColor() {\n return this.internalColor;\n }\n listenToBody(event) {\n if (!event.composedPath().includes(this.el) && this.colorPicker.showPicker) {\n this.closeColorPicker();\n }\n }\n closeColorPicker() {\n this.close.emit({ color: this.color, isDirty: this.isDirty });\n this.colorPicker.hide();\n this.isDirty = false;\n }\n rsColorChangeHandler(event) {\n this.setInternalColor(event.detail.value);\n this.isDirty = true;\n }\n swatchBackgroundColor() {\n return `linear-gradient(135deg, ${this.internalColor.toRGB().toString()} 50%, ${this.internalColor.toRGBModern().toString()} 50%)`;\n }\n componentWillLoad() {\n this.setInternalColor(this.color === '' ? DEFAULT_COLOR : this.color);\n }\n setInternalColor(color) {\n if (typeof color === 'string') {\n color = RsColorSwatch.allowedColorString(color) ? color : DEFAULT_COLOR;\n this.internalColor = new HSVaColor(...parseToHSVA(color).values);\n }\n else if (color instanceof HSVaColor) {\n this.internalColor = color;\n }\n else {\n throw new Error(`A valid color string or HSVaColor object is required`);\n }\n this.internalOpacity = this.internalColor.alpha;\n }\n render() {\n return (h(Host, { style: {\n 'display': this.label === '' ? 'inline-block' : null,\n 'width': this.getWidth()\n } }, h(\"div\", { class: \"rs-color-swatch__inner\", onClick: this.toggleColorPicker }, h(\"div\", { class: {\n 'rs-color-swatch__container': true,\n 'rs-color-swatch__container--transparent': this.internalOpacity === 0,\n } }, h(\"div\", { class: {\n 'rs-color-swatch__swatch': true,\n 'rs-color-swatch__swatch--solid-half': true,\n }, style: {\n background: this.swatchBackgroundColor()\n } })), this.label !== '' ?\n h(\"rs-caption\", { style: {\n 'display': this.label !== '' ? 'block' : null,\n }, class: \"rs-color-swatch__label\", color: \"secondary\" }, this.label !== '' ? this.label : '')\n : ''), h(\"rs-color-picker\", { class: \"rs-color-swatch__color-picker\", mode: this.mode, style: this.alignmentClass(), color: this.internalColor.toHEXA().toString().toLowerCase(), palettes: this.palettes, opacity: this.opacity, transparentButton: this.transparentButton, ref: el => this.colorPicker = el })));\n }\n getWidth() {\n if (this.width !== undefined) {\n return this.width;\n }\n if (this.label !== '') {\n return '100%';\n }\n return null;\n }\n static allowedColorString(color) {\n return isValidHex(color) || color.toLowerCase() === 'transparent';\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"color\": [\"updateColor\"]\n }; }\n};\nRsColorSwatch.style = rsColorSwatchCss;\n\nexport { RsColorSwatch as rs_color_swatch };\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","RsColorSwatch","hostRef","close","isDirty","label","color","D","opacity","alignment","transparentButton","mode","isNearBottomOfViewport","window","innerHeight","el","getBoundingClientRect","bottom","isTopSpaceEnoughForColorPicker","updateColorPickerPosition","colorPicker","position","toggleColorPicker","showPicker","closeColorPicker","removeEventListener","listenToBody","bind","show","addEventListener","alignmentClass","left","transform","updateColor","allowedColorString","setInternalColor","setColor","internalColor","event","composedPath","includes","emit","hide","rsColorChangeHandler","detail","value","swatchBackgroundColor","componentWillLoad","H","Error","internalOpacity","render","style","getWidth","class","onClick","background","palettes","ref","width"],"sourceRoot":""}
@@ -1,13 +0,0 @@
1
- /*!
2
- *
3
- * @rocketspark/domain-checker v0.0.20
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([[858],{7858:function(s,e,i){i.r(e),i.d(e,{rs_sidebar_incrementer:function(){return n}});var t=i(492);const n=class{constructor(s){(0,t.r)(this,s),this.step=1,this.value=1,this.min=0,this.max=100,this.suffix="",this.dropdown=!1,this.decimalPlaces=0,this.dropdownStep=0}render(){const s=void 0!==this.heading?(0,t.h)("rs-header",{style:{"margin-bottom":"10px"},heading:"5"},this.heading):"";return(0,t.h)(t.H,null,s,(0,t.h)("rs-incrementer",{step:this.step,value:this.value,min:this.min,max:this.max,suffix:this.suffix,dropdown:this.dropdown,"decimal-places":this.decimalPlaces,"dropdown-step":this.dropdownStep}))}};n.style="rs-sidebar-incrementer{display:block}"}}]);
13
- //# sourceMappingURL=858.index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"858.index.js","mappings":";;;;;;;;;;;4LAEA,MAEMA,EAAuB,MAC3BC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,KAAO,EAKZD,KAAKE,MAAQ,EAIbF,KAAKG,IAAM,EAIXH,KAAKI,IAAM,IAIXJ,KAAKK,OAAS,GAIdL,KAAKM,UAAW,EAIhBN,KAAKO,cAAgB,EAIrBP,KAAKQ,aAAe,EAEtBC,SACE,MAAMC,OAAkCC,IAAjBX,KAAKY,SAAyB,IAAAC,GAAE,YAAa,CAAEC,MAAO,CAAE,gBAAiB,QAAUF,QAAS,KAAOZ,KAAKY,SAAY,GAC3I,OAAQ,IAAAC,GAAE,EAAAE,EAAM,KAAML,GAAgB,IAAAG,GAAE,iBAAkB,CAAEZ,KAAMD,KAAKC,KAAMC,MAAOF,KAAKE,MAAOC,IAAKH,KAAKG,IAAKC,IAAKJ,KAAKI,IAAKC,OAAQL,KAAKK,OAAQC,SAAUN,KAAKM,SAAU,iBAAkBN,KAAKO,cAAe,gBAAiBP,KAAKQ,kBAG5OZ,EAAqBkB,MA5CS","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-sidebar-incrementer.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst sidebarIncrementerCss = \"rs-sidebar-incrementer{display:block}\";\n\nconst RsSidebarIncrementer = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * How much we want to increment/decrement\n */\n this.step = 1;\n /**\n * The value of the incrementer\n */\n // eslint-disable-next-line @stencil/strict-mutable\n this.value = 1;\n /**\n * Minimum value of the incrementer\n */\n this.min = 0;\n /**\n * Maximum value of the incrementer\n */\n this.max = 100;\n /**\n * (Optional) Text added after the value e.g. px, em, etc.\n */\n this.suffix = '';\n /**\n * If set to true, a dropdown will be added to the incrementer.\n */\n this.dropdown = false;\n /**\n * The number of digits to appear after the decimal point.\n */\n this.decimalPlaces = 0;\n /**\n * How much we want the dropdown to increment/decrement\n */\n this.dropdownStep = 0;\n }\n render() {\n const headingElement = this.heading !== undefined ? (h(\"rs-header\", { style: { 'margin-bottom': '10px' }, heading: \"5\" }, this.heading)) : '';\n return (h(Host, null, headingElement, h(\"rs-incrementer\", { step: this.step, value: this.value, min: this.min, max: this.max, suffix: this.suffix, dropdown: this.dropdown, \"decimal-places\": this.decimalPlaces, \"dropdown-step\": this.dropdownStep })));\n }\n};\nRsSidebarIncrementer.style = sidebarIncrementerCss;\n\nexport { RsSidebarIncrementer as rs_sidebar_incrementer };\n"],"names":["RsSidebarIncrementer","constructor","hostRef","r","this","step","value","min","max","suffix","dropdown","decimalPlaces","dropdownStep","render","headingElement","undefined","heading","h","style","H"],"sourceRoot":""}
@@ -1,13 +0,0 @@
1
- /*!
2
- *
3
- * @rocketspark/domain-checker v0.0.20
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([[882],{7882:function(s,e,t){t.r(e),t.d(e,{rs_col:function(){return r}});var i=t(492);const r=class{constructor(s){(0,i.r)(this,s),this.flexGrow="1",this.flexBasis="0"}render(){return(0,i.h)(i.H,{style:{"flex-grow":this.flexGrow,"flex-basis":this.flexBasis}},(0,i.h)("slot",null))}};r.style=":host{box-sizing:border-box;position:relative;width:100%;max-width:100%;min-height:1px;}"}}]);
13
- //# sourceMappingURL=882.index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"882.index.js","mappings":";;;;;;;;;;;4KAEA,MAEMA,EAAM,MACVC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,SAAW,IAIhBD,KAAKE,UAAY,IAEnBC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,YAAaN,KAAKC,SAClB,aAAcD,KAAKE,aAChB,IAAAE,GAAE,OAAQ,SAGrBR,EAAIU,MArBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-col.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst colCss = \":host{box-sizing:border-box;position:relative;width:100%;max-width:100%;min-height:1px;}\";\n\nconst Col = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * flex-grow CSS rule\n */\n this.flexGrow = '1';\n /**\n * flex-basis CSS rule\n */\n this.flexBasis = '0';\n }\n render() {\n return (h(Host, { style: {\n 'flex-grow': this.flexGrow,\n 'flex-basis': this.flexBasis,\n } }, h(\"slot\", null)));\n }\n};\nCol.style = colCss;\n\nexport { Col as rs_col };\n"],"names":["Col","constructor","hostRef","r","this","flexGrow","flexBasis","render","h","H","style"],"sourceRoot":""}
@@ -1,13 +0,0 @@
1
- /*!
2
- *
3
- * @rocketspark/domain-checker v0.0.20
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([[895],{8895:function(e,t,s){s.r(t),s.d(t,{rs_list_select:function(){return l}});var r=s(492);const l=class{constructor(e){(0,r.r)(this,e),this.rsChange=(0,r.c)(this,"rsChange",7)}valueChanged(e){this.rsChange.emit({value:e})}componentDidLoad(){this.el.querySelectorAll("rs-list-item").forEach((e=>{e.selectable=!0}))}render(){return(0,r.h)(r.H,null,(0,r.h)("slot",null))}get el(){return(0,r.g)(this)}static get watchers(){return{value:["valueChanged"]}}};l.style=":host{display:block}::slotted(rs-list-item:not(last-child)){margin-bottom:0.5rem}"}}]);
13
- //# sourceMappingURL=895.index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"895.index.js","mappings":";;;;;;;;;;;oLAEA,MAEMA,EAAe,MACnBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,UAAW,IAAAC,GAAYF,KAAM,WAAY,GAKhDG,aAAaC,GACXJ,KAAKC,SAASI,KAAK,CAAED,MAAAA,IAEvBE,mBACoBN,KAAKO,GAAGC,iBAAiB,gBACjCC,SAASC,IACjBA,EAASC,YAAa,KAG1BC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,OAAQ,OAElC,SAAW,OAAO,IAAAE,GAAWf,MAC7B,sBAAwB,MAAO,CAC7B,MAAS,CAAC,mBAGdJ,EAAaoB,MA3BW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-list-select.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\n\nconst rsListSelectCss = \":host{display:block}::slotted(rs-list-item:not(last-child)){margin-bottom:0.5rem}\";\n\nconst RsListSelect = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsChange = createEvent(this, \"rsChange\", 7);\n }\n /**\n * Watch for any changes on the `value` property.\n */\n valueChanged(value) {\n this.rsChange.emit({ value });\n }\n componentDidLoad() {\n const listItems = this.el.querySelectorAll('rs-list-item'); // Get all the radio items\n listItems.forEach((listItem) => {\n listItem.selectable = true;\n });\n }\n render() {\n return (h(Host, null, h(\"slot\", null)));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"value\": [\"valueChanged\"]\n }; }\n};\nRsListSelect.style = rsListSelectCss;\n\nexport { RsListSelect as rs_list_select };\n"],"names":["RsListSelect","constructor","hostRef","r","this","rsChange","c","valueChanged","value","emit","componentDidLoad","el","querySelectorAll","forEach","listItem","selectable","render","h","H","g","style"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"903.index.js","mappings":";;;;;;;;;;;6KAEA,MAEMA,EAAS,MACbC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,SAAU,IAAAC,GAAYF,KAAM,UAAW,GAK5CA,KAAKG,UAAW,EAIhBH,KAAKI,WAAY,EAIjBJ,KAAKK,aAAc,EAKnBL,KAAKM,KAAO,OAKdC,kBACEP,KAAKQ,YAKPA,YACER,KAAKC,QAAQQ,KAAK,CAChB,iBAAkBT,KAAKI,YAM3B,eACEJ,KAAKU,uBAKP,cACEV,KAAKW,mBAKP,aACEX,KAAKY,kBAKPF,uBAEkB,OADAV,KAAKa,GAAGC,WAAWC,cAAc,mBAE3Cf,KAAKI,UACPJ,KAAKY,kBAGLZ,KAAKW,oBAOXA,mBACE,MAAMK,EAAUhB,KAAKa,GAAGC,WAAWC,cAAc,iBACjC,OAAZC,IACFhB,KAAKI,WAAY,EACjBY,EAAQC,MAAMC,UAAY,GAAGF,EAAQG,iBACrCC,YAAW,WACTJ,EAAQC,MAAMC,UAAY,SAOhCN,kBACE,MAAMI,EAAUhB,KAAKa,GAAGC,WAAWC,cAAc,iBACjC,OAAZC,IACFhB,KAAKI,WAAY,EACjBY,EAAQC,MAAMC,UAAY,GAAGF,EAAQG,iBACrCC,YAAW,WACTJ,EAAQC,MAAMC,UAAY,SACzB,MAMPG,mBACE,MAAML,EAAUhB,KAAKa,GAAGC,WAAWC,cAAc,iBACjC,OAAZC,GAAsC,GAAlBhB,KAAKI,YAC3BY,EAAQC,MAAMC,UAAY,SAM9BI,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,4BAA2C,SAAdzB,KAAKM,KAClC,UAAaN,KAAKI,UAClB,YAAeJ,KAAKK,eACjB,IAAAkB,GAAE,MAAO,CAAEE,MAAO,gBAAiB,IAAAF,GAAE,OAAQ,CAAEG,KAAM,aAAc,IAAAH,GAAE,MAAO,CAAEE,MAAO,iBAAkB,IAAAF,GAAE,OAAQ,QAE1H,SAAW,OAAO,IAAAI,GAAW3B,MAC7B,sBAAwB,MAAO,CAC7B,UAAa,CAAC,sBAGlBJ,EAAOqB,MAzHW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-card.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\n\nconst rsCardCss = \":host{display:block;width:100%;border-radius:0.625rem;height:auto;cursor:default}:host(.collapsible) .card-header{cursor:pointer}:host .card-content{display:block;max-height:0;overflow:hidden;transition:max-height 0.4s ease-in-out}\";\n\nconst RsCard = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsStyle = createEvent(this, \"rsStyle\", 7);\n /**\n * (optional)\n * Puts the card in a disabled state.\n */\n this.disabled = false;\n /**\n * If true, card is collapsed. Only the top part of the card (header) is visible.\n */\n this.collapsed = false;\n /**\n * If true, the card will be clickable and will expand.\n */\n this.collapsible = false;\n /**\n * Type of card\n * If set to 'task', it gives the card a drop shadow\n */\n this.type = 'task';\n }\n /**\n * Watch for any changes on the `collapsed` property.\n */\n collapseChanged() {\n this.emitStyle(); // disabled changed, emit change in styling\n }\n /**\n * Emits `rsStyle` event when the styles of the card change.\n */\n emitStyle() {\n this.rsStyle.emit({\n 'card-collapsed': this.collapsed\n });\n }\n /**\n * A function that can be called directly from the element for toggling the card.\n */\n async toggle() {\n this.toggleContentHandler();\n }\n /**\n * A function that can be called directly from the element for hiding card.\n */\n async close() {\n this.closeCardHandler();\n }\n /**\n * A function that can be called directly from the element for showing card.\n */\n async open() {\n this.openCardHandler();\n }\n /**\n * Expands the card when the user clicks on it.\n */\n toggleContentHandler() {\n const content = this.el.shadowRoot.querySelector('.card-content');\n if (content !== null) {\n if (this.collapsed) {\n this.openCardHandler();\n }\n else {\n this.closeCardHandler();\n }\n }\n }\n /**\n * An internal function for hiding the card component\n */\n closeCardHandler() {\n const content = this.el.shadowRoot.querySelector('.card-content');\n if (content !== null) {\n this.collapsed = true;\n content.style.maxHeight = `${content.scrollHeight}px`;\n setTimeout(function () {\n content.style.maxHeight = null;\n });\n }\n }\n /**\n * An internal function for hiding the card component\n */\n openCardHandler() {\n const content = this.el.shadowRoot.querySelector('.card-content');\n if (content !== null) {\n this.collapsed = false;\n content.style.maxHeight = `${content.scrollHeight}px`;\n setTimeout(function () {\n content.style.maxHeight = 'none';\n }, 400);\n }\n }\n /**\n * Runs after all the child components have been loaded & rendered\n */\n componentDidLoad() {\n const content = this.el.shadowRoot.querySelector('.card-content');\n if (content !== null && this.collapsed == false) {\n content.style.maxHeight = 'unset';\n }\n }\n /**\n * This renders the component.\n */\n render() {\n return (h(Host, { class: {\n 'rs-component-shadow--task': this.type === 'task',\n 'collapsed': this.collapsed,\n 'collapsible': this.collapsible\n } }, h(\"div\", { class: \"card-header\" }, h(\"slot\", { name: \"header\" })), h(\"div\", { class: \"card-content\" }, h(\"slot\", null))));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"collapsed\": [\"collapseChanged\"]\n }; }\n};\nRsCard.style = rsCardCss;\n\nexport { RsCard as rs_card };\n"],"names":["RsCard","constructor","hostRef","r","this","rsStyle","c","disabled","collapsed","collapsible","type","collapseChanged","emitStyle","emit","toggleContentHandler","closeCardHandler","openCardHandler","el","shadowRoot","querySelector","content","style","maxHeight","scrollHeight","setTimeout","componentDidLoad","render","h","H","class","name","g"],"sourceRoot":""}
@@ -1,13 +0,0 @@
1
- /*!
2
- *
3
- * @rocketspark/domain-checker v0.0.20
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([[911],{5911:function(e,t,o){o.r(t),o.d(t,{rs_checkbox:function(){return n}});var i=o(492);const n=class{constructor(e){(0,i.r)(this,e),this.rsChange=(0,i.c)(this,"rsChange",7),this.disabled=!1,this.checked=!1,this.onChange=e=>{const t=e.target;void 0!==t&&(this.checked=t.checked,this.rsChange.emit({value:this.checked}))}}render(){return(0,i.h)(i.H,null,(0,i.h)("input",{onChange:this.onChange,type:"checkbox",id:"checkbox",disabled:this.disabled,checked:this.checked}),(0,i.h)("label",{htmlFor:"checkbox"},(0,i.h)("rs-content",{body:2,color:"grey",display:"inline-block"},(0,i.h)("slot",null))))}};n.style=":host{display:block}input{display:none;cursor:pointer;width:1.25rem;height:1.25rem}input+label{position:relative;cursor:pointer;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none}input+label rs-content{margin-left:1.625rem}input+label::before,input+label::after{width:1.25rem;height:1.25rem;content:' ';display:inline-block;border-radius:0.1875rem;cursor:pointer;transition:background 0.15s ease-out, opacity 0.15s ease-out, border 0.15s ease-out;position:absolute;left:0;text-align:center;top:1px}input+label::before{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-grey)}input+label::after{opacity:0;margin-top:0.125rem;font-size:0.875rem}input:checked+label::before{background:var(--rs-color-primary);box-shadow:inset 0 0 0 1px var(--rs-color-primary)}input:checked+label::after{content:\"\\e901\";color:#FFF;opacity:1;font-family:'rs-icons' !important;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[disabled],input[disabled]+label,input[disabled]+label::before,input[disabled]+label::after,input[disabled]:checked+label,input[disabled]:checked+label::before,input[disabled]:checked+label::after{filter:grayscale(1);cursor:not-allowed}label rs-content{line-height:1.5em}"}}]);
13
- //# sourceMappingURL=911.index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"911.index.js","mappings":";;;;;;;;;;;iLAEA,MAEMA,EAAa,MACjBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,UAAW,IAAAC,GAAYF,KAAM,WAAY,GAI9CA,KAAKG,UAAW,EAIhBH,KAAKI,SAAU,EACfJ,KAAKK,SAAYC,IACf,MAAMC,EAAWD,EAAGE,YACHC,IAAbF,IACFP,KAAKI,QAAUG,EAASH,QACxBJ,KAAKC,SAASS,KAAK,CAAEC,MAAOX,KAAKI,YAIvCQ,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,QAAS,CAAER,SAAUL,KAAKK,SAAUU,KAAM,WAAYC,GAAI,WAAYb,SAAUH,KAAKG,SAAUC,QAASJ,KAAKI,WAAY,IAAAS,GAAE,QAAS,CAAEI,QAAS,aAAc,IAAAJ,GAAE,aAAc,CAAEK,KAAM,EAAGC,MAAO,OAAQC,QAAS,iBAAkB,IAAAP,GAAE,OAAQ,WAGxQjB,EAAWyB,MA1BS","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-checkbox.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host } from './index-d4fae449.js';\n\nconst checkboxCss = \":host{display:block}input{display:none;cursor:pointer;width:1.25rem;height:1.25rem}input+label{position:relative;cursor:pointer;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none}input+label rs-content{margin-left:1.625rem}input+label::before,input+label::after{width:1.25rem;height:1.25rem;content:' ';display:inline-block;border-radius:0.1875rem;cursor:pointer;transition:background 0.15s ease-out, opacity 0.15s ease-out, border 0.15s ease-out;position:absolute;left:0;text-align:center;top:1px}input+label::before{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-grey)}input+label::after{opacity:0;margin-top:0.125rem;font-size:0.875rem}input:checked+label::before{background:var(--rs-color-primary);box-shadow:inset 0 0 0 1px var(--rs-color-primary)}input:checked+label::after{content:\\\"\\\\e901\\\";color:#FFF;opacity:1;font-family:'rs-icons' !important;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[disabled],input[disabled]+label,input[disabled]+label::before,input[disabled]+label::after,input[disabled]:checked+label,input[disabled]:checked+label::before,input[disabled]:checked+label::after{filter:grayscale(1);cursor:not-allowed}label rs-content{line-height:1.5em}\";\n\nconst RsCheckbox = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsChange = createEvent(this, \"rsChange\", 7);\n /**\n * Disabled attribute of a standard html input\n */\n this.disabled = false;\n /**\n * Checked attribute of a standard input type=checkbox element\n */\n this.checked = false;\n this.onChange = (ev) => {\n const checkbox = ev.target;\n if (checkbox !== undefined) {\n this.checked = checkbox.checked;\n this.rsChange.emit({ value: this.checked });\n }\n };\n }\n render() {\n return (h(Host, null, h(\"input\", { onChange: this.onChange, type: \"checkbox\", id: \"checkbox\", disabled: this.disabled, checked: this.checked }), h(\"label\", { htmlFor: 'checkbox' }, h(\"rs-content\", { body: 2, color: 'grey', display: 'inline-block' }, h(\"slot\", null)))));\n }\n};\nRsCheckbox.style = checkboxCss;\n\nexport { RsCheckbox as rs_checkbox };\n"],"names":["RsCheckbox","constructor","hostRef","r","this","rsChange","c","disabled","checked","onChange","ev","checkbox","target","undefined","emit","value","render","h","H","type","id","htmlFor","body","color","display","style"],"sourceRoot":""}
@@ -1,13 +0,0 @@
1
- /*!
2
- *
3
- * @rocketspark/domain-checker v0.0.20
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([[912],{1034:function(t,s,r){r.d(s,{D:function(){return f},H:function(){return g},i:function(){return m},p:function(){return d}});const{min:o,max:i,floor:e,round:n}=Math;function a(t,s,r){const o=t/360*6,i=s/100,n=r/100,a=e(o),h=o-a,l=n*(1-i),c=n*(1-h*i),u=n*(1-(1-h)*i),p=a%6;return[255*[n,c,l,l,u,n][p],255*[u,n,n,c,l,l][p],255*[l,l,u,n,n,c][p]]}function h(t,s,r){return a(t,s,r).map((t=>n(t).toString(16).padStart(2,"0")))}function l(t,s,r){let o=s/100;const i=r/100,e=(2-o)*i/2;return 0!==e&&(o=1===e?0:e<.5?o*i/(2*e):o*i/(2-2*e)),[t,100*o,100*e]}function c(t,s,r){const e=t/255,n=s/255,a=r/255,h=o(e,n,a),l=i(e,n,a),c=l-h;let u,p;if(0===c)u=0,p=0;else{p=c/l;const t=((l-e)/6+c/2)/c,s=((l-n)/6+c/2)/c,r=((l-a)/6+c/2)/c;e===l?u=r-s:n===l?u=1/3+t-r:a===l&&(u=2/3+s-t),u<0?u+=1:u>1&&(u-=1)}return[360*u,100*p,100*l]}function u(t,s,r,i){const e=s/100,n=r/100,a=i/100;return[...c(255*(1-o(1,t/100*(1-a)+a)),255*(1-o(1,e*(1-a)+a)),255*(1-o(1,n*(1-a)+a)))]}function p(t,s,r){let o=s/100;const i=r/100;o*=i<.5?i:1-i;const e=2*o/(i+o)*100,n=100*(i+o);return[t,Number.isNaN(e)?0:e,n]}function d(t="#000"){"transparent"===t.toLowerCase()&&(t="#00000000");const s=null!==t.match(/^[a-zA-Z]+$/)?function(t){if(void 0===t)return"#000";if("black"===t.toLowerCase())return"#000";const s=document.createElement("canvas").getContext("2d");return null===s?null:(s.fillStyle=t,"#000"===s.fillStyle?null:s.fillStyle)}(t):t,{type:r,match:o}=function(t){const s=Object.entries({cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i}).find((([,s])=>s.exec(t)));if(void 0!==s){const r=s[1].exec(t);return{type:s[0],regex:s[1],match:r}}return{type:null}}(s),i=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));if(null===r||null===o)return{values:null,type:"hexa"};const e=t=>t>=0&&t<=1&&(t=>!!o[2]==("number"==typeof t))(t);if("cmyk"===r){const[,t,s,e,n]=i(o);if(t&&s&&e&&n&&t<=100&&s<=100&&e<=100&&n<=100)return{values:u(t,s,e,n),type:r}}if("rgba"===r){const[,,,t,s,n,a]=i(o);if(void 0!==t&&void 0!==s&&void 0!==n&&void 0!==a&&t<=255&&s<=255&&n<=255&&e(a))return{values:[...c(t,s,n),a],alpha:a,type:r}}if("hexa"===r){let[,t]=o;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const s=t.substring(0,6);let i=t.substring(6);i=i?parseInt(i,16)/255:void 0;const e=function(t){const s=t.match(/.{2}/g);if(null!==s){const[t,r,o]=s.map((t=>Number.parseInt(t,16)));return c(t,r,o)}return null}(s);if(void 0!==e)return{values:[...e,i],alpha:i,type:r}}if("hsla"===r){const[,,,t,s,n,a]=i(o);if(t&&s&&n&&a&&t<=360&&s<=100&&n<=100&&a>=0&&a<=1&&e(a))return{values:[...p(t,s,n),a],alpha:a,type:r}}if("hsva"===r){const[,,,t,s,n,a]=i(o);if(t&&s&&n&&a&&t<=360&&s<=100&&n<=100&&a>=0&&a<=1&&e(a))return{values:[t,s,n,a],alpha:a,type:r}}return{values:null,type:"hexa"}}const m=t=>void 0!==t&&t.match(/^#?[\dA-Fa-f]{6,8}$/i),f="#7CA1FF";class g{constructor(t=0,s=0,r=0,o=1){this.mapper=(t,s)=>(r=-1)=>s(r>=0?t.map((t=>Number(t.toFixed(r)))):t),this.h=t,this.s=s,this.v=r,this.a=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=[...l(this.h,this.s,this.v),this.a];return t.toString=this.mapper(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${this.readableAlpha()})`)),t}toHSL(){const t=l(this.h,this.s,this.v);return t.toString=this.mapper(t,(t=>`hsl(${t[0]}, ${t[1]}%, ${t[2]}%)`)),t}toRGBA(){const t=[...a(this.h,this.s,this.v),this.a];return t.toString=this.mapper(t,(t=>`rgba(${Math.round(t[0])}, ${Math.round(t[1])}, ${Math.round(t[2])}, ${this.readableAlpha()})`)),t}toRGB(){const t=a(this.h,this.s,this.v);return t.toString=this.mapper(t,(t=>`rgb(${Math.round(t[0])}, ${Math.round(t[1])}, ${Math.round(t[2])})`)),t}toRGBModern(){const t=[...a(this.h,this.s,this.v),this.a];return t.toString=this.mapper(t,(t=>`rgb(${Math.round(t[0])} ${Math.round(t[1])} ${Math.round(t[2])} / ${this.alphaAsPercent()})`)),t}toCMYK(){const t=function(t,s,r){const i=a(t,s,r),e=i[0]/255,n=i[1]/255,h=i[2]/255,l=o(1-e,1-n,1-h);return[100*(1===l?0:(1-e-l)/(1-l)),100*(1===l?0:(1-n-l)/(1-l)),100*(1===l?0:(1-h-l)/(1-l)),100*l]}(this.h,this.s,this.v);return t.toString=this.mapper(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t}toHEXA(){const t=h(this.h,this.s,this.v),s=this.a>=1?"":Number((255*this.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return s&&t.push(s),t.toString=()=>`#${t.join("").toUpperCase()}`,t}toHEX(){const t=h(this.h,this.s,this.v);return t.toString=()=>`#${t.join("").toLowerCase()}`,t}set alpha(t){this.a=t>1?t/100:t}get alpha(){return this.a}set hue(t){this.h=Math.round(t)}get hue(){return this.h}set saturation(t){this.s=Math.round(t)}get saturation(){return this.s}set value(t){this.v=Math.round(t)}get value(){return this.v}clone(){return new g(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))+"%"}}},4912:function(t,s,r){r.r(s),r.d(s,{rs_caption:function(){return e},rs_color_picker:function(){return n}});var o=r(492),i=r(1034);const e=class{constructor(t){(0,o.r)(this,t),this.color="secondary"}render(){return(0,o.h)(o.H,{style:{color:void 0!==this.color?`var(--rs-color-${this.color})`:""}},(0,o.h)("slot",null))}};e.style=":host{display:block;font-family:soleil, sans-serif;font-weight:400;font-style:normal;line-height:1.4em;font-size:0.75rem;letter-spacing:0.2px}";const n=class{constructor(t){(0,o.r)(this,t),this.rsColorChange=(0,o.c)(this,"rsColorChange",7),this.rsPresetColorChoice=(0,o.c)(this,"rsPresetColorChoice",7),this.color=i.D,this.opacity=!1,this.showPicker=!1,this.position="default",this.display="default",this.transparentButton=!1,this.colorSwatches=null,this.mode="default",this.onColorChange=t=>{t.stopImmediatePropagation(),this.internalColor=t.detail,this.rsColorChange.emit({value:t.detail})},this.onPresetColorChoice=t=>{t.stopImmediatePropagation(),this.rsPresetColorChoice.emit({value:t.detail})},this.positionStyle=()=>"top"===this.position?{bottom:"37px","margin-top":"0px","padding-bottom":"0px"}:{}}async setColor(t){n.allowedColorString(t)&&await this.rsColorPicker.setColor(t)}async getColor(){return this.internalColor}async show(){this.showPicker=!0}async hide(){this.showPicker=!1}componentWillLoad(){var t;this.internalColor=new i.H(...(0,i.p)(null!==(t=this.color)&&void 0!==t?t:i.D).values)}render(){return(0,o.h)(o.H,{style:Object.assign({display:this.showPicker||"inline"===this.display?"block":"none"},this.positionStyle()),class:`rs-color-picker--${this.display}`},(0,o.h)("div",{class:"rs-color-picker__inner"},(0,o.h)("div",{class:"rs-color-picker__swatch"}),(0,o.h)("div",{class:"rs-color-picker__popup"},(0,o.h)("color-picker",{class:"rs-color-picker__picker",color:this.color,mode:this.mode,palettes:this.palettes,opacity:this.opacity,display:this.display,transparentButton:this.transparentButton,onColorChange:this.onColorChange,onPresetColorChoice:this.onPresetColorChoice,ref:t=>this.rsColorPicker=t}))))}static allowedColorString(t){return(0,i.i)(t)||"transparent"===t.toLowerCase()}};n.style=":host{display:block;margin-top:0.3125rem;position:absolute;z-index:2;padding-bottom:1.25rem}:host(.rs-color-picker--inline){position:unset;padding-bottom:0}:host(.rs-color-picker--inline) .rs-color-picker__picker{width:100%;max-width:31.25rem}"}}]);
13
- //# sourceMappingURL=912.index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"912.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,EA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AAE,MAAO,CAAEyJ,MAAO,2BAA4B,IAAAzJ,GAAE,MAAO,CAAEyJ,MAAO,6BAA8B,IAAAzJ,GAAE,MAAO,CAAEyJ,MAAO,2BAA4B,IAAAzJ,GAAE,eAAgB,CAAEyJ,MAAO,0BAA2B9B,MAAO1B,KAAK0B,MAAOc,KAAMxC,KAAKwC,KAAMiB,SAAUzD,KAAKyD,SAAUvB,QAASlC,KAAKkC,QAASG,QAASrC,KAAKqC,QAASC,kBAAmBtC,KAAKsC,kBAAmBG,cAAezC,KAAKyC,cAAeO,oBAAqBhD,KAAKgD,oBAAqBU,IAAKC,GAAM3D,KAAKmD,cAAgBQ,OAEvoB,0BAA0BjC,GACxB,OAAO,IAAArH,GAAWqH,IAAkC,gBAAxBA,EAAM1E,gBAGtC8E,EAAcD,MArGW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/HSVaColor-82f956e7.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-caption_2.entry.js"],"sourcesContent":["const { min, max, floor, round } = Math;\nfunction standardizeColor(name) {\n if (name === undefined) {\n return '#000';\n }\n if (name.toLowerCase() === 'black') {\n return '#000';\n }\n const ctx = document.createElement('canvas').getContext('2d');\n if (ctx === null) {\n return null;\n }\n ctx.fillStyle = name;\n return ctx.fillStyle === '#000' ? null : ctx.fillStyle;\n}\nfunction hsvToRgb(h, s, v) {\n const hLocal = (h / 360) * 6;\n const sLocal = s / 100;\n const vLocal = v / 100;\n const i = floor(hLocal);\n const f = hLocal - i;\n const p = vLocal * (1 - sLocal);\n const q = vLocal * (1 - f * sLocal);\n const t = vLocal * (1 - (1 - f) * sLocal);\n const mod = i % 6;\n const r = [vLocal, q, p, p, t, vLocal][mod];\n const g = [t, vLocal, vLocal, q, p, p][mod];\n const b = [p, p, t, vLocal, vLocal, q][mod];\n return [r * 255, g * 255, b * 255];\n}\nfunction hsvToHex(h, s, v) {\n return hsvToRgb(h, s, v).map(rgb => round(rgb)\n .toString(16)\n .padStart(2, '0'));\n}\nfunction hsvToCmyk(h, s, v) {\n const rgb = hsvToRgb(h, s, v);\n const r = rgb[0] / 255;\n const g = rgb[1] / 255;\n const b = rgb[2] / 255;\n const k = min(1 - r, 1 - g, 1 - b);\n const c = k === 1 ? 0 : (1 - r - k) / (1 - k);\n const m = k === 1 ? 0 : (1 - g - k) / (1 - k);\n const y = k === 1 ? 0 : (1 - b - k) / (1 - k);\n return [c * 100, m * 100, y * 100, k * 100];\n}\nfunction hsvToHsl(h, s, v) {\n let sLocal = s / 100;\n const vLocal = v / 100;\n const l = ((2 - sLocal) * vLocal) / 2;\n if (l !== 0) {\n if (l === 1) {\n sLocal = 0;\n }\n else if (l < 0.5) {\n sLocal = (sLocal * vLocal) / (l * 2);\n }\n else {\n sLocal = (sLocal * vLocal) / (2 - l * 2);\n }\n }\n return [h, sLocal * 100, l * 100];\n}\nfunction rgbToHsv(red, green, blue) {\n const r = red / 255;\n const g = green / 255;\n const b = blue / 255;\n const minVal = min(r, g, b);\n const maxVal = max(r, g, b);\n const delta = maxVal - minVal;\n let h;\n let s;\n const v = maxVal;\n if (delta === 0) {\n h = 0;\n s = 0;\n }\n else {\n s = delta / maxVal;\n const dr = ((maxVal - r) / 6 + delta / 2) / delta;\n const dg = ((maxVal - g) / 6 + delta / 2) / delta;\n const db = ((maxVal - b) / 6 + delta / 2) / delta;\n if (r === maxVal) {\n h = db - dg;\n }\n else if (g === maxVal) {\n h = 1 / 3 + dr - db;\n }\n else if (b === maxVal) {\n h = 2 / 3 + dg - dr;\n }\n if (h < 0) {\n h += 1;\n }\n else if (h > 1) {\n h -= 1;\n }\n }\n return [h * 360, s * 100, v * 100];\n}\nfunction cmykToHsv(cyan, magenta, yellow, key) {\n const c = cyan / 100;\n const m = magenta / 100;\n const y = yellow / 100;\n const k = key / 100;\n const r = (1 - min(1, c * (1 - k) + k)) * 255;\n const g = (1 - min(1, m * (1 - k) + k)) * 255;\n const b = (1 - min(1, y * (1 - k) + k)) * 255;\n return [...rgbToHsv(r, g, b)];\n}\nfunction hslToHsv(hue, saturation, lightness) {\n let s = saturation / 100;\n const l = lightness / 100;\n s *= l < 0.5 ? l : 1 - l;\n const ns = ((2 * s) / (l + s)) * 100;\n const v = (l + s) * 100;\n return [hue, Number.isNaN(ns) ? 0 : ns, v];\n}\nfunction hexToHsv(hex) {\n const hexRgb = hex.match(/.{2}/g);\n if (hexRgb !== null) {\n const [red, green, blue] = hexRgb.map(v => Number.parseInt(v, 16));\n return rgbToHsv(red, green, blue);\n }\n return null;\n}\nfunction getColorType(colorString) {\n // Regular expressions to match different types of color representation\n const regex = {\n cmyk: /^cmyk[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)/i,\n rgba: /^((rgba)|rgb)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hsla: /^((hsla)|hsl)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hsva: /^((hsva)|hsv)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hexa: /^#?(([\\dA-Fa-f]{3,4})|([\\dA-Fa-f]{6})|([\\dA-Fa-f]{8}))$/i,\n };\n const colorType = Object.entries(regex).find(([, colorRegex]) => colorRegex.exec(colorString));\n if (colorType !== undefined) {\n const match = colorType[1].exec(colorString);\n return {\n type: colorType[0],\n regex: colorType[1],\n match,\n };\n }\n return {\n type: null,\n };\n}\n/**\n * Try's to parse a string which represents a color to an HSV array.\n * Current supported types are cmyk, rgba, hsla and hexadecimal.\n */\nfunction parseToHSVA(colorString = '#000') {\n // Check if string is a color-name\n if (colorString.toLowerCase() === 'transparent') {\n colorString = '#00000000';\n }\n const string = colorString.match(/^[a-zA-Z]+$/) !== null ? standardizeColor(colorString) : colorString;\n const { type, match } = getColorType(string);\n /**\n * Takes an Array of any type, convert strings which represents\n * a number to a number an anything else to undefined.\n * */\n const numarize = (array) => array.map(v => (/^(|\\d+)\\.\\d+|\\d+$/.test(v) ? Number(v) : undefined));\n if (type === null || match === null) {\n return { values: null, type: 'hexa' };\n }\n // Match[2] does only contain a truthy value if rgba, hsla, or hsla got matched\n const hasValidAlphaChannel = (a) => !!match[2] === (typeof a === 'number');\n const isValidAlpha = (a) => a >= 0 && a <= 1 && hasValidAlphaChannel(a);\n if (type === 'cmyk') {\n const [, c, m, y, k] = numarize(match);\n if (c && m && y && k && c <= 100 && m <= 100 && y <= 100 && k <= 100) {\n return { values: cmykToHsv(c, m, y, k), type };\n }\n }\n if (type === 'rgba') {\n const [, , , r, g, b, a] = numarize(match);\n if (r !== undefined && g !== undefined && b !== undefined && a !== undefined && r <= 255 && g <= 255 && b <= 255 && isValidAlpha(a)) {\n return { values: [...rgbToHsv(r, g, b), a], alpha: a, type };\n }\n }\n if (type === 'hexa') {\n let [, hex] = match;\n if (hex.length === 4 || hex.length === 3) {\n hex = hex\n .split('')\n .map(v => v + v)\n .join('');\n }\n const raw = hex.substring(0, 6);\n let a = hex.substring(6);\n // Convert 0 - 255 to 0 - 1 for opacity\n a = a ? parseInt(a, 16) / 255 : undefined;\n const hsvValue = hexToHsv(raw);\n if (hsvValue !== undefined) {\n return { values: [...hsvValue, a], alpha: a, type };\n }\n }\n if (type === 'hsla') {\n const [, , , h, s, l, a] = numarize(match);\n if (h && s && l && a && h <= 360 && s <= 100 && l <= 100 && a >= 0 && a <= 1 && isValidAlpha(a)) {\n return { values: [...hslToHsv(h, s, l), a], alpha: a, type };\n }\n }\n if (type === 'hsva') {\n const [, , , h, s, v, a] = numarize(match);\n if (h && s && v && a && h <= 360 && s <= 100 && v <= 100 && a >= 0 && a <= 1 && isValidAlpha(a)) {\n return { values: [h, s, v, a], alpha: a, type };\n }\n }\n return { values: null, type: 'hexa' };\n}\nconst isValidHex = string => {\n if (string === undefined) {\n return false;\n }\n return string.match(/^#?[\\dA-Fa-f]{6,8}$/i);\n};\nconst DEFAULT_COLOR = '#7CA1FF';\n\n/**\n * Simple class which holds the properties\n * of the color representation model hsla (hue saturation lightness alpha)\n */\nclass HSVaColor {\n constructor(h = 0, s = 0, v = 0, a = 1) {\n this.mapper = (original, next) => (precision = -1) => {\n return next(precision >= 0 ? original.map(v => Number(v.toFixed(precision))) : original);\n };\n this.h = h;\n this.s = s;\n this.v = v;\n this.a = (a > 1) ? a / 100 : a;\n }\n toHSVA() {\n const hsva = [this.h, this.s, this.v, this.a];\n hsva.toString = this.mapper(hsva, arr => `hsva(${arr[0]}, ${arr[1]}%, ${arr[2]}%, ${this.readableAlpha()})`);\n return hsva;\n }\n toHSLA() {\n const hsla = [...hsvToHsl(this.h, this.s, this.v), this.a];\n hsla.toString = this.mapper(hsla, arr => `hsla(${arr[0]}, ${arr[1]}%, ${arr[2]}%, ${this.readableAlpha()})`);\n return hsla;\n }\n toHSL() {\n const hsl = hsvToHsl(this.h, this.s, this.v);\n hsl.toString = this.mapper(hsl, arr => `hsl(${arr[0]}, ${arr[1]}%, ${arr[2]}%)`);\n return hsl;\n }\n toRGBA() {\n const rgba = [...hsvToRgb(this.h, this.s, this.v), this.a];\n rgba.toString = this.mapper(rgba, arr => `rgba(${Math.round(arr[0])}, ${Math.round(arr[1])}, ${Math.round(arr[2])}, ${this.readableAlpha()})`);\n return rgba;\n }\n /**\n * @deprecated {@see toRGBModern()}\n */\n toRGB() {\n const rgb = hsvToRgb(this.h, this.s, this.v);\n rgb.toString = this.mapper(rgb, arr => `rgb(${Math.round(arr[0])}, ${Math.round(arr[1])}, ${Math.round(arr[2])})`);\n return rgb;\n }\n toRGBModern() {\n const rgba = [...hsvToRgb(this.h, this.s, this.v), this.a];\n rgba.toString = this.mapper(rgba, arr => `rgb(${Math.round(arr[0])} ${Math.round(arr[1])} ${Math.round(arr[2])} / ${this.alphaAsPercent()})`);\n return rgba;\n }\n toCMYK() {\n const cmyk = hsvToCmyk(this.h, this.s, this.v);\n cmyk.toString = this.mapper(cmyk, arr => `cmyk(${arr[0]}%, ${arr[1]}%, ${arr[2]}%, ${arr[3]}%)`);\n return cmyk;\n }\n toHEXA() {\n const hex = hsvToHex(this.h, this.s, this.v);\n // Check if alpha channel make sense, convert it to 255 number space, convert\n // To hex and pad it with zeros if needed.\n const alpha = this.a >= 1\n ? ''\n : Number((this.a * 255).toFixed(0))\n .toString(16)\n .toUpperCase()\n .padStart(2, '0');\n alpha && hex.push(alpha);\n hex.toString = () => `#${hex.join('').toUpperCase()}`;\n return hex;\n }\n toHEX() {\n const hex = hsvToHex(this.h, this.s, this.v);\n hex.toString = () => `#${hex.join('').toLowerCase()}`;\n return hex;\n }\n set alpha(a) {\n this.a = (a > 1) ? a / 100 : a;\n }\n get alpha() {\n return this.a;\n }\n set hue(h) {\n this.h = Math.round(h);\n }\n get hue() {\n return this.h;\n }\n set saturation(s) {\n this.s = Math.round(s);\n }\n get saturation() {\n return this.s;\n }\n set value(v) {\n this.v = Math.round(v);\n }\n get value() {\n return this.v;\n }\n clone() {\n return new HSVaColor(this.h, this.s, this.v, this.a);\n }\n readableAlpha() {\n return Math.round((this.a + Number.EPSILON) * 100) / 100;\n }\n alphaAsPercent() {\n return Math.round((this.a + Number.EPSILON) * 100) + '%';\n }\n}\n\nexport { DEFAULT_COLOR as D, HSVaColor as H, isValidHex as i, parseToHSVA as p };\n","import { r as registerInstance, h, H as Host, c as createEvent } from './index-d4fae449.js';\nimport { D as DEFAULT_COLOR, H as HSVaColor, p as parseToHSVA, i as isValidHex } from './HSVaColor-82f956e7.js';\n\nconst captionCss = \":host{display:block;font-family:soleil, sans-serif;font-weight:400;font-style:normal;line-height:1.4em;font-size:0.75rem;letter-spacing:0.2px}\";\n\nconst Caption = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Color of the caption text\n */\n this.color = 'secondary';\n }\n render() {\n return (h(Host, { style: {\n color: this.color !== undefined ? `var(--rs-color-${this.color})` : ''\n } }, h(\"slot\", null)));\n }\n};\nCaption.style = captionCss;\n\nconst rsColorPickerCss = \":host{display:block;margin-top:0.3125rem;position:absolute;z-index:2;padding-bottom:1.25rem}:host(.rs-color-picker--inline){position:unset;padding-bottom:0}:host(.rs-color-picker--inline) .rs-color-picker__picker{width:100%;max-width:31.25rem}\";\n\nconst RsColorPicker = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsColorChange = createEvent(this, \"rsColorChange\", 7);\n this.rsPresetColorChoice = createEvent(this, \"rsPresetColorChoice\", 7);\n /**\n * Selected colour\n */\n this.color = DEFAULT_COLOR;\n /**\n * If true, will show an opacity slider in the colour picker popup\n */\n this.opacity = false;\n /**\n * Determines whether to show the color picker or not\n */\n this.showPicker = false;\n /**\n * If this is set to 'top', then we show the color picker above the color swatch\n * If 'default', we show the color picker below the color swatch\n *\n */\n this.position = 'default';\n /**\n * If default, color picker's floating and has drop shadow - will display relative to the nearest positioned ancestor.\n * If inline, color picker will always display according to the normal flow of the page - will have no drop-shadow and width is always 100%.\n */\n this.display = 'default';\n /**\n * If set to true, a button will show that will allow the user to set the color picker to transparent without the need for the opacity slider\n */\n this.transparentButton = false;\n /**\n * Sets the colour swatches\n */\n this.colorSwatches = null;\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.onColorChange = (event) => {\n event.stopImmediatePropagation();\n this.internalColor = event.detail;\n this.rsColorChange.emit({ value: event.detail });\n };\n this.onPresetColorChoice = (event) => {\n event.stopImmediatePropagation();\n this.rsPresetColorChoice.emit({ value: event.detail });\n };\n this.positionStyle = () => {\n if (this.position === 'top') {\n return {\n 'bottom': '37px',\n 'margin-top': '0px',\n 'padding-bottom': '0px',\n };\n }\n return {};\n };\n }\n /**\n * Set the color of the color swatch\n * @param color\n */\n async setColor(color) {\n if (!RsColorPicker.allowedColorString(color)) {\n return;\n }\n await this.rsColorPicker.setColor(color);\n }\n /**\n * Returns a HSVaColor object of the currently selected color\n */\n async getColor() {\n return this.internalColor;\n }\n /**\n * A method that can be called on the element for showing the color picker\n */\n async show() {\n this.showPicker = true;\n }\n /**\n * A method that can be called on the element for hiding the color picker\n */\n async hide() {\n this.showPicker = false;\n }\n componentWillLoad() {\n var _a;\n this.internalColor = new HSVaColor(...parseToHSVA((_a = this.color) !== null && _a !== void 0 ? _a : DEFAULT_COLOR).values);\n }\n render() {\n return (h(Host, { style: Object.assign({ display: (this.showPicker || this.display === 'inline') ? 'block' : 'none' }, this.positionStyle()), class: `rs-color-picker--${this.display}` }, h(\"div\", { class: \"rs-color-picker__inner\" }, h(\"div\", { class: \"rs-color-picker__swatch\" }), h(\"div\", { class: \"rs-color-picker__popup\" }, h(\"color-picker\", { class: \"rs-color-picker__picker\", color: this.color, mode: this.mode, palettes: this.palettes, opacity: this.opacity, display: this.display, transparentButton: this.transparentButton, onColorChange: this.onColorChange, onPresetColorChoice: this.onPresetColorChoice, ref: el => this.rsColorPicker = el })))));\n }\n static allowedColorString(color) {\n return isValidHex(color) || color.toLowerCase() === 'transparent';\n }\n};\nRsColorPicker.style = rsColorPickerCss;\n\nexport { Caption as rs_caption, RsColorPicker as rs_color_picker };\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","Caption","hostRef","color","render","H","style","RsColorPicker","rsColorChange","rsPresetColorChoice","D","opacity","showPicker","position","display","transparentButton","colorSwatches","mode","onColorChange","event","stopImmediatePropagation","internalColor","detail","emit","value","onPresetColorChoice","positionStyle","allowedColorString","rsColorPicker","setColor","componentWillLoad","_a","assign","class","palettes","ref","el"],"sourceRoot":""}
@@ -1,13 +0,0 @@
1
- /*!
2
- *
3
- * @rocketspark/domain-checker v0.0.20
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([[927],{4927:function(e,r,n){n.r(r),n.d(r,{rs_incrementer_option:function(){return t}});var i=n(492);const t=class{constructor(e){(0,i.r)(this,e),this.rsOptionClick=(0,i.c)(this,"rsOptionClick",7),this.onClickHandler=()=>{this.rsOptionClick.emit({value:this.value})}}render(){return(0,i.h)(i.H,{class:{"number-incrementer__dropdown-item":!0,"number-incrementer__dropdown-item--string":"string"==typeof this.value},"data-value":this.value,onClick:this.onClickHandler},(0,i.h)("slot",null))}};t.style=":host{display:block;position:relative;padding:0.625rem;font-family:'Soleil', sans-serif;cursor:pointer;font-size:0.75rem}:host(:hover){background-color:var(--rs-color-select-background)}"}}]);
13
- //# sourceMappingURL=927.index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"927.index.js","mappings":";;;;;;;;;;;2LAEA,MAEMA,EAAoB,MACxBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,eAAgB,IAAAC,GAAYF,KAAM,gBAAiB,GACxDA,KAAKG,eAAiB,KACpBH,KAAKC,cAAcG,KAAK,CAAEC,MAAOL,KAAKK,SAG1CC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,qCAAqC,EACrC,4CAAmE,iBAAfT,KAAKK,OACxD,aAAcL,KAAKK,MAAOK,QAASV,KAAKG,iBAAkB,IAAAI,GAAE,OAAQ,SAG7EX,EAAkBe,MAjBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-incrementer-option.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host } from './index-d4fae449.js';\n\nconst incrementerOptionCss = \":host{display:block;position:relative;padding:0.625rem;font-family:'Soleil', sans-serif;cursor:pointer;font-size:0.75rem}:host(:hover){background-color:var(--rs-color-select-background)}\";\n\nconst IncrementerOption = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsOptionClick = createEvent(this, \"rsOptionClick\", 7);\n this.onClickHandler = () => {\n this.rsOptionClick.emit({ value: this.value });\n };\n }\n render() {\n return (h(Host, { class: {\n 'number-incrementer__dropdown-item': true,\n 'number-incrementer__dropdown-item--string': typeof this.value === 'string'\n }, \"data-value\": this.value, onClick: this.onClickHandler }, h(\"slot\", null)));\n }\n};\nIncrementerOption.style = incrementerOptionCss;\n\nexport { IncrementerOption as rs_incrementer_option };\n"],"names":["IncrementerOption","constructor","hostRef","r","this","rsOptionClick","c","onClickHandler","emit","value","render","h","H","class","onClick","style"],"sourceRoot":""}
@@ -1,13 +0,0 @@
1
- /*!
2
- *
3
- * @rocketspark/domain-checker v0.0.20
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([[953],{2953:function(t,e,i){i.r(e),i.d(e,{rs_toggle:function(){return o}});var s=i(492);const o=class{constructor(t){(0,s.r)(this,t),this.toggle=(0,s.c)(this,"toggle",7),this.currentPosition=0,this.hasMovedActiveTab=!1,this.renderToggleBar=()=>{this.toggleItems=this.host.querySelectorAll("rs-toggle-item"),this.activeTabElement.style.width=`calc(${100/this.toggleItems.length}%)`,this.toggleItems.forEach(((t,e)=>{null!==t.getAttribute("active")&&this.moveActiveTab(e),t.addEventListener("click",(()=>{this.currentPosition!==e&&(this.moveActiveTab(e),this.removeAllActiveProp(),t.setAttribute("active","true"))}))})),this.hasMovedActiveTab||this.moveActiveTab(0)}}async setActivePosition(t=0){this.moveActiveTab(t)}removeAllActiveProp(){this.toggleItems.forEach((t=>{t.removeAttribute("active")}))}moveActiveTab(t){this.activeTabElement.style.left=`calc(${100/this.toggleItems.length*t}%)`,this.currentPosition=t,this.hasMovedActiveTab=!0,this.toggle.emit({value:t,target:this.toggleItems[t]})}componentDidRender(){this.renderToggleBar()}render(){return(0,s.h)(s.H,null,(0,s.h)("div",{class:"toggle"},(0,s.h)("div",{class:"toggle__items"},(0,s.h)("slot",{onSlotchange:this.renderToggleBar}),(0,s.h)("div",{ref:t=>this.activeTabElement=t,class:"active-tab"}))))}get host(){return(0,s.g)(this)}};o.style=".toggle{display:block;padding:0.25rem;border-radius:0.4375rem;background:var(--rs-color-light)}.toggle__items{display:flex;flex-direction:row;position:relative}.active-tab{position:absolute;height:calc(100%);border-radius:0.25rem;background:var(--rs-color-white);box-shadow:0 1px 0.3125rem rgb(195 213 226 / 0.62);z-index:1;transition:left 0.15s ease-out}"}}]);
13
- //# sourceMappingURL=953.index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"953.index.js","mappings":";;;;;;;;;;;+KAEA,MAEMA,EAAS,MACbC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,QAAS,IAAAC,GAAYF,KAAM,SAAU,GAC1CA,KAAKG,gBAAkB,EACvBH,KAAKI,mBAAoB,EACzBJ,KAAKK,gBAAkB,KACrBL,KAAKM,YAAcN,KAAKO,KAAKC,iBAAiB,kBAC9CR,KAAKS,iBAAiBC,MAAMC,MAAQ,QAAS,IAAMX,KAAKM,YAAYM,WACpEZ,KAAKM,YAAYO,SAAQ,CAACC,EAAMC,KACM,OAAhCD,EAAKE,aAAa,WACpBhB,KAAKiB,cAAcF,GAErBD,EAAKI,iBAAiB,SAAS,KACzBlB,KAAKG,kBAAoBY,IAG7Bf,KAAKiB,cAAcF,GACnBf,KAAKmB,sBACLL,EAAKM,aAAa,SAAU,eAG3BpB,KAAKI,mBACRJ,KAAKiB,cAAc,IAQzB,wBAAwBF,EAAW,GACjCf,KAAKiB,cAAcF,GAErBI,sBACEnB,KAAKM,YAAYO,SAAQC,IACvBA,EAAKO,gBAAgB,aAGzBJ,cAAcF,GACZf,KAAKS,iBAAiBC,MAAMY,KAAO,QAAS,IAAMtB,KAAKM,YAAYM,OAASG,MAC5Ef,KAAKG,gBAAkBY,EACvBf,KAAKI,mBAAoB,EACzBJ,KAAKC,OAAOsB,KAAK,CAAEC,MAAOT,EAAUU,OAAQzB,KAAKM,YAAYS,KAE/DW,qBACE1B,KAAKK,kBAEPsB,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,MAAO,CAAEE,MAAO,WAAY,IAAAF,GAAE,MAAO,CAAEE,MAAO,kBAAmB,IAAAF,GAAE,OAAQ,CAAEG,aAAc/B,KAAKK,mBAAoB,IAAAuB,GAAE,MAAO,CAAEI,IAAKC,GAAMjC,KAAKS,iBAAmBwB,EAAIH,MAAO,kBAEvM,WAAa,OAAO,IAAAI,GAAWlC,QAEjCJ,EAAOc,MAvDW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-toggle.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\n\nconst toggleCss = \".toggle{display:block;padding:0.25rem;border-radius:0.4375rem;background:var(--rs-color-light)}.toggle__items{display:flex;flex-direction:row;position:relative}.active-tab{position:absolute;height:calc(100%);border-radius:0.25rem;background:var(--rs-color-white);box-shadow:0 1px 0.3125rem rgb(195 213 226 / 0.62);z-index:1;transition:left 0.15s ease-out}\";\n\nconst Toggle = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.toggle = createEvent(this, \"toggle\", 7);\n this.currentPosition = 0;\n this.hasMovedActiveTab = false;\n this.renderToggleBar = () => {\n this.toggleItems = this.host.querySelectorAll('rs-toggle-item');\n this.activeTabElement.style.width = `calc(${(100 / this.toggleItems.length)}%)`;\n this.toggleItems.forEach((item, position) => {\n if (item.getAttribute('active') !== null) {\n this.moveActiveTab(position);\n }\n item.addEventListener('click', () => {\n if (this.currentPosition === position) {\n return;\n }\n this.moveActiveTab(position);\n this.removeAllActiveProp();\n item.setAttribute('active', 'true');\n });\n });\n if (!this.hasMovedActiveTab) {\n this.moveActiveTab(0);\n }\n };\n }\n /**\n * Set the current active state of the toggle\n * @param {number} position\n */\n async setActivePosition(position = 0) {\n this.moveActiveTab(position);\n }\n removeAllActiveProp() {\n this.toggleItems.forEach(item => {\n item.removeAttribute('active');\n });\n }\n moveActiveTab(position) {\n this.activeTabElement.style.left = `calc(${(100 / this.toggleItems.length * position)}%)`;\n this.currentPosition = position;\n this.hasMovedActiveTab = true;\n this.toggle.emit({ value: position, target: this.toggleItems[position] });\n }\n componentDidRender() {\n this.renderToggleBar();\n }\n render() {\n return (h(Host, null, h(\"div\", { class: 'toggle' }, h(\"div\", { class: 'toggle__items' }, h(\"slot\", { onSlotchange: this.renderToggleBar }), h(\"div\", { ref: el => this.activeTabElement = el, class: 'active-tab' })))));\n }\n get host() { return getElement(this); }\n};\nToggle.style = toggleCss;\n\nexport { Toggle as rs_toggle };\n"],"names":["Toggle","constructor","hostRef","r","this","toggle","c","currentPosition","hasMovedActiveTab","renderToggleBar","toggleItems","host","querySelectorAll","activeTabElement","style","width","length","forEach","item","position","getAttribute","moveActiveTab","addEventListener","removeAllActiveProp","setAttribute","removeAttribute","left","emit","value","target","componentDidRender","render","h","H","class","onSlotchange","ref","el","g"],"sourceRoot":""}
@@ -1,13 +0,0 @@
1
- /*!
2
- *
3
- * @rocketspark/domain-checker v0.0.20
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([[955],{7606:function(t,s,e){e.d(s,{i:function(){return n},s:function(){return a}});var i=e(492);const n=(t,s,e)=>{const n=(void 0!==t.target?t.target:e).tagName.toLowerCase().replace("rs-",""),a=t.detail,o={},r=s.get(n)||{};let h=!1;Object.keys(a).forEach((t=>{if(a[t]){const s=`item-${t}`;r[s]||(h=!0),o[s]=!0}})),h||Object.keys(o).length===Object.keys(r).length||(h=!0),h&&(s.set(n,o),(0,i.f)(e))},a=(t,s,e,i=!1)=>{!s&&!e||i||null!==t&&(t.style.display="block",setTimeout((function(){t.style.opacity="1"}),150))}},6955:function(t,s,e){e.r(s),e.d(s,{rs_input:function(){return a}});var i=e(492),n=e(7606);const a=class{constructor(t){(0,i.r)(this,t),this.rsInput=(0,i.c)(this,"rsInput",7),this.rsInputChanged=(0,i.c)(this,"rsInputChanged",7),this.rsInputNoFocus=(0,i.c)(this,"rsInputNoFocus",7),this.rsInputFocus=(0,i.c)(this,"rsInputFocus",7),this.rsItem=(0,i.c)(this,"rsItem",7),this.didBlurAfterEdit=!1,this.hasStartSlot=!1,this.hasEndSlot=!1,this.hasFocus=!1,this.charsLeft=0,this.type="text",this.value="",this.disabled=!1,this.readonly=!1,this.clearOnEdit=!1,this.clearInput=!1,this.required=!1,this.hideMax=!1,this.hardLimit=null,this.softLimit=null,this.hasError=!1,this.textAlign="left",this.size="default",this.onInput=t=>{const s=t.target;null!==s&&(this.value=s.value||""),this.rsInput.emit(t)},this.onFocus=()=>{this.hasFocus=!0,this.focusChanged(),this.emitRsItem(),this.rsInputFocus.emit()},this.focusChanged=()=>{!this.hasFocus&&this.hasValue()&&(this.didBlurAfterEdit=!0)},this.shouldClearOnEdit=()=>{const{type:t,clearOnEdit:s}=this;return void 0===s?"password"===t:s},this.onKeyDown=()=>{this.shouldClearOnEdit()&&this.didBlurAfterEdit&&this.hasValue()&&this.clearTextInput(),this.didBlurAfterEdit=!1},this.clearTextInput=t=>{void 0===this.clearInput||this.readonly||this.disabled||void 0===t||(t.preventDefault(),t.stopPropagation()),this.value="",null!==this.nativeElement&&(this.nativeElement.value="")},this.onBlur=()=>{this.hasFocus=!1,this.focusChanged(),this.emitRsItem(),this.rsInputNoFocus.emit()}}disabledChanged(){this.emitRsItem()}valueChanged(){this.emitRsItem(),this.changeMaxLengthText(),this.rsInputChanged.emit({value:null==this.value?this.value:this.value.toString()})}async update(){(0,i.f)(this.el)}async setFocus(){null!==this.nativeElement&&this.nativeElement.focus()}getInputElement(){return Promise.resolve(this.nativeElement)}getValue(){return this.value||""}hasValue(){return this.getValue().length>0}emitRsItem(){this.rsItem.emit({input:!0,interactive:!0,"has-focus":this.hasFocus,"has-value":this.hasValue(),"has-placeholder":null!==this.placeholder,"has-error":this.hasError,"has-max":null!==this.hardLimit||null!==this.softLimit,"hide-max":this.hideMax,"interactive-disabled":this.disabled,"input-has-start-slot":this.hasStartSlot,"input-has-end-slot":this.hasEndSlot,"input-chars-over-max":this.charsLeft<0,"input-is-required":this.required})}changeMaxLengthText(){if(null!==this.softLimit&&this.softLimit>0&&!this.hideMax){const t=this.value.length;this.charsLeft=this.softLimit-t;const s=this.el.shadowRoot.querySelector(".max-length");null!==s&&(this.charsLeft<0?(s.innerHTML=`${Math.abs(this.charsLeft)} over`,this.el.classList.add("input-chars-over-max")):(s.innerHTML=`${this.charsLeft} left`,this.el.classList.remove("input-chars-over-max")))}}componentDidLoad(){if(void 0!==this.softLimit||void 0!==this.hardLimit){const t=this.el.shadowRoot.querySelector(".max-length");(0,n.s)(t,this.hardLimit,this.softLimit,this.hideMax),this.changeMaxLengthText()}}connectedCallback(){this.hasStartSlot=null!==this.el.querySelector('[slot="start"]'),this.hasEndSlot=null!==this.el.querySelector('[slot="end"]'),this.emitRsItem()}render(){const t=this.getValue();let s=null;if((this.hardLimit||this.softLimit)&&!this.hideMax){const t=this.hardLimit||this.softLimit;s=(0,i.h)("span",{class:"max-length"},t," max")}return(0,i.h)(i.H,{class:{"has-value":this.hasValue(),"has-focus":this.hasFocus,"has-placeholder":null!==this.placeholder,"has-max":null!==this.hardLimit||null!==this.softLimit,"hide-max":this.hideMax,"chars-over-max":this.charsLeft<0,"has-error":this.hasError,[`text-align-${this.textAlign}`]:!0,[`size-${this.size}`]:!0}},s,(0,i.h)("div",{class:"rs-input__inner"},(0,i.h)("slot",{name:"start"}),(0,i.h)("input",{class:"native-input",ref:t=>this.nativeElement=t,disabled:this.disabled,readonly:this.readonly,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,placeholder:this.placeholder,type:this.type,required:this.required,name:this.name,maxlength:this.hardLimit,value:t}),(0,i.h)("slot",{name:"end"})))}get el(){return(0,i.g)(this)}static get watchers(){return{disabled:["disabledChanged"],value:["valueChanged"]}}};a.style=':host{display:block;position:static;width:100%;padding:0}.rs-input__inner{display:flex;align-items:center;justify-content:flex-start;width:100%;height:2.625rem;box-shadow:none;background:var(--rs-color-light);border:none;box-sizing:border-box;border-radius:0.25rem;padding:0.6875rem 0.875rem;transition:box-shadow .15s ease-out, background-color .15s ease-out}:host(.size-small) .rs-input__inner{height:2rem;padding:0.5rem}:host(.size-small) .rs-input__inner .native-input{padding:0 0 0.125rem 0}:host(.text-align-center) .rs-input__inner .native-input{text-align:center}:host(.text-align-right) .rs-input__inner .native-input{text-align:right}:host(.text-align-left) .rs-input__inner .native-input{text-align:left}.native-input,.native-input:focus{border:none;background-image:none;background-color:transparent;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-appearance:none;outline:none;height:100%;width:100%;display:block;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:0.875rem;line-height:140%;color:var(--rs-color-heading);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;resize:none;padding:0}.native-input::placeholder{color:var(--rs-color-grey);font-family:Soleil, sans-serif;font-style:normal;font-weight:normal}.native-input[disabled]{opacity:0.4}:host(.has-value) .rs-input__inner{box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);background-color:var(--rs-color-white)}:host(.has-focus) .rs-input__inner{box-shadow:inset 0 0 0 0.125rem var(--rs-color-primary);background-color:var(--rs-color-white);color:var(--rs-color-heading);outline:none;pointer-events:auto;opacity:1}:host(.has-error.has-focus) .rs-input__inner{box-shadow:inset 0 0 0 0.125rem var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-error:not(.has-focus)) .rs-input__inner{box-shadow:inset 0 0 0 1px var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-focus) .max-length{color:var(--rs-color-grey)}:host(.has-value:not(.has-focus)) .max-length{display:block;opacity:1;color:var(--rs-color-grey-light)}:host .max-length{font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:0.75rem;line-height:0.8125rem;text-align:right;color:var(--rs-color-grey);display:none;opacity:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:0.3125rem;transition:opacity .15s ease-out, color .15s ease-out}:host(.chars-over-max) .max-length{color:var(--rs-color-negative)}::slotted([slot="start"]){margin-right:0.625rem}::slotted([slot="end"]){margin-left:0.625rem}'}}]);
13
- //# sourceMappingURL=955.index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"955.index.js","mappings":";;;;;;;;;;;uLAEA,MAAMA,EAAY,CAACC,EAAIC,EAAYC,KACjC,MACMC,QADmBC,IAAdJ,EAAGK,OAAuBL,EAAGK,OAASH,GAC9BC,QAAQG,cAAcC,QAAQ,MAAO,IAClDC,EAAgBR,EAAGS,OACnBC,EAAY,GACZC,EAAcV,EAAWW,IAAIT,IAAY,GAC/C,IAAI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c,GAAE,OAAQ,CAAEC,MAAO,cAAgBL,EAAW,QAEjE,OAAQ,IAAAI,GAAE,EAAAE,EAAM,CAAED,MAAO,CACrB,YAAa/D,KAAK4B,WAClB,YAAa5B,KAAKU,SAClB,kBAAwC,OAArBV,KAAK8C,YACxB,UAA8B,OAAnB9C,KAAKX,WAAyC,OAAnBW,KAAKV,UAC3C,WAAYU,KAAKT,QACjB,iBAAkBS,KAAKW,UAAY,EACnC,YAAaX,KAAKmB,SAClB,CAAC,cAAcnB,KAAKoB,cAAc,EAClC,CAAC,QAAQpB,KAAKqB,SAAS,IACpB2B,GAAe,IAAAc,GAAE,MAAO,CAAEC,MAAO,oBAAqB,IAAAD,GAAE,OAAQ,CAAEG,KAAM,WAAY,IAAAH,GAAE,QAAS,CAAEC,MAAO,eAAgBG,IAAK3C,GAASvB,KAAKkC,cAAgBX,EAAOT,SAAUd,KAAKc,SAAUC,SAAUf,KAAKe,SAAUO,QAAStB,KAAKsB,QAASG,QAASzB,KAAKyB,QAASU,OAAQnC,KAAKmC,OAAQL,UAAW9B,KAAK8B,UAAWgB,YAAa9C,KAAK8C,YAAalC,KAAMZ,KAAKY,KAAMM,SAAUlB,KAAKkB,SAAU+C,KAAMjE,KAAKiE,KAAME,UAAWnE,KAAKX,UAAWwB,MAAOA,KAAU,IAAAiD,GAAE,OAAQ,CAAEG,KAAM,UAEnd,SAAW,OAAO,IAAAG,GAAWpE,MAC7B,sBAAwB,MAAO,CAC7B,SAAY,CAAC,mBACb,MAAS,CAAC,mBAGdJ,EAAMJ,MAxSW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/helpers-a2e2c8b3.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-input.entry.js"],"sourcesContent":["import { f as forceUpdate } from './index-d4fae449.js';\n\nconst itemStyle = (ev, itemStyles, element) => {\n const el = ev.target !== undefined ? ev.target : element;\n const tagName = el.tagName.toLowerCase().replace('rs-', '');\n const updatedStyles = ev.detail;\n const newStyles = {};\n const childStyles = itemStyles.get(tagName) || {};\n let hasStyleChange = false;\n Object.keys(updatedStyles).forEach(key => {\n if (updatedStyles[key]) {\n const itemKey = `item-${key}`;\n if (!childStyles[itemKey]) {\n hasStyleChange = true;\n }\n newStyles[itemKey] = true;\n }\n });\n if (!hasStyleChange && Object.keys(newStyles).length !== Object.keys(childStyles).length) {\n hasStyleChange = true;\n }\n if (hasStyleChange) {\n itemStyles.set(tagName, newStyles);\n forceUpdate(element);\n }\n};\nconst showCharacterCounter = (maxLengthElement, hardLimit, softLimit, hideMax = false) => {\n // show only if soft limit or hard limit is set and if the element has been rendered\n if ((hardLimit || softLimit) && !hideMax) {\n if (maxLengthElement !== null) {\n maxLengthElement.style.display = 'block';\n setTimeout(function () {\n maxLengthElement.style.opacity = '1';\n }, 150);\n }\n }\n};\n\nexport { itemStyle as i, showCharacterCounter as s };\n","import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-d4fae449.js';\nimport { s as showCharacterCounter } from './helpers-a2e2c8b3.js';\n\nconst inputCss = \":host{display:block;position:static;width:100%;padding:0}.rs-input__inner{display:flex;align-items:center;justify-content:flex-start;width:100%;height:2.625rem;box-shadow:none;background:var(--rs-color-light);border:none;box-sizing:border-box;border-radius:0.25rem;padding:0.6875rem 0.875rem;transition:box-shadow .15s ease-out, background-color .15s ease-out}:host(.size-small) .rs-input__inner{height:2rem;padding:0.5rem}:host(.size-small) .rs-input__inner .native-input{padding:0 0 0.125rem 0}:host(.text-align-center) .rs-input__inner .native-input{text-align:center}:host(.text-align-right) .rs-input__inner .native-input{text-align:right}:host(.text-align-left) .rs-input__inner .native-input{text-align:left}.native-input,.native-input:focus{border:none;background-image:none;background-color:transparent;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-appearance:none;outline:none;height:100%;width:100%;display:block;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:0.875rem;line-height:140%;color:var(--rs-color-heading);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;resize:none;padding:0}.native-input::placeholder{color:var(--rs-color-grey);font-family:Soleil, sans-serif;font-style:normal;font-weight:normal}.native-input[disabled]{opacity:0.4}:host(.has-value) .rs-input__inner{box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);background-color:var(--rs-color-white)}:host(.has-focus) .rs-input__inner{box-shadow:inset 0 0 0 0.125rem var(--rs-color-primary);background-color:var(--rs-color-white);color:var(--rs-color-heading);outline:none;pointer-events:auto;opacity:1}:host(.has-error.has-focus) .rs-input__inner{box-shadow:inset 0 0 0 0.125rem var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-error:not(.has-focus)) .rs-input__inner{box-shadow:inset 0 0 0 1px var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-focus) .max-length{color:var(--rs-color-grey)}:host(.has-value:not(.has-focus)) .max-length{display:block;opacity:1;color:var(--rs-color-grey-light)}:host .max-length{font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:0.75rem;line-height:0.8125rem;text-align:right;color:var(--rs-color-grey);display:none;opacity:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:0.3125rem;transition:opacity .15s ease-out, color .15s ease-out}:host(.chars-over-max) .max-length{color:var(--rs-color-negative)}::slotted([slot=\\\"start\\\"]){margin-right:0.625rem}::slotted([slot=\\\"end\\\"]){margin-left:0.625rem}\";\n\nconst Input = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsInput = createEvent(this, \"rsInput\", 7);\n this.rsInputChanged = createEvent(this, \"rsInputChanged\", 7);\n this.rsInputNoFocus = createEvent(this, \"rsInputNoFocus\", 7);\n this.rsInputFocus = createEvent(this, \"rsInputFocus\", 7);\n this.rsItem = createEvent(this, \"rsItem\", 7);\n this.didBlurAfterEdit = false;\n this.hasStartSlot = false;\n this.hasEndSlot = false;\n /**\n * Checks if the input has focus or not.\n * Any changes on this property will cause the render function to be called again\n */\n this.hasFocus = false; // initially, input field will have no focus\n /**\n * Character counter.\n * Used for updating the text above the input field.\n */\n this.charsLeft = 0;\n /**\n * Possible values are: date, email, number, password, search, tel, text, url, time.\n * The type of control to display.\n */\n this.type = 'text';\n /**\n * The value of the input field.\n */\n this.value = '';\n /**\n * (optional)\n * Puts the input field in a disabled state.\n */\n this.disabled = false;\n /**\n * (optional)\n * Puts the input in a readonly state.\n */\n this.readonly = false; // (optional) Puts the input in a readonly state\n /**\n * If true, value will be cleared after focus upon edit.\n */\n this.clearOnEdit = false; // if true, value will be cleared after focus upon edit\n /**\n * If true, an icon will appear in the input when there's a value. Clicking the icon clears the input.\n */\n this.clearInput = false;\n /**\n * If true, the user must enter a value before submitting the form.\n */\n this.required = false; // If true, the user must fill in a value before submitting the form\n /**\n * Hides the max number of characters and the character counter text above the input field.\n */\n this.hideMax = false;\n /**\n * (hard max)\n * This specifies the maximum number of characters the user can enter.\n * If the user goes over the maximum number of characters, they won't be able to type anything in the input field anymore.\n */\n this.hardLimit = null;\n /**\n * (soft max)\n * This specifies the maximum number of characters the user can enter.\n * If the user goes over the maximum number of characters, they will still be able to type something in the input field.\n * Character counter above the input field will display.\n */\n this.softLimit = null;\n /**\n * Sets the input field to an error state - border will change to red.\n */\n this.hasError = false;\n /**\n * Sets the alignment of the text inside the input field\n */\n this.textAlign = 'left';\n /**\n * Sets the size of the input field\n * @protected\n */\n this.size = 'default';\n /**\n * The function which gets called when user enters something in the input field\n * @param ev - event\n */\n this.onInput = (ev) => {\n const input = ev.target;\n if (input !== null) {\n this.value = input.value || '';\n }\n this.rsInput.emit(ev); // emit keyboard input event\n };\n /**\n * The function which gets called when input is in focus\n */\n this.onFocus = () => {\n this.hasFocus = true; // this element has focus now\n this.focusChanged();\n this.emitRsItem(); // emit change in style - should have the primary color when on focus\n this.rsInputFocus.emit(); // emit input focus event\n };\n /**\n * The function which gets called when focus on the input changes\n */\n this.focusChanged = () => {\n if (!this.hasFocus && this.hasValue()) {\n this.didBlurAfterEdit = true;\n }\n };\n /**\n * The function which gets called id we want to clear value on edit\n */\n this.shouldClearOnEdit = () => {\n const { type, clearOnEdit } = this;\n return (clearOnEdit === undefined) ? type === 'password' : clearOnEdit;\n };\n /**\n * The function which gets called when the user presses a key\n */\n this.onKeyDown = () => {\n if (this.shouldClearOnEdit()) {\n // Did the input value change after it was blurred and edited\n if (this.didBlurAfterEdit && this.hasValue()) {\n // Clear the input\n this.clearTextInput();\n }\n }\n this.didBlurAfterEdit = false;\n };\n /**\n * The function which gets called when we want to clear the value\n */\n this.clearTextInput = (ev) => {\n if (this.clearInput !== undefined &&\n !this.readonly &&\n !this.disabled &&\n ev !== undefined) {\n ev.preventDefault();\n ev.stopPropagation();\n }\n this.value = '';\n /**\n * This is needed for clearOnEdit\n * Otherwise the value will not be cleared\n * if user is inside the input\n */\n if (this.nativeElement !== null) {\n this.nativeElement.value = '';\n }\n };\n /**\n * The function which gets called when input gets out of focus\n */\n this.onBlur = () => {\n this.hasFocus = false;\n this.focusChanged();\n this.emitRsItem();\n this.rsInputNoFocus.emit();\n };\n }\n /**\n * Watch for any changes on the `disabled` property.\n */\n disabledChanged() {\n this.emitRsItem(); // disabled changed, emit change in styling\n }\n /**\n * Watch for any changes on the `value` property.\n */\n valueChanged() {\n this.emitRsItem(); // value changed, emit change in styling\n this.changeMaxLengthText();\n this.rsInputChanged.emit({ value: this.value == null ? this.value : this.value.toString() }); // emit change in input\n }\n /**\n * A method for re-rendering the input component\n */\n async update() {\n forceUpdate(this.el);\n }\n /**\n * A method for setting focus on the specified input field.\n */\n async setFocus() {\n if (this.nativeElement !== null) {\n this.nativeElement.focus(); // set focus\n }\n }\n /**\n * A method for getting the native `<input>` element used\n */\n getInputElement() {\n return Promise.resolve(this.nativeElement);\n }\n /**\n * Get the input's value\n */\n getValue() {\n return this.value || '';\n }\n /**\n * Check if the input has value\n */\n hasValue() {\n return this.getValue().length > 0;\n }\n /**\n * Emits `rsItem` event when the styles of the input change\n */\n emitRsItem() {\n this.rsItem.emit({\n 'input': true,\n 'interactive': true,\n 'has-focus': this.hasFocus,\n 'has-value': this.hasValue(),\n 'has-placeholder': this.placeholder !== null,\n 'has-error': this.hasError,\n 'has-max': this.hardLimit !== null || this.softLimit !== null,\n 'hide-max': this.hideMax,\n 'interactive-disabled': this.disabled,\n 'input-has-start-slot': this.hasStartSlot,\n 'input-has-end-slot': this.hasEndSlot,\n 'input-chars-over-max': this.charsLeft < 0,\n 'input-is-required': this.required\n });\n }\n /**\n * As the user types something in the input field, if soft max is set, then we show a character counter above the input field.\n * This function is for updating the text above the input field.\n */\n changeMaxLengthText() {\n if ((this.softLimit !== null && this.softLimit > 0) && !this.hideMax) {\n const valueLength = this.value.length; // the number of characters the user entered\n this.charsLeft = this.softLimit - valueLength;\n const maxLengthText = this.el.shadowRoot.querySelector('.max-length');\n if (maxLengthText !== null) {\n // if no. of characters entered by the user is over the set max characters\n if (this.charsLeft < 0) {\n maxLengthText.innerHTML = `${Math.abs(this.charsLeft)} over`;\n this.el.classList.add('input-chars-over-max');\n // if no. of characters entered by the user is NOT over the set max character\n }\n else {\n maxLengthText.innerHTML = `${this.charsLeft} left`;\n this.el.classList.remove('input-chars-over-max');\n }\n }\n }\n }\n /**\n * This gets called once just after the component gets fully loaded\n * and after the first render occurred.\n */\n componentDidLoad() {\n if ((this.softLimit !== undefined || this.hardLimit !== undefined)) {\n const maxLength = this.el.shadowRoot.querySelector('.max-length');\n showCharacterCounter(maxLength, this.hardLimit, this.softLimit, this.hideMax);\n this.changeMaxLengthText(); // the char count should reflect the initial value's char count\n }\n }\n connectedCallback() {\n this.hasStartSlot = this.el.querySelector('[slot=\"start\"]') !== null;\n this.hasEndSlot = this.el.querySelector('[slot=\"end\"]') !== null;\n this.emitRsItem();\n }\n /**\n * This renders the component\n */\n render() {\n const value = this.getValue();\n let maxLengthText = null;\n if ((this.hardLimit || this.softLimit) && !this.hideMax) {\n const maxLength = this.hardLimit || this.softLimit;\n maxLengthText = (h(\"span\", { class: \"max-length\" }, maxLength, \" max\"));\n }\n return (h(Host, { class: {\n 'has-value': this.hasValue(),\n 'has-focus': this.hasFocus,\n 'has-placeholder': this.placeholder !== null,\n 'has-max': this.hardLimit !== null || this.softLimit !== null,\n 'hide-max': this.hideMax,\n 'chars-over-max': this.charsLeft < 0,\n 'has-error': this.hasError,\n [`text-align-${this.textAlign}`]: true,\n [`size-${this.size}`]: true\n } }, maxLengthText, h(\"div\", { class: \"rs-input__inner\" }, h(\"slot\", { name: \"start\" }), h(\"input\", { class: \"native-input\", ref: input => this.nativeElement = input, disabled: this.disabled, readonly: this.readonly, onInput: this.onInput, onFocus: this.onFocus, onBlur: this.onBlur, onKeyDown: this.onKeyDown, placeholder: this.placeholder, type: this.type, required: this.required, name: this.name, maxlength: this.hardLimit, value: value }), h(\"slot\", { name: \"end\" }))));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"disabled\": [\"disabledChanged\"],\n \"value\": [\"valueChanged\"]\n }; }\n};\nInput.style = inputCss;\n\nexport { Input as rs_input };\n"],"names":["itemStyle","ev","itemStyles","element","tagName","undefined","target","toLowerCase","replace","updatedStyles","detail","newStyles","childStyles","get","hasStyleChange","Object","keys","forEach","key","itemKey","length","set","f","showCharacterCounter","maxLengthElement","hardLimit","softLimit","hideMax","style","display","setTimeout","opacity","Input","constructor","hostRef","r","this","rsInput","c","rsInputChanged","rsInputNoFocus","rsInputFocus","rsItem","didBlurAfterEdit","hasStartSlot","hasEndSlot","hasFocus","charsLeft","type","value","disabled","readonly","clearOnEdit","clearInput","required","hasError","textAlign","size","onInput","input","emit","onFocus","focusChanged","emitRsItem","hasValue","shouldClearOnEdit","onKeyDown","clearTextInput","preventDefault","stopPropagation","nativeElement","onBlur","disabledChanged","valueChanged","changeMaxLengthText","toString","el","focus","getInputElement","Promise","resolve","getValue","placeholder","valueLength","maxLengthText","shadowRoot","querySelector","innerHTML","Math","abs","classList","add","remove","componentDidLoad","maxLength","s","connectedCallback","render","h","class","H","name","ref","maxlength","g"],"sourceRoot":""}
@@ -1,13 +0,0 @@
1
- /*!
2
- *
3
- * @rocketspark/domain-checker v0.0.20
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([[994],{8994:function(e,r,a){a.r(r),a.d(r,{rs_alert:function(){return i}});var n=a(492);const i=class{constructor(e){(0,n.r)(this,e)}render(){return(0,n.h)(n.H,null,(0,n.h)("div",{class:"alert"},(0,n.h)("div",{class:"alert__message"},(0,n.h)("rs-icon",{name:"warning",color:"negative",size:18}),(0,n.h)("rs-content",{color:"heading",body:2},(0,n.h)("slot",null))),void 0!==this.actionLink&&""!==this.actionLink?(0,n.h)("div",{class:"alert__action"},(0,n.h)("a",{href:"/dashboard/account_details/update_card/",class:"action__link"},(0,n.h)("slot",{name:"action"}),(0,n.h)("rs-icon",{name:"arrow-right",size:18}))):""))}};i.style=":host{display:block}.alert{padding:0.8125rem 1rem;border:1px solid var(--rs-color-negative);background-color:rgb(241 101 100 / 0.1);border-radius:0.375rem;width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;box-sizing:border-box}.alert__message{display:flex;align-items:center;gap:1rem}.alert__action{font-size:0.875rem;font-weight:600}.action__link{text-decoration:none;display:flex;align-items:center;gap:0.5rem;color:var(--rs-color-secondary);font-family:soleil, sans-serif;white-space:nowrap}"}}]);
13
- //# sourceMappingURL=994.index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"994.index.js","mappings":";;;;;;;;;;;8KAEA,MAEMA,EAAU,MACdC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAEzBG,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,MAAO,CAAEE,MAAO,UAAW,IAAAF,GAAE,MAAO,CAAEE,MAAO,mBAAoB,IAAAF,GAAE,UAAW,CAAEG,KAAM,UAAWC,MAAO,WAAYC,KAAM,MAAO,IAAAL,GAAE,aAAc,CAAEI,MAAO,UAAWE,KAAM,IAAK,IAAAN,GAAE,OAAQ,aAA6BO,IAApBT,KAAKU,YAAgD,KAApBV,KAAKU,YAC/P,IAAAR,GAAE,MAAO,CAAEE,MAAO,kBAAmB,IAAAF,GAAE,IAAK,CAAES,KAAM,0CAA2CP,MAAO,iBAAkB,IAAAF,GAAE,OAAQ,CAAEG,KAAM,YAAa,IAAAH,GAAE,UAAW,CAAEG,KAAM,cAAeE,KAAM,OAC/L,OAGRX,EAAQgB,MAZW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-alert.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst rsAlertCss = \":host{display:block}.alert{padding:0.8125rem 1rem;border:1px solid var(--rs-color-negative);background-color:rgb(241 101 100 / 0.1);border-radius:0.375rem;width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;box-sizing:border-box}.alert__message{display:flex;align-items:center;gap:1rem}.alert__action{font-size:0.875rem;font-weight:600}.action__link{text-decoration:none;display:flex;align-items:center;gap:0.5rem;color:var(--rs-color-secondary);font-family:soleil, sans-serif;white-space:nowrap}\";\n\nconst RsAlert = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n render() {\n return (h(Host, null, h(\"div\", { class: \"alert\" }, h(\"div\", { class: \"alert__message\" }, h(\"rs-icon\", { name: \"warning\", color: \"negative\", size: 18 }), h(\"rs-content\", { color: \"heading\", body: 2 }, h(\"slot\", null))), this.actionLink !== undefined && this.actionLink !== '' ?\n h(\"div\", { class: \"alert__action\" }, h(\"a\", { href: \"/dashboard/account_details/update_card/\", class: \"action__link\" }, h(\"slot\", { name: 'action' }), h(\"rs-icon\", { name: \"arrow-right\", size: 18 })))\n : '')));\n }\n};\nRsAlert.style = rsAlertCss;\n\nexport { RsAlert as rs_alert };\n"],"names":["RsAlert","constructor","hostRef","r","this","render","h","H","class","name","color","size","body","undefined","actionLink","href","style"],"sourceRoot":""}