1import{E as e,_ as t,x as n}from"./institution-DyFDvNu6.js";import{t as r}from"./paths-BjKNBopk.js";import"./third-party-account-CBPbZEMc.js";import{_r as i}from"./main-5Sl8yySz.js";import"./jha-card-DC-UH8vN.js";import"./jha-button-Dyau4S4K.js";import{t as a}from"./async-dialog-Bj6--dJf.js";import{t as o}from"./third-party-account-CicnImIR.js";window.BannowebThirdPartyAccountErrorElement=class extends t{static get is(){return`bannoweb-third-party-account-error`}static get properties(){return{thirdPartyAccount:{type:Object},inline:{type:Boolean,reflect:!0,attribute:`inline`}}}constructor(){super(),this.inline=!1,this.thirdPartyAccount=null}async onClickLearnMore(e){try{let e=this.thirdPartyAccount.error;await a.showDialog({title:o(e),description:e.message||`Hmm, something went wrong`,showWarningIcon:!0,preventClosing:!0,confirmButtonText:e.actionable?`Sign back in`:`Close`,confirmButtonHref:e.actionable?i.url(r.BANNOWEB_CONNECT_FINICITY_FIX,{accountid:this.thirdPartyAccount.id}):void 0,cancelButtonText:e.actionable?`Cancel`:void 0}),a.closeDialog()}catch{}}static get styles(){return e`:host{--jha-button-link-font-weight:500;display:block}:host(:not([inline])){--jha-button-link-text:var(--jha-error-message-text-color,var(--jha-text-white))}jha-error-message{padding:10px 16px}.flex{justify-content:space-between;align-items:center;display:flex}`}render(){if(!this.thirdPartyAccount||!this.thirdPartyAccount.error)return``;let e=n`<div> <jha-button link sync @click="${this.onClickLearnMore}"> Learn more </jha-button> </div>`;return this.inline?e:n`<jha-error-message> <div class="flex"> <div>${o(this.thirdPartyAccount.error)}</div> ${e} </div> </jha-error-message>`}},customElements.define(window.BannowebThirdPartyAccountErrorElement.is,window.BannowebThirdPartyAccountErrorElement),window.BannowebThirdPartyAccountErrorElement;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.