PageSourceSearch

https://online.alpinebank.com/en/js/bannoweb-ach-batch-reject-CPufsXm3.js

js alpinebank.com collected 2026-09-24 18:59:31 UTC 3,288 bytes, 1 lines download raw bytes

1import{r as e,t}from"./standalone-app-Bj-IdwrG.js";import{E as n,_ as r,x as i}from"./institution-DyFDvNu6.js";import{t as a}from"./page-B8YwBOEr.js";import{_r as o,o as s,or as c,vr as l}from"./main-5Sl8yySz.js";import"./jha-card-DC-UH8vN.js";import"./jha-card-header-D2XWRnD9.js";import"./jha-button-Dyau4S4K.js";import"./bannoweb-page-container-G_uPsQAr.js";import"./jha-form-text-input-CLlBTC4N.js";var u=l(r,`fadeinup`);window.BannowebAchBatchReject=class extends u{static get is(){return`bannoweb-ach-batch-reject`}static get styles(){return n`:host{display:block}jha-card{--jha-card-article-padding-bottom:8px;max-width:600px}jha-card article{margin-left:var(--jha-card-article-margin-left,24px);padding-right:var(--jha-card-article-padding-right,24px)}jha-error-message{margin:12px 0}article{margin-top:12px;margin-bottom:24px}footer{border-top:1px solid var(--jha-border-color);text-align:center;padding:16px 0 24px}`}static get properties(){return{achBatchController:{type:Object},batchId:{attribute:`batchid`,type:String},errorMessage:{type:String},isLoading:{type:Boolean},reason:{type:String}}}constructor(){super(),t(()=>import(`./jha-icon-chevron-back-qAPV11jO.js`),[]),this.achBatchController=s.achBatchController,this.batchId=``,this.errorMessage=``,this.isLoading=!1,this.reason=``}async routeEnter(e,t,n,r){return a.setTitleAndTrack(`Reject batch`,o.getRouteUrlWithoutParams(r),n),super.routeEnter(e,t,n,r)}get isValid(){return!!this.reason}onClickBack(e){history.back()}onInputReason(e){this.reason=(e.target||{}).value||``}async onSubmit(t){this.isLoading=!0;try{await this.achBatchController.toggleStatus(this.batchId,c.BatchStatus.READY,void 0,this.reason),history.back();let e=await new Promise(e=>{let t=document.querySelector(`bannoweb-ach-batch-details-dialog`);if(t)return e(t);let n=new MutationObserver(r=>{t=document.querySelector(`bannoweb-ach-batch-details-dialog`),t&&(n.disconnect(),e(t))});n.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>{n.disconnect(),e(null)},1e3)});e&&(e.successMessage=`Batch was rejected and uninitiated successfully.`,e.showSuccess=!0)}catch(t){e.console.error(t),this.errorMessage=`${t?.title}: ${t?.details[0]}.`}finally{this.isLoading=!1}}render(){return i`<bannoweb-page-container> <jha-card class="fadeinup"> <jha-card-header slot="header" center-header> <jha-button id="backBtn" sync icon @click="${this.onClickBack}" slot="header-left" type="button"> <jha-icon-chevron-back aria-label="${`Back`}"></jha-icon-chevron-back> </jha-button> <h1>${`Reject approvals`}</h1> </jha-card-header> <form @submit="${this.onSubmit}"> <article> ${this.maybeRenderErrorMessage()} <jha-form-text-input outline label="${`Reason for rejection`}" id="reason" .characterLimit="${500}" .value="${this.reason}" @value-changed="${this.onInputReason}"></jha-form-text-input> </article> <footer> <jha-button type="submit" .disabled="${!this.isValid}" .isLoading="${this.isLoading}"> ${`Submit`} </jha-button> </footer> </form> </jha-card> </bannoweb-page-container>`}maybeRenderErrorMessage(){return this.errorMessage?i`<jha-error-message>${this.errorMessage}</jha-error-message>`:``}},customElements.define(window.BannowebAchBatchReject.is,window.BannowebAchBatchReject);var d=window.BannowebAchBatchReject;export{d as default};

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.