@rocketspark/domain-checker
Version:
Embeddable Domain Checker for Rocketspark
13 lines • 1.91 kB
JavaScript
/*!
*
* @rocketspark/domain-checker v0.0.34
* 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.
*
*/
;(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[598],{3598:function(r,e,a){a.r(e),a.d(e,{rs_alert:function(){return o}});var t=a(7915);const o=class{constructor(r){(0,t.r)(this,r),this.alertClassNames=()=>{let r="alert";return"error"===this.type&&(r+=" alert--error"),"info"===this.type&&(r+=" alert--info"),r},this.actionLink=void 0,this.type="error"}render(){return(0,t.h)(t.H,null,(0,t.h)("div",{class:this.alertClassNames()},(0,t.h)("div",{class:"alert__message"},"error"===this.type?(0,t.h)("rs-icon",{name:"warning",color:"negative",size:18}):"",(0,t.h)("rs-content",{color:"heading",body:2},(0,t.h)("slot",null))),void 0!==this.actionLink&&""!==this.actionLink?(0,t.h)("div",{class:"alert__action"},(0,t.h)("a",{href:"/dashboard/account_details/update_card/",class:"action__link"},(0,t.h)("slot",{name:"action"}),(0,t.h)("rs-icon",{name:"arrow-right",size:18}))):""))}};o.style=":host{display:block}.alert{padding:13px 16px;border:1px solid;border-radius:6px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box}.alert--error{border-color:var(--rs-color-negative);background-color:rgb(241 101 100 / 0.1)}.alert--info{border-color:var(--rs-color-primary-300);background-color:rgb(124 161 255 / 0.1)}.alert__message{display:flex;align-items:center;gap:16px}.alert__action{font-size:14px;font-weight:600}.action__link{text-decoration:none;display:flex;align-items:center;gap:8px;color:var(--rs-color-secondary);font-family:soleil, sans-serif;white-space:nowrap}"}}]);
//# sourceMappingURL=598.index.js.map