@rocketspark/domain-checker
Version:
Embeddable Domain Checker for Rocketspark
13 lines • 1.7 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([[984],{9984:function(e,s,o){o.r(s),o.d(s,{rs_chip:function(){return t}});var i=o(6919);const t=class{constructor(e){(0,i.r)(this,e),this.color="paywall",this.textColor="secondary",this.size=22,this.showLabel=!1}render(){var e;return(0,i.h)(i.H,{key:"822e92d2909032638706659bf7d3312c4af1a533"},(0,i.h)("div",{key:"45160610304004902e1b099be3db2c98c3a33efe",class:"chip",style:{backgroundColor:`var(--rs-color-${this.color})`,padding:this.showLabel?"2px 2px":null,width:this.showLabel?null:"24px",color:`var(--rs-color-${this.textColor})`}},this.icon&&(0,i.h)("rs-icon",{key:"59d2818444cf1efad107cabf83dd9098c53a4fcf",size:this.size,name:this.icon,color:null!==(e=this.iconColor)&&void 0!==e?e:this.textColor}),(0,i.h)("span",{key:"d971269e3672124fce9c7bb332e8aad6ea1f8717",style:{paddingRight:"6px",display:this.showLabel?null:"none"}},(0,i.h)("slot",{key:"f7e0b551c52118d7a2c782c6d31dd36608e8d48c",onSlotchange:()=>this.showLabel=!0}))))}get element(){return(0,i.g)(this)}};t.style=":host{display:inline-flex}.chip{border-radius:50px;font-family:soleil, sans-serif;color:#333;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;height:24px;box-sizing:border-box;display:flex;justify-content:center;align-items:center}"}}]);
//# sourceMappingURL=984.index.js.map