@rocketspark/domain-checker 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/130.index.js +1 -1
- package/build/145.index.js +1 -1
- package/build/171.index.js +1 -1
- package/build/190.index.js +1 -1
- package/build/228.index.js +1 -1
- package/build/23.index.js +1 -1
- package/build/253.index.js +1 -1
- package/build/269.index.js +1 -1
- package/build/307.index.js +1 -1
- package/build/314.index.js +1 -1
- package/build/330.index.js +1 -1
- package/build/346.index.js +1 -1
- package/build/385.index.js +1 -1
- package/build/431.index.js +1 -1
- package/build/447.index.js +1 -1
- package/build/482.index.js +1 -1
- package/build/525.index.js +1 -1
- package/build/536.index.js +1 -1
- package/build/548.index.js +1 -1
- package/build/565.index.js +1 -1
- package/build/577.index.js +1 -1
- package/build/655.index.js +1 -1
- package/build/66.index.js +1 -1
- package/build/669.index.js +1 -1
- package/build/677.index.js +1 -1
- package/build/678.index.js +1 -1
- package/build/69.index.js +1 -1
- package/build/690.index.js +1 -1
- package/build/694.index.js +1 -1
- package/build/698.index.js +1 -1
- package/build/716.index.js +1 -1
- package/build/717.index.js +1 -1
- package/build/724.index.js +1 -1
- package/build/738.index.js +1 -1
- package/build/799.index.js +1 -1
- package/build/82.index.js +1 -1
- package/build/858.index.js +1 -1
- package/build/882.index.js +1 -1
- package/build/895.index.js +1 -1
- package/build/903.index.js +1 -1
- package/build/911.index.js +1 -1
- package/build/912.index.js +1 -1
- package/build/927.index.js +1 -1
- package/build/953.index.js +1 -1
- package/build/955.index.js +1 -1
- package/build/994.index.js +1 -1
- package/build/{5798190b27b26600fb18.svg → a8181c51f10ef59913b0.svg} +2 -2
- package/build/css/index.css +2 -2
- package/build/css/index.css.map +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/types/Components/PopupContainer.d.ts +0 -1
- package/build/types/interfaces/class-names.d.ts +1 -0
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @rocketspark/domain-checker v0.0.
|
|
3
|
+
* @rocketspark/domain-checker v0.0.2
|
|
4
4
|
* https://github.com/rocketspark/domain-checker.git
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) Lee Reichardt and project contributors.
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*
|
|
11
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}()}));
|
|
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 ae},g:function(){return Y},h:function(){return S},p:function(){return p},r:function(){return ve}});let n,r,a,i=!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 a=y(e,s),i=g(t,r),o=v(s);m.ael(a,n,i,o),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>m.rel(a,n,i,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,v=e=>0!=(2&e),b="http://www.w3.org/1999/xlink",w=new WeakMap,C=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,n=t.$flags$,r=(t.$tagName$,()=>{}),a=((e,t,s,n)=>{let r=N(t),a=ke.get(r);if(e=11===e.nodeType?e:u,a)if("string"==typeof a){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=a,e.insertBefore(t,e.querySelector("link")),s&&s.add(r))}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return r})(s.shadowRoot?s.shadowRoot:s.getRootNode(),t);10&n&&(s["s-sc"]=a,s.classList.add(a+"-h"),2&n&&s.classList.add(a+"-s")),r()},N=(e,t)=>"sc-"+e.$tagName$,j={},k=e=>"object"===(e=typeof e)||"function"===e,S=(e,t,...s)=>{let n=null,r=null,a=null,i=!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&&((i="function"!=typeof e&&!k(n))&&(n=String(n)),i&&o?l[l.length-1].$text$+=n:l.push(i?x(null,n):n),o=i)};if(c(s),t){t.key&&(r=t.key),t.name&&(a=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=x(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d.$key$=r,d.$name$=a,d},x=(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),S(e.vtag,t,...e.vchildren||[])}const t=x(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,a)=>{if(s!==n){let i=we(e,t),o=t.toLowerCase();if("class"===t){const t=e.classList,r=P(s),a=P(n);t.remove(...r.filter((e=>e&&!a.includes(e)))),t.add(...a.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(i||"o"!==t[0]||"n"!==t[1]){const l=k(n);if((i||l&&null!==n)&&!r)try{if(e.tagName.includes("-"))e[t]=n;else{let r=null==n?"":n;"list"===t?i=!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(b,t):e.removeAttribute(t)):(!i||4&a||r)&&!l&&(n=!0===n?"":n,c?e.setAttributeNS(b,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$,a=e&&e.$attrs$||j,i=t.$attrs$||j;for(n in a)n in i||A(r,n,a[n],void 0,s,t.$flags$);for(n in i)A(r,n,a[n],i[n],s,t.$flags$)},H=(e,t,s,o)=>{let d,h,m,p=t.$children$[s],$=0;if(i||(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"]=a,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"]!==a&&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,i)=>{let o,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===a&&(l=l.shadowRoot);r<=i;++r)n[r]&&(o=H(null,s,r,e),o&&(n[r].$elm$=o,l.insertBefore(o,B(t))))},_=(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())},U=(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$,a=t.$tag$,i=t.$text$;let o;null===i?(c="svg"===a||"foreignObject"!==a&&c,"slot"===a||I(e,t,c),null!==n&&null!==r?((e,t,s,n)=>{let r,a,i=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(;i<=d&&o<=m;)if(null==h)h=t[++i];else if(null==u)u=t[--d];else if(null==p)p=n[++o];else if(null==$)$=n[--m];else if(U(h,p))q(h,p),h=t[++i],p=n[++o];else if(U(u,$))q(u,$),u=t[--d],$=n[--m];else if(U(h,$))"slot"!==h.$tag$&&"slot"!==$.$tag$||M(h.$elm$.parentNode,!1),q(h,$),e.insertBefore(h.$elm$,u.$elm$.nextSibling),h=t[++i],$=n[--m];else if(U(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=i;c<=d;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===p.$key$){l=c;break}l>=0?(a=t[l],a.$tag$!==p.$tag$?r=H(t&&t[o],s,l,e):(q(a,p),t[l]=void 0,r=a.$elm$),p=n[++o]):(r=H(t&&t[o],s,o,e),p=n[++o]),r&&z(h.$elm$).insertBefore(r,B(h.$elm$))}i>d?D(e,null==n[m+1]?null:n[m+1].$elm$,s,n,o,m):o>m&&_(t,i,d)})(s,n,t,r):null!==r?(null!==e.$text$&&(s.textContent=""),D(s,null,t,r,0,r.length-1)):null!==n&&_(n,0,n.length-1),c&&"svg"===a&&(c=!1)):(o=s["s-cr"])?o.parentNode.textContent=i:e.$text$!==i&&(s.data=i)},F=e=>{let t,s,n,r,a,i,o=e.childNodes;for(s=0,n=o.length;s<n;s++)if(t=o[s],1===t.nodeType){if(t["s-sr"])for(a=t["s-sn"],t.hidden=!1,r=0;r<n;r++)if(i=o[r].nodeType,o[r]["s-hn"]!==t["s-hn"]||""!==a){if(1===i&&a===o[r].getAttribute("slot")){t.hidden=!0;break}}else if(1===i||3===i&&""!==o[r].textContent.trim()){t.hidden=!0;break}F(t)}},W=[],V=e=>{let t,s,n,r,a,i,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"],i=n.length-1;i>=0;i--)s=n[i],s["s-cn"]||s["s-nr"]||s["s-hn"]===t["s-hn"]||(G(s,r)?(a=W.find((e=>e.$nodeToRelocate$===s)),o=!0,s["s-sn"]=s["s-sn"]||r,a?a.$slotRefNode$=t:W.push({$slotRefNode$:t,$nodeToRelocate$:s}),s["s-sr"]&&W.map((e=>{G(e.$nodeToRelocate$,s["s-sn"])&&(a=W.find((e=>e.$nodeToRelocate$===s)),a&&!e.$slotRefNode$&&(e.$slotRefNode$=a.$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$||x(null,null),h=(p=t)&&p.$tag$===L?t:S(null,null,t);var p;if(a=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"],i=0!=(1&c.$flags$),o=!1,q(d,h),m.$flags$|=1,l){let e,t,s,n,r,a;V(h.$elm$);let i=0;for(;i<W.length;i++)e=W[i],t=e.$nodeToRelocate$,t["s-ol"]||(s=u.createTextNode(""),s["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=s,t));for(i=0;i<W.length;i++)if(e=W[i],t=e.$nodeToRelocate$,e.$slotRefNode$){for(n=e.$slotRefNode$.parentNode,r=e.$slotRefNode$.nextSibling,s=t["s-ol"];s=s.previousSibling;)if(a=s["s-nr"],a&&a["s-sn"]===t["s-sn"]&&n===a.parentNode&&(a=a.nextSibling,!a||!a["s-nr"])){r=a;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$,()=>{}),a=n["s-rc"];s&&C(e);const i=(e.$cmpMeta$.$tagName$,()=>{});ne(e,t),a&&(a.map((e=>e())),n["s-rc"]=void 0),i(),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||ie()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Re((()=>ee(e,!1))),e.$flags$&=-517},ae=e=>{{const t=ye(e),s=t.$hostElement$.isConnected;return s&&2==(18&t.$flags$)&&ee(t,!1),s}},ie=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),a=r.$hostElement$,i=r.$instanceValues$.get(t),o=r.$flags$,l=r.$lazyInstance$;var c,d;if(c=s,d=n.$members$[t][0],s=null==c||k(c)?c:4&d?"false"!==c&&(""===c||!!c):2&d?parseFloat(c):1&d?String(c):c,!(8&o&&void 0!==i||s===i)&&(r.$instanceValues$.set(t,s),l)){if(n.$watchers$&&128&o){const e=n.$watchers$[t];e&&e.map((e=>{try{l[e](s,i,t)}catch(e){Ce(e,a)}}))}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(!ke.has(t)){const n=(s.$tagName$,()=>{});((e,t,s)=>{let n=ke.get(e);$&&s?(n=n||new CSSStyleSheet,n.replace(t)):n=t,ke.set(e,n)})(t,e,!!(1&s.$flags$)),n()}}}const a=t.$ancestorComponent$,i=()=>ee(t,!0);a&&a["s-rc"]?a["s-rc"].push(i):i()},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||[],a=h.customElements,i=u.head,o=i.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 i=s.$tagName$,o=class extends HTMLElement{constructor(e){super(e),be(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(i)||a.get(i)||(n.push(i),a.define(i,he(o,s,1)))})))),l.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles",""),i.insertBefore(l,o?o.nextSibling:i.firstChild),p=!1,c.length?c.map((e=>e.connectedCallback())):m.jmp((()=>d=setTimeout(ie,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),ve=(e,t)=>ge.set(t.$lazyInstance$=e,t),be=(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,"_"),a=e.$lazyBundleId$,i=Ne.get(a);return i?i[r]:s(7171)(`./${a}.entry.js`).then((e=>(Ne.set(a,e),e[r])),Ce)},ke=new Map,Se=[],xe=[],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(Se),Ee(xe),(d=Se.length>0)&&m.raf(Te)},Re=e=>p().then(e),Ae=Le(xe,!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 a=n[e]={exports:{}};return s[e](a,a.exports,r),a.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,a,i){if(e[s])e[s].push(n);else{var o,l;if(void 0!==a)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+a){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+a),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 a=new Promise((function(s,r){n=e[t]=[s,r]}));s.push(n[2]=a);var i=r.p+r.u(t),o=new Error;r.l(i,(function(s){if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=s&&("load"===s.type?"missing":s.type),i=s&&s.target&&s.target.src;o.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",o.name="ChunkLoadError",o.type=a,o.request=i,n[1](o)}}),"chunk-"+t,t)}};var t=function(t,s){var n,a,i=s[0],o=s[1],l=s[2],c=0;if(i.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<i.length;c++)a=i[c],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0},s=self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))}();var a={};return function(){"use strict";r.r(a),r.d(a,{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 a=Object.assign(document.createElement("div"),{className:s}),i=Object.assign(document.createElement("rs-input"),{className:n,placeholder:"Search for a domain"}),o=Object.assign(document.createElement("rs-button"),{className:r,innerText:"Search"});return o.setAttribute("color","primary"),e(i,a),e(o,a),a},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"),inputContainerSearching:"".concat(s,"domain-input--searching"),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 i{constructor(t){let{element:s,config:{classNames:n,fetchURL:r},locale:a}=t;var i,o,l;l=!1,(o="canClaim")in(i=this)?Object.defineProperty(i,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[o]=l,this.fetchURL=r,this.classNames=n,this.element=s,this.locale=a,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})),this.element.classList.add(this.classNames.inputContainerSearching),(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}}))})).finally((()=>{this.element.classList.remove(this.classNames.inputContainerSearching)}))):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):"unavailable"===e?(this.element.innerHTML="This domain is already taken. Please try an alternative option",this.element.classList.add(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,a;a="You can get this domain now for",(r="base")in(n=this)?Object.defineProperty(n,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[r]=a,this.element=t,this.classNames=s}}class h{constructor(e){var t;let{element:s,config:{classNames:n,container:r,fetchURL:a},locale:i}=e;this.fetchURL=a,this.locale=i,this.container=null!==(t=document.querySelector(r))&&void 0!==t?t:document.body,this.classNames=n,this.element=s,this.build()}open(){var t;return e(this.element,document.body),setTimeout((()=>{this.element.classList.add(this.classNames.popupContainerActive)})),null===(t=document.querySelector("#shadow"))||void 0===t||t.classList.add("dc__checker-open"),this}close(){var e;return null===(e=document.querySelector("#shadow"))||void 0===e||e.classList.remove("dc__checker-open"),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","24"),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 i({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","https://cms.rocketspark.co.nz/tools/checkDomainRegisterAvailability.php"),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("unavailable"),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 i({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)}))}))}(),a}()}));
|
|
13
13
|
//# sourceMappingURL=index.js.map
|