@rocketspark/domain-checker 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/.github-test/FUNDING.yml +1 -0
  2. package/.github-test/dependabot.yml +10 -0
  3. package/.github-test/workflows/main.yml +28 -0
  4. package/.github-test/workflows/publish.yml +49 -0
  5. package/.github-test/workflows/pull_request.yml +24 -0
  6. package/.github-test/workflows/pull_request_dependabot.yml +48 -0
  7. package/.idea/domain-checker.iml +8 -0
  8. package/.idea/git_toolbox_prj.xml +15 -0
  9. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  10. package/.idea/modules.xml +8 -0
  11. package/.idea/vcs.xml +6 -0
  12. package/CODE_OF_CONDUCT.md +76 -0
  13. package/CONTRIBUTING.md +15 -0
  14. package/LICENSE +21 -0
  15. package/README.md +67 -0
  16. package/build/130.index.js +13 -0
  17. package/build/130.index.js.map +1 -0
  18. package/build/145.index.js +13 -0
  19. package/build/145.index.js.map +1 -0
  20. package/build/171.index.js +13 -0
  21. package/build/171.index.js.map +1 -0
  22. package/build/190.index.js +13 -0
  23. package/build/190.index.js.map +1 -0
  24. package/build/228.index.js +13 -0
  25. package/build/228.index.js.map +1 -0
  26. package/build/23.index.js +13 -0
  27. package/build/23.index.js.map +1 -0
  28. package/build/253.index.js +13 -0
  29. package/build/253.index.js.map +1 -0
  30. package/build/269.index.js +13 -0
  31. package/build/269.index.js.map +1 -0
  32. package/build/307.index.js +13 -0
  33. package/build/307.index.js.map +1 -0
  34. package/build/314.index.js +13 -0
  35. package/build/314.index.js.map +1 -0
  36. package/build/330.index.js +13 -0
  37. package/build/330.index.js.map +1 -0
  38. package/build/346.index.js +13 -0
  39. package/build/346.index.js.map +1 -0
  40. package/build/385.index.js +13 -0
  41. package/build/385.index.js.map +1 -0
  42. package/build/3cce2bffb56fb72f4f99.svg +521 -0
  43. package/build/431.index.js +13 -0
  44. package/build/431.index.js.map +1 -0
  45. package/build/447.index.js +13 -0
  46. package/build/447.index.js.map +1 -0
  47. package/build/482.index.js +13 -0
  48. package/build/482.index.js.map +1 -0
  49. package/build/525.index.js +13 -0
  50. package/build/525.index.js.map +1 -0
  51. package/build/536.index.js +13 -0
  52. package/build/536.index.js.map +1 -0
  53. package/build/548.index.js +13 -0
  54. package/build/548.index.js.map +1 -0
  55. package/build/565.index.js +13 -0
  56. package/build/565.index.js.map +1 -0
  57. package/build/577.index.js +13 -0
  58. package/build/577.index.js.map +1 -0
  59. package/build/5798190b27b26600fb18.svg +266 -0
  60. package/build/655.index.js +13 -0
  61. package/build/655.index.js.map +1 -0
  62. package/build/66.index.js +13 -0
  63. package/build/66.index.js.map +1 -0
  64. package/build/669.index.js +13 -0
  65. package/build/669.index.js.map +1 -0
  66. package/build/677.index.js +13 -0
  67. package/build/677.index.js.map +1 -0
  68. package/build/678.index.js +13 -0
  69. package/build/678.index.js.map +1 -0
  70. package/build/69.index.js +13 -0
  71. package/build/69.index.js.map +1 -0
  72. package/build/690.index.js +13 -0
  73. package/build/690.index.js.map +1 -0
  74. package/build/694.index.js +13 -0
  75. package/build/694.index.js.map +1 -0
  76. package/build/698.index.js +13 -0
  77. package/build/698.index.js.map +1 -0
  78. package/build/716.index.js +13 -0
  79. package/build/716.index.js.map +1 -0
  80. package/build/717.index.js +13 -0
  81. package/build/717.index.js.map +1 -0
  82. package/build/724.index.js +13 -0
  83. package/build/724.index.js.map +1 -0
  84. package/build/738.index.js +13 -0
  85. package/build/738.index.js.map +1 -0
  86. package/build/799.index.js +13 -0
  87. package/build/799.index.js.map +1 -0
  88. package/build/82.index.js +13 -0
  89. package/build/82.index.js.map +1 -0
  90. package/build/858.index.js +13 -0
  91. package/build/858.index.js.map +1 -0
  92. package/build/882.index.js +13 -0
  93. package/build/882.index.js.map +1 -0
  94. package/build/895.index.js +13 -0
  95. package/build/895.index.js.map +1 -0
  96. package/build/903.index.js +13 -0
  97. package/build/903.index.js.map +1 -0
  98. package/build/911.index.js +13 -0
  99. package/build/911.index.js.map +1 -0
  100. package/build/912.index.js +13 -0
  101. package/build/912.index.js.map +1 -0
  102. package/build/927.index.js +13 -0
  103. package/build/927.index.js.map +1 -0
  104. package/build/953.index.js +13 -0
  105. package/build/953.index.js.map +1 -0
  106. package/build/955.index.js +13 -0
  107. package/build/955.index.js.map +1 -0
  108. package/build/994.index.js +13 -0
  109. package/build/994.index.js.map +1 -0
  110. package/build/css/index.css +11 -0
  111. package/build/css/index.css.map +1 -0
  112. package/build/index.js +13 -0
  113. package/build/index.js.map +1 -0
  114. package/build/types/Components/DomainSearch.d.ts +20 -0
  115. package/build/types/Components/PopupContainer.d.ts +30 -0
  116. package/build/types/Components/SearchHeading.d.ts +8 -0
  117. package/build/types/Components/SearchResultCaption.d.ts +12 -0
  118. package/build/types/Components/SearchStatus.d.ts +13 -0
  119. package/build/types/Helpers/Fetch.d.ts +6 -0
  120. package/build/types/Helpers/defaults.d.ts +2 -0
  121. package/build/types/Helpers/templates.d.ts +13 -0
  122. package/build/types/Helpers/wrap.d.ts +1 -0
  123. package/build/types/index.d.ts +21 -0
  124. package/build/types/interfaces/class-names.d.ts +19 -0
  125. package/build/types/interfaces/options.d.ts +9 -0
  126. package/package.json +91 -0
  127. package/tsconfig.json +17 -0
  128. package/webpack.config.demo.js +64 -0
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[269],{7269:function(e,t,o){o.r(t),o.d(t,{rs_content_placeholder:function(){return n}});var r=o(492);const n=class{constructor(e){(0,r.r)(this,e),this.border=!0,this.maskContent=""}componentDidLoad(){if(void 0===this.mask)return;const e=(0,r.a)(`./assets/svg-masks/${this.mask}.svg`),t=new XMLHttpRequest;t.open("GET",e),t.onreadystatechange=()=>{if(4==t.readyState&&200==t.status){const e=document.createElement("div");e.innerHTML=t.responseText;const o=e.querySelector("svg");this.maskContent=o.outerHTML,this.width=o.getAttribute("width");const r=o.getAttribute("height");this.scale=parseFloat(r)/parseFloat(this.width)*100}},t.send()}render(){return(0,r.h)(r.H,null,(0,r.h)("div",{class:{"rs-content-placeholder__container":!0,"rs-content-placeholder__container--no-border":!this.border},style:{width:`${this.width}px`}},(0,r.h)("div",{class:"rs-content-placeholder__loading",style:{paddingBottom:`${this.scale}%`,clipPath:"url(#clip-mask)"}}),(0,r.h)("div",{class:"rs-content-placeholder__svg-container",innerHTML:this.maskContent})))}static get assetsDirs(){return["assets"]}};n.style=":host{display:block}.rs-content-placeholder__container{box-shadow:inset 0 0 0 0.125rem var(--rs-color-light);display:inline-block;border-radius:0.25rem;cursor:wait}.rs-content-placeholder__container--no-border{box-shadow:none}.rs-content-placeholder__svg-container{height:0;width:0;overflow:hidden}.rs-content-placeholder__loading{width:100%;height:100%;position:relative;overflow:hidden;background-color:var(--rs-color-light)}.rs-content-placeholder__loading::before{content:'';display:block;position:absolute;left:-9.375rem;top:0;height:100%;width:9.375rem;background:linear-gradient(to right, var(--rs-color-light) 0%, rgba(255, 255, 255, 0.8) 50%, var(--rs-color-light) 100%);animation:rs-content-placeholder__load 2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite}@keyframes rs-content-placeholder__load{from{left:-9.375rem}to{left:100%}}"}}]);
13
+ //# sourceMappingURL=269.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"269.index.js","mappings":";;;;;;;;;;;4LAEA,MAEMA,EAAuB,MAC3BC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,QAAS,EACdD,KAAKE,YAAc,GAErBC,mBACE,QAAkBC,IAAdJ,KAAKK,KACP,OAEF,MAAMA,GAAO,OAAa,sBAAsBL,KAAKK,YAC/CC,EAAS,IAAIC,eACnBD,EAAOE,KAAK,MAAOH,GACnBC,EAAOG,mBAAqB,KAC1B,GAAyB,GAArBH,EAAOI,YAAoC,KAAjBJ,EAAOK,OAAe,CAClD,MAAMC,EAAmBC,SAASC,cAAc,OAChDF,EAAiBG,UAAYT,EAAOU,aACpC,MAAMC,EAAcL,EAAiBM,cAAc,OACnDlB,KAAKE,YAAce,EAAYE,UAC/BnB,KAAKoB,MAAQH,EAAYI,aAAa,SACtC,MAAMC,EAASL,EAAYI,aAAa,UACxCrB,KAAKuB,MAASC,WAAWF,GAAUE,WAAWxB,KAAKoB,OAAU,MAGjEd,EAAOmB,OAETC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,MAAO,CAAEE,MAAO,CACpC,qCAAqC,EACrC,gDAAiD7B,KAAKC,QACrD6B,MAAO,CACRV,MAAO,GAAGpB,KAAKoB,aACZ,IAAAO,GAAE,MAAO,CAAEE,MAAO,kCAAmCC,MAAO,CAC/DC,cAAe,GAAG/B,KAAKuB,SACvBS,SAAU,sBACN,IAAAL,GAAE,MAAO,CAAEE,MAAO,wCAAyCd,UAAWf,KAAKE,gBAErF,wBAA0B,MAAO,CAAC,YAEpCN,EAAqBkC,MA5CW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-content-placeholder.entry.js"],"sourcesContent":["import { r as registerInstance, a as getAssetPath, h, H as Host } from './index-d4fae449.js';\n\nconst rsContentPlaceholderCss = \":host{display:block}.rs-content-placeholder__container{box-shadow:inset 0 0 0 0.125rem var(--rs-color-light);display:inline-block;border-radius:0.25rem;cursor:wait}.rs-content-placeholder__container--no-border{box-shadow:none}.rs-content-placeholder__svg-container{height:0;width:0;overflow:hidden}.rs-content-placeholder__loading{width:100%;height:100%;position:relative;overflow:hidden;background-color:var(--rs-color-light)}.rs-content-placeholder__loading::before{content:'';display:block;position:absolute;left:-9.375rem;top:0;height:100%;width:9.375rem;background:linear-gradient(to right, var(--rs-color-light) 0%, rgba(255, 255, 255, 0.8) 50%, var(--rs-color-light) 100%);animation:rs-content-placeholder__load 2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite}@keyframes rs-content-placeholder__load{from{left:-9.375rem}to{left:100%}}\";\n\nconst RsContentPlaceholder = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Adds a border around the placeholder if set to true\n */\n this.border = true;\n this.maskContent = '';\n }\n componentDidLoad() {\n if (this.mask === undefined) {\n return;\n }\n const mask = getAssetPath(`./assets/svg-masks/${this.mask}.svg`);\n const client = new XMLHttpRequest();\n client.open('GET', mask);\n client.onreadystatechange = () => {\n if (client.readyState == 4 && client.status == 200) {\n const maskElementOuter = document.createElement('div');\n maskElementOuter.innerHTML = client.responseText;\n const maskElement = maskElementOuter.querySelector('svg');\n this.maskContent = maskElement.outerHTML;\n this.width = maskElement.getAttribute('width');\n const height = maskElement.getAttribute('height');\n this.scale = (parseFloat(height) / parseFloat(this.width)) * 100;\n }\n };\n client.send();\n }\n render() {\n return (h(Host, null, h(\"div\", { class: {\n 'rs-content-placeholder__container': true,\n 'rs-content-placeholder__container--no-border': !this.border,\n }, style: {\n width: `${this.width}px`,\n } }, h(\"div\", { class: \"rs-content-placeholder__loading\", style: {\n paddingBottom: `${this.scale}%`,\n clipPath: 'url(#clip-mask)'\n } }), h(\"div\", { class: 'rs-content-placeholder__svg-container', innerHTML: this.maskContent }))));\n }\n static get assetsDirs() { return [\"assets\"]; }\n};\nRsContentPlaceholder.style = rsContentPlaceholderCss;\n\nexport { RsContentPlaceholder as rs_content_placeholder };\n"],"names":["RsContentPlaceholder","constructor","hostRef","r","this","border","maskContent","componentDidLoad","undefined","mask","client","XMLHttpRequest","open","onreadystatechange","readyState","status","maskElementOuter","document","createElement","innerHTML","responseText","maskElement","querySelector","outerHTML","width","getAttribute","height","scale","parseFloat","send","render","h","H","class","style","paddingBottom","clipPath"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[307],{4307:function(e,t,i){i.r(t),i.d(t,{rs_side_drawer:function(){return r}});var n=i(492),o=i(5924);const r=class{constructor(e){(0,n.r)(this,e),this.item=(0,n.c)(this,"item",7),this.itemClosed=(0,n.c)(this,"itemClosed",7),this.moreContentClosed=(0,n.c)(this,"moreContentClosed",7),this.sideDrawerClose=(0,n.c)(this,"sideDrawerClose",7),this.items="",this.isDirty=!1,this.contentLevelOpen=0,this.itemOpen=!1,this.itemClickedHandler=e=>{this.contentLevelOpen=1,this.itemOpen=!0,this.itemOpenHandle=e.target.dataset.item,this.openItemHeading=e.target.dataset.heading,this.item.emit({item:this.itemOpenHandle})},this.closeItem=()=>{this.moreContentOpen()?this.moreContentClosed.emit({moreContent:this.moreContentHeading}):(this.contentLevelOpen=0,this.itemOpen=!1,this.itemClosed.emit({item:this.itemOpenHandle}))},this.getItemsObject=()=>{let e={};return this.itemsArray.forEach((t=>{e[r.taskHandle(t)]=t})),e},this.moreContentOpen=()=>this.contentLevelOpen>1}closeMoreContentHandler(){this.contentLevelOpen--,this.moreContentClosed.emit({moreContent:this.moreContentHeading})}closeContentHandler(){this.closeItem()}componentWillLoad(){this.itemsArray=this.items.split(",").map((e=>e.trim()))}async openItem(e=""){const t=this.getItemsObject();0!==Object.keys(t).length&&t.hasOwnProperty(e)&&(this.contentLevelOpen=1,this.itemOpen=!0,this.itemOpenHandle=e,this.openItemHeading=t[e],this.item.emit({item:this.itemOpenHandle}))}static taskHandle(e){return e.replaceAll("&","").replaceAll(" "," ").replaceAll(" ","-").toLowerCase()}render(){var e,t;return(0,n.h)(n.H,null,(0,n.h)("div",{class:{"side-drawer":!0,"side-drawer--open":this.itemOpen}},(0,n.h)("div",{class:{"open-item-header":!0,"open-item-header--open":this.itemOpen&&1===this.contentLevelOpen},onClick:this.closeItem},(0,n.h)("rs-icon",{class:"open-item-header__back",name:"chevron-left",color:"secondary",size:13}),(0,n.h)("rs-column-header",{class:"open-item-header__title",color:"secondary"},this.subHeading)),(0,n.h)("div",{class:{"item-outer":!0,"item-outer--open":this.itemOpen}},(0,n.h)("div",null,(0,n.h)("rs-side-drawer-header",{"is-dirty":this.isDirty,loading:this.loading},(0,n.h)("span",{slot:"heading"},this.heading),(0,n.h)("span",{slot:"sub-heading"},this.subHeading)),(0,n.h)("rs-icon",{name:"x",color:"grey",class:{close:!0,"close--hidden":this.isDirty},onClick:this.sideDrawerClose.emit})),(0,n.h)("div",{class:{"item-container":!0,"item-container--no-gap-support":!(0,o.f)()}},this.itemsArray.map((e=>(0,n.h)("rs-side-drawer-item",{onClick:this.itemClickedHandler,"data-item":r.taskHandle(e),"data-heading":e,heading:e}))))),(0,n.h)("rs-side-drawer-item-content",{"content-level":1,heading:this.openItemHeading,"more-content-open":this.moreContentOpen(),"open-level":this.contentLevelOpen,"item-open":this.itemOpen},(0,n.h)("slot",{name:"main-content"})),(0,n.h)("rs-side-drawer-item-content",{"content-level":2,heading:null!==(e=this.moreContentHeading)&&void 0!==e?e:this.openItemHeading,"sub-heading":"More Settings","open-level":this.contentLevelOpen,"item-open":this.itemOpen},(0,n.h)("slot",{name:"content-level-2"})),(0,n.h)("rs-side-drawer-item-content",{"content-level":3,heading:null!==(t=this.moreContentHeading)&&void 0!==t?t:this.openItemHeading,"sub-heading":"More Settings","open-level":this.contentLevelOpen,"item-open":this.itemOpen},(0,n.h)("slot",{name:"content-level-3"}))))}};r.style=".close{width:2rem;height:2rem;box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);border-radius:2rem;justify-content:center;align-items:center;font-size:1rem;cursor:pointer;display:flex;position:absolute;top:1rem;right:1rem;transition:box-shadow 0.15s cubic-bezier(0, 0.55, 0.45, 1), opacity 0.15s ease-out;opacity:1;z-index:1}.close--hidden{opacity:0;pointer-events:none}.close:hover{box-shadow:inset 0 0 0 1px var(--rs-color-grey)}:host{display:block;height:100%;width:19.375rem;box-shadow:0 0.125rem 0.625rem 0 rgba(0, 0, 0, .5);position:fixed}.side-drawer{height:100%}.side-drawer--open{background-color:var(--rs-color-light)}.item-outer{background-color:var(--rs-color-white);transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1) 100ms;height:100%;position:absolute;top:0}.item-outer--open{pointer-events:none;opacity:0;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1) 200ms}.item-container{padding:0.5rem;height:100%;background:var(--rs-color-light);border-radius:1rem 1rem 0 0;gap:0.5rem;display:flex;flex-direction:column}.item-container--no-gap-support>*{--fgp-margin-top:calc(var(--fgp-gap-row));--fgp-margin-left:calc(var(--fgp-gap-column));margin-top:var(--fgp-margin-top) !important;margin-left:var(--fgp-margin-left) !important}.item-container--no-gap-support{--fgp-gap-row:0.5rem;--fgp-gap-column:0.5rem;--fgp-gap:0.5rem;--has-fgp:initial;--fgp-margin-top:calc(var(--fgp-gap-row, 0px) * -1);--fgp-margin-left:calc(var(--fgp-gap-column, 0px) * -1);display:flex;margin-top:var(--fgp-margin-top, 0) !important;margin-left:var(--fgp-margin-left, 0) !important}.open-item-header{position:relative;justify-content:center;align-items:center;display:flex;padding:0.9375rem 0;opacity:0;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1);pointer-events:none}.open-item-header--open{pointer-events:auto;opacity:1;cursor:pointer;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1) 200ms}.open-item-header__back{position:absolute;left:1.125rem;width:3rem;height:3rem;top:50%;transform:translateY(-50%);display:flex;align-items:center}.open-item-header__title::first-letter{text-transform:uppercase}"},5924:function(e,t,i){i.d(t,{S:function(){return a},a:function(){return s},f:function(){return n},o:function(){return r}});const n=()=>{const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=1===e.scrollHeight;return e.parentNode.removeChild(e),t};function o(e,t,i,n,o={}){let r=t;Array.isArray(t)?r=Array.from(t):Array.isArray(t)||(r=[t]);let s=i;return Array.isArray(i)||(s=[i]),r.forEach((t=>{s.forEach((i=>{t[e](i,n,Object.assign({capture:!1},o))}))})),[t,i,n,o]}const r=o.bind(null,"addEventListener"),s=o.bind(null,"removeEventListener"),a=e=>{if(!e||"[object Function]"!==Object.prototype.toString.call(e))return;let t;window.addEventListener("scroll",(function(){window.clearTimeout(t),t=setTimeout((function(){e()}),66)}),!1)}}}]);
13
+ //# sourceMappingURL=307.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"307.index.js","mappings":";;;;;;;;;;;8LAGA,MAEMA,EAAe,MACnBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,MAAO,IAAAC,GAAYF,KAAM,OAAQ,GACtCA,KAAKG,YAAa,IAAAD,GAAYF,KAAM,aAAc,GAClDA,KAAKI,mBAAoB,IAAAF,GAAYF,KAAM,oBAAqB,GAChEA,KAAKK,iBAAkB,IAAAH,GAAYF,KAAM,kBAAmB,GAI5DA,KAAKM,MAAQ,GAIbN,KAAKO,SAAU,EAKfP,KAAKQ,iBAAmB,EACxBR,KAAKS,UAAW,EAChBT,KAAKU,mBAAsBC,IACzBX,KAAKQ,iBAAmB,EACxBR,KAAKS,UAAW,EAChBT,KAAKY,eAAiBD,EAAME,OAAOC,QAAQb,KAC3CD,KAAKe,gBAAkBJ,EAAME,OAAOC,QAAQE,QAC5ChB,KAAKC,KAAKgB,KAAK,CAAEhB,KAAMD,KAAKY,kBAE9BZ,KAAKkB,UAAY,KACXlB,KAAKmB,kBACPnB,KAAKI,kBAAkBa,KAAK,CAAEG,YAAapB,KAAKqB,sBAGhDrB,KAAKQ,iBAAmB,EACxBR,KAAKS,UAAW,EAChBT,KAAKG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CAAEI,KAAM,yBAGnyBpD,EAAa2D,MAtGW,4kE,0HCHxB,MAAMC,EAAmB,KAEvB,MAAMC,EAAOC,SAASC,cAAc,OACpCF,EAAKF,MAAMK,QAAU,OACrBH,EAAKF,MAAMM,cAAgB,SAC3BJ,EAAKF,MAAMO,OAAS,MAEpBL,EAAKM,YAAYL,SAASC,cAAc,QACxCF,EAAKM,YAAYL,SAASC,cAAc,QAExCD,SAASM,KAAKD,YAAYN,GAC1B,MAAMQ,EAAoC,IAAtBR,EAAKS,aAEzB,OADAT,EAAKU,WAAWC,YAAYX,GACrBQ,GAET,SAASI,EAAcC,EAAQC,EAAUC,EAAQC,EAAIC,EAAU,IAC7D,IAAIC,EAAgBJ,EAChBK,MAAMC,QAAQN,GAChBI,EAAgBC,MAAME,KAAKP,GAEnBK,MAAMC,QAAQN,KACtBI,EAAgB,CAACJ,IAEnB,IAAIQ,EAAcP,EASlB,OARKI,MAAMC,QAAQL,KACjBO,EAAc,CAACP,IAEjBG,EAAclD,SAAQuD,IACpBD,EAAYtD,SAAQwD,IAClBD,EAAGV,GAAQW,EAAIR,EAAItC,OAAO+C,OAAO,CAAEC,SAAS,GAAST,UAGlD,CAACH,EAAUC,EAAQC,EAAIC,GAEhC,MAAMU,EAAKf,EAAcgB,KAAK,KAAM,oBAC9BC,EAAMjB,EAAcgB,KAAK,KAAM,uBAC/BE,EAAcC,IAElB,IAAKA,GAAyD,sBAA7CrD,OAAOsD,UAAUC,SAASC,KAAKH,GAC9C,OAGF,IAAII,EAEJC,OAAOC,iBAAiB,UAAU,WAEhCD,OAAOE,aAAaH,GAEpBA,EAAcI,YAAW,WAEvBR,MACC,OACF","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-side-drawer.entry.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/utils-666cff40.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host } from './index-d4fae449.js';\nimport { f as flexGapSupported } from './utils-666cff40.js';\n\nconst rsSideDrawerCss = \".close{width:2rem;height:2rem;box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);border-radius:2rem;justify-content:center;align-items:center;font-size:1rem;cursor:pointer;display:flex;position:absolute;top:1rem;right:1rem;transition:box-shadow 0.15s cubic-bezier(0, 0.55, 0.45, 1), opacity 0.15s ease-out;opacity:1;z-index:1}.close--hidden{opacity:0;pointer-events:none}.close:hover{box-shadow:inset 0 0 0 1px var(--rs-color-grey)}:host{display:block;height:100%;width:19.375rem;box-shadow:0 0.125rem 0.625rem 0 rgba(0, 0, 0, .5);position:fixed}.side-drawer{height:100%}.side-drawer--open{background-color:var(--rs-color-light)}.item-outer{background-color:var(--rs-color-white);transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1) 100ms;height:100%;position:absolute;top:0}.item-outer--open{pointer-events:none;opacity:0;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1) 200ms}.item-container{padding:0.5rem;height:100%;background:var(--rs-color-light);border-radius:1rem 1rem 0 0;gap:0.5rem;display:flex;flex-direction:column}.item-container--no-gap-support>*{--fgp-margin-top:calc(var(--fgp-gap-row));--fgp-margin-left:calc(var(--fgp-gap-column));margin-top:var(--fgp-margin-top) !important;margin-left:var(--fgp-margin-left) !important}.item-container--no-gap-support{--fgp-gap-row:0.5rem;--fgp-gap-column:0.5rem;--fgp-gap:0.5rem;--has-fgp:initial;--fgp-margin-top:calc(var(--fgp-gap-row, 0px) * -1);--fgp-margin-left:calc(var(--fgp-gap-column, 0px) * -1);display:flex;margin-top:var(--fgp-margin-top, 0) !important;margin-left:var(--fgp-margin-left, 0) !important}.open-item-header{position:relative;justify-content:center;align-items:center;display:flex;padding:0.9375rem 0;opacity:0;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1);pointer-events:none}.open-item-header--open{pointer-events:auto;opacity:1;cursor:pointer;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1) 200ms}.open-item-header__back{position:absolute;left:1.125rem;width:3rem;height:3rem;top:50%;transform:translateY(-50%);display:flex;align-items:center}.open-item-header__title::first-letter{text-transform:uppercase}\";\n\nconst RsSideDrawer = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.item = createEvent(this, \"item\", 7);\n this.itemClosed = createEvent(this, \"itemClosed\", 7);\n this.moreContentClosed = createEvent(this, \"moreContentClosed\", 7);\n this.sideDrawerClose = createEvent(this, \"sideDrawerClose\", 7);\n /**\n * Comma seperated list of items to display in the side drawer\n */\n this.items = '';\n /**\n * If true, the side drawer will show the save/cancel buttons and hide the x close\n */\n this.isDirty = false;\n /**\n * The content level that is open. i.e., Base level, more settings, etc\n */\n // eslint-disable-next-line @stencil/strict-mutable\n this.contentLevelOpen = 0;\n this.itemOpen = false;\n this.itemClickedHandler = (event) => {\n this.contentLevelOpen = 1;\n this.itemOpen = true;\n this.itemOpenHandle = event.target.dataset.item;\n this.openItemHeading = event.target.dataset.heading;\n this.item.emit({ item: this.itemOpenHandle });\n };\n this.closeItem = () => {\n if (this.moreContentOpen()) {\n this.moreContentClosed.emit({ moreContent: this.moreContentHeading });\n }\n else {\n this.contentLevelOpen = 0;\n this.itemOpen = false;\n this.itemClosed.emit({ item: this.itemOpenHandle });\n }\n };\n this.getItemsObject = () => {\n let itemsObject = {};\n this.itemsArray.forEach(item => {\n itemsObject[RsSideDrawer.taskHandle(item)] = item; // e.g. 'your-logo': 'Your Logo'\n });\n return itemsObject;\n };\n this.moreContentOpen = () => {\n return this.contentLevelOpen > 1;\n };\n }\n closeMoreContentHandler() {\n this.contentLevelOpen--;\n this.moreContentClosed.emit({ moreContent: this.moreContentHeading });\n }\n closeContentHandler() {\n this.closeItem();\n }\n componentWillLoad() {\n this.itemsArray = this.items.split(',').map(task => {\n return task.trim();\n });\n }\n /**\n * Method for opening a panel programmatically from outside of the side drawer\n * @param {string} itemHandle\n */\n async openItem(itemHandle = '') {\n const itemsObject = this.getItemsObject();\n if (Object.keys(itemsObject).length !== 0 && itemsObject.hasOwnProperty(itemHandle)) {\n this.contentLevelOpen = 1;\n this.itemOpen = true;\n this.itemOpenHandle = itemHandle;\n this.openItemHeading = itemsObject[itemHandle];\n this.item.emit({ item: this.itemOpenHandle });\n }\n }\n static taskHandle(item) {\n return item.replaceAll('&', '').replaceAll(' ', ' ').replaceAll(' ', '-').toLowerCase();\n }\n render() {\n var _a, _b;\n return (h(Host, null, h(\"div\", { class: {\n 'side-drawer': true,\n 'side-drawer--open': this.itemOpen\n } }, h(\"div\", { class: {\n 'open-item-header': true,\n 'open-item-header--open': this.itemOpen && this.contentLevelOpen === 1\n }, onClick: this.closeItem }, h(\"rs-icon\", { class: \"open-item-header__back\", name: \"chevron-left\", color: \"secondary\", size: 13 }), h(\"rs-column-header\", { class: \"open-item-header__title\", color: \"secondary\" }, this.subHeading)), h(\"div\", { class: {\n 'item-outer': true,\n 'item-outer--open': this.itemOpen\n } }, h(\"div\", null, h(\"rs-side-drawer-header\", { \"is-dirty\": this.isDirty, loading: this.loading }, h(\"span\", { slot: \"heading\" }, this.heading), h(\"span\", { slot: \"sub-heading\" }, this.subHeading)), h(\"rs-icon\", { name: \"x\", color: \"grey\", class: {\n 'close': true,\n 'close--hidden': this.isDirty\n }, onClick: this.sideDrawerClose.emit })), h(\"div\", { class: {\n 'item-container': true,\n 'item-container--no-gap-support': !flexGapSupported()\n } }, this.itemsArray.map(item => {\n return (h(\"rs-side-drawer-item\", { onClick: this.itemClickedHandler, \"data-item\": RsSideDrawer.taskHandle(item), \"data-heading\": item, heading: item }));\n }))), h(\"rs-side-drawer-item-content\", { \"content-level\": 1, heading: this.openItemHeading, \"more-content-open\": this.moreContentOpen(), \"open-level\": this.contentLevelOpen, \"item-open\": this.itemOpen }, h(\"slot\", { name: \"main-content\" })), h(\"rs-side-drawer-item-content\", { \"content-level\": 2, heading: (_a = this.moreContentHeading) !== null && _a !== void 0 ? _a : this.openItemHeading, \"sub-heading\": \"More Settings\", \"open-level\": this.contentLevelOpen, \"item-open\": this.itemOpen }, h(\"slot\", { name: \"content-level-2\" })), h(\"rs-side-drawer-item-content\", { \"content-level\": 3, heading: (_b = this.moreContentHeading) !== null && _b !== void 0 ? _b : this.openItemHeading, \"sub-heading\": \"More Settings\", \"open-level\": this.contentLevelOpen, \"item-open\": this.itemOpen }, h(\"slot\", { name: \"content-level-3\" })))));\n }\n};\nRsSideDrawer.style = rsSideDrawerCss;\n\nexport { RsSideDrawer as rs_side_drawer };\n","const flexGapSupported = () => {\n // create flex container with row-gap set\n const flex = document.createElement('div');\n flex.style.display = 'flex';\n flex.style.flexDirection = 'column';\n flex.style.rowGap = '1px';\n // create two, elements inside it\n flex.appendChild(document.createElement('div'));\n flex.appendChild(document.createElement('div'));\n // append to the DOM (needed to obtain scrollHeight)\n document.body.appendChild(flex);\n const isSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap\n flex.parentNode.removeChild(flex);\n return isSupported;\n};\nfunction eventListener(method, elements, events, fn, options = {}) {\n let localElements = elements;\n if (Array.isArray(elements)) {\n localElements = Array.from(elements);\n }\n else if (!Array.isArray(elements)) {\n localElements = [elements];\n }\n let localEvents = events;\n if (!Array.isArray(events)) {\n localEvents = [events];\n }\n localElements.forEach(el => {\n localEvents.forEach(ev => {\n el[method](ev, fn, Object.assign({ capture: false }, options));\n });\n });\n return [elements, events, fn, options];\n}\nconst on = eventListener.bind(null, 'addEventListener');\nconst off = eventListener.bind(null, 'removeEventListener');\nconst ScrollStop = (callback) => {\n // Make sure a valid callback was provided\n if (!callback || Object.prototype.toString.call(callback) !== '[object Function]') {\n return;\n }\n // Setup scrolling variable\n let isScrolling;\n // Listen for scroll events\n window.addEventListener('scroll', function () {\n // Clear our timeout throughout the scroll\n window.clearTimeout(isScrolling);\n // Set a timeout to run after scrolling ends\n isScrolling = setTimeout(function () {\n // Run the callback\n callback();\n }, 66);\n }, false);\n};\n\nexport { ScrollStop as S, off as a, flexGapSupported as f, on as o };\n"],"names":["RsSideDrawer","constructor","hostRef","r","this","item","c","itemClosed","moreContentClosed","sideDrawerClose","items","isDirty","contentLevelOpen","itemOpen","itemClickedHandler","event","itemOpenHandle","target","dataset","openItemHeading","heading","emit","closeItem","moreContentOpen","moreContent","moreContentHeading","getItemsObject","itemsObject","itemsArray","forEach","taskHandle","closeMoreContentHandler","closeContentHandler","componentWillLoad","split","map","task","trim","itemHandle","Object","keys","length","hasOwnProperty","replaceAll","toLowerCase","render","_a","_b","h","H","class","onClick","name","color","size","subHeading","loading","slot","f","style","flexGapSupported","flex","document","createElement","display","flexDirection","rowGap","appendChild","body","isSupported","scrollHeight","parentNode","removeChild","eventListener","method","elements","events","fn","options","localElements","Array","isArray","from","localEvents","el","ev","assign","capture","on","bind","off","ScrollStop","callback","prototype","toString","call","isScrolling","window","addEventListener","clearTimeout","setTimeout"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[314],{2314:function(e,t,o){o.r(t),o.d(t,{rs_button:function(){return n},rs_subtitle:function(){return l}});var r=o(492);const n=class{constructor(e){(0,r.r)(this,e),this.color="primary",this.disabled=!1,this.size="default",this.loading=!1}getColorClass(){return`color--${this.color}`}getExpandClass(){return"block"===this.expand?"expand-block":"full"===this.expand?"expand-full":""}render(){const{href:e,rel:t,target:o}=this,n=void 0===this.href?"button":"a",l="a"===n?{href:e,rel:t,target:o}:{};let i=this.loading?(0,r.h)("div",{class:"button-element__loading-bar"}):(0,r.h)("slot",null);return(0,r.h)(r.H,{class:this.getExpandClass(),style:{"flex-grow":this.flexGrow}},(0,r.h)(n,Object.assign({},l,{disabled:this.disabled,class:["button-element",this.loading?"button-element--loading":"",this.getColorClass(),"small"===this.size?"small":"",this.disabled?"disabled":""].join(" ")}),(0,r.h)("span",null,i)))}};n.style=":host{display:inline-block}a.button-element span{top:initial}.button-element{text-decoration:none;padding:0.75rem 1.5625rem;min-width:5.625rem;height:2.625rem;cursor:pointer;user-select:none;border:0;border-radius:0.25rem;outline:none;display:inline-block;box-sizing:border-box;background-size:cover;transition:background .25s ease-out, box-shadow .25s ease-out;color:var(--rs-color-white);width:100%;white-space:nowrap}.button-element.small{padding-top:0.625rem;padding-bottom:0.625rem;height:2.25rem}.button-element.small span{font-size:0.875rem}.button-element span{top:-1px;display:block;position:relative;line-height:1;font-size:1rem;font-family:soleil, sans-serif;font-style:normal;font-weight:600;letter-spacing:0.2px;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.button-element:active{transition-delay:200ms}:host(.expand-block),:host(.expand-full){display:block}:host(.expand-block) .button-element{display:block;width:100%}:host(.expand-full) .button-element{display:block;width:100%;border-radius:0}.button-element.color--primary{background:var(--rs-color-primary-700)}.button-element.color--primary:hover{background:var(--rs-color-primary)}.button-element.color--primary:active{background:var(--rs-color-primary-300)}.button-element.color--negative{background:var(--rs-color-negative)}.button-element.color--secondary{background:var(--rs-color-secondary)}.button-element.color--secondary:hover{background:var(--rs-color-secondary-700)}.button-element.color--secondary:active{background:var(--rs-color-secondary-300)}.button-element.color--grey-light{color:var(--rs-color-grey);background:transparent;box-shadow:inset 0 0 0 1px var(--rs-color-grey-light)}:host(.expand-block) .button-element.color--grey-light span,:host(.expand-full) .button-element.color--grey-light span{font-weight:normal;color:var(--rs-color-secondary)}.button-element.color--grey-light:hover{box-shadow:inset 0 0 0 1px var(--rs-color-grey)}.button-element.color--positive{background:var(--rs-color-positive)}.button-element.color--positive:hover{background:var(--rs-color-positive-700)}.button-element.color--positive:active{background:var(--rs-color-positive-300)}.button-element.color--text{color:var(--rs-color-grey);background:transparent}.button-element.color--text:hover{background:var(--rs-color-light)}.button-element.color--text:active{background:var(--rs-color-grey-light)}.button-element.disabled{box-shadow:none;background:var(--rs-color-grey);cursor:not-allowed}.button-element.disabled:hover{background:var(--rs-color-grey)}.button-element.disabled span{color:var(--rs-color-grey-light);pointer-events:none}:host .button-element--loading{padding:0.75rem 1rem;cursor:wait;display:flex;align-items:center}:host .button-element--loading>*{width:100%}:host .button-element--loading .button-element__loading-bar{position:relative;overflow:hidden;height:0.3125rem;margin:0.4375rem 0;border-radius:0.1875rem;background-color:rgba(255, 255, 255, .5);width:100%}:host .button-element--loading .button-element__loading-bar:before{position:absolute;top:0;bottom:0;left:0;content:'';animation:indeterminate 2.1s cubic-bezier(.65, .815, .735, .395) infinite;border-radius:0.1875rem;background-color:rgba(255, 255, 255, .5);will-change:left, right}:host .button-element--loading .button-element__loading-bar:after{position:absolute;top:0;bottom:0;left:0;content:'';animation:indeterminate-short 2.1s cubic-bezier(.165, .84, .44, 1) infinite;animation-delay:1.15s;border-radius:0.1875rem;background-color:rgba(255, 255, 255, .5);will-change:left, right}@keyframes indeterminate{0%{right:100%;left:-35%}60%{right:-90%;left:100%}100%{right:-90%;left:100%}}@keyframes indeterminate-short{0%{right:100%;left:-200%}60%{right:-8%;left:107%}100%{right:-8%;left:107%}}";const l=class{constructor(e){(0,r.r)(this,e),this.subtitle="1",this.color="grey"}render(){return(0,r.h)(r.H,{class:`subtitle__${this.subtitle}`,style:{color:void 0!==this.color?`var(--rs-color-${this.color})`:""}},(0,r.h)("slot",null))}};l.style=":host{display:block;font-family:soleil, sans-serif;font-style:normal;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host(.subtitle__1){font-weight:400;font-size:1.125rem;line-height:1.4em;letter-spacing:0.15px}:host(.subtitle__2){font-weight:300;font-size:0.75rem;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}:host(.subtitle__3){font-weight:500;font-size:0.625rem;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}"}}]);
13
+ //# sourceMappingURL=314.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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MAlBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-button_2.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst buttonCss = \":host{display:inline-block}a.button-element span{top:initial}.button-element{text-decoration:none;padding:0.75rem 1.5625rem;min-width:5.625rem;height:2.625rem;cursor:pointer;user-select:none;border:0;border-radius:0.25rem;outline:none;display:inline-block;box-sizing:border-box;background-size:cover;transition:background .25s ease-out, box-shadow .25s ease-out;color:var(--rs-color-white);width:100%;white-space:nowrap}.button-element.small{padding-top:0.625rem;padding-bottom:0.625rem;height:2.25rem}.button-element.small span{font-size:0.875rem}.button-element span{top:-1px;display:block;position:relative;line-height:1;font-size:1rem;font-family:soleil, sans-serif;font-style:normal;font-weight:600;letter-spacing:0.2px;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.button-element:active{transition-delay:200ms}:host(.expand-block),:host(.expand-full){display:block}:host(.expand-block) .button-element{display:block;width:100%}:host(.expand-full) .button-element{display:block;width:100%;border-radius:0}.button-element.color--primary{background:var(--rs-color-primary-700)}.button-element.color--primary:hover{background:var(--rs-color-primary)}.button-element.color--primary:active{background:var(--rs-color-primary-300)}.button-element.color--negative{background:var(--rs-color-negative)}.button-element.color--secondary{background:var(--rs-color-secondary)}.button-element.color--secondary:hover{background:var(--rs-color-secondary-700)}.button-element.color--secondary:active{background:var(--rs-color-secondary-300)}.button-element.color--grey-light{color:var(--rs-color-grey);background:transparent;box-shadow:inset 0 0 0 1px var(--rs-color-grey-light)}:host(.expand-block) .button-element.color--grey-light span,:host(.expand-full) .button-element.color--grey-light span{font-weight:normal;color:var(--rs-color-secondary)}.button-element.color--grey-light:hover{box-shadow:inset 0 0 0 1px var(--rs-color-grey)}.button-element.color--positive{background:var(--rs-color-positive)}.button-element.color--positive:hover{background:var(--rs-color-positive-700)}.button-element.color--positive:active{background:var(--rs-color-positive-300)}.button-element.color--text{color:var(--rs-color-grey);background:transparent}.button-element.color--text:hover{background:var(--rs-color-light)}.button-element.color--text:active{background:var(--rs-color-grey-light)}.button-element.disabled{box-shadow:none;background:var(--rs-color-grey);cursor:not-allowed}.button-element.disabled:hover{background:var(--rs-color-grey)}.button-element.disabled span{color:var(--rs-color-grey-light);pointer-events:none}:host .button-element--loading{padding:0.75rem 1rem;cursor:wait;display:flex;align-items:center}:host .button-element--loading>*{width:100%}:host .button-element--loading .button-element__loading-bar{position:relative;overflow:hidden;height:0.3125rem;margin:0.4375rem 0;border-radius:0.1875rem;background-color:rgba(255, 255, 255, .5);width:100%}:host .button-element--loading .button-element__loading-bar:before{position:absolute;top:0;bottom:0;left:0;content:'';animation:indeterminate 2.1s cubic-bezier(.65, .815, .735, .395) infinite;border-radius:0.1875rem;background-color:rgba(255, 255, 255, .5);will-change:left, right}:host .button-element--loading .button-element__loading-bar:after{position:absolute;top:0;bottom:0;left:0;content:'';animation:indeterminate-short 2.1s cubic-bezier(.165, .84, .44, 1) infinite;animation-delay:1.15s;border-radius:0.1875rem;background-color:rgba(255, 255, 255, .5);will-change:left, right}@keyframes indeterminate{0%{right:100%;left:-35%}60%{right:-90%;left:100%}100%{right:-90%;left:100%}}@keyframes indeterminate-short{0%{right:100%;left:-200%}60%{right:-8%;left:107%}100%{right:-8%;left:107%}}\";\n\nconst Button = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /** (optional) primary, secondary, positive, grey defaults to primary. If set to grey, button will be an outline */\n this.color = 'primary';\n /** (optional) Puts the button in a disabled state */\n this.disabled = false;\n /**\n * (optional) Changes the button the small variation\n *\n * @property small Button with less height padding, and smaller font size\n * @property default Button with the default height and padding\n */\n this.size = 'default';\n /**\n * If true, replaces the inner html to a loading bar\n */\n this.loading = false;\n }\n getColorClass() {\n return `color--${this.color}`;\n }\n getExpandClass() {\n if (this.expand === 'block') {\n return 'expand-block';\n }\n else if (this.expand === 'full') {\n return 'expand-full';\n }\n return '';\n }\n render() {\n const { href, rel, target } = this;\n const TagType = this.href === undefined ? 'button' : 'a';\n const attrs = (TagType === 'a')\n ? {\n href,\n rel,\n target\n } : {};\n let buttonInnerHTML = !this.loading ? (h(\"slot\", null)) : (h(\"div\", { class: \"button-element__loading-bar\" }));\n return (h(Host, { class: this.getExpandClass(), style: {\n 'flex-grow': this.flexGrow\n } }, h(TagType, Object.assign({}, attrs, { disabled: this.disabled, class: [\n 'button-element',\n this.loading ? 'button-element--loading' : '',\n this.getColorClass(),\n this.size === 'small' ? 'small' : '',\n this.disabled ? 'disabled' : ''\n ].join(' ') }), h(\"span\", null, buttonInnerHTML))));\n }\n};\nButton.style = buttonCss;\n\nconst subtitleCss = \":host{display:block;font-family:soleil, sans-serif;font-style:normal;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host(.subtitle__1){font-weight:400;font-size:1.125rem;line-height:1.4em;letter-spacing:0.15px}:host(.subtitle__2){font-weight:300;font-size:0.75rem;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}:host(.subtitle__3){font-weight:500;font-size:0.625rem;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}\";\n\nconst Subtitle = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /** (optional) 1/2 defaults to 1 */\n this.subtitle = '1';\n /**\n * Color of the subtitle text\n */\n this.color = 'grey';\n }\n render() {\n return (h(Host, { class: `subtitle__${this.subtitle}`, style: {\n color: this.color !== undefined ? `var(--rs-color-${this.color})` : ''\n } }, h(\"slot\", null)));\n }\n};\nSubtitle.style = subtitleCss;\n\nexport { Button as rs_button, Subtitle as rs_subtitle };\n"],"names":["Button","constructor","hostRef","r","this","color","disabled","size","loading","getColorClass","getExpandClass","expand","render","href","rel","target","TagType","undefined","attrs","buttonInnerHTML","h","class","H","style","flexGrow","Object","assign","join","Subtitle","subtitle"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[330],{330:function(t,i,s){s.r(i),s.d(i,{rs_item_group:function(){return e}});var l=s(492);const e=class{constructor(t){(0,l.r)(this,t),this.alignItems="flex-start",this.gap=0,this.flexDirection="row",this.padding=!1,this.flex=!1}render(){return(0,l.h)(l.H,null,(0,l.h)("div",{class:"item-native",style:{display:this.flex?"flex":null,"flex-direction":this.flex?this.flexDirection:null,"align-items":this.flex?this.alignItems:null,"justify-content":this.flex?this.justifyContent:null,"align-content":this.flex?this.alignContent:null,"justify-items":this.flex?this.justifyItems:null,gap:this.gap>0?`${this.gap}px`:null,"flex-wrap":this.flexWrap}},(0,l.h)("slot",null)))}};e.style=":host{display:block}"}}]);
13
+ //# sourceMappingURL=330.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"330.index.js","mappings":";;;;;;;;;;;kLAEA,MAEMA,EAAc,MAClBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAMvBE,KAAKC,WAAa,aAKlBD,KAAKE,IAAM,EAIXF,KAAKG,cAAgB,MAIrBH,KAAKI,SAAU,EAIfJ,KAAKK,MAAO,EAEdC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,MAAO,CAAEE,MAAO,cAAeC,MAAO,CAC1D,QAAWV,KAAKK,KAAO,OAAS,KAChC,iBAAkBL,KAAKK,KAAOL,KAAKG,cAAgB,KACnD,cAAeH,KAAKK,KAAOL,KAAKC,WAAa,KAC7C,kBAAmBD,KAAKK,KAAOL,KAAKW,eAAiB,KACrD,gBAAiBX,KAAKK,KAAOL,KAAKY,aAAe,KACjD,gBAAiBZ,KAAKK,KAAOL,KAAKa,aAAe,KACjD,IAAOb,KAAKE,IAAM,EAAI,GAAGF,KAAKE,QAAU,KACxC,YAAaF,KAAKc,YACf,IAAAP,GAAE,OAAQ,UAGrBX,EAAYc,MA1CW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-item-group.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst rsItemGroupCss = \":host{display:block}\";\n\nconst RsItemGroup = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Defines how we want to align the elements vertically inside the item.\n * Will only work if we set 'flex' to true\n * Use when flex direction is set to row\n */\n this.alignItems = 'flex-start';\n /**\n * gap CSS value\n * Note: This doesn't work on Safari\n */\n this.gap = 0;\n /**\n * Useful when using Flex display. Sets the flex-direction css style\n */\n this.flexDirection = 'row';\n /**\n * If true, we apply default padding of 8px inside the item.\n */\n this.padding = false;\n /**\n * If true, we display all the elements inside the item in a single row.\n */\n this.flex = false;\n }\n render() {\n return (h(Host, null, h(\"div\", { class: \"item-native\", style: {\n 'display': this.flex ? 'flex' : null,\n 'flex-direction': this.flex ? this.flexDirection : null,\n 'align-items': this.flex ? this.alignItems : null,\n 'justify-content': this.flex ? this.justifyContent : null,\n 'align-content': this.flex ? this.alignContent : null,\n 'justify-items': this.flex ? this.justifyItems : null,\n 'gap': this.gap > 0 ? `${this.gap}px` : null,\n 'flex-wrap': this.flexWrap,\n } }, h(\"slot\", null))));\n }\n};\nRsItemGroup.style = rsItemGroupCss;\n\nexport { RsItemGroup as rs_item_group };\n"],"names":["RsItemGroup","constructor","hostRef","r","this","alignItems","gap","flexDirection","padding","flex","render","h","H","class","style","justifyContent","alignContent","justifyItems","flexWrap"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[346],{1346:function(t,e,s){s.r(e),s.d(e,{rs_spinner:function(){return i}});var r=s(492);const i=class{constructor(t){(0,r.r)(this,t),this.size="default",this.color="primary",this.speed=1.5,this.dimensions={small:28,default:43,large:111},this.strokeWidth={small:3,default:4,large:4},this.activeStrokeWidth={small:3,default:4,large:4}}getSize(){return this.dimensions[this.size]}getActiveStrokeWidth(){return this.activeStrokeWidth[this.size]}getStrokeWidth(){return this.strokeWidth[this.size]}getRadius(){return this.getSize()/2-this.getActiveStrokeWidth()/2}getStrokeDashArray(){return Math.PI*(2*this.getRadius())}static getProgressValue(){return 60}getStrokeDashOffset(){return(100-i.getProgressValue())/100*this.getStrokeDashArray()}render(){return(0,r.h)(r.H,{class:`size--${this.size}`,style:{width:`${this.getSize()}px`,height:`${this.getSize()}px`}},(0,r.h)("svg",{width:this.getSize(),height:this.getSize(),viewBox:`0 0 ${this.getSize()} ${this.getSize()}`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("circle",{class:"progress-bar",opacity:"0.5",cx:"50%",cy:"50%",r:this.getRadius(),style:{"stroke-width":`${this.getStrokeWidth()}`}}),(0,r.h)("circle",{class:"progress-circle",cx:"50%",cy:"50%",r:this.getRadius(),style:{opacity:"1",stroke:`var(--rs-color-${this.color})`,"stroke-dasharray":`${this.getStrokeDashArray()}`,"stroke-width":`${this.getActiveStrokeWidth()}px`,"stroke-dashoffset":`${this.getStrokeDashOffset()}`,"stroke-linecap":"round","transform-origin":`${this.getSize()/2}px ${this.getSize()/2}px`,transform:"rotate(-90deg)",animation:`spin ${this.speed}s linear infinite`}})))}};i.style=":host{display:block}.progress-bar{stroke:var(--rs-color-grey-light)}.progress-circle{stroke:var(--rs-color-primary-700);animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}"}}]);
13
+ //# sourceMappingURL=346.index.js.map
@@ -0,0 +1 @@
1
+ {"version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vB,KAAKE,SACjC,mBAAoB,GAAGF,KAAKc,uBAC5B,eAAgB,GAAGd,KAAKW,2BACxB,oBAAqB,GAAGX,KAAKiB,wBAC7B,iBAAkB,QAClB,mBAAoB,GAAGjB,KAAKU,UAAY,OAAOV,KAAKU,UAAY,MAChE,UAAa,iBACb,UAAa,QAAQV,KAAKG,gCAIlCP,EAAU2B,MA3EW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-spinner.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst rsSpinnerCss = \":host{display:block}.progress-bar{stroke:var(--rs-color-grey-light)}.progress-circle{stroke:var(--rs-color-primary-700);animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}\";\n\nconst RsSpinner = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Size of the progress circle\n */\n this.size = 'default';\n /**\n * Sets the color of the spinner\n */\n this.color = 'primary';\n /**\n * Sets how fast the circle spins\n */\n this.speed = 1.5;\n this.dimensions = {\n small: 28,\n default: 43,\n large: 111\n };\n this.strokeWidth = {\n small: 3,\n default: 4,\n large: 4\n };\n this.activeStrokeWidth = {\n small: 3,\n default: 4,\n large: 4\n };\n }\n getSize() {\n return this.dimensions[this.size];\n }\n getActiveStrokeWidth() {\n return this.activeStrokeWidth[this.size];\n }\n getStrokeWidth() {\n return this.strokeWidth[this.size];\n }\n getRadius() {\n const width = this.getSize();\n // return (width / 2);\n return (width / 2) - (this.getActiveStrokeWidth() / 2);\n }\n getStrokeDashArray() {\n return Math.PI * (this.getRadius() * 2);\n }\n static getProgressValue() {\n return 60;\n }\n getStrokeDashOffset() {\n return ((100 - RsSpinner.getProgressValue()) / 100) * this.getStrokeDashArray();\n }\n render() {\n return (h(Host, { class: `size--${this.size}`, style: {\n 'width': `${this.getSize()}px`,\n 'height': `${this.getSize()}px`\n } }, h(\"svg\", { width: this.getSize(), height: this.getSize(), viewBox: `0 0 ${this.getSize()} ${this.getSize()}`, fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, h(\"circle\", { class: \"progress-bar\", opacity: \"0.5\", cx: \"50%\", cy: \"50%\", r: this.getRadius(), style: {\n 'stroke-width': `${this.getStrokeWidth()}`\n } }), h(\"circle\", { class: \"progress-circle\", cx: \"50%\", cy: \"50%\", r: this.getRadius(), style: {\n 'opacity': '1',\n 'stroke': `var(--rs-color-${this.color})`,\n 'stroke-dasharray': `${this.getStrokeDashArray()}`,\n 'stroke-width': `${this.getActiveStrokeWidth()}px`,\n 'stroke-dashoffset': `${this.getStrokeDashOffset()}`,\n 'stroke-linecap': 'round',\n 'transform-origin': `${this.getSize() / 2}px ${this.getSize() / 2}px`,\n 'transform': 'rotate(-90deg)',\n 'animation': `spin ${this.speed}s linear infinite`,\n } }))));\n }\n};\nRsSpinner.style = rsSpinnerCss;\n\nexport { RsSpinner as rs_spinner };\n"],"names":["RsSpinner","constructor","hostRef","r","this","size","color","speed","dimensions","small","default","large","strokeWidth","activeStrokeWidth","getSize","getActiveStrokeWidth","getStrokeWidth","getRadius","getStrokeDashArray","Math","PI","getStrokeDashOffset","getProgressValue","render","h","H","class","style","width","height","viewBox","fill","xmlns","opacity","cx","cy"],"sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[385],{4385:function(e,t,n){n.r(t),n.d(t,{rs_incrementer:function(){return r}});var i=n(492);const r=class{constructor(e){(0,i.r)(this,e),this.rsChange=(0,i.c)(this,"rsChange",7),this.isDropdownVisible=!1,this.customOptionsArray=[],this.customOptionIndex=0,this.step=1,this.value=1,this.min=0,this.max=100,this.suffix="",this.dropdown=!1,this.decimalPlaces=0,this.dropdownStep=0,this.customOptions=!1,this.onDecrementHandler=e=>{if(e.stopPropagation(),this.customOptions){if(this.customOptionsArray.length>0){let e=this.customOptionIndex-1;this.handleOutOfRangeIndex(e),e=this.validateCustomOptionIndex(this.customOptionIndex-1),this.customOptionIndex=e,this.value=this.customOptionsArray[e]}}else this.value=Number.parseFloat(this.value),this.value=Number.parseFloat((this.value-this.step).toFixed(this.decimalPlaces))},this.onIncrementHandler=e=>{if(e.stopPropagation(),this.customOptions){if(this.customOptionsArray.length>0){let e=this.customOptionIndex+1;this.handleOutOfRangeIndex(e),e=this.validateCustomOptionIndex(this.customOptionIndex+1),this.customOptionIndex=e,this.value=this.customOptionsArray[e]}}else this.value=Number.parseFloat(this.value),this.value=Number.parseFloat((this.value+this.step).toFixed(this.decimalPlaces))},this.onClickHandler=()=>{this.dropdown&&!this.isDropdownVisible?this.showDropdown():this.hideDropdown()},this.onOptionClickHandler=e=>{const t=parseFloat(e.target.dataset.value);this.value=parseFloat(t.toFixed(this.decimalPlaces))}}valueChanged(e){if(this.value=e,this.dropdown&&this.customOptions&&(this.customOptionIndex=this.customOptionsArray.indexOf(this.value)),!this.customOptions){const e=r.validateMin(this.min),t=r.validateMax(this.max);this.value<e?this.value=e:this.value>t&&(this.value=t),this.value===e?this.decrementButton.classList.add("number-incrementer__control--disable"):this.value===t?this.incrementButton.classList.add("number-incrementer__control--disable"):(this.incrementButton.classList.remove("number-incrementer__control--disable"),this.decrementButton.classList.remove("number-incrementer__control--disable"))}this.rsChange.emit({value:this.value})}async showDropdown(){this.dropdown&&(this.setDropdownHeight(),this.isDropdownVisible=!0)}async hideDropdown(){this.dropdown&&(this.isDropdownVisible=!1)}async toggleDropdown(){this.onClickHandler()}rsOptionClickHandler(e){this.value=e.detail.value}validateCustomOptionIndex(e){return e<0&&(e=0),e>this.customOptionsArray.length-1&&(e=this.customOptionsArray.length-1),e}static validateMin(e){return isNaN(e)?0:Number(e)}static validateMax(e){return isNaN(e)?100:Number(e)}handleOutOfRangeIndex(e){e<=0?this.decrementButton.classList.add("number-incrementer__control--disable"):this.decrementButton.classList.remove("number-incrementer__control--disable"),e>=this.customOptionsArray.length-1?this.incrementButton.classList.add("number-incrementer__control--disable"):this.incrementButton.classList.remove("number-incrementer__control--disable")}setDropdownHeight(){if(this.dropdown){const e=this.el.getBoundingClientRect(),t=e.top+e.height;let n=window.innerHeight-t-5;n<50&&(n=50),n<300&&(this.dropdownList.style.height=n+"px")}}componentDidLoad(){if(document.addEventListener("click",(e=>{null==e.target.closest(".number-incrementer")&&this.isDropdownVisible&&this.hideDropdown()})),this.dropdown&&this.customOptions){document.querySelectorAll("rs-incrementer-option").forEach((e=>{this.customOptionsArray.push(e.dataset.value)})),this.customOptionsArray.length>0&&(this.customOptionIndex=this.customOptionsArray.indexOf(this.value),this.handleOutOfRangeIndex(this.customOptionIndex))}}componentWillRender(){const e=this.step%1;if(0===this.decimalPlaces&&0!==e&&(this.decimalPlaces=1),this.dropdownStep=0===this.dropdownStep?this.step:this.dropdownStep,this.dropdown){let e=[];const t=r.validateMin(this.min),n=r.validateMax(this.max);for(let i=t;i<=n;i+=this.dropdownStep)i=Number(i.toFixed(this.decimalPlaces)),e.push(i);e=e.filter(((t,n)=>e.indexOf(t)===n));let s=e.map((e=>(0,i.h)("span",{class:"number-incrementer__dropdown-item",onClick:this.onOptionClickHandler,"data-value":e},e+this.suffix)));this.customOptions&&(s=(0,i.h)("slot",null)),this.dropdownHtml=(0,i.h)("div",{class:{"number-incrementer__dropdown-container":!0,"number-incrementer__dropdown-container--active":this.isDropdownVisible},style:{display:this.isDropdownVisible?"block":"none",opacity:this.isDropdownVisible?"1":"0","pointer-events":this.isDropdownVisible?"auto":"none"}},(0,i.h)("div",{class:"number-incrementer__dropdown-list",ref:e=>this.dropdownList=e},s))}}render(){return(0,i.h)(i.H,{class:{"number-incrementer":!0,"number-incrementer--dropdown":this.dropdown},onClick:this.onClickHandler},(0,i.h)("div",{class:"number-incrementer__container"},(0,i.h)("span",{class:"number-incrementer__control number-incrementer__control--decrement",ref:e=>this.decrementButton=e,onClick:this.onDecrementHandler},(0,i.h)("rs-icon",{name:"minus",color:"secondary"})),(0,i.h)("span",{class:"number-incrementer__value"},this.value+this.suffix),(0,i.h)("span",{class:"number-incrementer__control number-incrementer__control--increment",ref:e=>this.incrementButton=e,onClick:this.onIncrementHandler},(0,i.h)("rs-icon",{name:"plus",color:"secondary"}))),this.dropdownHtml)}get el(){return(0,i.g)(this)}static get watchers(){return{value:["valueChanged"]}}};r.style=".sc-rs-incrementer-h{display:block;width:100%;height:2rem;min-width:7.125rem;box-sizing:border-box;font-family:Soleil, sans-serif;color:var(--rs-color-secondary);position:relative}.number-incrementer--dropdown.sc-rs-incrementer-h{cursor:pointer}.number-incrementer__container.sc-rs-incrementer{border:1px solid var(--rs-color-select-border);border-radius:0.25rem;background-color:rgba(216, 216, 216, 0);padding:0.3125rem;display:flex;align-items:center;justify-content:space-between;user-select:none}.number-incrementer__control.sc-rs-incrementer{width:1.25rem;height:1.25rem;background-color:var(--rs-color-select-secondary);border-radius:50%;font-size:1rem;font-weight:500;line-height:1.25rem;cursor:pointer;display:flex;align-items:center;justify-content:center}.number-incrementer__control--disable.sc-rs-incrementer{opacity:0.5;cursor:not-allowed}.number-incrementer__control.sc-rs-incrementer rs-icon.sc-rs-incrementer{font-size:0.5rem}.number-incrementer__value.sc-rs-incrementer{font-size:0.875rem;font-family:'Soleil', sans-serif;color:var(--rs-color-black);flex-grow:1;text-align:center}.number-incrementer--dropdown.sc-rs-incrementer-h .number-incrementer__value.sc-rs-incrementer{cursor:pointer}.number-incrementer__dropdown-container.sc-rs-incrementer{z-index:9;position:absolute;width:100%;background-color:var(--rs-color-white);border:1px solid var(--rs-color-select-border);top:100%;margin-top:-0.1875rem;box-sizing:border-box;border-bottom-left-radius:0.1875rem;border-bottom-right-radius:0.1875rem;overflow:hidden;word-break:break-all;opacity:0;pointer-events:none;transition:opacity 0.15s ease-out 0.05s}.number-incrementer__dropdown-list.sc-rs-incrementer{position:relative;max-height:18.75rem;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.number-incrementer__dropdown-item.sc-rs-incrementer{display:block;position:relative;padding:0.625rem;font-family:'Soleil', sans-serif;cursor:pointer;font-size:0.75rem}.number-incrementer__dropdown-item.sc-rs-incrementer:hover{background-color:var(--rs-color-select-background)}"}}]);
13
+ //# sourceMappingURL=385.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"385.index.js","mappings":";;;;;;;;;;;oLAEA,MAEMA,EAAc,MAClBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,UAAW,IAAAC,GAAYF,KAAM,WAAY,GAC9CA,KAAKG,mBAAoB,EACzBH,KAAKI,mBAAqB,GAC1BJ,KAAKK,kBAAoB,EAIzBL,KAAKM,KAAO,EAIZN,KAAKO,MAAQ,EAIbP,KAAKQ,IAAM,EAIXR,KAAKS,IAAM,IAIXT,KAAKU,OAAS,GAIdV,KAAKW,UAAW,EAIhBX,KAAKY,cAAgB,EAIrBZ,KAAKa,aAAe,EAIpBb,KAAKc,eAAgB,EAKrBd,KAAKe,mBAAsBC,IAEzB,GADAA,EAAMC,kBACDjB,KAAKc,eAKR,GAAId,KAAKI,mBAAmBc,OAAS,EAAG,CACtC,IAAIC,EAAQnB,KAAKK,kBAAoB,EACrCL,KAAKoB,sBAAsBD,GAC3BA,EAAQnB,KAAKqB,0BAA0BrB,KAAKK,kBAAoB,GAChEL,KAAKK,kBAAoBc,EACzBnB,KAAKO,MAAQP,KAAKI,mBAAmBe,SATvCnB,KAAKO,MAAQe,OAAOC,WAAWvB,KAAKO,OACpCP,KAAKO,MAAQe,OAAOC,YAAYvB,KAAKO,MAAQP,KAAKM,MAAMkB,QAAQxB,KAAKY,iBAgBzEZ,KAAKyB,mBAAsBT,IAEzB,GADAA,EAAMC,kBACDjB,KAAKc,eAKR,GAAId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AsEG,IAAK/B,GAAMhD,KAAKqC,gBAAkBW,EAAI6B,QAAS7E,KAAKe,qBAAsB,IAAA4D,GAAE,UAAW,CAAEO,KAAM,QAASC,MAAO,gBAAiB,IAAAR,GAAE,OAAQ,CAAEC,MAAO,6BAA+B5E,KAAKO,MAAQP,KAAKU,SAAS,IAAAiE,GAAE,OAAQ,CAAEC,MAAO,qEAAsEG,IAAK/B,GAAMhD,KAAKwC,gBAAkBQ,EAAI6B,QAAS7E,KAAKyB,qBAAsB,IAAAkD,GAAE,UAAW,CAAEO,KAAM,OAAQC,MAAO,gBAAkBnF,KAAK8E,cAEhmB,SAAW,OAAO,IAAAM,GAAWpF,MAC7B,sBAAwB,MAAO,CAC7B,MAAS,CAAC,mBAGdJ,EAAY6D,MAtTW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-incrementer.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\n\nconst incrementerCss = \".sc-rs-incrementer-h{display:block;width:100%;height:2rem;min-width:7.125rem;box-sizing:border-box;font-family:Soleil, sans-serif;color:var(--rs-color-secondary);position:relative}.number-incrementer--dropdown.sc-rs-incrementer-h{cursor:pointer}.number-incrementer__container.sc-rs-incrementer{border:1px solid var(--rs-color-select-border);border-radius:0.25rem;background-color:rgba(216, 216, 216, 0);padding:0.3125rem;display:flex;align-items:center;justify-content:space-between;user-select:none}.number-incrementer__control.sc-rs-incrementer{width:1.25rem;height:1.25rem;background-color:var(--rs-color-select-secondary);border-radius:50%;font-size:1rem;font-weight:500;line-height:1.25rem;cursor:pointer;display:flex;align-items:center;justify-content:center}.number-incrementer__control--disable.sc-rs-incrementer{opacity:0.5;cursor:not-allowed}.number-incrementer__control.sc-rs-incrementer rs-icon.sc-rs-incrementer{font-size:0.5rem}.number-incrementer__value.sc-rs-incrementer{font-size:0.875rem;font-family:'Soleil', sans-serif;color:var(--rs-color-black);flex-grow:1;text-align:center}.number-incrementer--dropdown.sc-rs-incrementer-h .number-incrementer__value.sc-rs-incrementer{cursor:pointer}.number-incrementer__dropdown-container.sc-rs-incrementer{z-index:9;position:absolute;width:100%;background-color:var(--rs-color-white);border:1px solid var(--rs-color-select-border);top:100%;margin-top:-0.1875rem;box-sizing:border-box;border-bottom-left-radius:0.1875rem;border-bottom-right-radius:0.1875rem;overflow:hidden;word-break:break-all;opacity:0;pointer-events:none;transition:opacity 0.15s ease-out 0.05s}.number-incrementer__dropdown-list.sc-rs-incrementer{position:relative;max-height:18.75rem;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.number-incrementer__dropdown-item.sc-rs-incrementer{display:block;position:relative;padding:0.625rem;font-family:'Soleil', sans-serif;cursor:pointer;font-size:0.75rem}.number-incrementer__dropdown-item.sc-rs-incrementer:hover{background-color:var(--rs-color-select-background)}\";\n\nconst Incrementer = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsChange = createEvent(this, \"rsChange\", 7);\n this.isDropdownVisible = false;\n this.customOptionsArray = [];\n this.customOptionIndex = 0;\n /**\n * How much we want to increment/decrement\n */\n this.step = 1;\n /**\n * The value of the incrementer\n */\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 * If true, it means we pass our own dropdown options using rs-incrementer-option\n */\n this.customOptions = false;\n /**\n * Decrements the 'value'\n * @param event\n */\n this.onDecrementHandler = (event) => {\n event.stopPropagation();\n if (!this.customOptions) {\n this.value = Number.parseFloat(this.value); // makes sure that the value is a number so we can do calculations\n this.value = Number.parseFloat((this.value - this.step).toFixed(this.decimalPlaces));\n }\n else {\n if (this.customOptionsArray.length > 0) {\n let index = this.customOptionIndex - 1;\n this.handleOutOfRangeIndex(index);\n index = this.validateCustomOptionIndex(this.customOptionIndex - 1);\n this.customOptionIndex = index;\n this.value = this.customOptionsArray[index];\n }\n }\n };\n /**\n * Increments the 'value'\n * @param event\n */\n this.onIncrementHandler = (event) => {\n event.stopPropagation();\n if (!this.customOptions) {\n this.value = Number.parseFloat(this.value); // makes sure that the value is a number so we can do calculations\n this.value = Number.parseFloat((this.value + this.step).toFixed(this.decimalPlaces));\n }\n else {\n if (this.customOptionsArray.length > 0) {\n let index = this.customOptionIndex + 1;\n this.handleOutOfRangeIndex(index);\n index = this.validateCustomOptionIndex(this.customOptionIndex + 1);\n this.customOptionIndex = index;\n this.value = this.customOptionsArray[index];\n }\n }\n // this.value = this.value + this.step;\n };\n /**\n * A handler for when the incrementer is clicked.\n * Hides/Shows the dropdown.\n */\n this.onClickHandler = () => {\n if (this.dropdown && !this.isDropdownVisible) {\n this.showDropdown();\n }\n else {\n this.hideDropdown();\n }\n };\n /**\n * A handler for when a dropdown options is clicked.\n * Sets the value to the value selected by the user.\n * @param event\n */\n this.onOptionClickHandler = event => {\n const value = parseFloat(event.target.dataset.value);\n this.value = parseFloat(value.toFixed(this.decimalPlaces));\n };\n }\n /**\n * Watch for any changes on the `value` property.\n */\n valueChanged(newValue) {\n this.value = newValue;\n if (this.dropdown && this.customOptions) {\n // update the index\n this.customOptionIndex = this.customOptionsArray.indexOf(this.value);\n }\n if (!this.customOptions) {\n const min = Incrementer.validateMin(this.min);\n const max = Incrementer.validateMax(this.max);\n // makes sure that the value is within the set min and max\n if (this.value < min) {\n this.value = min;\n }\n else if (this.value > max) {\n this.value = max;\n }\n // disable control when value is equal to min or max\n if (this.value === min) {\n this.decrementButton.classList.add('number-incrementer__control--disable');\n }\n else if (this.value === max) {\n this.incrementButton.classList.add('number-incrementer__control--disable');\n }\n else {\n this.incrementButton.classList.remove('number-incrementer__control--disable');\n this.decrementButton.classList.remove('number-incrementer__control--disable');\n }\n }\n this.rsChange.emit({ value: this.value }); // emit change in input\n }\n /**\n * A function that can be called on the element to show the dropdown\n */\n async showDropdown() {\n if (this.dropdown) {\n this.setDropdownHeight();\n this.isDropdownVisible = true;\n }\n }\n /**\n * A function that can be called on the element to hide the dropdown\n */\n async hideDropdown() {\n if (this.dropdown) {\n this.isDropdownVisible = false;\n }\n }\n /**\n * A function that can be called on the element to toggle the dropdown\n */\n async toggleDropdown() {\n this.onClickHandler();\n }\n rsOptionClickHandler(event) {\n this.value = event.detail.value;\n }\n /**\n * Makes sure that the selected index is not out of range\n *\n * @param index\n * @private\n */\n validateCustomOptionIndex(index) {\n if (index < 0) {\n index = 0;\n }\n if (index > (this.customOptionsArray.length - 1)) {\n index = this.customOptionsArray.length - 1;\n }\n return index;\n }\n /**\n * Makes sure that the min is type 'number'. Returns default value of 0 if NaN\n *\n * @param min\n * @private\n */\n static validateMin(min) {\n return isNaN(min) ? 0 : Number(min);\n }\n /**\n * Makes sure that the max is type 'number'. Returns default value of 100 if NaN\n *\n * @param max\n * @private\n */\n static validateMax(max) {\n return isNaN(max) ? 100 : Number(max);\n }\n /**\n * When the selected is out of range, we disable the control\n *\n * @param index\n * @private\n */\n handleOutOfRangeIndex(index) {\n if (index <= 0) {\n this.decrementButton.classList.add('number-incrementer__control--disable');\n }\n else {\n this.decrementButton.classList.remove('number-incrementer__control--disable');\n }\n if (index >= (this.customOptionsArray.length - 1)) {\n this.incrementButton.classList.add('number-incrementer__control--disable');\n }\n else {\n this.incrementButton.classList.remove('number-incrementer__control--disable');\n }\n }\n /**\n * Adjusts the height of the dropdown\n * @private\n */\n setDropdownHeight() {\n if (this.dropdown) {\n const position = this.el.getBoundingClientRect();\n const bottom = position.top + position.height;\n let dropdownHeight = window.innerHeight - bottom - 5; // This is just an additional subtraction to make sure it doesn't butt up against the bottom of the window\n if (dropdownHeight < 50) {\n dropdownHeight = 50;\n }\n if (dropdownHeight < 300) {\n this.dropdownList.style.height = dropdownHeight + 'px';\n }\n }\n }\n /**\n * This gets called once after the component has been rendered.\n */\n componentDidLoad() {\n // If the dropdown is visible and user clicks outside the incrementer, we hide the dropdown\n document.addEventListener('click', (event) => {\n if (event.target.closest('.number-incrementer') == null) {\n if (this.isDropdownVisible) {\n this.hideDropdown();\n }\n }\n });\n // get all the custom options\n if (this.dropdown && this.customOptions) {\n const customOptionElements = document.querySelectorAll('rs-incrementer-option');\n customOptionElements.forEach(customOptionElement => {\n // get the value and store it in an array\n this.customOptionsArray.push(customOptionElement.dataset.value);\n });\n if (this.customOptionsArray.length > 0) {\n this.customOptionIndex = this.customOptionsArray.indexOf(this.value); // update index\n this.handleOutOfRangeIndex(this.customOptionIndex);\n }\n }\n }\n componentWillRender() {\n const stepCheck = this.step % 1;\n if (this.decimalPlaces === 0 && stepCheck !== 0) {\n this.decimalPlaces = 1;\n }\n this.dropdownStep = this.dropdownStep === 0 ? this.step : this.dropdownStep;\n // If dropdown is enabled,\n if (this.dropdown) {\n // get all the options\n let options = [];\n // makes sure min and max are numbers before we do something with them\n const min = Incrementer.validateMin(this.min);\n const max = Incrementer.validateMax(this.max);\n for (let i = min; i <= max; i += this.dropdownStep) {\n i = Number(i.toFixed(this.decimalPlaces));\n options.push(i);\n }\n options = options.filter((item, index) => options.indexOf(item) === index);\n // render the options\n let dropdownOptions = options.map((option => h(\"span\", { class: \"number-incrementer__dropdown-item\", onClick: this.onOptionClickHandler, \"data-value\": option }, option + this.suffix)));\n if (this.customOptions) {\n dropdownOptions = (h(\"slot\", null)); // if we want custom options, we create a slot for rs-incrementer-option\n }\n // render dropdown\n this.dropdownHtml = (h(\"div\", { class: {\n 'number-incrementer__dropdown-container': true,\n 'number-incrementer__dropdown-container--active': this.isDropdownVisible\n }, style: {\n 'display': this.isDropdownVisible ? 'block' : 'none',\n 'opacity': this.isDropdownVisible ? '1' : '0',\n 'pointer-events': this.isDropdownVisible ? 'auto' : 'none',\n } }, h(\"div\", { class: \"number-incrementer__dropdown-list\", ref: el => this.dropdownList = el }, dropdownOptions)));\n }\n }\n /**\n * Renders the component\n */\n render() {\n return (h(Host, { class: {\n 'number-incrementer': true,\n 'number-incrementer--dropdown': this.dropdown,\n }, onClick: this.onClickHandler }, h(\"div\", { class: \"number-incrementer__container\" }, h(\"span\", { class: \"number-incrementer__control number-incrementer__control--decrement\", ref: el => this.decrementButton = el, onClick: this.onDecrementHandler }, h(\"rs-icon\", { name: \"minus\", color: \"secondary\" })), h(\"span\", { class: \"number-incrementer__value\" }, this.value + this.suffix), h(\"span\", { class: \"number-incrementer__control number-incrementer__control--increment\", ref: el => this.incrementButton = el, onClick: this.onIncrementHandler }, h(\"rs-icon\", { name: \"plus\", color: \"secondary\" }))), this.dropdownHtml));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"value\": [\"valueChanged\"]\n }; }\n};\nIncrementer.style = incrementerCss;\n\nexport { Incrementer as rs_incrementer };\n"],"names":["Incrementer","constructor","hostRef","r","this","rsChange","c","isDropdownVisible","customOptionsArray","customOptionIndex","step","value","min","max","suffix","dropdown","decimalPlaces","dropdownStep","customOptions","onDecrementHandler","event","stopPropagation","length","index","handleOutOfRangeIndex","validateCustomOptionIndex","Number","parseFloat","toFixed","onIncrementHandler","onClickHandler","showDropdown","hideDropdown","onOptionClickHandler","target","dataset","valueChanged","newValue","indexOf","validateMin","validateMax","decrementButton","classList","add","incrementButton","remove","emit","setDropdownHeight","rsOptionClickHandler","detail","isNaN","position","el","getBoundingClientRect","bottom","top","height","dropdownHeight","window","innerHeight","dropdownList","style","componentDidLoad","document","addEventListener","closest","querySelectorAll","forEach","customOptionElement","push","componentWillRender","stepCheck","options","i","filter","item","dropdownOptions","map","option","h","class","onClick","dropdownHtml","ref","render","H","name","color","g"],"sourceRoot":""}