@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 @@
1
+ {"version":3,"file":"955.index.js","mappings":"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","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":""}
@@ -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([[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
@@ -0,0 +1 @@
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":""}
@@ -0,0 +1,11 @@
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
+ */@import url(https://use.typekit.net/gzi2xus.css);@import url(https://d1azc1qln24ryf.cloudfront.net/181725/Rocketspark/style-cf.css?ljlg3u);.dc__checker{padding:1.5rem 0}.dc__input-container{display:flex;gap:.5rem;position:relative;width:100%}.dc__search-again{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--rs-color-primary-700);cursor:pointer;font-family:soleil,sans-serif;font-size:.875rem;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translateX(-100%) translateY(-50%);transition:opacity .15s ease-out;white-space:nowrap}.dc__search-again--active{opacity:1;pointer-events:auto}.dc__popup-container{align-items:center;background-color:#fff;background-image:url(../5798190b27b26600fb18.svg),url(../3cce2bffb56fb72f4f99.svg);background-position:bottom -1px right,0 0;background-repeat:no-repeat;border-radius:1.25rem;box-sizing:border-box;display:flex;flex-direction:column;height:31.25rem;left:50%;opacity:0;padding:4rem;position:absolute;top:.625rem;transform:translateX(-50%);transition:opacity .15s ease-out;width:calc(100% - 7rem);z-index:9999}.dc__popup-container--active{opacity:1}.dc__search-heading{margin-top:1.5rem}.dc__popup-search-container{margin-top:4.5rem;width:40.625rem}.dc__search-result-caption{margin-top:5rem;opacity:0;transition:opacity .15s ease-out}.dc__search-result-caption__price{font-weight:600}.dc__search-result-caption--active{opacity:1}.dc__popup-close{cursor:pointer;padding:2.1875rem;position:absolute;right:0;top:0}.dc__popup-search-spinner{padding:.125rem}@media (max-width:740px){.dc__popup-container{background:#fff;height:calc(100% - 4.5rem);padding:4.5rem 2rem;position:fixed;width:calc(100% - 1.5rem)}.dc__popup-close{cursor:pointer;padding:1rem;position:absolute;right:0;top:0}.dc__popup-search-container{width:100%}.dc__popup-container .dc__input-container{align-items:center;flex-direction:column;gap:1rem}.dc__popup-container .dc__search-button{width:10rem}.dc__popup-container .dc__search-again{left:0!important;position:relative;transform:none}.dc__search-heading{text-align:center;width:18.75rem}.dc__search-result-caption{bottom:4.5rem;position:absolute;text-align:center}.dc__search-result-caption__price{display:block}}:root{--rs-color-primary:#5a86f2;--rs-color-primary-300:#7ca1ff;--rs-color-primary-700:#537bde;--rs-color-secondary:#464a53;--rs-color-secondary-rgb:70,74,83;--rs-color-secondary-variant:#2c3035;--rs-color-secondary-variant-rgb:44,48,53;--rs-color-secondary-300:#595c64;--rs-color-secondary-700:#2c3035;--rs-color-positive:#51d58d;--rs-color-positive-100:#b2fdd1;--rs-color-positive-300:#65e399;--rs-color-positive-700:#59c887;--rs-color-grey:#748393;--rs-color-grey-300:#95a8bd;--rs-color-grey-700:#748393;--rs-color-grey-light:#c3d5e2;--rs-color-grey-light-rgb:195,213,226;--rs-color-positive-variant:#b2fdd1;--rs-color-white:#fff;--rs-color-light:#eef3f8;--rs-color-black:#111618;--rs-color-heading:#1b2348;--rs-color-negative:#f16564;--rs-color-neutral:#ffca81;--rs-color-highlight:#ffed00;--rs-color-transparent:transparent;--rs-color-select-border:#ddd;--rs-color-select-background:#f9f9f9;--rs-color-select-secondary:#e9ecec;--rs-shadow-task:0 1px 0.25rem rgba(var(--rs-color-grey-light-rgb),0.50041);--rs-shadow-tooltip:0 0.3125rem 0.625rem rgba(var(--rs-color-secondary-rgb),0.2);--rs-shadow-popup:0 0.3125rem 0.9375rem rgba(var(--rs-color-secondary-rgb),0.25)}.rs-component-shadow--task{box-shadow:var(--rs-shadow-task)}.rs-component-shadow--tooltip{box-shadow:var(--rs-shadow-tooltip)}.rs-component-shadow--popup{box-shadow:var(--rs-shadow-popup)}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.css","webpack://./src/lib/index.css","webpack://./node_modules/@rocketspark/flint-ui/dist/rocketspark/rocketspark.css"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE,CACF,gDAAgD,CAChD,yFAAyF,CCPzF,aACI,gBACJ,CAEA,qBACI,YAAa,CACb,SAAQ,CAER,iBAAkB,CADlB,UAEJ,CAEA,kBAMI,kCAAmC,CACnC,iCAAkC,CAHlC,iCAAkC,CAClC,cAAe,CAFf,6BAAiC,CADjC,iBAAe,CAMf,SAAU,CACV,mBAAoB,CAEpB,iBAAkB,CAClB,OAAQ,CACR,4CAA6C,CAH7C,gCAAkC,CATlC,kBAaJ,CAEA,0BACI,SAAU,CACV,mBACJ,CAEA,qBAeI,kBAAmB,CAPnB,qBAAsB,CACtB,kFAAA,CAEA,yCAAgD,CADhD,2BAA4B,CAH5B,qBAAmB,CAWnB,qBAAsB,CAJtB,YAAa,CAEb,qBAAsB,CAdtB,eAAa,CAGb,QAAS,CAOT,SAAU,CAKV,YAAa,CAdb,iBAAkB,CAClB,WAAS,CAET,0BAA2B,CAO3B,gCAAkC,CAZlC,uBAAyB,CAkBzB,YACJ,CAEA,6BACI,SACJ,CAEA,oBACI,iBACJ,CAEA,4BACI,iBAAgB,CAChB,eACJ,CAEA,2BAGI,eAAgB,CAFhB,SAAU,CACV,gCAEJ,CAEA,kCACI,eACJ,CAEA,mCACI,SACJ,CAEA,iBAKI,cAAe,CADf,iBAAa,CAHb,iBAAkB,CAElB,OAAQ,CADR,KAIJ,CAEA,0BACI,eACJ,CAEA,yBACI,qBAEI,eAAgB,CAEhB,0BAAyB,CACzB,mBAAkB,CAFlB,cAAe,CAFf,yBAKJ,CAGA,iBAKI,cAAe,CADf,YAAa,CAHb,iBAAkB,CAElB,OAAQ,CADR,KAIJ,CAEA,4BACI,UACJ,CAEA,0CAEI,kBAAmB,CACnB,qBAAsB,CAFtB,QAGJ,CAEA,wCACI,WACJ,CAEA,uCACI,gBAAkB,CAElB,iBAAkB,CADlB,cAEJ,CAEA,oBAEI,iBAAkB,CADlB,cAEJ,CAEA,2BAEI,aAAY,CADZ,iBAAkB,CAElB,iBACJ,CAEA,kCACI,aACJ,CACJ,CCtJA,MAAM,0BAA0B,CAAC,8BAA8B,CAAC,8BAA8B,CAAC,4BAA4B,CAAC,iCAAmC,CAAC,oCAAoC,CAAC,yCAA2C,CAAC,gCAAgC,CAAC,gCAAgC,CAAC,2BAA2B,CAAC,+BAA+B,CAAC,+BAA+B,CAAC,+BAA+B,CAAC,uBAAuB,CAAC,2BAA2B,CAAC,2BAA2B,CAAC,6BAA6B,CAAC,qCAAuC,CAAC,mCAAmC,CAAC,qBAAwB,CAAC,wBAAwB,CAAC,wBAAwB,CAAC,0BAA0B,CAAC,2BAA2B,CAAC,0BAA0B,CAAC,4BAA4B,CAAC,kCAAkC,CAAC,6BAAgC,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,2EAA4E,CAAC,gFAAiF,CAAC,gFAAiF,CAAC,2BAA2B,gCAAgC,CAAC,8BAA8B,mCAAmC,CAAC,4BAA4B,iCAAiC","file":"index.css","sourcesContent":["/*!\n * \n * @rocketspark/domain-checker v0.0.01\n * https://github.com/rocketspark/domain-checker.git\n *\n * Copyright (c) Lee Reichardt and project contributors.\n *\n * This source code is licensed under the no license license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n@import url(https://use.typekit.net/gzi2xus.css);\n@import url(https://d1azc1qln24ryf.cloudfront.net/181725/Rocketspark/style-cf.css?ljlg3u);\n/*noinspection CssUnknownTarget*/\n/*noinspection CssUnknownTarget*/\n\n.dc__checker {\n padding: 1.5rem 0;\n}\n\n.dc__input-container {\n display: flex;\n gap: 0.5rem;\n width: 100%;\n position: relative;\n}\n\n.dc__search-again {\n white-space: nowrap;\n font-size: 0.875rem;\n font-family: 'soleil', sans-serif;\n color: var(--rs-color-primary-700);\n cursor: pointer;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.15s ease-out;\n position: absolute;\n top: 50%;\n transform: translateX(-100%) translateY(-50%);\n}\n\n.dc__search-again--active {\n opacity: 1;\n pointer-events: auto;\n}\n\n.dc__popup-container {\n width: calc(100% - 7rem);\n height: 31.25rem;\n position: absolute;\n top: 0.625rem;\n left: 50%;\n transform: translateX(-50%);\n border-radius: 1.25rem;\n background-color: #fff;\n background-image: url(../5798190b27b26600fb18.svg), url(../3cce2bffb56fb72f4f99.svg);\n background-repeat: no-repeat;\n background-position: bottom -1px right, top left;\n opacity: 0;\n transition: opacity 0.15s ease-out;\n display: flex;\n align-items: center;\n flex-direction: column;\n padding: 4rem;\n box-sizing: border-box;\n z-index: 9999;\n}\n\n.dc__popup-container--active {\n opacity: 1;\n}\n\n.dc__search-heading {\n margin-top: 1.5rem;\n}\n\n.dc__popup-search-container {\n margin-top: 4.5rem;\n width: 40.625rem;\n}\n\n.dc__search-result-caption {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n margin-top: 5rem;\n}\n\n.dc__search-result-caption__price {\n font-weight: 600;\n}\n\n.dc__search-result-caption--active {\n opacity: 1;\n}\n\n.dc__popup-close {\n position: absolute;\n top: 0;\n right: 0;\n padding: 2.1875rem;\n cursor: pointer;\n}\n\n.dc__popup-search-spinner {\n padding: 0.125rem;\n}\n\n@media all and (max-width: 740px) {\n .dc__popup-container {\n width: calc(100% - 1.5rem);\n background: #FFF;\n position: fixed;\n height: calc(100% - 4.5rem);\n padding: 4.5rem 2rem;\n }\n\n\n .dc__popup-close {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1rem;\n cursor: pointer;\n }\n\n .dc__popup-search-container {\n width: 100%;\n }\n\n .dc__popup-container .dc__input-container {\n gap: 1rem;\n align-items: center;\n flex-direction: column;\n }\n\n .dc__popup-container .dc__search-button {\n width: 10rem;\n }\n\n .dc__popup-container .dc__search-again {\n left: 0 !important;\n transform: none;\n position: relative;\n }\n\n .dc__search-heading {\n width: 18.75rem;\n text-align: center;\n }\n\n .dc__search-result-caption {\n position: absolute;\n bottom: 4.5rem;\n text-align: center;\n }\n\n .dc__search-result-caption__price {\n display: block;\n }\n}\n\n:root{--rs-color-primary:#5A86F2;--rs-color-primary-300:#7CA1FF;--rs-color-primary-700:#537BDE;--rs-color-secondary:#464A53;--rs-color-secondary-rgb:70, 74, 83;--rs-color-secondary-variant:#2C3035;--rs-color-secondary-variant-rgb:44, 48, 53;--rs-color-secondary-300:#595C64;--rs-color-secondary-700:#2C3035;--rs-color-positive:#51D58D;--rs-color-positive-100:#B2FDD1;--rs-color-positive-300:#65E399;--rs-color-positive-700:#59C887;--rs-color-grey:#748393;--rs-color-grey-300:#95A8BD;--rs-color-grey-700:#748393;--rs-color-grey-light:#C3D5E2;--rs-color-grey-light-rgb:195, 213, 226;--rs-color-positive-variant:#B2FDD1;--rs-color-white:#FFFFFF;--rs-color-light:#EEF3F8;--rs-color-black:#111618;--rs-color-heading:#1B2348;--rs-color-negative:#F16564;--rs-color-neutral:#FFCA81;--rs-color-highlight:#FFED00;--rs-color-transparent:transparent;--rs-color-select-border:#DDDDDD;--rs-color-select-background:#F9F9F9;--rs-color-select-secondary:#E9ECEC;--rs-shadow-task:0 1px 0.25rem rgba(var(--rs-color-grey-light-rgb), 0.50041);--rs-shadow-tooltip:0 0.3125rem 0.625rem rgba(var(--rs-color-secondary-rgb), 0.2);--rs-shadow-popup:0 0.3125rem 0.9375rem rgba(var(--rs-color-secondary-rgb), 0.25)}.rs-component-shadow--task{box-shadow:var(--rs-shadow-task)}.rs-component-shadow--tooltip{box-shadow:var(--rs-shadow-tooltip)}.rs-component-shadow--popup{box-shadow:var(--rs-shadow-popup)}\n","/*noinspection CssUnknownTarget*/\n@import url(\"https://use.typekit.net/gzi2xus.css\");\n/*noinspection CssUnknownTarget*/\n@import url(\"https://d1azc1qln24ryf.cloudfront.net/181725/Rocketspark/style-cf.css?ljlg3u\");\n\n.dc__checker {\n padding: 24px 0;\n}\n\n.dc__input-container {\n display: flex;\n gap: 8px;\n width: 100%;\n position: relative;\n}\n\n.dc__search-again {\n white-space: nowrap;\n font-size: 14px;\n font-family: 'soleil', sans-serif;\n color: var(--rs-color-primary-700);\n cursor: pointer;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.15s ease-out;\n position: absolute;\n top: 50%;\n transform: translateX(-100%) translateY(-50%);\n}\n\n.dc__search-again--active {\n opacity: 1;\n pointer-events: auto;\n}\n\n.dc__popup-container {\n width: calc(100% - 112px);\n height: 500px;\n position: absolute;\n top: 10px;\n left: 50%;\n transform: translateX(-50%);\n border-radius: 20px;\n background-color: #fff;\n background-image: url(./assets/bg-1.svg), url(./assets/bg-2.svg);\n background-repeat: no-repeat;\n background-position: bottom -1px right, top left;\n opacity: 0;\n transition: opacity 0.15s ease-out;\n display: flex;\n align-items: center;\n flex-direction: column;\n padding: 64px;\n box-sizing: border-box;\n z-index: 9999;\n}\n\n.dc__popup-container--active {\n opacity: 1;\n}\n\n.dc__search-heading {\n margin-top: 24px;\n}\n\n.dc__popup-search-container {\n margin-top: 72px;\n width: 650px;\n}\n\n.dc__search-result-caption {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n margin-top: 80px;\n}\n\n.dc__search-result-caption__price {\n font-weight: 600;\n}\n\n.dc__search-result-caption--active {\n opacity: 1;\n}\n\n.dc__popup-close {\n position: absolute;\n top: 0;\n right: 0;\n padding: 35px;\n cursor: pointer;\n}\n\n.dc__popup-search-spinner {\n padding: 2px;\n}\n\n@media all and (max-width: 740px) {\n .dc__popup-container {\n width: calc(100% - 24px);\n background: #FFF;\n position: fixed;\n height: calc(100% - 72px);\n padding: 72px 32px;\n }\n\n\n .dc__popup-close {\n position: absolute;\n top: 0;\n right: 0;\n padding: 16px;\n cursor: pointer;\n }\n\n .dc__popup-search-container {\n width: 100%;\n }\n\n .dc__popup-container .dc__input-container {\n gap: 16px;\n align-items: center;\n flex-direction: column;\n }\n\n .dc__popup-container .dc__search-button {\n width: 160px;\n }\n\n .dc__popup-container .dc__search-again {\n left: 0 !important;\n transform: none;\n position: relative;\n }\n\n .dc__search-heading {\n width: 300px;\n text-align: center;\n }\n\n .dc__search-result-caption {\n position: absolute;\n bottom: 72px;\n text-align: center;\n }\n\n .dc__search-result-caption__price {\n display: block;\n }\n}\n",":root{--rs-color-primary:#5A86F2;--rs-color-primary-300:#7CA1FF;--rs-color-primary-700:#537BDE;--rs-color-secondary:#464A53;--rs-color-secondary-rgb:70, 74, 83;--rs-color-secondary-variant:#2C3035;--rs-color-secondary-variant-rgb:44, 48, 53;--rs-color-secondary-300:#595C64;--rs-color-secondary-700:#2C3035;--rs-color-positive:#51D58D;--rs-color-positive-100:#B2FDD1;--rs-color-positive-300:#65E399;--rs-color-positive-700:#59C887;--rs-color-grey:#748393;--rs-color-grey-300:#95A8BD;--rs-color-grey-700:#748393;--rs-color-grey-light:#C3D5E2;--rs-color-grey-light-rgb:195, 213, 226;--rs-color-positive-variant:#B2FDD1;--rs-color-white:#FFFFFF;--rs-color-light:#EEF3F8;--rs-color-black:#111618;--rs-color-heading:#1B2348;--rs-color-negative:#F16564;--rs-color-neutral:#FFCA81;--rs-color-highlight:#FFED00;--rs-color-transparent:transparent;--rs-color-select-border:#DDDDDD;--rs-color-select-background:#F9F9F9;--rs-color-select-secondary:#E9ECEC;--rs-shadow-task:0 1px 0.25rem rgba(var(--rs-color-grey-light-rgb), 0.50041);--rs-shadow-tooltip:0 0.3125rem 0.625rem rgba(var(--rs-color-secondary-rgb), 0.2);--rs-shadow-popup:0 0.3125rem 0.9375rem rgba(var(--rs-color-secondary-rgb), 0.25)}.rs-component-shadow--task{box-shadow:var(--rs-shadow-task)}.rs-component-shadow--tooltip{box-shadow:var(--rs-shadow-tooltip)}.rs-component-shadow--popup{box-shadow:var(--rs-shadow-popup)}"]}
package/build/index.js ADDED
@@ -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
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.DomainChecker=t():e.DomainChecker=t()}(self,(function(){return function(){var e,t,s={492:function(e,t,s){"use strict";s.d(t,{H:function(){return L},a:function(){return fe},b:function(){return $e},c:function(){return Z},f:function(){return ie},g:function(){return Y},h:function(){return k},p:function(){return p},r:function(){return be}});let n,r,i,a=!1,o=!1,l=!1,c=!1,d=!1;const h="undefined"!=typeof window?window:{},u=h.document||{head:{}},m={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},p=e=>Promise.resolve(e),$=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),f=(e,t,s,n)=>{s&&s.map((([s,n,r])=>{const i=y(e,s),a=g(t,r),o=b(s);m.ael(i,n,a,o),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>m.rel(i,n,a,o)))}))},g=(e,t)=>s=>{try{256&e.$flags$?e.$lazyInstance$[t](s):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,s])}catch(e){Ce(e)}},y=(e,t)=>4&t?u:e,b=e=>0!=(2&e),v="http://www.w3.org/1999/xlink",w=new WeakMap,C=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,n=t.$flags$,r=(t.$tagName$,()=>{}),i=((e,t,s,n)=>{let r=N(t),i=xe.get(r);if(e=11===e.nodeType?e:u,i)if("string"==typeof i){e=e.head||e;let t,s=w.get(e);s||w.set(e,s=new Set),s.has(r)||(t=u.createElement("style"),t.innerHTML=i,e.insertBefore(t,e.querySelector("link")),s&&s.add(r))}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return r})(s.shadowRoot?s.shadowRoot:s.getRootNode(),t);10&n&&(s["s-sc"]=i,s.classList.add(i+"-h"),2&n&&s.classList.add(i+"-s")),r()},N=(e,t)=>"sc-"+e.$tagName$,j={},x=e=>"object"===(e=typeof e)||"function"===e,k=(e,t,...s)=>{let n=null,r=null,i=null,a=!1,o=!1,l=[];const c=t=>{for(let s=0;s<t.length;s++)n=t[s],Array.isArray(n)?c(n):null!=n&&"boolean"!=typeof n&&((a="function"!=typeof e&&!x(n))&&(n=String(n)),a&&o?l[l.length-1].$text$+=n:l.push(a?S(null,n):n),o=a)};if(c(s),t){t.key&&(r=t.key),t.name&&(i=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,l,E);const d=S(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d.$key$=r,d.$name$=i,d},S=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return s},L={},E={forEach:(e,t)=>e.map(T).forEach(t),map:(e,t)=>e.map(T).map(t).map(R)},T=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),R=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),k(e.vtag,t,...e.vchildren||[])}const t=S(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},A=(e,t,s,n,r,i)=>{if(s!==n){let a=we(e,t),o=t.toLowerCase();if("class"===t){const t=e.classList,r=P(s),i=P(n);t.remove(...r.filter((e=>e&&!i.includes(e)))),t.add(...i.filter((e=>e&&!r.includes(e))))}else if("style"===t){for(const t in s)n&&null!=n[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in n)s&&n[t]===s[t]||(t.includes("-")?e.style.setProperty(t,n[t]):e.style[t]=n[t])}else if("key"===t);else if("ref"===t)n&&n(e);else if(a||"o"!==t[0]||"n"!==t[1]){const l=x(n);if((a||l&&null!==n)&&!r)try{if(e.tagName.includes("-"))e[t]=n;else{let r=null==n?"":n;"list"===t?a=!1:null!=s&&e[t]==r||(e[t]=r)}}catch(e){}let c=!1;o!==(o=o.replace(/^xlink\:?/,""))&&(t=o,c=!0),null==n||!1===n?!1===n&&""!==e.getAttribute(t)||(c?e.removeAttributeNS(v,t):e.removeAttribute(t)):(!a||4&i||r)&&!l&&(n=!0===n?"":n,c?e.setAttributeNS(v,t,n):e.setAttribute(t,n))}else t="-"===t[2]?t.slice(3):we(h,o)?o.slice(2):o[2]+t.slice(3),s&&m.rel(e,t,s,!1),n&&m.ael(e,t,n,!1)}},O=/\s/,P=e=>e?e.split(O):[],I=(e,t,s,n)=>{const r=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||j,a=t.$attrs$||j;for(n in i)n in a||A(r,n,i[n],void 0,s,t.$flags$);for(n in a)A(r,n,i[n],a[n],s,t.$flags$)},H=(e,t,s,o)=>{let d,h,m,p=t.$children$[s],$=0;if(a||(l=!0,"slot"===p.$tag$&&(n&&o.classList.add(n+"-s"),p.$flags$|=p.$children$?2:1)),null!==p.$text$)d=p.$elm$=u.createTextNode(p.$text$);else if(1&p.$flags$)d=p.$elm$=u.createTextNode("");else{if(c||(c="svg"===p.$tag$),d=p.$elm$=u.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&p.$flags$?"slot-fb":p.$tag$),c&&"foreignObject"===p.$tag$&&(c=!1),I(null,p,c),null!=n&&d["s-si"]!==n&&d.classList.add(d["s-si"]=n),p.$children$)for($=0;$<p.$children$.length;++$)h=H(e,p,$,d),h&&d.appendChild(h);"svg"===p.$tag$?c=!1:"foreignObject"===d.tagName&&(c=!0)}return d["s-hn"]=i,3&p.$flags$&&(d["s-sr"]=!0,d["s-cr"]=r,d["s-sn"]=p.$name$||"",m=e&&e.$children$&&e.$children$[s],m&&m.$tag$===p.$tag$&&e.$elm$&&M(e.$elm$,!1)),d},M=(e,t)=>{m.$flags$|=1;const s=e.childNodes;for(let e=s.length-1;e>=0;e--){const n=s[e];n["s-hn"]!==i&&n["s-ol"]&&(z(n).insertBefore(n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,l=!0),t&&M(n,t)}m.$flags$&=-2},D=(e,t,s,n,r,a)=>{let o,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===i&&(l=l.shadowRoot);r<=a;++r)n[r]&&(o=H(null,s,r,e),o&&(n[r].$elm$=o,l.insertBefore(o,B(t))))},U=(e,t,s,n,r)=>{for(;t<=s;++t)(n=e[t])&&(r=n.$elm$,J(n),o=!0,r["s-ol"]?r["s-ol"].remove():M(r,!0),r.remove())},_=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),B=e=>e&&e["s-ol"]||e,z=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,q=(e,t)=>{const s=t.$elm$=e.$elm$,n=e.$children$,r=t.$children$,i=t.$tag$,a=t.$text$;let o;null===a?(c="svg"===i||"foreignObject"!==i&&c,"slot"===i||I(e,t,c),null!==n&&null!==r?((e,t,s,n)=>{let r,i,a=0,o=0,l=0,c=0,d=t.length-1,h=t[0],u=t[d],m=n.length-1,p=n[0],$=n[m];for(;a<=d&&o<=m;)if(null==h)h=t[++a];else if(null==u)u=t[--d];else if(null==p)p=n[++o];else if(null==$)$=n[--m];else if(_(h,p))q(h,p),h=t[++a],p=n[++o];else if(_(u,$))q(u,$),u=t[--d],$=n[--m];else if(_(h,$))"slot"!==h.$tag$&&"slot"!==$.$tag$||M(h.$elm$.parentNode,!1),q(h,$),e.insertBefore(h.$elm$,u.$elm$.nextSibling),h=t[++a],$=n[--m];else if(_(u,p))"slot"!==h.$tag$&&"slot"!==$.$tag$||M(u.$elm$.parentNode,!1),q(u,p),e.insertBefore(u.$elm$,h.$elm$),u=t[--d],p=n[++o];else{for(l=-1,c=a;c<=d;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===p.$key$){l=c;break}l>=0?(i=t[l],i.$tag$!==p.$tag$?r=H(t&&t[o],s,l,e):(q(i,p),t[l]=void 0,r=i.$elm$),p=n[++o]):(r=H(t&&t[o],s,o,e),p=n[++o]),r&&z(h.$elm$).insertBefore(r,B(h.$elm$))}a>d?D(e,null==n[m+1]?null:n[m+1].$elm$,s,n,o,m):o>m&&U(t,a,d)})(s,n,t,r):null!==r?(null!==e.$text$&&(s.textContent=""),D(s,null,t,r,0,r.length-1)):null!==n&&U(n,0,n.length-1),c&&"svg"===i&&(c=!1)):(o=s["s-cr"])?o.parentNode.textContent=a:e.$text$!==a&&(s.data=a)},F=e=>{let t,s,n,r,i,a,o=e.childNodes;for(s=0,n=o.length;s<n;s++)if(t=o[s],1===t.nodeType){if(t["s-sr"])for(i=t["s-sn"],t.hidden=!1,r=0;r<n;r++)if(a=o[r].nodeType,o[r]["s-hn"]!==t["s-hn"]||""!==i){if(1===a&&i===o[r].getAttribute("slot")){t.hidden=!0;break}}else if(1===a||3===a&&""!==o[r].textContent.trim()){t.hidden=!0;break}F(t)}},W=[],V=e=>{let t,s,n,r,i,a,l=0,c=e.childNodes,d=c.length;for(;l<d;l++){if(t=c[l],t["s-sr"]&&(s=t["s-cr"])&&s.parentNode)for(n=s.parentNode.childNodes,r=t["s-sn"],a=n.length-1;a>=0;a--)s=n[a],s["s-cn"]||s["s-nr"]||s["s-hn"]===t["s-hn"]||(G(s,r)?(i=W.find((e=>e.$nodeToRelocate$===s)),o=!0,s["s-sn"]=s["s-sn"]||r,i?i.$slotRefNode$=t:W.push({$slotRefNode$:t,$nodeToRelocate$:s}),s["s-sr"]&&W.map((e=>{G(e.$nodeToRelocate$,s["s-sn"])&&(i=W.find((e=>e.$nodeToRelocate$===s)),i&&!e.$slotRefNode$&&(e.$slotRefNode$=i.$slotRefNode$))}))):W.some((e=>e.$nodeToRelocate$===s))||W.push({$nodeToRelocate$:s}));1===t.nodeType&&V(t)}},G=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,J=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(J)},K=(e,t)=>{const s=e.$hostElement$,c=e.$cmpMeta$,d=e.$vnode$||S(null,null),h=(p=t)&&p.$tag$===L?t:k(null,null,t);var p;if(i=s.tagName,h.$tag$=null,h.$flags$|=4,e.$vnode$=h,h.$elm$=d.$elm$=s.shadowRoot||s,n=s["s-sc"],r=s["s-cr"],a=0!=(1&c.$flags$),o=!1,q(d,h),m.$flags$|=1,l){let e,t,s,n,r,i;V(h.$elm$);let a=0;for(;a<W.length;a++)e=W[a],t=e.$nodeToRelocate$,t["s-ol"]||(s=u.createTextNode(""),s["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=s,t));for(a=0;a<W.length;a++)if(e=W[a],t=e.$nodeToRelocate$,e.$slotRefNode$){for(n=e.$slotRefNode$.parentNode,r=e.$slotRefNode$.nextSibling,s=t["s-ol"];s=s.previousSibling;)if(i=s["s-nr"],i&&i["s-sn"]===t["s-sn"]&&n===i.parentNode&&(i=i.nextSibling,!i||!i["s-nr"])){r=i;break}(!r&&n!==t.parentNode||t.nextSibling!==r)&&t!==r&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),n.insertBefore(t,r))}else 1===t.nodeType&&(t.hidden=!0)}o&&F(h.$elm$),m.$flags$&=-2,W.length=0},Y=e=>ye(e).$hostElement$,Z=(e,t,s)=>{const n=Y(e);return{emit:e=>Q(n,t,{bubbles:!!(4&s),composed:!!(2&s),cancelable:!!(1&s),detail:e})}},Q=(e,t,s)=>{const n=m.ce(t,s);return e.dispatchEvent(n),n},X=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},ee=(e,t)=>{if(e.$flags$|=16,4&e.$flags$)return void(e.$flags$|=512);X(e,e.$ancestorComponent$);return Ae((()=>te(e,t)))},te=(e,t)=>{const s=(e.$cmpMeta$.$tagName$,()=>{}),n=e.$lazyInstance$;let r;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((([e,t])=>oe(n,e,t))),e.$queuedListeners$=null),r=oe(n,"componentWillLoad")),r=le(r,(()=>oe(n,"componentWillRender"))),s(),le(r,(()=>se(e,n,t)))},se=async(e,t,s)=>{const n=e.$hostElement$,r=(e.$cmpMeta$.$tagName$,()=>{}),i=n["s-rc"];s&&C(e);const a=(e.$cmpMeta$.$tagName$,()=>{});ne(e,t),i&&(i.map((e=>e())),n["s-rc"]=void 0),a(),r();{const t=n["s-p"],s=()=>re(e);0===t.length?s():(Promise.all(t).then(s),e.$flags$|=4,t.length=0)}},ne=(e,t,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,K(e,t)}catch(t){Ce(t,e.$hostElement$)}return null},re=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,s=()=>{},n=e.$lazyInstance$,r=e.$ancestorComponent$;oe(n,"componentDidRender"),64&e.$flags$?(oe(n,"componentDidUpdate"),s()):(e.$flags$|=64,ce(t),oe(n,"componentDidLoad"),s(),e.$onReadyResolve$(t),r||ae()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Re((()=>ee(e,!1))),e.$flags$&=-517},ie=e=>{{const t=ye(e),s=t.$hostElement$.isConnected;return s&&2==(18&t.$flags$)&&ee(t,!1),s}},ae=e=>{ce(u.documentElement),Re((()=>Q(h,"appload",{detail:{namespace:"rocketspark"}})))},oe=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(e){Ce(e)}},le=(e,t)=>e&&e.then?e.then(t):t(),ce=e=>e.classList.add("hydrated"),de=(e,t,s,n)=>{const r=ye(e),i=r.$hostElement$,a=r.$instanceValues$.get(t),o=r.$flags$,l=r.$lazyInstance$;var c,d;if(c=s,d=n.$members$[t][0],s=null==c||x(c)?c:4&d?"false"!==c&&(""===c||!!c):2&d?parseFloat(c):1&d?String(c):c,!(8&o&&void 0!==a||s===a)&&(r.$instanceValues$.set(t,s),l)){if(n.$watchers$&&128&o){const e=n.$watchers$[t];e&&e.map((e=>{try{l[e](s,a,t)}catch(e){Ce(e,i)}}))}2==(18&o)&&ee(r,!1)}},he=(e,t,s)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const n=Object.entries(t.$members$),r=e.prototype;if(n.map((([e,[n]])=>{31&n||2&s&&32&n?Object.defineProperty(r,e,{get(){return t=e,ye(this).$instanceValues$.get(t);var t},set(s){de(this,e,s,t)},configurable:!0,enumerable:!0}):1&s&&64&n&&Object.defineProperty(r,e,{value(...t){const s=ye(this);return s.$onInstancePromise$.then((()=>s.$lazyInstance$[e](...t)))}})})),1&s){const t=new Map;r.attributeChangedCallback=function(e,s,n){m.jmp((()=>{const s=t.get(e);this[s]=(null!==n||"boolean"!=typeof this[s])&&n}))},e.observedAttributes=n.filter((([e,t])=>15&t[0])).map((([e,s])=>{const n=s[1]||e;return t.set(n,e),n}))}}return e},ue=async(e,t,s,n,r)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(r=je(s)).then){const e=()=>{};r=await r,e()}r.isProxied||(s.$watchers$=r.watchers,he(r,s,2),r.isProxied=!0);const e=(s.$tagName$,()=>{});t.$flags$|=8;try{new r(t)}catch(e){Ce(e)}t.$flags$&=-9,t.$flags$|=128,e(),me(t.$lazyInstance$)}if(r.style){let e=r.style;const t=N(s);if(!xe.has(t)){const n=(s.$tagName$,()=>{});((e,t,s)=>{let n=xe.get(e);$&&s?(n=n||new CSSStyleSheet,n.replace(t)):n=t,xe.set(e,n)})(t,e,!!(1&s.$flags$)),n()}}}const i=t.$ancestorComponent$,a=()=>ee(t,!0);i&&i["s-rc"]?i["s-rc"].push(a):a()},me=e=>{oe(e,"connectedCallback")},pe=e=>{const t=e["s-cr"]=u.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},$e=(e,t={})=>{const s=()=>{},n=[],r=t.exclude||[],i=h.customElements,a=u.head,o=a.querySelector("meta[charset]"),l=u.createElement("style"),c=[];let d,p=!0;Object.assign(m,t),m.$resourcesUrl$=new URL(t.resourcesUrl||"./",u.baseURI).href,e.map((e=>e[1].map((t=>{const s={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};s.$members$=t[2],s.$listeners$=t[3],s.$watchers$={};const a=s.$tagName$,o=class extends HTMLElement{constructor(e){super(e),ve(e=this,s),1&s.$flags$&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),p?c.push(this):m.jmp((()=>(e=>{if(0==(1&m.$flags$)){const t=ye(e),s=t.$cmpMeta$,n=(s.$tagName$,()=>{});if(1&t.$flags$)f(e,t,s.$listeners$),me(t.$lazyInstance$);else{t.$flags$|=1,12&s.$flags$&&pe(e);{let s=e;for(;s=s.parentNode||s.host;)if(s["s-p"]){X(t,t.$ancestorComponent$=s);break}}s.$members$&&Object.entries(s.$members$).map((([t,[s]])=>{if(31&s&&e.hasOwnProperty(t)){const s=e[t];delete e[t],e[t]=s}})),ue(0,t,s)}n()}})(this)))}disconnectedCallback(){m.jmp((()=>(e=>{if(0==(1&m.$flags$)){const t=ye(e),s=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0),oe(s,"disconnectedCallback")}})(this)))}componentOnReady(){return ye(this).$onReadyPromise$}};s.$lazyBundleId$=e[0],r.includes(a)||i.get(a)||(n.push(a),i.define(a,he(o,s,1)))})))),l.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles",""),a.insertBefore(l,o?o.nextSibling:a.firstChild),p=!1,c.length?c.map((e=>e.connectedCallback())):m.jmp((()=>d=setTimeout(ae,30))),s()},fe=e=>{const t=new URL(e,m.$resourcesUrl$);return t.origin!==h.location.origin?t.href:t.pathname},ge=new WeakMap,ye=e=>ge.get(e),be=(e,t)=>ge.set(t.$lazyInstance$=e,t),ve=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onInstancePromise$=new Promise((e=>s.$onInstanceResolve$=e)),s.$onReadyPromise$=new Promise((e=>s.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[],f(e,s,t.$listeners$),ge.set(e,s)},we=(e,t)=>t in e,Ce=(e,t)=>(0,console.error)(e,t),Ne=new Map,je=(e,t,n)=>{const r=e.$tagName$.replace(/-/g,"_"),i=e.$lazyBundleId$,a=Ne.get(i);return a?a[r]:s(7171)(`./${i}.entry.js`).then((e=>(Ne.set(i,e),e[r])),Ce)},xe=new Map,ke=[],Se=[],Le=(e,t)=>s=>{e.push(s),d||(d=!0,t&&4&m.$flags$?Re(Te):m.raf(Te))},Ee=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){Ce(e)}e.length=0},Te=()=>{Ee(ke),Ee(Se),(d=ke.length>0)&&m.raf(Te)},Re=e=>p().then(e),Ae=Le(Se,!0)},7171:function(e,t,s){var n={"./color-picker_4.entry.js":[4678,678],"./rs-accordion.entry.js":[8253,253],"./rs-alert.entry.js":[8994,994],"./rs-button_2.entry.js":[2314,314],"./rs-caption_2.entry.js":[4912,912],"./rs-card-content.entry.js":[7228,228],"./rs-card-header.entry.js":[5799,799],"./rs-card.entry.js":[2903,903],"./rs-checkbox.entry.js":[5911,911],"./rs-col.entry.js":[7882,882],"./rs-color-swatch.entry.js":[9082,82],"./rs-column-header_4.entry.js":[8536,536],"./rs-content-placeholder.entry.js":[7269,269],"./rs-content.entry.js":[5716,716],"./rs-flint-popup-content.entry.js":[4069,69],"./rs-flint-popup.entry.js":[7677,677],"./rs-grid.entry.js":[3190,190],"./rs-header.entry.js":[2130,130],"./rs-icon.entry.js":[3738,738],"./rs-incrementer-option.entry.js":[4927,927],"./rs-incrementer.entry.js":[4385,385],"./rs-input.entry.js":[6955,955],"./rs-item-group.entry.js":[330,330],"./rs-item.entry.js":[577,577],"./rs-label.entry.js":[2525,525],"./rs-list-item.entry.js":[9482,482],"./rs-list-select.entry.js":[8895,895],"./rs-loader.entry.js":[4171,171],"./rs-multi-select-item.entry.js":[9565,565],"./rs-multi-select.entry.js":[655,655],"./rs-overline.entry.js":[2698,698],"./rs-popup.entry.js":[1548,548],"./rs-progress-bar.entry.js":[6066,66],"./rs-progress-circle.entry.js":[2724,724],"./rs-progress-step.entry.js":[9023,23],"./rs-radio-group.entry.js":[717,717],"./rs-radio.entry.js":[2690,690],"./rs-row.entry.js":[8669,669],"./rs-side-drawer.entry.js":[4307,307],"./rs-sidebar-incrementer.entry.js":[7858,858],"./rs-spinner.entry.js":[1346,346],"./rs-switch.entry.js":[9431,431],"./rs-textarea.entry.js":[9145,145],"./rs-toggle-item.entry.js":[694,694],"./rs-toggle.entry.js":[2953,953],"./rs-tool-tip.entry.js":[5447,447]};function r(e){if(!s.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return s.e(t[1]).then((function(){return s(r)}))}r.keys=function(){return Object.keys(n)},r.id=7171,e.exports=r}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return s[e](i,i.exports,r),i.exports}r.m=s,r.d=function(e,t){for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(t,s){return r.f[s](e,t),t}),[]))},r.u=function(e){return e+".index.js"},r.miniCssF=function(e){},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="DomainChecker:",r.l=function(s,n,i,a){if(e[s])e[s].push(n);else{var o,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var h=c[d];if(h.getAttribute("src")==s||h.getAttribute("data-webpack")==t+i){o=h;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,r.nc&&o.setAttribute("nonce",r.nc),o.setAttribute("data-webpack",t+i),o.src=s),e[s]=[n];var u=function(t,n){o.onerror=o.onload=null,clearTimeout(m);var r=e[s];if(delete e[s],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach((function(e){return e(n)})),t)return t(n)},m=setTimeout(u.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=u.bind(null,o.onerror),o.onload=u.bind(null,o.onload),l&&document.head.appendChild(o)}},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");s.length&&(e=s[s.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}(),function(){var e={179:0};r.f.j=function(t,s){var n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)s.push(n[2]);else{var i=new Promise((function(s,r){n=e[t]=[s,r]}));s.push(n[2]=i);var a=r.p+r.u(t),o=new Error;r.l(a,(function(s){if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=s&&("load"===s.type?"missing":s.type),a=s&&s.target&&s.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",o.name="ChunkLoadError",o.type=i,o.request=a,n[1](o)}}),"chunk-"+t,t)}};var t=function(t,s){var n,i,a=s[0],o=s[1],l=s[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(n in o)r.o(o,n)&&(r.m[n]=o[n]);if(l)l(r)}for(t&&t(s);c<a.length;c++)i=a[c],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0},s=self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))}();var i={};return function(){"use strict";r.r(i),r.d(i,{default:function(){return $}});const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.createElement("div");return e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)};var t={container(e){let{classNames:{containerOuter:t}}=e;return Object.assign(document.createElement("div"),{className:t})},inputContainer(e){let{classNames:{inputContainer:t}}=e;return Object.assign(document.createElement("div"),{className:t})},domainSearch(t){let{classNames:{inputContainer:s,domainInput:n,searchButton:r}}=t;const i=Object.assign(document.createElement("div"),{className:s}),a=Object.assign(document.createElement("rs-input"),{className:n,placeholder:"Search for a domain",value:"leereichardt123.co.nz"}),o=Object.assign(document.createElement("rs-button"),{className:r,innerText:"Search"});return o.setAttribute("color","primary"),e(a,i),e(o,i),i},popupContainer(e){let{classNames:{popupContainer:t}}=e;return Object.assign(document.createElement("div"),{className:"".concat(t," rs-component-shadow--popup")})},searchHeading(e){let{classNames:{searchHeading:t}}=e;const s=Object.assign(document.createElement("rs-header"),{className:t});return s.setAttribute("heading","2"),s},searchLoader(e){let{classNames:{popupSearchSpinner:t}}=e;const s=Object.assign(document.createElement("rs-spinner"),{className:t});return s.setAttribute("size","small"),s},icon(e,t){const s=Object.assign(document.createElement("rs-icon"),{className:t});return s.setAttribute("size","32"),s},searchResultText(e){let{classNames:{searchResultCaption:t}}=e;return Object.assign(document.createElement("rs-content"),{className:t})}};const s="dc__",n={classNames:{element:"".concat(s,"checker"),containerOuter:"".concat(s,"container"),inputContainer:"".concat(s,"input-container"),domainInput:"".concat(s,"domain-input"),searchButton:"".concat(s,"search-button"),popupContainer:"".concat(s,"popup-container"),popupContainerActive:"".concat(s,"popup-container--active"),popupSearchContainer:"".concat(s,"popup-search-container"),popupClose:"".concat(s,"popup-close"),popupSearchSpinner:"".concat(s,"popup-search-spinner"),searchHeading:"".concat(s,"search-heading"),searchAgain:"".concat(s,"search-again"),searchAgainActive:"".concat(s,"search-again--active"),searchResultCaption:"".concat(s,"search-result-caption"),searchResultCaptionPrice:"".concat(s,"search-result-caption__price"),searchResultCaptionActive:"".concat(s,"search-result-caption--active")},container:".stack",fetchURL:null};class a{constructor(t){let{element:s,config:{classNames:n,fetchURL:r},locale:i}=t;var a,o,l;l=!1,(o="canClaim")in(a=this)?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,this.fetchURL=r,this.classNames=n,this.element=s,this.locale=i,this.input=this.element.querySelector(".".concat(this.classNames.domainInput)),this.button=this.element.querySelector(".".concat(this.classNames.searchButton)),this.searchAgain=Object.assign(document.createElement("div"),{className:this.classNames.searchAgain,textContent:"Search again"}),e(this.searchAgain,this.element),this.addEventListeners()}setCanClaim(e){if(this.canClaim=e,e){this.button.textContent="Get it now",this.searchAgain.classList.add(this.classNames.searchAgainActive);const e=this.input.offsetWidth;this.searchAgain.style.left="".concat(e-16,"px")}else this.searchAgain.classList.remove(this.classNames.searchAgainActive),this.button.textContent="Search";return this}setDomain(e){return this.input.value=e,this}addEventListeners(){var e,t;null===(e=this.input)||void 0===e||e.addEventListener("keyup",(e=>{this.input.removeAttribute("has-error"),this.element.dispatchEvent(new CustomEvent("domainSearchInput")),"Enter"===e.key&&this.submit()})),null===(t=this.button)||void 0===t||t.addEventListener("click",this.submit.bind(this)),this.searchAgain.addEventListener("click",(()=>{this.element.dispatchEvent(new CustomEvent("domainSearchAgain"))}))}submit(){this.canClaim?window.location.href="https://www.rocketspark.com/site_files/1/custom/1/packages/freeTrialRedirect.php?domainName=".concat(this.input.value):""!==this.input.value?(this.element.dispatchEvent(new CustomEvent("domainSearchStart",{detail:this.input.value})),(async(e,t,s)=>{try{return(await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({countryCode:s,domain:t})})).json()}catch(e){throw new Error("Network error")}})(this.fetchURL,this.input.value,this.locale).then((e=>{let{isAvailable:t,formattedPrice:s,success:n}=e;this.element.dispatchEvent(new CustomEvent("domainSearchFinish",{detail:{success:n,isAvailable:t,formattedPrice:s}}))})).catch((()=>{this.element.dispatchEvent(new CustomEvent("domainSearchFinish",{detail:{success:!1,isAvailable:!1,formattedPrice:null}}))}))):this.input.setAttribute("has-error","true")}}var o=r(492);!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}();class l{set heading(e){this._heading=e,this.element.textContent=this._heading}constructor(e){let{element:t}=e;var s,n,r;r="Checking your domain",(n="_heading")in(s=this)?Object.defineProperty(s,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):s[n]=r,this.element=t,this.element.textContent=this._heading}}class c{constructor(e){let{classNames:t}=e;this.classNames=t,this.searchLoader=this.getTemplate("searchLoader"),this.icon=this.getTemplate("icon"),this.element=this.searchLoader}setStatus(e){return null===e?(this.icon.setAttribute("color","white"),this.element.replaceWith(this.icon),this.element=this.icon):"available"===e?(this.icon.setAttribute("name","circle-tick"),this.icon.setAttribute("color","positive-700"),this.element.replaceWith(this.icon),this.element=this.icon):"unavailable"===e?(this.icon.setAttribute("name","warning"),this.icon.setAttribute("color","negative"),this.element.replaceWith(this.icon),this.element=this.icon):"loading"===e&&(this.element.replaceWith(this.searchLoader),this.element=this.searchLoader),this}getTemplate(e){for(var s=arguments.length,n=new Array(s>1?s-1:0),r=1;r<s;r++)n[r-1]=arguments[r];return t[e].call(this,{classNames:this.classNames},...n)}}class d{set price(e){this._price=e,null===e?this.element.classList.remove(this.classNames.searchResultCaptionActive):(this.element.innerHTML="".concat(this.base,'<strong class="').concat(this.classNames.searchResultCaptionPrice,'">').concat(this._price,"/year</strong>"),this.element.classList.add(this.classNames.searchResultCaptionActive))}constructor(e){let{element:t,classNames:s}=e;var n,r,i;i="You can get this domain now for",(r="base")in(n=this)?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,this.element=t,this.classNames=s}}class h{constructor(e){var t;let{element:s,config:{classNames:n,container:r,fetchURL:i},locale:a}=e;this.fetchURL=i,this.locale=a,this.container=null!==(t=document.querySelector(r))&&void 0!==t?t:document.body,this.classNames=n,this.element=s,this.build()}static isMobile(){return document.documentElement.clientWidth<=740}open(){return e(this.element,document.body),setTimeout((()=>{this.element.classList.add(this.classNames.popupContainerActive)})),this}close(){return this.element.classList.remove(this.classNames.popupContainerActive),setTimeout((()=>{this.element.remove(),this.resetLoadingUi()}),150),this}setStatus(e){return this.status.setStatus(e),this}setHeading(e){return this.heading.heading=e,this}setPrice(e){return this.searchResultText.price=e,this}setCanClaim(e){return this.search.setCanClaim(e),this}setDomain(e){return this.search.setDomain(e),this}resetLoadingUi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Checking your domain";this.setHeading(e),this.setPrice(null),this.setCanClaim(!1)}getTemplate(e){for(var s=arguments.length,n=new Array(s>1?s-1:0),r=1;r<s;r++)n[r-1]=arguments[r];return t[e].call(this,{classNames:this.classNames},...n)}build(){this.closeIcon=this.getTemplate("icon",this.classNames.popupClose),this.closeIcon.setAttribute("name","x"),this.closeIcon.setAttribute("size","13"),this.heading=new l({element:this.getTemplate("searchHeading")}),this.status=new c({classNames:this.classNames});const t=Object.assign(document.createElement("div"),{className:this.classNames.popupSearchContainer});this.searchResultText=new d({element:this.getTemplate("searchResultText"),classNames:this.classNames}),this.search=new a({element:this.getTemplate("domainSearch"),config:{classNames:this.classNames,fetchURL:this.fetchURL},locale:this.locale}),e(this.closeIcon,this.element),e(this.status.element,this.element),e(this.heading.element,this.element),e(this.search.element,t),e(t,this.element),e(this.searchResultText.element,this.element),this.search.element.addEventListener("domainSearchStart",(e=>{this.setStatus("loading"),this.resetLoadingUi(),e.stopImmediatePropagation()})),this.search.element.addEventListener("domainSearchFinish",(e=>{e.stopImmediatePropagation(),$.setPopupStatus(this,e.detail)})),this.closeIcon.addEventListener("click",(()=>{this.close()})),this.search.input.addEventListener("input",(()=>{this.resetLoadingUi("Enter a domain to register"),this.setStatus(null)})),this.search.element.addEventListener("domainSearchAgain",(()=>{var e;this.resetLoadingUi("Enter a domain to register"),this.setStatus(null),this.search.input.value="",null===(e=this.search.input.shadowRoot.querySelector("input"))||void 0===e||e.focus()}))}}function u(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var m;"undefined"==typeof window?Promise.resolve():(0,o.p)().then((()=>(0,o.b)([["rs-side-drawer",[[1,"rs-side-drawer",{loading:[4],heading:[1],subHeading:[1,"sub-heading"],items:[1],isDirty:[4,"is-dirty"],moreContentHeading:[1,"more-content-heading"],contentLevelOpen:[1026,"content-level-open"],itemsArray:[32],openItemHeading:[32],itemOpen:[32],itemOpenHandle:[32],openItem:[64]},[[0,"closeMoreContent","closeMoreContentHandler"],[0,"closeContent","closeContentHandler"]]]]],["rs-color-swatch",[[1,"rs-color-swatch",{label:[1],color:[1],palettes:[16],opacity:[4],alignment:[1],transparentButton:[4,"transparent-button"],mode:[1],width:[1],internalOpacity:[32],internalColor:[32],setColor:[64],getColor:[64]},[[0,"rsColorChange","rsColorChangeHandler"]]]]],["rs-popup",[[1,"rs-popup",{closeButton:[4,"close-button"],helpLink:[8,"help-link"],heading:[1],backdrop:[4],zIndex:[2,"z-index"],width:[1],top:[1],left:[1],right:[1],bottom:[1],transform:[1],position:[1],close:[64],open:[64]}]]],["rs-sidebar-incrementer",[[0,"rs-sidebar-incrementer",{heading:[1],step:[2],value:[1026],min:[2],max:[2],suffix:[1],dropdown:[4],decimalPlaces:[2,"decimal-places"],dropdownStep:[2,"dropdown-step"]}]]],["rs-alert",[[1,"rs-alert",{actionLink:[1,"action-link"]}]]],["rs-flint-popup",[[6,"rs-flint-popup",{type:[1],closeIcon:[4,"close-icon"],backIcon:[4,"back-icon"],steps:[2],progress:[2],stepActive:[32],open:[64],close:[64],previousStep:[64],nextStep:[64]}]]],["rs-accordion",[[1,"rs-accordion",{heading:[1],error:[4]}]]],["rs-checkbox",[[1,"rs-checkbox",{disabled:[4],checked:[1028]}]]],["rs-list-item",[[1,"rs-list-item",{heading:[1],error:[4],value:[8],selectable:[4],complete:[4],showArrow:[4,"show-arrow"],selected:[32]}]]],["rs-multi-select-item",[[1,"rs-multi-select-item",{selected:[1028],featured:[1028],value:[1],width:[1],error:[4],showStar:[32]}]]],["rs-card",[[1,"rs-card",{disabled:[4],collapsed:[1028],collapsible:[4],type:[8],toggle:[64],close:[64],open:[64]}]]],["rs-card-content",[[1,"rs-card-content",{lines:[1]}]]],["rs-card-header",[[1,"rs-card-header",{flex:[4],alignContent:[1,"align-content"]}]]],["rs-col",[[1,"rs-col",{flexGrow:[1,"flex-grow"],flexBasis:[1,"flex-basis"]}]]],["rs-content-placeholder",[[0,"rs-content-placeholder",{mask:[1],border:[4],maskContent:[32],width:[32],scale:[32]}]]],["rs-flint-popup-content",[[1,"rs-flint-popup-content",{lines:[1],order:[2],parentType:[1,"parent-type"]}]]],["rs-grid",[[1,"rs-grid"]]],["rs-incrementer-option",[[1,"rs-incrementer-option",{value:[8]}]]],["rs-input",[[1,"rs-input",{type:[1],value:[1025],disabled:[4],readonly:[4],placeholder:[1],clearOnEdit:[4,"clear-on-edit"],clearInput:[4,"clear-input"],required:[4],hideMax:[4,"hide-max"],hardLimit:[2,"hard-limit"],softLimit:[2,"soft-limit"],name:[1],hasError:[4,"has-error"],textAlign:[1,"text-align"],size:[1],hasFocus:[32],charsLeft:[32],update:[64],setFocus:[64],getInputElement:[64]}]]],["rs-item-group",[[1,"rs-item-group",{justifyContent:[1,"justify-content"],alignItems:[1,"align-items"],alignContent:[1,"align-content"],justifyItems:[1,"justify-items"],flexWrap:[1,"flex-wrap"],gap:[2],flexDirection:[1,"flex-direction"],padding:[4],flex:[4]}]]],["rs-label",[[4,"rs-label",{color:[1],position:[1]}]]],["rs-list-select",[[1,"rs-list-select",{value:[1032]}]]],["rs-loader",[[1,"rs-loader"]]],["rs-multi-select",[[1,"rs-multi-select",{gap:[1],columns:[2],width:[1],selectedItems:[1025,"selected-items"],featuredItems:[1025,"featured-items"]}]]],["rs-overline",[[1,"rs-overline"]]],["rs-progress-bar",[[1,"rs-progress-bar",{type:[1],value:[1026],color:[1]}]]],["rs-progress-circle",[[1,"rs-progress-circle",{progress:[2],size:[1]}]]],["rs-radio",[[1,"rs-radio",{color:[1],name:[1],disabled:[4],value:[8],button:[1],justifyContent:[1,"justify-content"],textAlign:[1,"text-align"],checked:[32]}]]],["rs-radio-group",[[1,"rs-radio-group",{allowDeselect:[4,"allow-deselect"],value:[1032],name:[1],color:[1],flex:[4],justifyContent:[1,"justify-content"],flexDirection:[1,"flex-direction"],button:[1]}]]],["rs-row",[[1,"rs-row",{wrap:[1],justifyContent:[1,"justify-content"]}]]],["rs-spinner",[[1,"rs-spinner",{size:[1],color:[1],speed:[2]}]]],["rs-switch",[[1,"rs-switch",{theme:[1],on:[1028],disabled:[4]}]]],["rs-textarea",[[1,"rs-textarea",{disabled:[4],autoExpand:[4,"auto-expand"],minHeight:[2,"min-height"],maxHeight:[2,"max-height"],rows:[2],placeholder:[1],hideMax:[4,"hide-max"],hardLimit:[2,"hard-limit"],softLimit:[2,"soft-limit"],value:[1025],richText:[4,"rich-text"],hasError:[4,"has-error"],required:[4],charsLeft:[32],hasFocus:[32]}]]],["rs-toggle",[[1,"rs-toggle",{currentPosition:[32],setActivePosition:[64]}]]],["rs-toggle-item",[[1,"rs-toggle-item",{active:[4]}]]],["rs-tool-tip",[[1,"rs-tool-tip",{arrow:[1],arrowDirection:[32]}]]],["rs-incrementer",[[6,"rs-incrementer",{step:[2],value:[1032],min:[2],max:[2],suffix:[1],dropdown:[4],decimalPlaces:[2,"decimal-places"],dropdownStep:[1026,"dropdown-step"],customOptions:[4,"custom-options"],isDropdownVisible:[32],showDropdown:[64],hideDropdown:[64],toggleDropdown:[64]},[[0,"rsOptionClick","rsOptionClickHandler"]]]]],["rs-progress-step",[[1,"rs-progress-step",{progress:[2],steps:[2],color:[1]}]]],["rs-content",[[1,"rs-content",{body:[2],color:[1],display:[1]}]]],["rs-header",[[1,"rs-header",{heading:[1],color:[1]}]]],["rs-icon",[[1,"rs-icon",{name:[1],color:[1],size:[2]}]]],["color-picker_4",[[1,"color-picker",{color:[1],opacity:[4],palettes:[1],maxPresetDisplay:[2,"max-preset-display"],recentColorsLabel:[1,"recent-colors-label"],transparentButton:[4,"transparent-button"],display:[1],mode:[1],currentColor:[32],currentOpacity:[32],palettesToDisplay:[32],setColor:[64],getColor:[64],addToPreset:[64]},[[0,"opacityChange","opacityChangeHandler"],[4,"colorPickerAddRecent","colorPickerAddRecentHandler"]]],[1,"color-picker-color-palette",{display:[1],color:[1],sliderOffsetWidth:[32],sliderOffsetHeight:[32],sliderLeft:[32],sliderTop:[32],paletteBackgroundStyle:[32],hue:[32],setHue:[64],setColor:[64]}],[1,"color-picker-hue-slider",{display:[1],hue:[2],_hue:[32],setHue:[64]}],[1,"color-picker-opacity-slider",{color:[1],opacity:[2],display:[1],currentRgb:[32],currentOpacity:[32],setColor:[64],setOpacity:[64]}]]],["rs-caption_2",[[1,"rs-color-picker",{color:[1],palettes:[16],opacity:[4],showPicker:[1028,"show-picker"],position:[1],display:[1],transparentButton:[4,"transparent-button"],mode:[1],colorSwatches:[32],setColor:[64],getColor:[64],show:[64],hide:[64]}],[1,"rs-caption",{color:[1]}]]],["rs-item",[[1,"rs-item",{disabled:[4],href:[1],rel:[1],target:[1],type:[1],appearance:[1],justifyContent:[1,"justify-content"],alignItems:[1,"align-items"],alignContent:[1,"align-content"],justifyItems:[1,"justify-items"],gap:[2],flexWrap:[1,"flex-wrap"],flexDirection:[1,"flex-direction"],padding:[4],flex:[4]},[[0,"rsItem","rsItem"]]]]],["rs-button_2",[[1,"rs-button",{color:[1],disabled:[4],href:[1],rel:[1],target:[1],size:[1],loading:[4],expand:[1],flexGrow:[1,"flex-grow"]}],[1,"rs-subtitle",{subtitle:[1],color:[1]}]]],["rs-column-header_4",[[1,"rs-side-drawer-header",{loading:[4],disabled:[4],panelOpen:[4,"panel-open"],isDirty:[4,"is-dirty"]}],[1,"rs-side-drawer-item-content",{itemOpen:[4,"item-open"],heading:[1],subHeading:[1,"sub-heading"],moreContentOpen:[4,"more-content-open"],contentLevel:[2,"content-level"],openLevel:[2,"open-level"],topScrollable:[32],bottomScrollable:[32]}],[1,"rs-side-drawer-item",{heading:[1],icon:[1]}],[1,"rs-column-header",{color:[1]}]]]],m)));class p{constructor(e){var t;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(u(this,"allowedLocales",["NZ","AU","UK"]),u(this,"PRODUCTION_FETCH",""),u(this,"DEVELOPMENT_FETCH","http://cms.rocketsparkcms/tools/checkDomainRegisterAvailability.php"),this.element=e,this.config={...n,...s},this.config.fetchURL=window.location.hostname.includes("rocketspark.com")?this.PRODUCTION_FETCH:this.DEVELOPMENT_FETCH,this.locale=null!==(t=this.element.dataset.locale.toUpperCase())&&void 0!==t?t:null,null===this.locale||!this.allowedLocales.includes(this.locale))throw TypeError("data-locale is a required attribute, must a string, and must be one of ".concat(this.allowedLocales.join("|")));this.init(),this.startListening()}static setPopupStatus(e,t){let{success:s,isAvailable:n,formattedPrice:r}=t;s?(e.setCanClaim(n),n?(e.setStatus("available"),e.setPrice(r),e.setHeading("This domain is available")):(e.setStatus("unavailable"),e.setPrice(null),e.setHeading("This domain is unavailable"))):(e.setStatus("unavailable"),e.setPrice(null),e.setHeading("Please try again later"))}init(){this.element.classList.add(this.config.classNames.element);const t=this.getTemplate("container"),s=this.getTemplate("inputContainer");this.domainSearch=new a({element:this.getTemplate("domainSearch"),config:this.config,locale:this.locale}),this.popupContainer=new h({element:this.getTemplate("popupContainer"),config:this.config,locale:this.locale}),e(this.domainSearch.element,s),e(s,t),e(t,this.element)}getTemplate(e){for(var s=arguments.length,n=new Array(s>1?s-1:0),r=1;r<s;r++)n[r-1]=arguments[r];return t[e].call(this,this.config,...n)}startListening(){this.domainSearch.element.addEventListener("domainSearchStart",(e=>{let{detail:t}=e;this.popupContainer.setPrice(null),this.popupContainer.open(),this.popupContainer.setDomain(t)})),this.domainSearch.element.addEventListener("domainSearchFinish",(e=>{let{detail:{success:t,isAvailable:s,formattedPrice:n}}=e;p.setPopupStatus(this.popupContainer,{success:t,isAvailable:s,formattedPrice:n})}))}}var $=p;document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".rs-domain-check").forEach((e=>{new p(e)}))}))}(),i}()}));
13
+ //# sourceMappingURL=index.js.map