@rocketspark/domain-checker
Version:
Embeddable Domain Checker for Rocketspark
13 lines • 8.68 kB
JavaScript
/*!
*
* @rocketspark/domain-checker v1.0.12
* git+https://github.com/rocketspark/domain-checker.git
*
* Copyright (c) Lee Reichardt and project contributors.
*
* This source code is licensed under the no license license found in the
* LICENSE file in the root directory of this source tree.
*
*/
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[717],{6717:function(t,e,o){o.r(e),o.d(e,{rs_button:function(){return n},rs_header:function(){return i},rs_loader:function(){return s},rs_subtitle:function(){return a}});var r=o(6919);const n=class{constructor(t){(0,r.r)(this,t),this.color="primary",this.disabled=!1,this.size="default",this.loading=!1}getColorClass(){return`color--${this.color}`}getExpandClass(){return"block"===this.expand?"expand-block":"full"===this.expand?"expand-full":""}setButtonWidth(){this.loading?this.buttonElement.style.width=`${this.buttonElement.offsetWidth}px`:this.buttonElement.style.width=null}render(){const{href:t,rel:e,target:o}=this,n=void 0===this.href?"button":"a",i="a"===n?{href:t,rel:e,target:o}:{};return(0,r.h)(r.H,{key:"c3b642de2a5185a059c3a546cc8f6c48ecaece6d",class:this.getExpandClass(),style:{"flex-grow":this.flexGrow}},(0,r.h)(n,Object.assign({key:"c5754da876be113da788a028db0ff3759c526714",ref:t=>this.buttonElement=t},i,{disabled:this.disabled,class:["button-element",this.loading?"button-element--loading":"",this.getColorClass(),"small"===this.size?"small":"",this.disabled?"disabled":"",void 0!==this.expand?`button-element--${this.expand}`:""].join(" ").trim(),style:{width:"collapse"===this.expand?`${this.width}px`:null}}),this.renderStartIcon(),this.slot(),this.renderEndIcon()))}slot(){return this.el.textContent?this.loading?(0,r.h)("rs-loader",{type:"indeterminate"}):(0,r.h)("span",null,(0,r.h)("slot",null)):null}renderStartIcon(){return void 0!==this.iconStart?(0,r.h)("rs-icon",{size:this.iconSize,color:this.iconColor,class:"icon-start",name:this.iconStart}):null}renderEndIcon(){return void 0!==this.iconEnd?(0,r.h)("rs-icon",{size:this.iconSize,color:this.iconColor,class:"icon-end",name:this.iconEnd}):null}get el(){return(0,r.g)(this)}static get watchers(){return{loading:["setButtonWidth"]}}};n.style=":host{display:inline-block}.button-element span{top:-1px;display:block;position:relative;line-height:1;font-size:16px;font-family:soleil, sans-serif;font-style:normal;font-weight:600;letter-spacing:0.2px;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a.button-element span{top:initial}.button-element{text-decoration:none;padding:12px 25px;min-width:90px;height:42px;cursor:pointer;user-select:none;border:0;border-radius:4px;outline:none;display:inline-flex;box-sizing:border-box;background-size:cover;transition:background 0.25s ease-out, box-shadow 0.25s ease-out;color:var(--rs-color-white);width:100%;white-space:nowrap;justify-content:center;align-items:center;gap:8px}.button-element.small{padding-top:10px;padding-bottom:10px;height:36px}.button-element.small span{font-size:14px}.button-element:active{transition-delay:200ms}:host(.expand-block),:host(.expand-full){display:block}.button-element--collapse{min-width:auto;padding:0;aspect-ratio:1;height:auto}:host(.expand-block) .button-element{display:block;width:100%}:host(.expand-full) .button-element{display:block;width:100%;border-radius:0}.button-element.color--primary{background:var(--rs-color-primary-700)}.button-element.color--primary:hover{background:var(--rs-color-primary)}.button-element.color--primary:active{background:var(--rs-color-primary-300)}.button-element.color--negative{background:var(--rs-color-negative)}.button-element.color--secondary{background:var(--rs-color-secondary)}.button-element.color--secondary:hover{background:var(--rs-color-secondary-700)}.button-element.color--secondary:active{background:var(--rs-color-secondary-300)}.button-element.disabled span{color:var(--rs-color-white);pointer-events:none}.button-element.color--grey-light{color:var(--rs-color-secondary);background:transparent;box-shadow:inset 0 0 0 1px var(--rs-color-select-border)}:host(.expand-block) .button-element.color--grey-light span,:host(.expand-full) .button-element.color--grey-light span{font-weight:normal;color:var(--rs-color-secondary)}.button-element:not(.disabled).color--grey-light:hover{box-shadow:inset 0 0 0 1px var(--rs-color-grey)}.button-element.color--positive{background:var(--rs-color-positive)}.button-element.color--positive:hover{background:var(--rs-color-positive-700)}.button-element.color--positive:active{background:var(--rs-color-positive-300)}.button-element.color--text{color:var(--rs-color-grey);background:transparent}.button-element.color--text:hover{background:var(--rs-color-light)}.button-element.color--text:active{background:var(--rs-color-grey-light)}.button-element.disabled{box-shadow:none;background:var(--rs-color-grey-light);cursor:not-allowed}.button-element.disabled:hover{background:var(--rs-color-grey-light)}";const i=class{constructor(t){(0,r.r)(this,t),this.heading="2",this.color="heading"}render(){const t=`h${this.heading}`;return(0,r.h)(r.H,{key:"730ed31799fa902f1172e11ec61cda07da228da6",style:{color:void 0!==this.color?`var(--rs-color-${this.color})`:""}},(0,r.h)(t,{key:"3519f13751bdd567053216e963792ee7b0f7d665"},(0,r.h)("slot",{key:"cfb2c79fdc3f68e502b530789d3afb0e05b10690"})))}};i.style=":host{display:block;font-family:soleil, sans-serif;font-style:normal;color:var(--rs-color-heading);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}h1,h2,h3,h4,h5{margin:0;padding:0;line-height:1.2em}h1{font-weight:600;font-size:50px}h2{font-weight:600;font-size:38px}h3{font-weight:600;font-size:26px}h4{font-weight:700;font-size:22px}h5{font-weight:600;font-size:16px}";const s=class{constructor(t){(0,r.r)(this,t),this.type="spinner"}render(){return(0,r.h)(r.H,{key:"9a07d2ab96c0a18996f4ff287412493f0feaf454",class:this.type},"spinner"===this.type?this.spinner():this.indeterminate())}spinner(){return(0,r.h)("div",{class:"loader rs-loader"},"Loading...")}indeterminate(){return(0,r.h)("div",{class:"indeterminate-loader"},(0,r.h)("span",null,(0,r.h)("div",{class:"indeterminate-loader__loading-bar"})))}};s.style=':host{display:block}.loader{margin:0 auto;font-size:10px;position:relative;text-indent:-9999em;border-top:1.1em solid rgb(26 36 40 / 0.2);border-right:1.1em solid rgb(26 36 40 / 0.2);border-bottom:1.1em solid rgb(26 36 40 / 0.2);border-left:1.1em solid #1a2428;transform:translateZ(0);animation:load8 1.1s infinite linear;display:inline-block;vertical-align:middle;transition:opacity 0.3s linear}.loader,.loader::after{border-radius:50%;width:10em;height:10em}@keyframes load8{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host(.indeterminate){width:100%}.indeterminate-loader{cursor:wait;display:flex;align-items:center;border-radius:3px;overflow:hidden;width:100%}.indeterminate-loader>*{width:100%}.indeterminate-loader__loading-bar{position:relative;overflow:hidden;height:5px;border-radius:3px;background-color:rgb(255 255 255 / 0.5);width:100%}.indeterminate-loader__loading-bar::before{position:absolute;top:0;bottom:0;left:0;content:"";animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;border-radius:3px;background-color:rgb(255 255 255 / 0.5);will-change:left, right}.indeterminate-loader__loading-bar::after{position:absolute;top:0;bottom:0;left:0;content:"";animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation-delay:1.15s;border-radius:3px;background-color:rgb(255 255 255 / 0.5);will-change:left, right}@keyframes indeterminate{0%{right:100%;left:-35%}60%{right:-90%;left:100%}100%{right:-90%;left:100%}}@keyframes indeterminate-short{0%{right:100%;left:-200%}60%{right:-8%;left:107%}100%{right:-8%;left:107%}}';const a=class{constructor(t){(0,r.r)(this,t),this.subtitle="1",this.color="grey"}render(){return(0,r.h)(r.H,{key:"6909aabaaeef9272ce83f13ed4bf8b594e3dfc83",class:`subtitle__${this.subtitle}`,style:{color:void 0!==this.color?`var(--rs-color-${this.color})`:""}},(0,r.h)("slot",{key:"c4628669381f6daa6d1afd0ddff388936086eb5d"}))}};a.style=":host{display:block;font-family:soleil, sans-serif;font-style:normal;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host(.subtitle__1){font-weight:400;font-size:18px;line-height:1.4em;letter-spacing:0.15px}:host(.subtitle__2){font-weight:300;font-size:12px;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}:host(.subtitle__3){font-weight:500;font-size:10px;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}"}}]);
//# sourceMappingURL=717.index.js.map