UNPKG

@securecall/client-component

Version:

SecureCall Core Web Component

2 lines 1.27 kB
import{r as e,c as o,h as t,H as r}from"./p-CHf4eHvJ.js";import{L as s}from"./p-CgjdSc_8.js";const n=":host{display:block;text-align:center;margin-top:1rem}.response-button{padding:0.75rem 1.5rem;background-color:var(--theme-button-color, #007bff);color:var(--theme-primary-color, #fff);border:none;border-radius:4px;cursor:pointer;font-size:1rem;width:fit-content}.response-button:disabled{background-color:var(--theme-button-color-disabled, #ccc);cursor:not-allowed}.response-button:hover:not(:disabled){background-color:var(--theme-button-color-hover, #0056b3)}";const c=class{constructor(t){e(this,t);this.responseButtonEvent=o(this,"responseButtonEvent")}fieldName;label;action="retryClearCVV";responseButtonEvent;log=s("SecurecallResponseButton");handleClick(){this.log.debug("handleClick: field",this.fieldName,"clicked");this.responseButtonEvent.emit(this.action)}render(){return t(r,{key:"f816c5ae1509e330f91f2f5d3e70b008d1243bdb"},t("div",{key:"39350d41d8c67e62020a5618ae3f369a1aabe243",class:"response-field-container"},t("button",{key:"73fbc0e4c7136f4f8cdbe73312d7d4554f8880cc",type:"button",class:"response-button",onClick:()=>this.handleClick()},this.label)))}};c.style=n;export{c as securecall_response_button}; //# sourceMappingURL=p-e8059b8b.entry.js.map